What I was expecting was an interface such as this:

$validation->required_json('person/address/number')->range(10, 20)

Couldn't this be done without what you described below?

- Alex


On 10/18/2014 01:12 AM, sri wrote:

    I'd like to see the Validation thingy working on JSON parameters
    ($c->req->json)


For that it would have to work on nested data structures, and i've not seen any proposals for that yet. Just a few weeks ago i actually proposed support for array and hash GET/POST parameters (foo[], foo[bar], foo[bar][baz], foo[3][bar]...), which could have led to this, but sadly there was no interest at the time.

--
sebastian
--
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

--
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 http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to