-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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] Values of instantiationTypes not considered #3718
Comments
I am not sure if the I think it is safe to replace: Lines 722 to 727 in 4575b30
With: And: Lines 746 to 751 in 4575b30
With: Optional: A unit test for this could also be added in @Marvin1912: Can you file a pull request for that? |
Hi @jmini, |
Hi @Marvin1912, any update on the above? instantiationTypes field is not really helpful at current state for collections other than plain ArrayList. |
Hi @ala85 |
Hello @wing328 is this something you or another core contributor could assist with? |
@Marvin1912 please have a look at https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-can-i-submit-a-pr-to-fix-bugs-or-make-enhancements on how to submit a PR with your enhancement. |
PR created. |
Can you please share a link to the PR. |
@Marvin1912 #4982 was merged. Can this issue be closed? |
@tiffmaelite Yes, can be closed. |
Bug Report Checklist
4.0.1 (
org.openapitools:openapi-generator-gradle-plugin:4.0.1
)Given
instantiationTypes = [array: "java.util.HashSet"]
Actual: ArrayLists are generated
Expected: Generated HashSets
Description
Wanted to generate HashSets instead of ArrayLists for arrays and set value for
instantiationTypes
to[array: "java.util.HashSet"]
. According to answer of Slack:openapi-generator version
4.0.1, not a regression
OpenAPI declaration file content or url
Command line used for generation
gradle clean openApiGenerate
Steps to reproduce
Just set instantiationTypes according to example above.
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: