-
-
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][JAVA][NATIVE] Pojo with Set uses Arraylist, wrong datatype in for loop #14833
Comments
I experience the same issue. Version 6.2.1 initialized the |
@wing328 the official maintainer of Java (Java 11 Native HTTP client) @bbdouglas, has been inactive since 2019. Maybe this API client should be marked as unsupported? |
I've filed #14961 to fix the issue. Please pull it to give it a try. You may need the option
|
The We appreciate @bbdouglas for contributing the first version of |
the fix has been merged and will be included in the upcoming 6.5.0 release |
Yeah that fixed the first issue, and the additional property circumvents the second issue. Thanks a bunch :) |
Bug Report Checklist
Description
When using an object with a set, I ran into two separate issues:
openapi-generator version
6.4.0
OpenAPI declaration file content or url
https://gist.github.com/RInverid/417213fbba82782204ddce87b22d5d62
Generation Details
Java, native http library
Steps to reproduce
Try to build the generated client, it fails to build due assigning a list to a set, and looping over the enum instead of an array
Suggest a fix
Issue 1:
variable is correctly assigned here and incorrectly assigned here. Caused by commit fd45b74
Issue 2:
Datatype is incorrect here, in this case it should be an enum.
The text was updated successfully, but these errors were encountered: