UNPKG

swagger-object-validator

Version:

Validate your objects against a swagger spec and receive in-depth error traces

13 lines (12 loc) 355 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pushError = void 0; function pushError(error, errors, value, schema, spec, config) { if (config.ignoreError) { if (config.ignoreError(error, value, schema, spec)) { return; } } errors.push(error); } exports.pushError = pushError;