pretty print errors
Opened this issue · 2 comments
dyoder commented
Right now, JSCK produces errors like this:
[ { schema:
{ pointer: '#/definitions/cors/anyOf',
attribute: 'anyOf',
definition: [Object] },
document: { pointer: '#/aws/cors', path: 'aws.cors', value: 'default' } } ]
We should be able to add a pretty printing capability for these errors.
automatthew commented
YAML!
automatthew commented
What would the API for this look like? Current usage:
{valid, errors} = jsck.validate(stuff)
Should the errors
thing be an object with a prettyPrint method?