Springdoc-openapi Properties
springdoc-openapi
relies on standard spring configuration properties (yml or properties) using the standard files locations.
springdoc-openapi core properties
Parameter name | Default Value | Description |
---|---|---|
springdoc.api-docs.path |
|
|
springdoc.api-docs.enabled |
|
|
springdoc.packages-to-scan |
|
|
springdoc.paths-to-match |
|
|
springdoc.produces-to-match |
|
|
springdoc.headers-to-match |
|
|
springdoc.consumes-to-match |
|
|
springdoc.paths-to-exclude |
|
|
springdoc.packages-to-exclude |
|
|
springdoc.default-consumes-media-type |
|
|
springdoc.default-produces-media-type |
|
|
springdoc.cache.disabled |
|
|
springdoc.show-actuator |
|
|
springdoc.auto-tag-classes |
|
|
springdoc.model-and-view-allowed |
|
|
springdoc.override-with-generic-response |
|
|
springdoc.group-configs[0].group |
|
|
springdoc.group-configs[0].display-name |
|
|
springdoc.group-configs[0].packages-to-scan |
|
|
springdoc.group-configs[0].paths-to-match |
|
|
springdoc.group-configs[0].paths-to-exclude |
`` |
|
springdoc.group-configs[0].packages-to-exclude |
|
|
springdoc.group-configs[0].produces-to-match |
|
|
springdoc.group-configs[0].consumes-to-match |
|
|
springdoc.group-configs[0].headers-to-match |
|
|
springdoc.webjars.prefix |
|
|
springdoc.api-docs.resolve-schema-properties |
|
|
springdoc.remove-broken-reference-definitions |
|
|
springdoc.writer-with-default-pretty-printer |
|
|
springdoc.model-converters.deprecating-converter.enabled |
|
|
springdoc.model-converters.polymorphic-converter.enabled |
|
|
springdoc.model-converters.pageable-converter.enabled |
|
|
springdoc.model-converters.sort-converter.enabled |
|
|
springdoc.use-fqn |
|
|
springdoc.show-login-endpoint |
|
|
springdoc.pre-loading-locales |
|
|
springdoc.writer-with-order-by-keys |
|
|
springdoc.use-management-port |
|
|
springdoc.disable-i18n |
|
|
springdoc.show-spring-cloud-functions |
|
|
springdoc.enable-groovy |
|
|
springdoc.enable-spring-security |
|
|
springdoc.enable-kotlin |
|
|
springdoc.enable-hateoas |
|
|
springdoc.enable-data-rest |
|
|
springdoc.api-docs.version |
|
|
springdoc.default-flat-param-object |
|
|
springdoc.default-support-form-data |
|
|
springdoc.nullable-request-parameter-enabled |
|
|
springdoc.show-oauth2-endpoints |
|
|
springdoc.api-docs.resolve-extensions-properties |
|
|
springdoc.enable-default-api-docs |
|
|
springdoc.trim-kotlin-indent |
|
|
swagger-ui properties
-
The support of the swagger-ui properties is available on
springdoc-openapi
. See Official documentation. -
You can use the same swagger-ui properties in the documentation as Spring Boot properties.
All these properties should be declared with the following prefix: springdoc.swagger-ui
|
Parameter name | Default Value | Description |
---|---|---|
springdoc.swagger-ui.path |
|
|
springdoc.swagger-ui.enabled |
|
|
springdoc.swagger-ui.configUrl |
|
|
springdoc.swagger-ui.layout |
|
|
springdoc.swagger-ui.validatorUrl |
By default, Swagger UI does not validate specs. You can use this parameter to set a validator URL, for example for against swagger.io’s online validator. |
|
springdoc.swagger-ui.tryItOutEnabled |
|
|
springdoc.swagger-ui.filter |
|
|
springdoc.swagger-ui.operationsSorter |
|
|
springdoc.swagger-ui.tagsSorter |
|
|
springdoc.swagger-ui.oauth2RedirectUrl |
|
|
springdoc.swagger-ui.displayOperationId |
|
|
springdoc.swagger-ui.displayRequestDuration |
|
|
springdoc.swagger-ui.deepLinking |
|
|
springdoc.swagger-ui.defaultModelsExpandDepth |
|
|
springdoc.swagger-ui.defaultModelExpandDepth |
|
|
springdoc.swagger-ui.defaultModelRendering |
|
|
springdoc.swagger-ui.docExpansion |
|
|
springdoc.swagger-ui.maxDisplayedTags |
|
|
springdoc.swagger-ui.showExtensions |
|
|
springdoc.swagger-ui.url |
|
|
springdoc.swagger-ui.showCommonExtensions |
|
|
springdoc.swagger-ui.supportedSubmitMethods |
|
|
springdoc.swagger-ui.queryConfigEnabled |
|
|
springdoc.swagger-ui.oauth. additionalQueryStringParams |
|
|
springdoc.swagger-ui.disable-swagger-default-url |
|
|
springdoc.swagger-ui.urls[0].url |
|
|
springdoc.swagger-ui.urls[0].name |
|
|
springdoc.swagger-ui.urlsPrimaryName |
|
|
springdoc.swagger-ui.oauth.clientId |
|
|
springdoc.swagger-ui.oauth.clientSecret |
|
|
springdoc.swagger-ui.oauth.realm |
|
|
springdoc.swagger-ui.oauth.appName |
|
|
springdoc.swagger-ui.oauth.scopeSeparator |
|
|
springdoc.swagger-ui.csrf.enabled |
|
|
springdoc.swagger-ui.csrf.use-local-storage |
|
|
springdoc.swagger-ui.csrf.use-session-storage |
|
|
springdoc.swagger-ui.csrf.cookie-name |
|
|
springdoc.swagger-ui.csrf.header-name |
|
|
springdoc.swagger-ui.syntaxHighlight.activated |
|
|
springdoc.swagger-ui.syntaxHighlight.theme |
|
|
springdoc.swagger-ui.oauth. useBasicAuthentication WithAccessCodeGrant |
|
|
springdoc.swagger-ui.oauth. usePkceWithAuthorization CodeGrant |
|
|
springdoc.swagger-ui.persistAuthorization |
|
|
springdoc.swagger-ui.use-root-path |
|
|