diff --git a/src/Keyword.ts b/src/Keyword.ts index daebb02..fb9c359 100644 --- a/src/Keyword.ts +++ b/src/Keyword.ts @@ -36,7 +36,7 @@ export type JsonSchemaValidatorParams = { pointer?: string; data: unknown; node: export interface JsonSchemaValidator { toJSON?: () => string; order?: number; - (options: JsonSchemaValidatorParams): undefined | ValidationResult | ValidationResult[]; + (options: JsonSchemaValidatorParams): undefined | Promise | ValidationResult | ValidationResult[]; } export type Keyword = {