-
-
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
[Java] refactor: improve additionalModelTypeAnnotations generation #8269
Conversation
.../openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java
Outdated
Show resolved
Hide resolved
.../openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java
Outdated
Show resolved
Hide resolved
.../openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java
Outdated
Show resolved
Hide resolved
Looking good, now you need to update the documentation explaining how to use it :) |
|
You need to update documentation of |
b47bf5e
to
a9ecc7d
Compare
I think it's good to go, do the last step listed in PR description
|
Hi thanks for approval. EDIT: yeah Java :) |
eb97ff8
to
76971dd
Compare
Any news about integration of this PR ? |
dc13cdf
to
4531a72
Compare
e0cdeaf
to
0f4d348
Compare
a8f7419
to
cce8495
Compare
cce8495
to
711946d
Compare
711946d
to
3dcbef3
Compare
Split by ';' and/or newline Trim value fix: OpenAPITools#7032 Run ./bin/generate-samples.sh to regenerate model files Revert "Run ./bin/generate-samples.sh to regenerate model files" This reverts commit da509c39f363da046fbd457e1ab67ef0f62f3561. refector: remove unnecessary import test: multiples tests for AdditionalModelTypeAnnotations Add a getter to test the list refactor: remove duplicate AdditionalModelTypeAnnotations Without using Set to avoid any side effect somewhere, I use stream and distinct to avoid duplicates refactor: using Set instead of stream Remove stream distinct for performance reason, use newHashSet Keep AdditionalModelTypeAnnotations as List doc: update info additionalModelTypeAnnotations refactor: move doc in code for autogen style: tab in java class doc: run ensure-up-to-date refactor: add imports lost in rebase docs: regenerate docs docs: update
3dcbef3
to
f1c3b1f
Compare
Run this:
review and commit changes to fix broken test |
Done :) |
@wing328 can we have it in pls? |
Split by ';' and/or newline
Trim value
fix: #7032
PR checklist
./bin/generate-samples.sh
to update all Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH.master
,5.1.x
,6.0.x