Example:
>>> import microschema >>> schema = { ... 'username': {'type': str, 'required': True}, ... 'score': {'type': int}, ... } >>> data = { ... 'username': 'foobar', ... 'score': 10000, ... } >>> print(microschema.validate(schema, data))
Python 2.7 and 3.3+ are supported.