API Design · Junior · Question 41 of 75
Which change to an existing API response is usually backward compatible?
- 1Renaming a field
- 2Changing a field's type from number to string
- ✓Correct answer: Adding a new optional field
Explanation
Clients should ignore unknown fields. Removing, renaming or retyping fields breaks existing clients.