Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SWAGGER swagger-codegen configuration

I came across a swagger configuration file like this:

{
    "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"
}

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 the commands listed above. I'll be very grateful for providing any comprehensive sources or maybe even a mentioned list :)

like image 787
AH1N1 Avatar asked Jul 06 '18 09:07

AH1N1


1 Answers

You can find them under its 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
like image 131
Leviand Avatar answered Oct 10 '22 18:10

Leviand