solnic on master
Clear exception message when an… Add gem names to plugins Merge pull request #128 from sk… (compare)
flash-gordon on declare-finalized
flash-gordon on master
Set initial value for ivar Merge pull request #131 from dr… (compare)
flash-gordon on declare-finalized
Set initial value for ivar (compare)
so my opinion about dry-validation - it has freaky error format: sometime I see
errors = schema.call(email: 'jane@doe.org', age: 17).messages
puts errors.inspect
# { :age => [["age must be greater than 18"], 17] }
another time I see
errors = schema.call(email: nil, age: 19).messages
puts errors.inspect
# { :email => [["email must be filled", nil]] }
I caused that I droped dry-validation today.
[[„invalid”, nil]]
[[…, …], …]
errors.each { |attribute, (messages, _)| … }
or something