Cxf: use jackson annotation for generated interface
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Start with the CXF generator and the templates or entry points that produce interfaces; no specific file or test is named in the issue. Check how Jackson annotations are currently emitted for oneOf models, then verify that generated interfaces support the reported runtime deserialization case.
Written by the indexing model from the issue text.
Description
Hi,
Currently, the cxf generator does not support jackson annotation for interfaces leading to deserialization issues at runtime when dealing with oneOf modelisation.
Therefore, I propose you a PR to fix this problem.
Any feedback will be appreciated,
I also leave here some improvements if someone has time to enhance the cxf generator:
- The property in the @JsonTypeInfo is hardcoded, you can make it dynamic and equals to the discriminator if one is present
- The SubTypes name value is always equals to the classname, make it equals to the value of mapping if a mapping is defined
Thanks for taking the time
- Dominant language
- Mustache
- Stars
- 299
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from swagger-api/swagger-codegen-generators
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
[Bug]: Python/pythonFlaskConnexion generators validate map keys instead of values for additionalProperties.enumPossibly taken @pvillard31 claimed this 208 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Python generated code: Delete API Requests can be blocked in API Gateways when sends empty bodyOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[Bug]: Bean validation doesn't work for numbers larger than Integer.MAX_VALUEPossibly taken @apupier claimed this 296 days ago. OpenBug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
swagger-api/swagger-codegen-generators#1370 · 3 comments · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
All issues in swagger-api/swagger-codegen-generators
Similar issues
-
Switch to ruffOpen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
tashfeenahmed/freellmapi#1920 ·
Maintainers usually reply within 1 day
-
reliability should-have
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
melihbirim/csvql#309 ·
Maintainers usually reply within 1 day
-
help wanted manifest-fix-needed verified
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ScoopInstaller/Extras#19345 · 1 comment ·
Maintainers usually reply within 1 day