You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
right now, we are only able to use av inside bv if we make av implicit and use it during derivation. If we wanted to enhance some existing av, e.g. created with comap, we would have to do something like:
implicitvalav:Validator[A] = ...
implicitvala2v:Validator[A2] =Validator[A2] // empty validator just for the sake of derivationvalbv:Validator[B] = ...
bv.composeDerived
which can generate some boilerplate at a times (the bigger B gets the more we will notice that). Given that there is already existing syntax for validating fields it would be intuitive to provide something like:
bv.rule(_.a, av)
The text was updated successfully, but these errors were encountered:
Given:
right now, we are only able to use
av
insidebv
if we make av implicit and use it during derivation. If we wanted to enhance some existingav
, e.g. created withcomap
, we would have to do something like:which can generate some boilerplate at a times (the bigger B gets the more we will notice that). Given that there is already existing syntax for validating fields it would be intuitive to provide something like:
The text was updated successfully, but these errors were encountered: