Skip to content
HALOWERK

Codewerk

jsonschema diff

Walks both schemas in parallel (local $refs resolved, recursion guarded) and applies documented rules: added types, enum values, removed constraints, raised maxima, lowered minima, removed required keys and dropped additionalProperties: false widen the accepted set; the opposite narrows it; changed patterns, formats, const values or oneOf branches are "changed" (both directions possible); annotations (title, description, default, examples, deprecated, x-*) do not affect validation. Verdict.

POST https://code.halowerk.com/v1/jsonschema-diff

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
old_schemaSee schemaYesPrevious JSON Schema (object, boolean or JSON/YAML string).
new_schemaSee schemaYesNew JSON Schema (object, boolean or JSON/YAML string).
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "old_schema",
    "new_schema"
  ],
  "properties": {
    "old_schema": {
      "description": "Previous JSON Schema (object, boolean or JSON/YAML string).",
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "boolean"
        },
        {
          "type": "string",
          "maxLength": 2000000
        }
      ]
    },
    "new_schema": {
      "description": "New JSON Schema (object, boolean or JSON/YAML string).",
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "boolean"
        },
        {
          "type": "string",
          "maxLength": 2000000
        }
      ]
    }
  }
}

Open original schema

Published input example

{
  "old_schema": {
    "type": "object",
    "properties": {
      "id": {
        "type": "integer"
      }
    },
    "required": [
      "id"
    ]
  },
  "new_schema": {
    "type": "object",
    "properties": {
      "id": {
        "type": "integer"
      },
      "email": {
        "type": "string"
      }
    },
    "required": [
      "id",
      "email"
    ]
  }
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’