I have a parameter defined as such:
param :purchased, [true, false]
This leads to the following error:
Invalid parameter 'purchased' value true: Must be one of: true, false.
I have also tried:
param :purchased, [true, false, 'true', 'false']
but it didn't change anything.
Unfortunately also I cannot cover this in the tests as there the sent boolean is always cast into a String. Then the error looks like this:
Invalid parameter 'purchased' value "true": Must be one of: true, false.
Can anybody help here? Also I would be happy to just disable the validation of Apiepie as I am only interested in the documentation part.
true
,false
." – migo Oct 13 '22 at 07:49