Curious why excluded_from? and eql? aren’t supported as mappings in schema_compiler.rb?
Figured eql? could just map to enum with a single value, right?
And excluded_from? could be mapped to {not: {enum: ->(v, _) { v.to_a }}}? Or something like that.
If the above are not possible, how would I go about defining an excluded_from? in JSON schema?
my_schema = Dry::Schema.JSON do
required(:category_name).filled(:str?, excluded_from?: ["A", "B", "C"] }) # doesn't work
end