An alternative to tobyink's Type::Tiny would be to use JSONSchema (also maintained by tobyink (!)). For a full-scale API it's a bit of work to set up, but very easy to maintain and very powerful. If your Dancer2 API accepts only JSON params it's the way to go in my experience.
See the tutorial examples.
(PS: There is an alternative, JSON::Validator, by one of the lead Mojo devs, but I have not used it.)
Hope this helps!
In reply to Re: Data Object Verification Modules?
by 1nickt
in thread Data Object Verification Modules?
by mwb613
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |