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 (Type[
compas.data.Data
]) – The data object class.
- Returns
dict – The validated data dict.
- Raises
jsonschema.exceptions.ValidationError –