Clarify that custom validators only get called iff yamale passes

This commit is contained in:
Pim van Pelt
2022-04-09 20:35:58 +00:00
parent 1230e04c3e
commit 1e0b99bc0f

View File

@ -146,5 +146,9 @@ class Validator(object):
rv, msgs = func(yaml)
returning a Boolean success value in rv and a List of strings
in msgs. The function will be passed the configuration YAML and
gets to opine if it's valid or not. """
gets to opine if it's valid or not.
Note: will only be called iff Yamale syntax-check succeeded,
and it will be called after all built-in validators.
"""
self.validators.append(func)