FM-006 Data Contracts and Schema Validation

Mobile and Older-Client Compatibility Failures

Backend changes break mobile clients on long upgrade cycles that still expect fields, response structures, or behaviors the new backend no longer provides.

Failure explanation

A backend deployment changes response fields, validation rules, authentication, or workflow behavior in a way that breaks an older client that cannot be upgraded immediately. Mobile applications may remain installed for months, and users may not update promptly. Even a change that is safe for newly generated clients can break older versions that rely on undocumented defaults or enum values.

Example

An older app expects order status to be one of PENDING, SHIPPED, or CANCELLED. The server adds AWAITING_PICKUP; the app’s exhaustive status handling crashes or displays a blank state.

How to test

  • Maintain representative historical consumer schemas or fixtures.
  • Run old-client contract tests against the new provider.
  • Test added enum values, removed fields, changed defaults, authentication changes, and offline synchronization.
  • Identify minimum supported client versions and compatibility windows.

Expected behavior

Changes follow a documented compatibility policy. Existing supported clients continue to function, or a versioned migration and retirement plan is communicated and enforced.

Runnable examples

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