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

Make webapp validatorUrl self-referential #196

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gnowland
Copy link

@gnowland gnowland commented Jan 4, 2022

When deploying application behind a proxy the swagger ui shows "invalid" badge due to application attempting to validate api with validator hosted on https://validator.swagger.io, this change ensures that the swagger ui for the application uses itself to validate.

I posit this should not effect public validator-badge hosted at https://validator.swagger.io as the validator url is currently https://validator.swagger.io/validator and will remain https://validator.swagger.io/validator after this change.

When deploying application behind a proxy the swagger ui shows "invalid" badge due to application attempting to validate api with validator hosted on http://validator.swagger.io, this change ensures that the swagger ui for the application uses itself to validate.

I posit this should not effect public validator-badge hosted at http://validator.swagger.io as the validator url is currently http://validator.swagger.io and will remain http://validator.swagger.io.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant