API Testing · Senior · Question 47 of 75
What should be tested when an API adds a new required request field?
- 1Nothing special; clients will send the field automatically
- 2It's a breaking change for clients; needs a new version or default
- 3Only the documentation needs to change in this case
Show the answer
Correct answer: It's a breaking change for clients; needs a new version or default
Explanation
Old clients don't send it and start getting 400s. Contract tests with old consumer versions catch it before release.