Greetings brethren and sistren,
I'm replacing some uses of JSON::Validator with Type::Tiny, and have run into a hurdle, where our JSON validation code can make use of anyOf and oneOf (and even if ... else ... then).
I'm think of ways I could accomplish similar functionality using Type::Tiny. Constraints? Is there a trick I don't know about (I'm certainly not a Type::Tiny expert)?
Thanks for any help!
In reply to Type::Tiny and anyOf, oneOf by 1nickt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |