You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm extending the models generated from swaggers with a deepCopy() method for java. For this I need to generate code based on the property types, but in case the basetype is List or Map, the detailed type information is lost to the templates.
I propose exposing the "parentContainer" type in these cases similar to how "items" are exposed for container properties.
The proof-of-concept code is ready, I'll file a PR soon.
Description
I'm extending the models generated from swaggers with a deepCopy() method for java. For this I need to generate code based on the property types, but in case the basetype is List or Map, the detailed type information is lost to the templates.
I propose exposing the "parentContainer" type in these cases similar to how "items" are exposed for container properties.
The proof-of-concept code is ready, I'll file a PR soon.
Swagger-codegen version
2.4.10, 2.4.11-SNAPSHOT (HEAD)
Swagger declaration file content or url
Command line used for generation
java -jar ~/.m2/repository/io/swagger/swagger-codegen-cli/2.4.10/swagger-codegen-cli-2.4.10.jar generate -i testarr.yaml -l java -o /tmp/test -DdebugModels=true > logarr-orig.txt
java -jar ~/src/swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i testarr.yaml -l java -o /tmp/test -DdebugModels=true > logarr.txt
Steps to reproduce
N/A
Related issues/PRs
The PR will include the fix for #9918
Suggest a fix/enhancement
will file a PR
logarr-orig.txt
logarr.txt
The text was updated successfully, but these errors were encountered: