From d6acee4bac033b3389393b71785afbce275fd632 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Wed, 10 Feb 2021 11:54:07 +0000 Subject: [PATCH] add optional instancePath property to error object --- lib/types/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/types/index.ts b/lib/types/index.ts index e91f122b9..5fc9b6d2a 100644 --- a/lib/types/index.ts +++ b/lib/types/index.ts @@ -76,6 +76,7 @@ export type AnyValidateFunction = ValidateFunction | AsyncValidateFu export interface ErrorObject, S = unknown> { keyword: K dataPath: string + instancePath?: string schemaPath: string params: P // Added to validation errors of "propertyNames" keyword schema