openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[Java - Jaxrs Resteasy] Unused/missing imports and partial javadocs

Open nirodg opened this issue 8 years ago • 0 comments

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

  1. Generate the code for the client api
  2. Import to Netbeans/Eclipse
  3. Open any Java class - many unused imports

Server api

  1. Generate the code for the server api
  2. Import to Netbeans/Eclipse
  3. Open any Java class - many unused imports and many javadoc partially defined (most of them on the models)

nirodg avatar Oct 08 '18 12:10 nirodg