-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
feat: add servers option for OpenAPI #1547
feat: add servers option for OpenAPI #1547
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1547 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 234 235 +1
Lines 7004 7022 +18
=========================================
+ Hits 7004 7022 +18
Continue to review full report at Codecov.
|
Thanks! 🚀 I updated it a bit to receive Thanks for your contribution! 🎉 ☕ |
Thanks for updating the branch, I agree that dict is better as default. |
Closes/related to #872
The missing server option has been a drawback when it comes to the swagger UI (e.g. provide prod and test servers) and portability of the openapi.json to services that is based on knowing the servers.
Example usage:
It would also work to just pass a dictionary, but then the typechecker won't be happy: