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
What would be the resulting value of this parameter in the view function? The spec/docs doesn't seem to be very clear on that:
Note: nullable is not the same as an optional parameter or an empty-valued parameter. nullable means the parameter value can be null. Specific implementations may choose to map an absent or empty-valued parameter to null, but strictly speaking these are not the same thing. Source
In addition, it seems that the behaviour was never very clear and it is now even "NOT RECOMMENDED". (OAI/OpenAPI-Specification#1573)
Hm, thanks for that link. My own interpretation and attempted use was the 'name-only' use described there, that an option was false if omitted and true if ?specified (but no value). I thought this was pretty standard/common.
I suppose no need to do anything until/unless it's refined or 'recommended' again in OAS 4.0.
Description
A Boolean query parameter with
allowEmptyValue: true
does not allow an empty (i.e.?param
) value; instead returning 400 Boolean expected.Expected behaviour
/api/blah?allowedEmptyBooleanParam
should workActual behaviour
Steps to reproduce
Additional info:
Output of the commands:
python --version
Python 3.10.4
pip show connexion | grep "^Version\:"
Version: 2.13.0
The text was updated successfully, but these errors were encountered: