diff --git a/lib/schema.js b/lib/schema.js index 3365584..b2f6e45 100644 --- a/lib/schema.js +++ b/lib/schema.js @@ -38,7 +38,7 @@ const addSchemas = () => { const validateJson = (schema, json) => { const result = ajv.validate(schema, json); - return{ + return { result, errors: ajv.errors };