API Design · Senior · Question 8 of 75

Why is changing default behavior (e.g. a default page size) a breaking change?

Explanation

Defaults are part of the contract. Introduce new behavior opt-in or under a new version.

Further reading

Problem with a question

API Design · Senior · question 8

Test yourself

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

Take this quiz