Hi,

A functionality we would like to see, is the ability to always apply a 
filter when a specific validator check is called.

As a simple example, if you have a generic "integer" check, it makes sense 
(as a usability feature) to always trim the input before verifying that it 
only contains numbers.

You can sort of do this now, by modifying the output in the validation 
object from within the check function. But if you also want to support more 
than one value for the same parameter, you basically need to validate all 
the values in each call to the check function.

The alternative, always having to write:

$v->required('param', 'trim')->integer();

has turned out to be error prone for us ;-)

/Klaus

Den onsdag den 22. juni 2016 kl. 01.43.24 UTC+2 skrev sri:
>
> We have started preparations for the Mojolicious 7.0 release, so now would 
> be the perfect time to propose breaking changes!
>
> --
> 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].
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.

Reply via email to