swagger-api / swagger-api/validator-badge

Unable to validate my url

Open
#151 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.