Open AndersonTaylor opened 1 year ago
Looks like a bug in the interaction between the Subset
validator and the Key
constraint. It's not just the Subset
validator, but any validator that sets additional validators within its constructor would have a problem...i.e. Map
, List
, Any
, and Subset
.
It's hard to see a quick fix for this one. It may be faster to write a regex to cover all your cases.
Cross-reference: this also applies to Include
, per #133, and potentially Map
and List
Hello, I'm attempting to validate keys of a map match against at least one of two different validators using any or subset.
example yaml:
I've tried:
but both options pass as valid. Doing the same with only enum/int/other validators validates as expected.
Is this a bug, not possible, or am I just using the wrong syntax? (on version 4.0.4) Thanks.