public class SpecificationStringPropertiesCustomizer extends Object implements GlobalOpenApiCustomizer
To set value of a string in schema, define an application property that matches the target node with springdoc.specification-strings 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 |
---|
SpecificationStringPropertiesCustomizer(org.springframework.core.env.PropertyResolver resolverUtils) |
SpecificationStringPropertiesCustomizer(org.springframework.core.env.PropertyResolver propertyResolver,
String groupName) |
Modifier and Type | Method and Description |
---|---|
void |
customise(io.swagger.v3.oas.models.OpenAPI openApi)
Customise.
|
public SpecificationStringPropertiesCustomizer(org.springframework.core.env.PropertyResolver resolverUtils)
public SpecificationStringPropertiesCustomizer(org.springframework.core.env.PropertyResolver propertyResolver, String groupName)
public void customise(io.swagger.v3.oas.models.OpenAPI openApi)
OpenApiCustomiser
customise
in interface OpenApiCustomiser
openApi
- the open apiCopyright © 2024. All rights reserved.