We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Some schemas have required but nullable properties in our open API specification. These are mapped to non-optional in the generated models.
4.2.0
components: schemas: Foo: type: object required: [name] nullable: false properties: name: type: string nullable: true ...
Similar issue in Java: #4530
Not sure if I miss something else. I think the only thing missing is a question mark at the very end of the template "data_class_req_var.mustache".
...{{#isNullable}}?{{/isNullable}}
The text was updated successfully, but these errors were encountered:
@pychoude I have created a PR based on your suggestion. Let me know what you think.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
Some schemas have required but nullable properties in our open API specification. These are mapped to non-optional in the generated models.
openapi-generator version
4.2.0
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Similar issue in Java: #4530
Suggest a fix/enhancement
Not sure if I miss something else. I think the only thing missing is a question mark at the very end of
the template "data_class_req_var.mustache".
The text was updated successfully, but these errors were encountered: