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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Type::Tiny and anyOf, oneOf
by choroba (Cardinal) on Feb 02, 2021 at 13:29 UTC | |
by 1nickt (Canon) on Feb 02, 2021 at 14:36 UTC | |
|
Re: Type::Tiny and anyOf, oneOf
by tobyink (Canon) on Feb 02, 2021 at 23:46 UTC | |
by 1nickt (Canon) on Feb 03, 2021 at 00:04 UTC | |
by tobyink (Canon) on Feb 04, 2021 at 21:54 UTC | |
|
Re: Type::Tiny and anyOf, oneOf
by Anonymous Monk on Feb 03, 2021 at 10:52 UTC |