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
I think the validator is correct here, as in case of a query parameter there cannot be null value, as it would be non-distinguishable from a "null" string.
My expectation is that for an optional query parameter utoipa should only specify "required": false but not make value nullable.
The text was updated successfully, but these errors were encountered:
Consider a query params struct like this:
Utoipa generates a spec like this:
When we run IBM openapi-validator on this spec it gives an error:
I think the validator is correct here, as in case of a query parameter there cannot be
null
value, as it would be non-distinguishable from a"null"
string.My expectation is that for an optional query parameter utoipa should only specify
"required": false
but not make value nullable.The text was updated successfully, but these errors were encountered: