-
-
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
Support openApiNullable in jaxrs-cxf-client generator #8863
Support openApiNullable in jaxrs-cxf-client generator #8863
Conversation
The output
Can you please take a look? |
Hello @wing328, thanks for the review! I indeed forgot to include The sample compiles now. Also the Thanks and best regards, BTW: shall I update to current master? |
Please note that circleci build is still failing because the fix for #8922 is not (yet) included in the MR. I guess it will pass again after update to current master. |
Can you please pull the latest master into your branch to fix it? |
7946e6e
to
2424567
Compare
done, thanks! |
Now circleci failed with a different error. But I don't have an idea why. To me it does not seem related to my changes. Any help is greatly appreciated @wing328. Thanks in advance!
|
2424567
to
bd6f316
Compare
Again updated to current master. 🤞 |
96ba1a4
to
8a78afd
Compare
Generated using: ./bin/generate-samples.sh bin/configs/other/openapi3/jaxrs-cxf-client-jackson-nullable.yaml
Add import mapping for JsonNullable to AbstractJavaCodegen
add @JsonIgnore to standard getters
8a78afd
to
b5ab59c
Compare
I rebased to current master again. Now all checks were successul, I did not make any further changes. Can you please continue the review @wing328 ? Big thanks in adavance! |
Hello @wing328, is there anything left for me to do so you can restart the review? Our team would really love to see this integrated in the main branch. :) |
Tested again and the result is good. Sorry for the delay in reviewing as there are too many PRs for review. |
Until now the
jaxrs-cxf-client
generator does not support theopenApiNullable
config option although https://openapi-generator.tech/docs/generators/jaxrs-cxf-client lists is explicitly. Support foropenApiNullable
usingjackson-databind-nullable
(https://github.com/OpenAPITools/jackson-databind-nullable) is added in this PR.Hints for the reviewer:
jaxrs-cxf-client
with additional propertyjackson
set totrue
. It reusesmodules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
which already provides many nullable properties.cc: @wing328 @bbdouglas @sreeshas @jfiala @lukoyanov @cbornet @jeff9finger @karismann @Zomzog @lwlee2608 @nmuesch
Thanks in advance!
PR checklist
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