swagger-api / swagger-api/validator-badge
Unable to validate my url
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 227
- Forks
- 81
- Avg merge
- 2h 3m
- Merged PRs (30d)
- 1
Description
When I try my spec url: https://cs-dev.business.stingray.com/assets/swagger.yaml
I get this error:
Failed to load API definition.
Errors
Hide
Fetch errorFailed to fetch https://cs-dev.business.stingray.com/assets/swagger.yaml
Fetch errorPossible cross-origin (CORS) issue? The URL origin (https://cs-dev.business.stingray.com) does not match the page (http://validator.swagger.io). Check the server returns the correct 'Access-Control-Allow-*' headers.
Is there something wrong in the response header that I need to change? Is that a bug on your side? The documentation of validator-badge specifically specify this: Since the validator uses a browserless back-end to fetch the contents and schema, it's not subject to the terrible world of CORS.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the validator-badge failure with the supplied Swagger URL and inspect whether the browser-facing request differs from the documented browserless validation path. Confirm whether the service can validate the URL without a CORS error; document the required response behavior or the validator defect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100