in reply to Data Object Verification Modules?
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Data Object Verification Modules?
by tobyink (Canon) on Jun 08, 2018 at 19:13 UTC |