← Back to JSON Schema Enforcer

JSON Schema Enforcer Documentation

Runtime-generated docs from the validated registry. Use this page as the in-app skill reference while external source repositories are still being finalized.

Workflow summary

Validates AI-generated JSON against explicit contracts with deterministic checks for required keys, type safety, allowed values, and forbidden fields.

Version
0.1.0
Updated
Apr 22, 2026
Reliability
high
Risk
medium

Verification and assets

  • schema validation
  • lint/type checks

Included files

  • scripts/assert_contract.py (script) - Validates JSON output against a lightweight contract spec.
  • references/contract-format.md (reference) - Defines the contract JSON format used by the validator.
  • references/edge-cases.md (reference) - Covers nullability, enum drift, and nested-structure edge cases.
  • references/repair-playbook.md (reference) - Defines deterministic repair ordering and retry policy.

Inputs

  • contract_definition (json) - Required fields, expected types, allowed values, and forbidden fields.
  • candidate_output (json) - Generated JSON to validate.

Outputs

  • validated_output (json) - JSON payload that passes all contract checks.
  • validation_report (markdown) - Deterministic list of schema violations and fixes.

Source metadata

Declared source URL in registry:

https://github.com/SHREYAS290601/ars.flow-skills/tree/main/skills/json-schema-enforcer