Which tools catch a breaking consumer change before release?
Choose the contract you need to protect. Pact verifies interactions that consumers expect from a provider. Schemathesis exercises an implementation from its API schema. oasdiff compares two OpenAPI documents for compatibility changes. These answer different questions about the same release.
Make two small changes to the same endpoint
Start with an order response whose total is a number. First add an optional description, then change total to a string. Keep a real consumer example that sums totals. Share both revisions and ask which change each tool can detect from the inputs it has.
| Tool | Source of expectations | Evidence to inspect |
|---|---|---|
| Pact | A consumer records expected interactions for provider verification. | Show which consumer expectation rejected the changed total. |
| Schemathesis | Checks are generated from an API schema and exercised against the running API. | Retrieve a reproducible request and the response that violated the schema. |
| oasdiff | Two versions of an OpenAPI specification. | Review the breaking-change report before either implementation is deployed. |
Put the finding in the right review
A specification diff belongs beside the schema change. A failing provider verification needs a link to the consumer expectation and provider version. A runtime schema failure needs the request and observed response. Ask the consumer team to trace one finding without the API author helping.