-
Notifications
You must be signed in to change notification settings - Fork 26
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
Expose functionality for disabling Swagger validation #4
Comments
Hi, |
Allright, best described by a screenshot probably. So this is activated by default, i'm for sure not doing anything to enable that validation. If the box is clicked one is redirected to validator.swagger.io with an error message indicating the validation failed because it can't reach the server as explained initially. |
https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md#network Have a look at the validatorUrl parameter. I would suggest that you expose a thin convenience layer where you offer an boolean property ala validation which defaults to true |
thanks for the hint. The validation doesnt happen when running on localhost, so i didnt catch it when testing. |
Thanx! Works great, already deployed the new version 👍 |
It would be nice to have functionality for disabling the default swagger validation that's visible on the landing page. Since in our case we are running all services in a Kubernetes cluster behind a VPN the callback validation always fails and give us an orange box in the right corner that says: INVALID.
The text was updated successfully, but these errors were encountered: