SWAGGER swagger-codegen configuration

AH1N1 :

In my new job I came across a swagger configuration file like one below:

{ "modelPackage": "aa", "apiPackage": "aa.model", "invokerPackage": "aa.model", "bigDecimalAsString": true, "hideGenerationTimestamp": true, "withXml": false, "serializableModel": false, "dateLibrary": "java8-localdatetime", "java8": true, "fullJavaUtil": false, "useRuntimeException": false, "library": "resttemplate" }

and I wonder if there is any complete list of avaible parameters that could be used to configure swagger. I've been searching for it on swagger official website but couldn't find all of commands listed above. I'll be very grateful for providing any comprehensive sources or maybe even a mentioned list :)

Leviand :

You can find them under it's git page, under General Configuration parameters

This is the link --> https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen-maven-plugin/README.md#general-configuration-parameters

Here there's more --> https://github.com/swagger-api/swagger-codegen/issues/7795

Looks like there's also a specific command to generate documentations, try these:

General: java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar help generate

Language-specific: java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar config-help -l java

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=89909&siteId=1