OpenAPI contract review

Catch breaking changes.See what they touch.

SchemaProof compares two OpenAPI specs and points your coding agent to client lines that may need to change. Every finding comes with a fix.

The CatchGET /orders/{id} · Order

examples/v1/openapi.json

− "order_id": {"type": "string"}

examples/v2/openapi.json

+ "orderId": {"type": "string"}

Recorded finding

ERROR SS-09 GET /orders/{id}
  response 200 application/json: order_id
  Field 'order_id' removed; 'orderId' added (likely rename); clients break either way.
  [CRITICAL] lib/models/order_model.dart:4  property declaration order_id
  [CRITICAL] lib/models/order_model.dart:6  member access .order_id
  [CRITICAL] lib/models/order_model.dart:9  quoted key 'order_id'
  [CRITICAL] src/order.ts:4  property declaration order_id
  [CRITICAL] src/order.ts:8  member access .order_id
  Fix: Ship both field names until clients have migrated.schemaproof: 5 breaking, 0 warnings, 0 info
View demo command and full recorded output
$ python3 -I skills/schemaproof/scripts/schemaproof.py diff examples/v1/openapi.json examples/v2/openapi.json --client examples/client
ERROR SS-01 DELETE /orders/{id}
  operation
  Operation removed.
  Fix: Restore the operation or version the endpoint.
ERROR SS-04 GET /orders/{id}
  parameter query limit
  Parameter became required.
  Fix: Keep inputs optional and no stricter than before until clients are ready.
ERROR SS-09 GET /orders/{id}
  response 200 application/json: order_id
  Field 'order_id' removed; 'orderId' added (likely rename); clients break either way.
  [CRITICAL] lib/models/order_model.dart:4  property declaration order_id
  [CRITICAL] lib/models/order_model.dart:6  member access .order_id
  [CRITICAL] lib/models/order_model.dart:9  quoted key 'order_id'
  [CRITICAL] src/order.ts:4  property declaration order_id
  [CRITICAL] src/order.ts:8  member access .order_id
  Fix: Ship both field names until clients have migrated.
ERROR SS-03 GET /orders/{id}
  response 200 application/json: id
  Type or format changed.
  [CRITICAL] lib/models/order_model.dart:3  property declaration id
  [CRITICAL] lib/models/order_model.dart:6  member access .id
  [CRITICAL] lib/models/order_model.dart:9  quoted key 'id'
  [CRITICAL] src/order.ts:3  property declaration id
  Fix: Preserve the existing type and format, or version the endpoint.
ERROR SS-05 POST /orders
  request body application/json: status
  Accepted enum values narrowed.
  [POSSIBLE] lib/models/order_model.dart:14  quoted key 'status'
  [POSSIBLE] src/order.ts:10  property declaration status
  Fix: Continue accepting the previous enum values and alternatives.
schemaproof: 5 breaking, 0 warnings, 0 info
rules
13
standard-library script
1
runtime dependencies
0

Feel the problem in 2 minutes

Find the break. Play Breaking Court: spot the schema change that breaks clients and rule on it.

Simulated training exercise, not a real scan result.

From contract diff to client line

  1. Read the two specs

    Give your agent the old and new OpenAPI 3.x specs as JSON or supported YAML.

  2. Compare the contracts

    Review changes such as removed fields, changed types, stricter inputs and narrowed request enums.

  3. Trace and review

    Open the matched Dart, TypeScript or JavaScript lines and use the suggested fix to plan the rollout.

Agent adapters

The vendor instructions for these tools were checked locally against vendor documentation. Live installation and discovery are unverified.

  • Claude Code
  • OpenAI Codex
  • Gemini CLI
  • OpenCode
  • GitHub Copilot
  • skills CLI

Google Antigravity and Claude.ai also have vendor instructions. Their workflows are untested.

Install

Follow the README steps for your agent. The repository owner is still the QidarSarhan placeholder.

Run the README plugin commands in Claude Code.

/plugin marketplace add QidarSarhan/schemaproof
/plugin install schemaproof@schemaproof

For copy-based installs, use the README’s bundled skill archive or the named folder as instructed.

Evidence

DOCUMENTED

Recorded fixture run

The bundled orders demo reports 5 breaking changes, 0 warnings and 0 info findings. The repository defines 144 test methods.

PARTIAL

Client trace coverage

[CRITICAL] uses the last class or interface declaration as a clue. [POSSIBLE] means the field name alone matched.

UNVERIFIED

Live installs

Local vendor documentation checks are complete for the listed tools. Live registry installs and discovery remain unverified.

Limits of the check

  • SchemaProof reads OpenAPI 3.x as JSON or a YAML subset. Known unsupported YAML constructs are rejected. Use full OpenAPI validation separately.
  • Response header changes on compared statuses, removed or relocated request parameters, effective security changes, callbacks and webhooks produce SS-90 review warnings. Referenced callback and webhook payloads are outside this check. Servers, operationId and discriminator remain unchecked.
  • The comparison ignores readOnly/writeOnly direction, which can produce false positives. A charset change can be reported as a media-type removal.
  • Client tracing uses text matches. Results can include lines outside the class or interface, and serialized-name mappings are outside its coverage. A clean run leaves compatibility unproven.
Get Involved

Join Our Community

Whether you are submitting pull requests, or helping others debug, your participation powers this project.