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

OpenAPI 3.1.0 support: Unrequested component name capitalization #8611

Closed
souenzzo opened this issue May 2, 2023 · 2 comments
Closed

OpenAPI 3.1.0 support: Unrequested component name capitalization #8611

souenzzo opened this issue May 2, 2023 · 2 comments

Comments

@souenzzo
Copy link
Contributor

souenzzo commented May 2, 2023

Q&A (please complete the following information)

  • OS: macos
  • Browser: firefox
  • Version: recent :)
  • Method of installation: tar.gz
  • Swagger-UI version: 5.0.0-alpha.8
  • Swagger/OpenAPI version: 3.1.0

Describe the bug you're encountering

The Schemas section, on the bottom of the screen, when using 3.1.0 with a new view, auto-capitalize the names.

Please avoid this auto-capitalization or expose as a config (with default to false?!).

To reproduce...

Steps to reproduce the behavior:

  1. Open swagger-ui
  2. Open any 3.1.0 API
  3. Scroll down
  4. Note that all names are capitalized

Expected behavior

names as-is in the json pointer

@char0n char0n changed the title Unrequested component name capitalization OpenAPI 3.1.0 support: Unrequested component name capitalization May 17, 2023
@char0n char0n self-assigned this May 18, 2023
@char0n
Copy link
Member

char0n commented May 24, 2023

HI @souenzzo,

Thanks for bringing this up. You're absolutely right. This is a regression. I'll return the behavior to the same one that the v4 has. In V5 it is possible to configure how the how to Schema Object name renderes.

@char0n
Copy link
Member

char0n commented May 24, 2023

Addressed in #8710

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants