You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: