swagger-api / validator-badge

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

More helpful errors for people, who as a species can be quite fallible #26

Closed earth2marsh closed 9 years ago

earth2marsh commented 9 years ago

Throwing a 500 error is never a good thing. Ideally, there would be more help offered when people do things like…

Forget the http://: http://online.swagger.io/validator/debug?url=petstore.swagger.io

(Suggest checking that the string begins with http.)

And: http://online.swagger.io/validator/debug?url=http://dev-marksandspencer.devportal.apigee.com/sites/default/files/geocoder.swagger

… which turns out to have a (for shame!) multi-line string in JSON. Testing for valid YAML/JSON might be good.

fehguy commented 9 years ago

OK both these scenarios are now handled