API Testing · Middle · Question 8 of 75
When is an OpenAPI-based contract check a good alternative to Pact?
- 1When there are many unknown consumers, e.g. a public API
- 2When the API has exactly one internal consumer
- 3When the API doesn't have any documentation
Show the answer
Correct answer: When there are many unknown consumers, e.g. a public API
Explanation
Validating real responses against the published spec, or running tools that test the spec, catches drift without consumer-written contracts.