FM-049 API Interoperability and Operational Behavior

API Documentation and Example Drift

Documentation examples reference obsolete fields, invalid headers, or unsupported parameter combinations that no longer match the implementation.

Failure explanation

Documentation examples no longer match the deployed API or published OpenAPI contract. Developers copy obsolete request bodies, headers, authentication instructions, response fields, or endpoint paths and encounter failures. Examples can be technically valid but misleading if they omit required context, use stale enum values, or describe a behavior that has changed.

Example

The docs show POST /v1/customers with a name field, but the current API requires legalName and countryCode. A new developer copies the sample and receives a 400 response.

How to test

  • Extract request and response examples from documentation and OpenAPI.
  • Execute examples against a controlled test environment.
  • Validate schemas, authentication, headers, status codes, and referenced links.
  • Version examples alongside the API release.

Expected behavior

Published examples are executable against the documented API version or clearly labeled as illustrative. Documentation is updated and tested as part of the release pipeline.

Runnable examples

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