These are chat archives for dry-rb/chat

10th
Feb 2016
Vladimir Kochnev
@marshall-lee
Feb 10 2016 07:26
@solnic hi. where is dry-auto_curry?
Piotr Solnica
@solnic
Feb 10 2016 10:03
@marshall-lee in my imagination :joy:
Tom de Bruijn
@tombruijn
Feb 10 2016 10:47

Hi, I'm trying out dry-validation again, this time on the master branch. I'm setting up password confirmation validation and I'm getting some unexpected error messages. It appears that when rules (assuming key is also registered as a rule) have the same name all validations are returned when one rule fails. I've set up a demo: https://gist.github.com/tombruijn/c24c594b12d2a97f7f7b

In the second example I don't expect the "password_confirmation must be filled" message as the key is actually filled.

Piotr Solnica
@solnic
Feb 10 2016 10:56
@tombruijn please hold off until 0.7.0 is released...
I’m doing refactoring round 3, including dry-logic refactor and updating dry-v to work with it
if things go well I should have it done next week...
Tom de Bruijn
@tombruijn
Feb 10 2016 11:00
ok, I'll hold off. I just had a quick look on the master branch after this example gave me an error on 0.6 https://github.com/dryrb/dry-validation/wiki/High-level-Rules#rules-depending-on-many-values
Piotr Solnica
@solnic
Feb 10 2016 11:00
it’s in a very unstable state atm in master
Tom de Bruijn
@tombruijn
Feb 10 2016 11:05
good luck with the rewrites then :) I'll have a look once in a while to see how it works
Piotr Solnica
@solnic
Feb 10 2016 11:05
thanks, and yes please stay tuned :)
Alexander Chernik
@achernik
Feb 10 2016 11:35
Hi, I'm trying out dry-validation, love it so far! Is there any way I can add custom coercions to my form schema?
Piotr Solnica
@solnic
Feb 10 2016 11:47
@achernik possible but no public api for it yet, I’ll add it to 0.7.0 or 0.7.1
Alexander Chernik
@achernik
Feb 10 2016 11:52
cool, looking forward for it! and thanks for all the work you do