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 required field using dry-schema | 2 | 236 | March 22, 2024 | |
Conditional rules | 5 | 3429 | March 4, 2021 | |
High-level Rules depending on nested data | 3 | 1319 | March 7, 2018 | |
Validations only run with certain option requirements | 1 | 587 | May 3, 2022 | |
How to validate with schema block after maybe
|
2 | 820 | June 6, 2017 |