Closed sdalu closed 2 years ago
Please provide a reproduction script, the snippet you provided works for me.
oh and btw, I would do it like that anyway:
optional(:id) { int? | (str? & filled?) }
This makes more sense, because it's supposed to be either an integer or a string that's not empty.
The following code result in
key not found: "int?" (Dry::Container::KeyError)
dry-validation: 1.8.1 dry-schema: 1.10.2 dry-types: 1.5.1 ruby: 3.1.2