Driftwatch

Square / Square API /

Breaking

errors changed type

What changed

Serialization mismatch. Integer-to-string moves are the usual cause and the usual outage.

Affects CardPaymentDetails reachable from 6 operations.

array|null → array

Who is affected

Code that sends Square's CardPaymentDetails objects, used by 6 Square operations.

Before and after

WhereBeforeAfter
CardPaymentDetails.errorsarray|nullarray

Code that breaks

// payload.errors
// was: array|null
// now: array

Based on Square’s published API specification. How severity is decided.