diff --git a/scripts/validate-schemas.js b/scripts/validate-schemas.js index 729805eb..4b1ba6e9 100644 --- a/scripts/validate-schemas.js +++ b/scripts/validate-schemas.js @@ -9,10 +9,9 @@ function validateSchema(filePath, fileContent, schemaValidator) { try { const obj = JSON.parse(fileContent); const validate = schemaValidator(obj); - const errors = validate ? [] : (obj.$schema === 'http://json-schema.org/draft-04/schema' && ajvDraft04.errors) || ajv.errors; - return { filePath, validate, errors } + return { filePath, validate, errors }; } catch (error) { return { filePath,