validate_data
- compas.data.validate_data(data, cls)[source]
Validate data against the data and json schemas of an object class.
- Parameters
data (dict) – The data representation of an object.
cls (
compas.data.Data
) – The class of a data object.
- Returns
dict – The validated data.
- Raises
jsonschema.exceptions.ValidationError –