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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file validatejsonschema-0.1.2-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 496.0 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cb030a725a626bf568d8e8e1b6181b25ab6de2d4e9aac691e19272a4bdc5d39
|
|
| MD5 |
31499e807f39a1b479d1528046e79326
|
|
| BLAKE2b-256 |
b1a8b7353c0cad40788a1416354413cdb03110311e84e3877da6eac5fe0b809e
|
File details
Details for the file validatejsonschema-0.1.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 822.1 kB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e22a5a80b26774309e95fcfc3d9ba63d6e40134abe3831b26125d4ebb57d1fc
|
|
| MD5 |
50961d02aa500391e8eaa07699f5b47b
|
|
| BLAKE2b-256 |
5b2fa7a65881846e1bfb7a2d745db62b32e8b178516d6765e2c2fe1616e583df
|
File details
Details for the file validatejsonschema-0.1.2-cp314-cp314-macosx_11_0_universal2.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp314-cp314-macosx_11_0_universal2.whl
- Upload date:
- Size: 596.8 kB
- Tags: CPython 3.14, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17e9334ed33c0481571c0dc772f88c6dbb5189d38da2019a3c66be57e0d9c975
|
|
| MD5 |
faaf25ac3a5086ff95a3f39992964fbe
|
|
| BLAKE2b-256 |
7a774e807759b295a12f9a756d012fea28d6ec65a9b6c9f1709ba8d812f4f52d
|
File details
Details for the file validatejsonschema-0.1.2-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 498.6 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ec703f8e660ea0225f63d073eddab95ceb0611cdd67475cf064096fd61c9890
|
|
| MD5 |
251e9d5cda612bd7281de1227fd2091f
|
|
| BLAKE2b-256 |
6cd1361f35085b758ed0a0731ed33d0afe35876cb7bd0faec309e90a785c7a4f
|
File details
Details for the file validatejsonschema-0.1.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 814.4 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af2ede825eb4e5106f955369eef668d396a4c7579b4d4386a709e3d3f07bb30e
|
|
| MD5 |
47c6846eaefe6aed05a15041fe63c6a3
|
|
| BLAKE2b-256 |
36dd86ee972ad3906fff69d673ca1948c2701f1c66a3e976effb1bb6c8a40ad5
|
File details
Details for the file validatejsonschema-0.1.2-cp313-cp313-macosx_11_0_universal2.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp313-cp313-macosx_11_0_universal2.whl
- Upload date:
- Size: 581.9 kB
- Tags: CPython 3.13, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af377c2ba39fbcbaa34c14b2f0fbd4ffbc729e223d115c68082e02c5cfa0c92e
|
|
| MD5 |
56b2788faba75c92a836d495ca041d65
|
|
| BLAKE2b-256 |
8bbca7960c21182bdf1e7a8730bb1349370193a4f38f1a6d1d116982dcb3ff9d
|
File details
Details for the file validatejsonschema-0.1.2-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 500.3 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99b45ce0faa5fccc55af0e4f2c9a9abd234d62a7f39b70cbe2932f84ef12616d
|
|
| MD5 |
dd940ccc5d5ad0e43d7868de87d815db
|
|
| BLAKE2b-256 |
c997625fccfefde40516cc429d8db99b63d9b0e65725dc54e978c88608f78a06
|
File details
Details for the file validatejsonschema-0.1.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 809.6 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cec00e2bd4d670b5c79b8d5bd66b4c6fd7981eeedaedc4a028f524323992c6de
|
|
| MD5 |
251b2811471f5e016a80e3b3efa6987c
|
|
| BLAKE2b-256 |
a4eefee5e403d8c4cef29e191d24621746c0215453510d222447a0daaa1ccc0c
|
File details
Details for the file validatejsonschema-0.1.2-cp312-cp312-macosx_11_0_universal2.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp312-cp312-macosx_11_0_universal2.whl
- Upload date:
- Size: 580.3 kB
- Tags: CPython 3.12, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ca3154ba09432d9de3e25dabb0af158afdb7085639d31cb95f790431bffed8a
|
|
| MD5 |
b381bf886cb9b86eac6727fcd5b4f712
|
|
| BLAKE2b-256 |
d2e47b6ef09c2e3b73ba481a5c85adf7549b89432434ba74823476c82aadbc40
|
File details
Details for the file validatejsonschema-0.1.2-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 524.3 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
751e3c54486f9c0302c83c0c00d1f20052d19792a95e79e6d62d9d0323fcac23
|
|
| MD5 |
7f782cb5e906c8aae562f39a230218e3
|
|
| BLAKE2b-256 |
1d6c25d620ebfdbd2b5f622093efa1e4551743635024a042d8e3ca9a445260eb
|
File details
Details for the file validatejsonschema-0.1.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 719.1 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3db1113c261fd86b7957430a4a3dcac35c6adcd8b78caf9823f1951c95534ef6
|
|
| MD5 |
3c7c73edf6aa6d6d84bb0e2242290c64
|
|
| BLAKE2b-256 |
5ad91f99069c7a266efcb333bbb99fa664d23bf7b253e36d22e4b454010bb793
|
File details
Details for the file validatejsonschema-0.1.2-cp311-cp311-macosx_11_0_universal2.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp311-cp311-macosx_11_0_universal2.whl
- Upload date:
- Size: 570.1 kB
- Tags: CPython 3.11, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34b295524e2f54c8416a05e7b3db48eb95b168c23572953d4c18f199bc524ed2
|
|
| MD5 |
b3bf08074a0bfafcde4a25ead01c5f86
|
|
| BLAKE2b-256 |
81270aa3a894dd102ae04f3e7e1a83ee8aff5c64cec107a4c92fd8b9781683a7
|
File details
Details for the file validatejsonschema-0.1.2-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 502.9 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6c4fcc594c88af7bb15d2e6037f602d527774fc5490bf08da500b9c92a86605
|
|
| MD5 |
8d3c3784330140499b4a5fa3fc96445f
|
|
| BLAKE2b-256 |
8b4094def9e4153a8d7eb4d86138d7734f2edf8564c79106d6c3c7ba0496a0f2
|
File details
Details for the file validatejsonschema-0.1.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 699.5 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93f5fe0f6930d3a5e2316feb0c2b816c9085fc9eb6c49987f66175a1fd6d3dac
|
|
| MD5 |
dbec105947ed9ad84852be0e57043930
|
|
| BLAKE2b-256 |
c0eabc3b23b1a9724baf4737619109357f6d560a21b4d7dc6bbe5a36981139eb
|
File details
Details for the file validatejsonschema-0.1.2-cp310-cp310-macosx_11_0_universal2.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp310-cp310-macosx_11_0_universal2.whl
- Upload date:
- Size: 557.3 kB
- Tags: CPython 3.10, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3d4bb866b6980bc0302cb1cd6ec1adcccf8739e6e412f9eef3bacbb7ff1271f
|
|
| MD5 |
8f47d8080308399b9dbdb0bd484cec98
|
|
| BLAKE2b-256 |
5982bf772b054c135010737c686b4e8951a46efaf84cf2638bde681bff4c5f60
|
File details
Details for the file validatejsonschema-0.1.2-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 465.3 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c400b9c22a8bc5e5cf7b8621a096dd3ccec380d5b7dd61b83001b600e3424b5c
|
|
| MD5 |
2fae940050424a7be14c281c4a9bd4f1
|
|
| BLAKE2b-256 |
88c143b95da7166064933c0507558f75dd99797c455ff623b813206608e400cb
|
File details
Details for the file validatejsonschema-0.1.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 653.5 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c18b24f76e14618a4c3d7b2777cf40fd756156077d08c8b12138aa0d168953a
|
|
| MD5 |
6d65b594ef04376bec4f64c56921432b
|
|
| BLAKE2b-256 |
874ebf537bda2b2cfc4864aa27cf925c28c1d647f36c1db4a275004e095689da
|
File details
Details for the file validatejsonschema-0.1.2-cp39-cp39-macosx_11_0_universal2.whl.
File metadata
- Download URL: validatejsonschema-0.1.2-cp39-cp39-macosx_11_0_universal2.whl
- Upload date:
- Size: 512.6 kB
- Tags: CPython 3.9, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93b369f10f088320b02c8192e18a2f31d95de81a1acb460a9def0db18471da51
|
|
| MD5 |
700fa979ce20207c84316fccb1e89354
|
|
| BLAKE2b-256 |
d333f16969836da9adc11c7a4dd078fb4a78ab7eb92a67249071e74f6ef70b06
|