-
-
Notifications
You must be signed in to change notification settings - Fork 559
Description
Describe the bug
Setting property springdoc.swagger-ui.oauth2-redirect-url does not work.
Expected behavior
Setting property springdoc.swagger-ui.oauth2-redirect-url should have exactly same result as setting springdoc.swagger-ui.oauth2RedirectUrl.
Additional context
springdoc.swagger-ui.oauth2RedirectUrl maps to SwaggerUiConfigProperties#oauth2RedirectUrl where SwaggerUiConfigProperties is a Spring Boot @ConfigurationProperties class. @ConfigurationProperties classes support relaxed binding, meaning properties can be set by one of:
springdoc.swagger-ui.oauth2RedirectUrlspringdoc.swagger-ui.oauth2-redirect-url
The latter is syntax that is generated by spring-boot-configuration-processor from Spring Boot, thus it's the syntax that will be autocompleted in IDEs supporting spring-configuration-metadata.json files.
Springdoc refers to this property springdoc.swagger-ui.oauth2RedirectUrl through @Value annotation in AbstractSwaggerWelcome ignoring the same time possibility to set same property through springdoc.swagger-ui.oauth2-redirect-url.