<filename>otter/json_schema/__init__.py
"""
Draft 3 JSON schemas (http://tools.ietf.org/html/draft-zyp-json-schema-03)
of data that will be transmitted to and from otter.
"""
import functools

from jsonschema import Draft3Validator, validate, FormatChecker

# This is there since later modules need to add specific format validators to this.
format_checker = FormatChecker()

validate = functools.partial(validate, cls=Draft3Validator, format_checker=format_checker)

<filename>otter/json_schema/__init__.py
"""
Draft 3 JSON schemas (http://tools.ietf.org/html/draft-zyp-json-schema-03)
of data that will be transmitted to and from otter.
"""
import functools

from jsonschema import Draft3Validator, validate, FormatChecker

# This is there since later modules need to add specific format validators to this.
format_checker = FormatChecker()

validate = functools.partial(validate, cls=Draft3Validator, format_checker=format_checker)

Draft 3 JSON schemas (http://tools.ietf.org/html/draft-zyp-json-schema-03) of data that will be transmitted to and from otter. # This is there since later modules need to add specific format validators to this.