Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent casing of swagger-config causes fetch error #1277

Closed
vchen8761 opened this issue Sep 24, 2021 · 0 comments
Closed

Inconsistent casing of swagger-config causes fetch error #1277

vchen8761 opened this issue Sep 24, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@vchen8761
Copy link

Describe the bug

  • When the default ObjectMapper uses UpperCamelCase strategy, the URL list in Swagger config has inconsistent property naming, which leads to a fetch error in the swagger-ui

To Reproduce
Steps to reproduce the behavior:

The issue needs to be reproduced with the following setups:

  • Actuator endpoints use a different port, so there is a URL list in swagger-config (for multiple Swagger definitions).
  • Default ObjectMapper of the SpringBoot project uses UpperCamelCase strategy other than default (lowerCamelCase or snake_case both work because the related field names are only 1-word long, i.e. url and name).

Expected behavior

  • No fetch error and actuator endpoints are listed in swagger-ui.html

Screenshots
Screenshot 2021-09-24 111230

See the screenshot above. On the right the items in urls has field names like Url and Name instead of url and name.

@bnasslahsen bnasslahsen added the bug Something isn't working label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants