gonk.core.validators

class gonk.core.validators.FieldValidator

Validator for the fields of gonk.core.events.Object and gonk.core.events.Annotation.

validate(event: EventT)

Validate the event.

Raises:

ValidationError – Invalid event.

class gonk.core.validators.SchemaValidator(depot: Depot)

JSON Schema validator to ensure schemas are valid and that annotations conform to the schema they reference. Schema objects must be mimetype application/schema+json.

validate(event: EventT)

Validate the event.

Raises:

ValidationError – Invalid event.

consume(event: EventT)

Consume the event.