Support openApiNullable in jaxrs-cxf-client generator#8863
Support openApiNullable in jaxrs-cxf-client generator#8863wing328 merged 13 commits intoOpenAPITools:masterfrom
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-clientgenerator does not support theopenApiNullableconfig option although https://openapi-generator.tech/docs/generators/jaxrs-cxf-client lists is explicitly. Support foropenApiNullableusingjackson-databind-nullable(https://github.com/OpenAPITools/jackson-databind-nullable) is added in this PR.Hints for the reviewer:
jaxrs-cxf-clientwith additional propertyjacksonset totrue. It reusesmodules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yamlwhich 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