Compare JSON Schema versions before an API change
Review two versions of a JSON Schema to find properties that became required, types that changed, and enum values that were added or removed. Paste each schema or open a local JSON file. The comparison runs in your browser.
Read the differences by location
Put the published version under Before and the proposed version under After, then choose Compare schemas. Load example shows an API response schema where name becomes required, id changes from integer to string, and archived is added to the status enum.
The result gives the JSON Pointer of each changed keyword. For example, /properties/id/type points to the type declaration for id. Use the groups to review required properties, types, or enum values, or filter by part of a pointer. For lists of required names, type names, and enum members, changing the order alone leaves the comparison unchanged.
Review the effect on your API
The comparison follows declared properties, named definitions in $defs and definitions, and array item schemas. It also shows direct $ref changes. To compare content stored in a separate referenced file, compare the versions of that file directly.
A newly required property is a signal to check payloads that omit it. A removed enum value is a signal to check examples and clients that still send it. The report covers the displayed keywords. Use a JSON Schema validator with representative payloads to check the combined effects of the schema and its validation rules.