Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!


Project description

.. image::

JSON Hyper Schema

Implementation of json schema draft 03


$ pip install json_hyper_schema


JSON Hyper Schema makes it possible to validate arbitrary json objects against a json schema.

>>> form json_hyper_schema import Schema

>>> schema = Schema(
'properties': {
'a': {'type': 'string', 'enum': ['a', 'b']},
'b': {
'type': 'array',
'items': {
'properties': {
'b': {'type': 'string', 'enum': ['c', 'd']},
'c': {'uuid': True}
'c': {'default': 'blabla'}
'links': [
'href': '/id/{a}',
'rel': 'self'

>>> schema.validate({'a': 'b', 'b': [{'b': 'c'}, {'b': 'd'}]})

If the data is not valid against the schema a `json_schema.ValidationError` will be raised. This will contain a dictionary of errors. The keys of the dictionary are `json_pointer.Pointer` pointers to the invalid field

Project details

Release history Release notifications

This version
History Node


History Node


History Node


Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page