PyForge is sold only here, on the official py-forge.com website — beware of imitations.

Back to the catalog

SchemaGuard

#python#json-schema#api

Catch JSON Schema changes that break consumers, like an id turning from string to integer.

$19 Commercial License
Or get every tool, current and future, for $99 with the All-Access Pass

After payment you get an email with your download link within a few minutes. The link is valid for 7 days.

Digital goods. If a tool doesn't work as described, we fix it or refund you — see Terms.

Not sure? Try the free MockForge sample first.

Key features

  • Checks type, enum, required, properties and array items; each finding has a JSONPath and severity
  • A risk score leads to APPROVED, NEEDS_REVIEW or REJECTED_BLOCKED
  • Exit code 0 only for APPROVED, so CI blocks the change; reports as terminal, JSON or Markdown

requirements.txt — no third-party packages needed

What's in the ZIP

  • LICENSE
  • README.md — up and running in under a minute
  • requirements.txt — no third-party packages needed
  • schemaguard.py — complete, readable source code

Why PyForge: Ready-made tools with full source code.

More details

Catch JSON Schema changes that break consumers, like an id turning from string to integer. SchemaGuard compares two schema versions at every level and resolves local $ref references. - Checks type, enum, required, properties and array items; each finding has a JSONPath and severity - A risk score leads to APPROVED, NEEDS_REVIEW or REJECTED_BLOCKED - Exit code 0 only for APPROVED, so CI blocks the change; reports as terminal, JSON or Markdown Runs with: Python 3, zero dependencies. Last verified: Nov 23, 2026 · runs on Python 3.8–3.13

SchemaGuardAPIs & Testing
Read the technical deep-diveSchemaGuard: Zero-Downtime API Contract Enforcement and Real-Time Schema Governance
schemaguard.pybashExample usage — schemaguard.py
# Compare two versions of a JSON Schema; exit code 0 only if APPROVED
python3 schemaguard.py user.v1.json user.v2.json --contract-id users.v1

# Markdown report for the pull request
python3 schemaguard.py user.v1.json user.v2.json --contract-id users.v1 --format markdown --out report.md

Quick Start

Runs on Python 3.9 or newer with the standard library only. Nothing to pip install.

1 — Run it

python schemaguard.py --help

How agents & programs use it: It uses only the Python standard library, so scripts and AI agents can run it as a subprocess without extra installs.

Why developers buy from PyForge

  • Save hours: ready-made, tested tools. Skip writing, debugging and maintaining it yourself.
  • Ready in minutes: one file, drop it in your project and run it.
  • Mostly zero-dependency: no pip install chains, no supply-chain risk.
  • Full source code: readable, auditable, yours to modify.
  • Runs locally and offline: no account, no API key, no data leaves your machine.
  • Pay once, own it: no subscription.
  • Tested before release: every tool is checked before it goes on sale.

All-Access Pass

Get every PyForge tool with the All-Access Pass

49 tools today plus every future release, lifetime commercial license, one payment of $99.

This tool: $19 · All 49 tools: $99

See the All-Access Pass