vcorelib.schemas.mixins
index
/home/vkottler/src/vkottler/workspace/vcorelib/vcorelib/schemas/mixins.py

A module for implementing schema-validated classes.

 
Classes
       
builtins.object
SchemaMixin

 
class SchemaMixin(builtins.object)
    SchemaMixin(schemas: vcorelib.schemas.base.SchemaMap, valid_attr: str = 'data') -> None
 
A class that allows inheriting classes to validate an attribute with a
schema.
 
  Methods defined here:
__init__(self, schemas: vcorelib.schemas.base.SchemaMap, valid_attr: str = 'data') -> None
Initialize this object instance by performing schema validation.
validate(self, valid_attr: str = 'data') -> None
Validate an instance attribute based on this instance's schema.

Class methods defined here:
schema_name() -> str from builtins.type
A default name for this class's schema.

Data descriptors defined here:
__dict__
dictionary for instance variables
__weakref__
list of weak references to the object

Data and other attributes defined here:
__annotations__ = {'schema': <class 'vcorelib.schemas.base.Schema'>}