flash-gordon on or_nil-extension
flash-gordon on custom-builder-methods
flash-gordon on master
Support for custom builder meth… Merge pull request #415 from dr… (compare)
key(:foo).optional do ... end
class UserSchema < Dry::Validation::Schema
key(:age) do |age|
age.filled? & age.int? & age.gt?(18) & age.lt?(100)
end
end
/dry-validation-185ec9d6959d/lib/dry/validation/rule_compiler.rb:48:in `visit_and': undefined method `&' for #<Dry::Validation::Rule::Conjunction:0x007fc95b01ef10> (NoMethodError)
Schema::Form
rule
interface but I haven’t added shared specs for that, so we have some holes like you found :)
&
and |
in composite
Rule
so it has these interfaces