Skip to content

Resolve parameter styles independently of the default locale - #3462

Open
junseokhub wants to merge 1 commit into
springdoc:mainfrom
junseokhub:fix/locale-independent-parameter-style
Open

junseokhub wants to merge 1 commit into
springdoc:mainfrom
junseokhub:fix/locale-independent-parameter-style

Conversation

@junseokhub

Copy link
Copy Markdown

With the JVM default locale set to Turkish, requesting /v3/api-docs for a controller that declares @Parameter(style = ParameterStyle.SIMPLE) fails. Uppercasing the wire value simple produces SİMPLE, which is not a Swagger model enum constant.

Map explicit annotation styles using their enum names and leave the default style unset. The MockMvc regression test exercises the documentation endpoint under the Turkish locale and checks that it returns HTTP 200 with "style": "simple". It failed with the enum lookup exception before the change.

The common, WebMVC API and WebFlux API test suites passed locally (902 tests).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant