Skip to content

Commit

Permalink
add optional instancePath property to error object
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Feb 10, 2021
1 parent 7e1711e commit d6acee4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export type AnyValidateFunction<T = any> = ValidateFunction<T> | AsyncValidateFu
export interface ErrorObject<K extends string = string, P = Record<string, any>, S = unknown> {
keyword: K
dataPath: string
instancePath?: string
schemaPath: string
params: P
// Added to validation errors of "propertyNames" keyword schema
Expand Down

0 comments on commit d6acee4

Please sign in to comment.