What changed
Producer-side tools call this non-breaking. For a consumer it is a null dereference on an unknown future date.
Affects location_ids on LoyaltyProgram reachable from 2 operations. Nothing fails at the call; it fails wherever the value is finally used, which is usually somewhere else entirely.
no longer guaranteed present; can now be null
Who is affected
Code that reads Square's LoyaltyProgram objects, used by 2 Square operations.
Before and after
| Where | Before | After |
|---|---|---|
| LoyaltyProgram.location_ids | always present | may be missingno longer guaranteed present |
| LoyaltyProgram.location_ids | array | array|nullcan now be null |
Code that breaks
// response.location_ids may now be absent or null const location_ids = response.location_ids ?? fallback;
Based on Square’s published API specification. How severity is decided.