OpenAPITools / OpenAPITools/openapi-generator
[BUG] [JAXRS-JERSEY] - Openapi code generation for jaxrs-jersey is not generating xml tags withXml option.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- [YES] Have you provided a full/minimal spec to reproduce the issue?
- [YES] Have you validated the input using an OpenAPI validator (example)?
- [YES] What's the version of OpenAPI Generator used?
5.0.0-Beta - [YES] Have you search for related issues/PRs?
YES - https://github.com/OpenAPITools/openapi-generator/issues/4733 - [YES] What's the actual output vs expected output?
expecting it to gerenarate XML tags in model classes but it is not. - [Optional] Bounty to sponsor the fix (example)
Description
i am trying to generate a jaxrs-jersey server stub with openapi-generator-cli.jar from CLI but the model files are not produced with xml tags.
i need to produce XML content.
iam seeing this exact same issue thats discussed in this ticket https://github.com/OpenAPITools/openapi-generator/issues/4733
i am not able to generate xml tags with java -jar openapi-generator-cli.jar generate -i ./userapi-1.3.0.yaml --additional-properties withXml=true -g jaxrs-jersey
can you help solve this problem?
i am using https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/5.0.0-beta/openapi-generator-c...
openapi-generator version
5.0.0-beta
OpenAPI declaration file content or url
Generation Details
i am using the following CLI command
java -jar openapi-generator-cli.jar generate -i ./userapi-1.3.0.yaml --additional-properties withXml=true -g jaxrs-jersey
Steps to reproduce
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/issues/4733
Suggest a fix
Contributor 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.
Research direction
Run the supplied CLI command with openapi-generator-cli 5.0.0-beta and the embedded userapi-1.3.0.yaml specification to reproduce the missing XML output. Trace the jaxrs-jersey generator's handling of the withXml=true option; done means generated model classes contain XML tags matching the schema's XML names.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- backend-api-design, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100