Closed richardscarrott closed 3 years ago
Peer functions akin to joi object().and / object().or etc.
object().and
object().or
e.g
const validator = object({ A: and(or(nullish, string), orPeers('B')), B: and(or(nullish, string), orPeers('A')) });
TODO: Consider exposing a singular version?
Peer functions akin to joi
object().and
/object().or
etc.e.g
TODO: Consider exposing a singular version?