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

Enable showCommonExtensions for Swagger UI #372

Closed
mktums opened this issue Jul 5, 2019 · 3 comments
Closed

Enable showCommonExtensions for Swagger UI #372

mktums opened this issue Jul 5, 2019 · 3 comments
Labels

Comments

@mktums
Copy link

mktums commented Jul 5, 2019

Is your feature request related to a problem? Please describe.
Swagger UI doesn't render regex/min/max/etc if showCommonExtensions: true isn't present on Swagger UI initialization. https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/

image

Describe the solution you'd like
Add

showExtensions: true,
showCommonExtensions: true,

after

url: '{openapi_url}',

Describe alternatives you've considered
…or let end-user configure it.

@tiangolo
Copy link
Owner

Yeah, I think it would be a good idea to have those on by default.

Although I just tried locally and it really didn't seem to change the UI...

@tiangolo
Copy link
Owner

This was solved in #1466 by @TiewKH ! 🚀

Available in FastAPI version 0.57.0 🎉

@github-actions
Copy link
Contributor

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.

@tiangolo tiangolo changed the title [FEATURE] Enable showCommonExtensions for Swagger UI Enable showCommonExtensions for Swagger UI Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants