Skip to content

Commit

Permalink
Remove the optional from Validator type, since the engine always push…
Browse files Browse the repository at this point in the history
… for it
  • Loading branch information
sneridagh committed Jul 29, 2024
1 parent 461b188 commit 5f32593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/configuration/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ type Validator = {
// The field schema definition object
field: Record<string, any>;
// The form data
formData?: any;
formData: any;
// The intl formatMessage function
formatMessage: Function;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/volto/src/helpers/FormValidation/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type MinMaxValidator = {
type Validator = {
value: string;
field: Record<string, any>;
formData?: any;
formData: any;
formatMessage: Function;
};

Expand Down

0 comments on commit 5f32593

Please sign in to comment.