What changed
Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.
Affects this value on SubscriptionActionType reachable from 10 operations.
New value: COMPLETE.
can now return "COMPLETE"
Who is affected
Code that reads Square's SubscriptionActionType objects, used by 10 Square operations.
Before and after
| Where | Before | After |
|---|---|---|
| SubscriptionActionType | "CANCEL", "CHANGE_BILLING_ANCHOR_DATE", "PAUSE", "RESUME", "SWAP_PLAN" | "CANCEL", "CHANGE_BILLING_ANCHOR_DATE", "COMPLETE", "PAUSE", "RESUME", "SWAP_PLAN" |
Code that breaks
switch (response) {
// existing branches …
// no branch for "COMPLETE"
default:
throw new Error("unexpected value");
}Based on Square’s published API specification. How severity is decided.