-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"nullable: True" ignored if used together with allOf or oneOf #277
Comments
I ran into this with |
@mmerickel I haven't found a workaround yet. For now I'm just evaluating whether to use this library so I haven't worked on these issues yet. Are you using drf-spectacular to generate your schema too? |
@idesoto I am not, we hand-create the yaml right now. |
Seems like its an issue with "openapi_schema_validator" lib. |
It still does not work with this library. (openapi 3.0 validator)
The expected schema is
|
I have the following issue. drf-spectacular generates the following spec for enums (for example, for a building_type field which can be either "house" or "apartment" or null):
but when trying to validate data containing
None
for thebuilding_type
field I get this error:I think that
None
should be allowed ifnullable: True
is specified.The text was updated successfully, but these errors were encountered: