-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[BUG] nullable schema is not allowed to contain null
#5615
Comments
cc @eriktim |
null
null
null
null
Thanks for opening this issue @domenkozar.
@wing328 can you clarify what the desired behavior is here? |
OpenAPI specification says schemas respect jsonschema, which does allow for my example. |
Yes I've seen that one but it seems the OpenAPI generator does not support this (yet?). It's not the Elm generator breaking here. |
null
null
Thanks - I've updated issue title to reflect that. |
Hey @eriktim, where should I report this so that it gets fixed in the "OpenAPI generator", so that I can then help getting it fixed for Elm? |
Bug Report Checklist
Description
Generator crashes if nullable enum schema contains null value.
This is allowed by jsonschema and thus openapi spec.
openapi-generator version
5.0.0 branch, 4th Feb 2020
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
There's an error:
The text was updated successfully, but these errors were encountered: