Today sri wrote: > > > > > > > 1. JSON validation would be nice. > > > > > > > > > > Yes, this has come up before, but we don't know how to get the validator > > to > > > validate nested data structures. > > > > I use this in many of my projects ... > > > > http://search.cpan.org/dist/Data-Processor/ > > > Guess i should have been more specific. We are not looking for a 3rd party > module to use, that might just as well be used in a 3rd party Mojolicious > plugin. > If JSON validation became a Mojolicious core feature, it would have to be > integrated into Mojolicious::Validator, which currently only knows how to > validate a flat hash containing strings or arrays of strings, but not > nested data structures.
ah, I was not suggesting to use this module directly, but it contains a nice method for defining validators that work with any data structure you like ... you would certainly want to implement this in a completely different and much more clever way anyway :) cheers tobi -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland www.oetiker.ch [email protected] +41 62 775 9902 -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
