Schema

An object that represents a schema that can be used to test if an object matches that schema or not

 

__init__(self, schema, optional_schema=None): 

 

canonicalize_schema(schema): 

 

validate(self, obj, throw=True): 

Validates that obj matches the provided schema and throws an error if not

  • obj: Any
  • throw: Any
  • :returns: _

 

to_dict(self, obj, throw=True): 

Converts obj into a plain dict representation

  • obj: Any
  • :returns: _

 

__repr__(self): 

Feedback

Examples

Templates

Documentation