-
Notifications
You must be signed in to change notification settings - Fork 337
Added specs-url-scheme option for Api. #238
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
Added specs-url-scheme option for Api. #238
Conversation
DustinMoriarty
commented
Oct 9, 2020
- Support explicitly setting the scheme for specs_url for the swagger.json file for cases where the URL scheme does not resolve correctly such as when deploying on AWS ECS behind an elastic load balancer. Behavior is unchanged for cases where the keyword argument is left as None. See Need to Explicitly set Swagger specs_url Scheme When Deployed on Behind AWS Elastic Load Balancer. #237
- Added tests for the new behavior as well as to confirm the old behavior has not changed.
- Added docstrings.
- Formatted with black. This will effect the diff for a few other modules such as flask_restx/reqparse.py, flask_restx/model.py. flask_restx/inputs.py and some other locations in api.py.
- Added .python-version and .idea to .gitignore.
Codecov Report
@@ Coverage Diff @@
## master #238 +/- ##
=======================================
Coverage 96.87% 96.88%
=======================================
Files 20 20
Lines 2724 2727 +3
=======================================
+ Hits 2639 2642 +3
Misses 85 85
Continue to review full report at Codecov.
|
@DustinMoriarty Hi, I cannot do that since I am not a maintainer. This project is abandoned and I would not expect this to be merged |
To bad. Thanks for letting me know. |
@j5awry : I updated this to get it up to date with the upstream. I do need maintainer approval to get it through the workflow checks and merge if you think this is something you would like to do. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, and for taking the time to update this after we moved ahead! LGTM