Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 9798370

Browse files
committed
Document messages options in validate().
1 parent f216532 commit 9798370

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,7 @@ Options:
687687
* `first`: Invoke callback when the first validation rule generates an error.
688688
* `single`: Only ever return a single error.
689689
* `bail`: Shorthand for `single` and `first`.
690+
* `messages`: Overrides the schema messages.
690691
* `parallel`: A boolean indicating that the validation should be executed in parallel.
691692
* `field`: Field name for the source object, default is `source` when not specified.
692693
* `state`: Object to be used as the initial user data state.

doc/readme/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Options:
4040
* `first`: Invoke callback when the first validation rule generates an error.
4141
* `single`: Only ever return a single error.
4242
* `bail`: Shorthand for `single` and `first`.
43+
* `messages`: Overrides the schema messages.
4344
* `parallel`: A boolean indicating that the validation should be executed in parallel.
4445
* `field`: Field name for the source object, default is `source` when not specified.
4546
* `state`: Object to be used as the initial user data state.

0 commit comments

Comments
 (0)