Skip to main content

json_schema is a JSON-based schema validation package.

JSON-based means that its feature-set is adjusted to JSON, but it doesn’t require JSON data: any Python objects are fine, as long as they’re of the primary Python types.

Let’s start off with an example:

from json_schema import Schema, AnyInteger

my_schema = Schema([u"set-temp", {u"degrees": AnyInteger}])

if my_schema.validate([u"set-temp", {u"degrees": 10}]):
    print "Valid!"

It’s a very declarative way of saying how your schema looks. With the architechture that json_schema is built on, you can customize pretty much anything.

Release files for json_schema 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for json_schema 0.3
File Size Uploaded
json_schema-0.3.tar.gz 5.4 kB Details

Release files / json_schema-0.3.tar.gz

Download URL json_schema-0.3.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a164efbb405f535615e58aff191b55fbfdad61d2ff0e7bfce6acf086358ca4b3
BLAKE2b-256 checksum
How to use checksums
2a04855eecfdd379ff774ce86770808c6663ad4fdf14c43ed4e6fd7156aa5cf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page