API Testing · Senior · Question 75 of 75

How should breaking-change detection be automated for OpenAPI specs?

Show the answer

Correct answer: Diff the spec against the released one in CI and fail on breaking changes

Explanation

Spec diff tools classify changes (removed field, new required parameter, changed type). Blocking them in CI turns the compatibility policy into a check.

Further reading

Problem with a question

API Testing · Senior · question 75

Test yourself

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

Take this quiz