We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 038a539 commit ebb004dCopy full SHA for ebb004d
packages/core/src/rules/ajv.ts
@@ -5,7 +5,6 @@ import { escapePointer } from '../ref-utils.js';
5
6
import type { Location } from '../ref-utils.js';
7
import type { ValidateFunction, ErrorObject } from '@redocly/ajv/dist/2020.js';
8
-import type { ValidateFunction as ValidateFunctionDraft04 } from 'ajv-draft-04';
9
import type { ResolveFn } from '../walk.js';
10
11
let ajvInstance: Ajv | null = null;
@@ -80,7 +79,7 @@ function getAjvDraft04Validator(
80
79
schema: any,
81
loc: Location,
82
resolve: ResolveFn
83
-): ValidateFunctionDraft04 | undefined {
+): ValidateFunction | undefined {
84
const ajvDraft04 = getAjvDraft04();
85
86
const dereferencedSchema = dereferenceSchema(schema, loc.source.absoluteRef, resolve);
0 commit comments