Closed loganasherjones closed 6 years ago
I want to be able to validate my config items. Something like the following
def my_validator(value): if value in 'bar': return False, "message" SPEC = { 'foo': {'validator': my_validator} }
If the validator fails, then loading will fail.
I want to be able to validate my config items. Something like the following
If the validator fails, then loading will fail.