swagger-api/swagger-editor

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

Summary

Maintainability
A
1 hr
Test Coverage

Function transformPathToArray has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function transformPathToArray(property, jsSpec) {
  if (property.slice(0, 9) === "instance.") {
    var str = property.slice(9)
  } else {
    // eslint-disable-next-line no-redeclare
Severity: Minor
Found in src/plugins/json-schema-validator/validator/path-translator.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status