public class SpecPropertiesCustomizer extends Object implements GlobalOpenApiCustomizer
To set value of a string in schema, define an application property that matches the target node with springdoc.spec-properties prefix.
Sample supported properties for api-info customization:
Sample supported properties for components customization:
Sample supported properties for paths/operationIds customization:
Support for groped openapi customization is similar to the above, but with a group name prefix. E.g.
Constructor and Description |
---|
SpecPropertiesCustomizer(org.springframework.core.env.PropertyResolver resolverUtils)
Instantiates a new Spec properties customizer.
|
SpecPropertiesCustomizer(org.springframework.core.env.PropertyResolver propertyResolver,
String groupName)
Instantiates a new Spec properties customizer.
|
Modifier and Type | Method and Description |
---|---|
void |
customise(io.swagger.v3.oas.models.OpenAPI openApi)
Customise.
|
public SpecPropertiesCustomizer(org.springframework.core.env.PropertyResolver resolverUtils)
resolverUtils
- the resolver utilspublic SpecPropertiesCustomizer(org.springframework.core.env.PropertyResolver propertyResolver, String groupName)
propertyResolver
- the property resolvergroupName
- the group namepublic void customise(io.swagger.v3.oas.models.OpenAPI openApi)
OpenApiCustomiser
customise
in interface OpenApiCustomiser
openApi
- the open apiCopyright © 2024. All rights reserved.