PatchSpec
Browser-Local OpenAPI & JSON Schema Engine

Live API Contract Auditor

Compare base vs. candidate OpenAPI 3.x (YAML/JSON) or JSON Schema files directly in your browser. Nothing leaves your machine on the web tier.

BASE SPEC (Production)
TARGET SPEC (Candidate PR)

Release Risk Score

100/100OPENAPI

SemVer Recommendation

MAJOR1.4.0 → 2.0.0

Breaking Changes

6

Warnings / Additive Safe

2/2

breakingPOST /v1/orders· Parameter (header · idempotency_key)
PS-001 · REQUIRED_PARAM_ADDED

New required header parameter `idempotency_key` added

Existing callers do not send `idempotency_key` and will immediately fail request validation.

Migration Guidance: Make `idempotency_key` optional with a default value in the API handler.
Suggested Compatibility Patch
// Non-breaking parameter default
const idempotency_key = req.query.idempotency_key ?? "default";
breakingPOST /v1/orders· Request · amount_minor
PS-002 · REQ_TYPE_CHANGED

Field type changed from `integer` to `string`

Property `amount_minor` changed type from `integer` to `string`, which breaks strict client deserializers and validation.

Migration Guidance: Accept both `integer` and `string` in the server adapter before enforcing `string`.
Suggested Compatibility Patch
// Backward-compatible adapter for amount_minor
const normalized = typeof payload?.amount_minor === "integer"
  ? coerceTo_string(payload.amount_minor)
  : payload.amount_minor;
breakingPOST /v1/orders· Request · currency
PS-003 · REQ_ENUM_REMOVED

Enum value `EUR` removed

Clients submitting `EUR` will now be rejected.

Migration Guidance: Keep accepting `EUR` as a deprecated alias mapped to the replacement enum value.
breakingPOST /v1/orders· Request · billing_country
PS-004 · REQ_REQUIRED_FIELD_ADDED

New required request field `billing_country` added

All existing clients omitting `billing_country` will immediately fail validation with HTTP 400/422.

Migration Guidance: Make `billing_country` optional with a server-side default value, or introduce a versioned endpoint.
Suggested Compatibility Patch
// Non-breaking server fallback
const billing_country = req.body.billing_country ?? DEFAULT_BILLING_COUNTRY;
breakingPOST /v1/orders· Response · response.201.receipt_url
PS-005 · RES_FIELD_REMOVED

Response property `response.201.receipt_url` removed

Existing consumers reading `response.201.receipt_url` will receive `undefined` or crash during JSON decoding.

Migration Guidance: Mark `receipt_url` as `deprecated: true` and retain it for at least one release cycle before removing.
Suggested Compatibility Patch
// Keep deprecated alias in serializer during migration window
return {
  ...newResponse,
  receipt_url: deriveLegacy_receipt_url(newResponse), // @deprecated
};
breakingGET /v1/orders/{id}· Response · response.200.amount_minor
PS-009 · RES_NULLABLE_ADDED

Response field `response.200.amount_minor` became nullable

Clients expecting a non-null `integer` may throw null-pointer exceptions at runtime.

Migration Guidance: Provide a safe non-null default value or document a major version bump before returning null.
warningPOST /v1/orders· Response · response.201.status
PS-006 · RES_ENUM_ADDED

New response enum value `refunded` added

Strongly typed mobile/Java/Swift/Rust clients with exhaustive enum switches may fail to decode `refunded`.

Migration Guidance: Ensure SDKs define a fallback `UNKNOWN` enum branch before rolling out `refunded`.
warningGET /v1/orders/{id}· Operation
PS-008 · ENDPOINT_DEPRECATED

Endpoint `GET /v1/orders/{id}` marked deprecated

Consumers should schedule migration before removal in a future major release.

Migration Guidance: Attach `Deprecation` and `Sunset` headers in API Gateway / middleware.
safePOST /v1/orders· Response · response.201.invoice_pdf_url
PS-007 · RES_FIELD_ADDED

Additive response property `response.201.invoice_pdf_url` added

Backwards-compatible additive field detected.

Migration Guidance: Safe to release in a MINOR version bump.
safe/v2/orders/summary· Path
PS-010 · ENDPOINT_ADDED

New endpoint path `/v2/orders/summary` added

Backwards-compatible additive endpoint.

Migration Guidance: Safe to ship in a MINOR release.