We don't bite newbies here... much | |
PerlMonks |
Type::Tiny and anyOf, oneOfby 1nickt (Canon) |
on Feb 02, 2021 at 12:51 UTC ( [id://11127811]=perlquestion: print w/replies, xml ) | Need Help?? |
1nickt has asked for the wisdom of the Perl Monks concerning the following question: 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!
The way forward always starts with a minimal test.
Back to
Seekers of Perl Wisdom
|
|