You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the following swagger spec of a parameter:
name: whatever
in: query
type: string
enum
true
and the request contains a p=true in the query, the validation fails saying that true is not available as an option in the enum. this is because the true in the enum is converted to boolean at some point of the execution in the library. This happens if i put True capitalized in the enum options. If I put type: boolean in the spec, then still the library says that p is not valid, because is of type stsring and should be boolean.
The text was updated successfully, but these errors were encountered:
I don't have the bandwidth to look into this myself at the moment. I think that the correct place to start investigating is in flex.validation.parameters.type_cast_parameter which is responsible for the appropriate type casting of parameters.
Given the following swagger spec of a parameter:
name: whatever
in: query
type: string
enum
and the request contains a p=true in the query, the validation fails saying that true is not available as an option in the enum. this is because the true in the enum is converted to boolean at some point of the execution in the library. This happens if i put True capitalized in the enum options. If I put type: boolean in the spec, then still the library says that p is not valid, because is of type stsring and should be boolean.
The text was updated successfully, but these errors were encountered: