swagger-api / validator-badge

Validate your Swagger JSON/YAML today!
http://swagger.io
Apache License 2.0
210 stars 85 forks source link

Can't validate spec due to swagger.io schema.json unreachable #187

Closed gionn closed 2 years ago

gionn commented 2 years ago

Trying to fetch:

GET https://swagger.io/v2/schema.json

redirect to multiple borked redirects until:

https://swagger.io/v2/schema.jsonx.rwhlpx.rwhlpx.rwhlp/?p=0

image

Seems like a very bad rewrite misconfiguration on swagger.io http server.

phamrak commented 2 years ago

This will solve the issue: https://github.com/swagger-api/validator-badge/pull/188. Code is no longer dependent on http://swagger.io/v2/schema.json. Guess you've to build your own binaries/docker image, not sure about the reaction time of the admins on this project (no blame). Hope it helps.

gionn commented 2 years ago

thanks @phamrak, I will wait a few more days and then I will try to build a new docker image based on your PR and publish it on dockerhub.

JonathanParrilla commented 2 years ago

Hello. Thank you for bringing this to our attention. We are looking into fixing this. In the mean time, both v2 and v3 schemas can be found here

https://schema.swagger.io/v2/schema.json https://schema.swagger.io/v3/schema.json

I will leave this issue open so I can update it once we've fixed swagger.io/v2/schema.json

frantuma commented 2 years ago

https://swagger.io/v2/schema.json URL access has been fixed and current validator version works correctly again. #189 has been also merged fixing behaviour for such cases.

see comments in #188, thanks for reporting this.

Closing ticket, please reopen if you're still experiencing issues