Add missing property message and optional params into the ValidationError interface

This commit is contained in:
Vladyslav Tserman
2017-12-06 15:58:35 -08:00
parent bc46f5f87e
commit 5c9d3f15aa
+3 -1
View File
@@ -206,6 +206,7 @@ export interface SchemaDescription {
export interface ValidationError {
name: string;
message: string;
value: any;
/**
* A string, indicating where there error was thrown. path is empty at the root level.
@@ -220,7 +221,8 @@ export interface ValidationError {
/**
* In the case of aggregate errors, inner is an array of ValidationErrors throw earlier in the validation chain.
*/
inner?: ValidationError[];
inner: ValidationError[];
params?: object;
}
export interface Ref {