swagger-api/swagger-editor

View on GitHub
src/plugins/json-schema-validator/validator/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function validate has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  validate({ jsSpec, specStr, schemaPath, source }) {
    this.ajv.validate(normalizeKey(schemaPath), jsSpec)

    if (!this.ajv.errors || !this.ajv.errors.length) {
      return null
Severity: Minor
Found in src/plugins/json-schema-validator/validator/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status