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 :)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With