Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #7170
Closed
Open
Issue created Aug 09, 2020 by Administrator@rootContributor0 of 1 checklist item completed0/1 checklist item

[BUG] [JAXRS-JERSEY] - Openapi code generation for jaxrs-jersey is not generating xml tags withXml option.

Created by: jothi-prasad

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
Assignee
Assign to
Time tracking