src/plugins/json-schema-validator/validator/index.js
Function validate
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate({ jsSpec, specStr, schemaPath, source }) {
this.ajv.validate(normalizeKey(schemaPath), jsSpec)
if (!this.ajv.errors || !this.ajv.errors.length) {
return null