-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Closed
Copy link
Description
Description
The codegen plugin withXml true is not generating the java classes with @xmlelement. It works with swagger-codegen plugin though.
openapi-generator version
5.0.1
OpenAPI declaration file content or url
You can test it with sample Pet store swagger from - https://editor.swagger.io/
Command line used for generation
mvn clean compile
Steps to reproduce
Download the sample YAML from the PetStore example and generate the classes using generatorName - java and withXml - true. The classes are missing the xmlelement annotation. But when the same config is used with swagger-codegen-maven plugin version 3.0.25, It generated the classes and adds xmlelement annotation to the fields.
Related issues/PRs
N/A
Suggest a fix/enhancement
Compare the swagger codegen plugin.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels