typesystem
typesystem copied to clipboard
Cross field and conditional validation
Couldn't find a similar request sifting through the issues, but I think it would be pretty cool to have cross field and conditional validation. I don't know what the interface would be, but I had some use cases where validation rules are cross fields (simple example is password confirmation if you want to validate server-side that passoword and confirmation are equal) or conditional (if nationality is UK then the zip code validates as a regex of a certain format while if it's Italy it's five digit).