Skip to main content

An implementation of JSON Schema validation for Python

Project description

validatejsonschema

validatejsonschema is an implementation of the JSON Schema specification for Python.

from validatejsonschema import validate

# A sample schema, like what we'd get from json.load()
schema = {
    "type": "object",
    "properties": {
        "price": {"type": "number"},
        "name": {"type": "string"},
    },
}

# If no exception is raised by validate(), the instance is valid.
validate(instance={"name": "Eggs", "price": 34.99}, schema=schema)

validate(
    instance={"name": "Eggs", "price": "Invalid"}, schema=schema,
)
# Raises:
# ValidationError: 'Invalid' is not of type 'number'

It can also be used from the command line by installing
check-jsonschema.


Installation

validatejsonschema is available on PyPI:

https://pypi.org/project/validatejsonschema/

Install via pip:

pip install validatejsonschema

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

validatejsonschema-0.1.1.post1-cp314-cp314-win_amd64.whl (496.1 kB view details)

Uploaded CPython 3.14Windows x86-64

validatejsonschema-0.1.1.post1-cp313-cp313-win_amd64.whl (498.6 kB view details)

Uploaded CPython 3.13Windows x86-64

validatejsonschema-0.1.1.post1-cp312-cp312-win_amd64.whl (500.4 kB view details)

Uploaded CPython 3.12Windows x86-64

validatejsonschema-0.1.1.post1-cp311-cp311-win_amd64.whl (524.4 kB view details)

Uploaded CPython 3.11Windows x86-64

validatejsonschema-0.1.1.post1-cp310-cp310-win_amd64.whl (503.0 kB view details)

Uploaded CPython 3.10Windows x86-64

validatejsonschema-0.1.1.post1-cp39-cp39-win_amd64.whl (465.4 kB view details)

Uploaded CPython 3.9Windows x86-64

File details

Details for the file validatejsonschema-0.1.1.post1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for validatejsonschema-0.1.1.post1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 8c4e47427153789d03f315ac346f38a2be74f55477ff58ff00565e46af1325d4
MD5 b360dec06f65019bd495e9fcd9928dab
BLAKE2b-256 48f05a392e8f3c667494bf94b92647ddedec3cf2caadefdea94f014ed630c686

See more details on using hashes here.

File details

Details for the file validatejsonschema-0.1.1.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for validatejsonschema-0.1.1.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6c5865212a7536f1e1bbd1aba58c035b301fac135e98c1ab70f6d8f84555b0e9
MD5 61a1eb77bfddd05db8bd6305a9b69bd1
BLAKE2b-256 65afcc3560fa2a5d124a86dc0141bf8ebd64939d53112128e3912390f85de306

See more details on using hashes here.

File details

Details for the file validatejsonschema-0.1.1.post1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for validatejsonschema-0.1.1.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 12d01029e5e274cb9e077b83c5c614c56b47eced224d061b6e47430f634ec333
MD5 ecdf40bf8e64f0db27121a253c562289
BLAKE2b-256 2a663b1e0349a8dc2b2ae6d226c177f9ccd8e975dd0e26985589408bbf6fb78e

See more details on using hashes here.

File details

Details for the file validatejsonschema-0.1.1.post1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for validatejsonschema-0.1.1.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b693d307899298492181910dcdc32fd8d14ac5613f2d307e739e8c249df1d1f4
MD5 a83a613ddf08a303bd967c2c9283044d
BLAKE2b-256 67c4943b078bc6c69b7714a04f3e63022de66cb04888765cda8e69ffea656cac

See more details on using hashes here.

File details

Details for the file validatejsonschema-0.1.1.post1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for validatejsonschema-0.1.1.post1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 812236f8542269e87185e3ab7a5ace1fbf0022a4d514455d4531d6a401a47ff6
MD5 62c939aec0c11935409ac8ecda5bd05d
BLAKE2b-256 b08d8cdf1aa32c34784875a961e42a16e7fe7d9d8430eeb323ddd0c92119cc9b

See more details on using hashes here.

File details

Details for the file validatejsonschema-0.1.1.post1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for validatejsonschema-0.1.1.post1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dcff2b1f618dcd86f9fdc5c8349098be403158d1059385dc7bdc77fe7094a378
MD5 ae5ba656673e5d2cac26adae2f441711
BLAKE2b-256 5ac36e312099774b8c214742a51ab7766120f5d5666bb85c02675b1e82a7f0eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page