axiom.validation package#

Submodules#

axiom.validation.validator module#

Validator class.

class axiom.validation.validator.Validator(schema)[source]#

Bases: object

Validation object:

Args:

schema (str, dict) : Path to schema or schema dictionary.

validate(metadata, allow_unknown=True)[source]#

Validate metadata against a schema.

Args:

metadata ([type]): [description] allow_unknown (bool, optional): [description]. Defaults to True.

Returns:

bool : True if valid, False otherwise. Errors are stored in errors attribute.

Module contents#

Validation functions.