Hello. The only way to do conditional validations I found in docs is defining high-level rules. This does not suit me well as you can’t specify if field is required or optional and it cannot distinguish nil’s from missing fields. Is there a way to specify another schema to run if some condition fulfils?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Conditional rules | 5 | 3709 | March 4, 2021 | |
| Conditional required field using dry-schema | 2 | 386 | March 22, 2024 | |
| Conditional validations and using macros/predicates in rules | 1 | 676 | April 14, 2021 | |
| Possible to add an optional validation based on if another optional value is true? | 3 | 935 | October 2, 2019 | |
| Choosing a schema based on the value of a property | 0 | 730 | October 23, 2017 |