Product reviews

Schemathesis review for OpenAPI response testing

Find out which API regressions a generated schema check can expose and where a business expectation must be written separately.

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.

Schemathesis review for OpenAPI response testing
Example responseQuestionEvidence to inspect
Quantity is textDoes the response match its declared type?Response-schema check and relevant schema field
Unlisted statusIs this result described by the API?Observed status and documented responses
Quantity is one too highDoes 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.

Primary documentation

Your next release starts here

Keep building.
Put testing to work.

Give Cue April your next testing challenge. Let your AI quality lead coordinate the checks, so your team can focus on what comes next.

Create account

Create your account, connect a repository and review your proposed setup before approving a run.