-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: reduced the complexity of validate-schema.js #483
fix: reduced the complexity of validate-schema.js #483
Conversation
scripts/validate-schemas.js
Outdated
console.error(`\n${file}: JSON Schema is not valid:`, errors); | ||
}); | ||
if (!validateSchema(filePath, fs.readFileSync(filePath, 'utf8'), schemaValidator)) { | ||
validationErrors.push({ file }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are skipping a very important part: the collection of the errors. It was here #483 (comment)
can yu review it |
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
@smoya bringing your kind attention to this. Please have a look... |
Will review ASAP once i come back from holidays (this monday). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for your contribution!
/rtm |
🎉 This PR is included in version 6.2.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fixes #482