FM-004 Data Contracts and Schema Validation

Renamed or Removed Response Fields

Provider changes or removes a field without warning, silently breaking generated SDKs, frontends, and partner integrations that depend on the original name.

Failure explanation

A provider renames, removes, changes the type of, or changes the meaning of a response field while existing consumers still rely on the previous contract. The provider may consider a field internal or obsolete, but a mobile app, partner integration, report, or generated SDK may have a dependency that is not visible to the provider. A response can remain valid JSON and still be a breaking change.

Example

Version 1 returns {"customerId":"C123","displayName":"Ava"}. A release changes customerId to id and removes the old field. A deployed consumer still reads customerId and fails to associate the response with the customer.

How to test

  • Compare the current OpenAPI schema with the previous released schema.
  • Detect removed or renamed properties, type changes, newly required fields, enum removals, and changed nullability.
  • Run known consumer contracts against the proposed provider response.

Expected behavior

Breaking changes are identified before release. Compatible additions remain compatible under the stated policy, and intentional breaking changes use a documented migration or versioning strategy.

Runnable examples

Each example includes a broken server, a fixed server, an OpenAPI spec, and a clrsig scenario that detects the failure.