What can Schemathesis tell an API owner about a changed response?
Schemathesis generates cases from an API description and supplies checks for responses, including schema and status-code conformance. That is a useful check for drift between implementation and OpenAPI. A valid number can still be the wrong quantity, so the consumer’s business rule needs its own expected value.
Try three outcomes on a harmless read endpoint
Use a test catalogue endpoint that returns an item name and an integer stock count. Try a stock count sent as text, an undocumented success status and a valid integer that is one too high. The first two are contract questions if the schema states those constraints. The last needs a known inventory fixture.
| Example response | Question | Evidence to inspect |
|---|---|---|
| Quantity is text | Does the response match its declared type? | Response-schema check and relevant schema field |
| Unlisted status | Is this result described by the API? | Observed status and documented responses |
| Quantity is one too high | Does it agree with known stock? | Independent fixture and value assertion |
Save enough context to rerun a failure
This desk review uses Schemathesis’s published check definitions. In a pilot, retain the schema revision, application revision, generated input and exact check name. A reviewer should be able to tell whether to update an outdated specification, correct the implementation or write an additional expectation for the business value.