@redocly/openapi-core
Version:
See https://github.com/Redocly/redocly-cli
20 lines • 766 B
TypeScript
import { type ErrorObject, type Context as AjvContext } from '@redocly/ajv/dist/2020.js';
import type { SpecVersion } from '../oas-types.js';
import { type Location } from '../ref-utils.js';
import type { Oas3Schema, Oas3_1Schema } from '../typings/openapi.js';
import type { ResolveFn } from '../walk.js';
export declare function releaseAjvInstance(): void;
export declare function validateJsonSchema(data: unknown, schema: Oas3Schema | Oas3_1Schema, options: {
schemaLoc: Location;
instancePath: string;
resolve: ResolveFn;
allowAdditionalProperties: boolean;
ajvContext?: AjvContext;
specVersion: SpecVersion;
}): {
valid: boolean;
errors: (ErrorObject & {
suggest?: string[];
})[];
};
//# sourceMappingURL=ajv.d.ts.map