timriley on remove-auto-register
We don’t need to pass loader th… We don’t take arbitrary options… Container.component can be priv… (compare)
timriley on remove-auto-register
Expand tests Flesh out specs (compare)
timriley on remove-auto-register
Remove commented code (compare)
timriley on remove-auto-register
Remove no-longer-relevant doc (compare)
timriley on remove-auto-register
Remove another unneeded splat (compare)
timriley on remove-auto-register
Li’l tweak (compare)
timriley on remove-auto-register
Li’l tweak (compare)
timriley on remove-auto-register
Simplify args passed to build_f… (compare)
timriley on remove-auto-register
Further simplify args for build… (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]]
[[…, …], …]