-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Offline/firewalled mode #24
Comments
Would have to look into this. |
Disabling online validator can be done by setting |
+1 for this |
https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/ this is an option as I don't think templating index.html is suitable.
then have a route for it in swagger.py
@ahopkins @DirkGuijt I can do a PR for this if happy with this approach. I am in need of this solution also as many of our APIs are internal. |
+1 for this. I think a quick solution to this issue would be to add another option in the "app.config" in order to make the validator URL customizable. This way we would enable sanic-openapi users to disable the validation or to provide a custom validator URL. What do you guys think about this approach? I would be happy to submit a PR for this. |
@LTMenezes go for it~ |
@LTMenezes Sounds good. |
There are several pointers in
swagger-ui.js
andswagger-ui-bundle.js
tohttps://online.swagger.io/validator
. These pointers cause the swagger UI to freeze.Would it be possible to document "offline deployment" instructions, or even provide a configuration for whether or not the UI should try to access resources on external domains?
The text was updated successfully, but these errors were encountered: