chc.jsoninterface.JSONSchema module

Schema to describe json data.

class chc.jsoninterface.JSONSchema.JSONSchema(name: str, base_schema: Dict[str, Any], defs: Dict[str, Dict[str, Any]] = {})[source]

Bases: object

property base_schema: Dict[str, Any]
property defs: Dict[str, Dict[str, Any]]
property name: str
set_defs(defs: Dict[str, Dict[str, Any]]) None[source]
to_json() Tuple[Dict[str, Any], Dict[str, Any]][source]