spekk.util.validation

spekk.util.validation#

Validate data according to a Spec.

Functions

validate(spec, data)

Validate that the data conforms to the spec, raising a ValidationError if not.

Exceptions

ValidationError

Raised when the data does not conform to the spec.