trudag.dotstop.core.validator
yaml
module-attribute
Type alias for loaded yaml data stored as a nested dict/list data structure.
Validator
Find, store and provide access to validator functions that are not known until runtime.
On construction, the Validator object will collect all functions with
the signature:
that are available in the directory .dotstop_extensions/validators.py,
or are available in module entry points belonging to the group
trustable.validator.plugins.
Build a Validator instance.
is_validator_function
staticmethod
True if the provided object is a validator function.
validate
validate(
type: str, configuration: yaml
) -> tuple[float, list, str | None]
Call the validator function type with argument configuration.
Log all reported Exceptions and Warnings. Returns: tuple[float, list, str | None]: Returns a tuple of score, Exceptions, and the validator docstring