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
This let's one make a request like /example?filter[foo]=abc&filter[bar]=def
However, the following request /example?filter[foo]=abc
fails with "Parameter 'filter' in query has an error: Error at \"/bar\": Value is not nullable"
This behavior is incorrect as neither of the filter properties is required. Instead of the nullability check, kin-openapi should check whether the property is actually required.
A quick workaround is to add nullable: true to filter's properties. However, that is semantically not correct. The property is not required (i.e. can be omitted) but is not nullable (i.e. it is not valid for it to be explicitly set to a null value).
The text was updated successfully, but these errors were encountered:
Consider the following schema:
This let's one make a request like
/example?filter[foo]=abc&filter[bar]=def
However, the following request
/example?filter[foo]=abc
fails with
"Parameter 'filter' in query has an error: Error at \"/bar\": Value is not nullable"
This behavior is incorrect as neither of the filter properties is required. Instead of the nullability check, kin-openapi should check whether the property is actually required.
A quick workaround is to add
nullable: true
to filter's properties. However, that is semantically not correct. The property is not required (i.e. can be omitted) but is not nullable (i.e. it is not valid for it to be explicitly set to a null value).The text was updated successfully, but these errors were encountered: