Closed earth2marsh closed 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
http://
http://online.swagger.io/validator/debug?url=petstore.swagger.io
(Suggest checking that the string begins with http.)
http
And: http://online.swagger.io/validator/debug?url=http://dev-marksandspencer.devportal.apigee.com/sites/default/files/geocoder.swagger
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.
OK both these scenarios are now handled
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.