Open stefanm8 opened 7 months ago
We're looking for something like this and it doesn't look supported which probably means we can't use Yamale.
Our use case is we have a database engine time and an instances type, some databases only support some instances but we can't verify the instance_type without knowing the database engine type.
Objective
Pass entire object to Custom Validator method _is_valid e.g _is_valid(self, value, root)
Example
You may encounter the use case as such
/document.yaml
You may want to validate that the turtle is not part of members since he is already the owner, thus is implicit a member.
Alternatives
PS: I can look into this if this feature is desirable.