swagger-object-validator
Version:
Validate your objects against a swagger spec and receive in-depth error traces
5 lines (4 loc) • 333 B
TypeScript
import { ISpec, ISchema } from '../specs';
import { IValidatorConfig } from '../validator-config';
import { ITypeValidationError, IValidationError } from '../result';
export declare function pushError(error: ITypeValidationError, errors: IValidationError[], value: any, schema: ISchema, spec: ISpec, config: IValidatorConfig): void;