-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[java][model] Collection initialized to empty collection even if not required #3585
Comments
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
👍 from my side. It also leads to problems like always sending empty |
I use rest-assured client for testing. |
We are trying to use the same model between our client (using a model serialized with Jackson) and server (JaxRS jersey2).
If a collection is not required, the server model set its value to
null
.openapi-generator/modules/openapi-generator/src/main/resources/JavaJaxRS/pojo.mustache
Lines 24 to 29 in 7f36f26
This is not the case on client side.
openapi-generator/modules/openapi-generator/src/main/resources/Java/pojo.mustache
Line 61 in 7f36f26
In my opinion this should be aligned.
The text was updated successfully, but these errors were encountered: