Skip to content

Commit

Permalink
fix: optional constraints property in ValidationError (#465)
Browse files Browse the repository at this point in the history
ValidationError.constraint can be undefined if there is only a nested validation error
Close #309
  • Loading branch information
alburkerk committed Mar 26, 2020
1 parent 5497179 commit 84680ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation/ValidationError.ts
Expand Up @@ -25,7 +25,7 @@ export class ValidationError {
/**
* Constraints that failed validation with error messages.
*/
constraints: {
constraints?: {
[type: string]: string
};

Expand Down

0 comments on commit 84680ad

Please sign in to comment.