swh.model.fields.compound module¶
-
swh.model.fields.compound.
validate_against_schema
(model, schema, value)[source]¶ Validate a value for the given model against the given schema.
- Parameters
model – the name of the model
schema – the schema to validate against
value – the value to validate
- Returns
True if the value is correct against the schema
- Raises
ValidationError if the value does not validate against the schema –