-
-
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] Schema info is not being stored in core java classes for five use cases #7613
Comments
Basic question: by java classes do you mean the java classes of the openapi code generator? Or the generated Java classes, e.g |
I mean the classes:
|
ok, thanks. Any by "validation", you mean the |
I mean openapi Schema validation properties like pattern minimum, maximum, maxItems etc |
ah ok, thanks, now it all makes sense. |
The remaining enum/default/nullable info should be covered by our Java classes. Marking this issue as done now that #10653 has been merged. |
Bug Report Checklist
Description
Validations are not being stored in our java classes for the following use cases:
This data is needed in these classes
openapi-generator version
5.0.0
OpenAPI declaration file content or url
Generation Details
Use any generator, I use python-experimental
Steps to reproduce
Generate a client using the above spec
Related issues/PRs
Suggest a fix
I see two possible paths forward:
CodegenProperty
CodegenProperty
class that contains oneOf, anyOf, and allOf
List<CodegenProperty>
List<CodegenProperty>
List<CodegenProperty>
I prefer option2 because it preserves the data from the spec file in our interfaces and leaves it up to the generators how they want to add the missing validations.
The text was updated successfully, but these errors were encountered: