dataclass_typeschema

compas.data.dataclass_typeschema(cls)[source]

Generate a JSON schema for the data type of a COMPAS object class.

Parameters:
clscompas.data.Data

The COMPAS object class.

Returns:
dict

The JSON schema.