ramlev icon indicating copy to clipboard operation
ramlev copied to clipboard

improve output on invalid JSON in an example

Open bpytlik opened this issue 10 years ago • 1 comments

When an example isn't valid JSON, the error you get looks like this: AssertionError: Invalid JSON: undefined Error: expected [Function] to not throw an error but 'SyntaxError: Unexpected string' was thrown

Followed by a stack trace. It would be nice if: a) the error identified that it was the example and not the json schema that was invalid. b) the error provided more information about what was invalid, perhaps via something like json-lint

This seems in the same vein as issue #19.

bpytlik avatar Aug 07 '15 22:08 bpytlik

See PR #29

cybertk avatar Aug 10 '15 05:08 cybertk