API Testing · Middle · Question 8 of 75

When is an OpenAPI-based contract check a good alternative to Pact?

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.

Further reading

Problem with a question

API Testing · Middle · question 8

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz