Pick the fix
Which change is safe to ship without a new version?
Hint 1 of 1
Could a correct old client fail?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Adding an optional note field to the order response
Correct. Clients that ignore unknown fields keep working.
A change is backward compatible when every existing request and parser still works. New optional response fields pass that test as long as clients ignore fields they don't know, which is the usual rule.
Why not the others?
- B Making
customer_idrequired in POST /orders. Old clients that omit it now fail. - C Changing
totalfrom integer cents to a decimal string. Type change: old parsers break. - D Returning 422 instead of 400 for validation errors. Clients that handle 400 miss the new code.