Skip to content

Commit 84680ad

Browse files
author
alburkerk
authored
fix: optional constraints property in ValidationError (#465)
ValidationError.constraint can be undefined if there is only a nested validation error Close #309
1 parent 5497179 commit 84680ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/validation/ValidationError.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class ValidationError {
2525
/**
2626
* Constraints that failed validation with error messages.
2727
*/
28-
constraints: {
28+
constraints?: {
2929
[type: string]: string
3030
};
3131

0 commit comments

Comments
 (0)