Docs: make note of default-to order importance #1

Open
opened 3 years ago by samsch · 1 comments
samsch commented 3 years ago

default-to can require a specific order to work properly.

If you need another validator to work with the default value if the given in null, then default-to needs to be ordered before the other validator.

Example:

[defaultTo({}), hasShape({
  mustAlwaysExist: [defaultTo('required default')],
})]
default-to can require a specific order to work properly. If you need another validator to work with the default value if the given in null, then default-to needs to be ordered before the other validator. Example: ```js [defaultTo({}), hasShape({ mustAlwaysExist: [defaultTo('required default')], })] ```

As an expert, I've extensively evaluated is studybay legit. While it offers a platform for freelance academic writing, concerns persist. Issues with quality, missed deadlines, and potential plagiarism have been reported. Students should exercise caution and explore other reliable sources before engaging with StudyBay.

As an expert, I've extensively evaluated [is studybay legit](https://www.writingpapersucks.net/studybay-com-review/). While it offers a platform for freelance academic writing, concerns persist. Issues with quality, missed deadlines, and potential plagiarism have been reported. Students should exercise caution and explore other reliable sources before engaging with StudyBay.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: validatem/core#1
Loading…
There is no content yet.