openapi-generator
openapi-generator copied to clipboard
[Java - Jaxrs Resteasy] Unused/missing imports and partial javadocs
Description
Generating code from a swagger json file with openapi-generator-cli.jar needs additional refactoring due the unused imports and partial defined javadocs (only applies for the server side)
openapi-generator version
openapi-generator-cli-3.3.0.jar
OpenAPI declaration file content or url
https://github.com/tmforum-apis/TMF641_ServiceOrder/blob/master/Service_Ordering_Management.regular.swagger.json
Command line used for generation
java -jar openapi-generator-cli-3.3.0.jar generate -i api.json -g java -o api-client
java -jar openapi-generator-cli-3.3.0.jar generate -i api.json -g jaxrs-resteasy -o api-client
Steps to reproduce
Client api
- Generate the code for the client api
- Import to Netbeans/Eclipse
- Open any Java class - many unused imports
Server api
- Generate the code for the server api
- Import to Netbeans/Eclipse
- Open any Java class - many unused imports and many javadoc partially defined (most of them on the models)