Driftwatch

Square / Square API /

Breakingdirection flip: their tools call this safe

Response field job_title is no longer guaranteed

What changed

Producer-side tools call this non-breaking. For a consumer it is a null dereference on an unknown future date.

Affects job_title on JobAssignment reachable from 8 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 JobAssignment objects, used by 8 Square operations.

Before and after

WhereBeforeAfter
JobAssignment.job_titlealways presentmay be missingno longer guaranteed present
JobAssignment.job_titlestringnull|stringcan now be null

Code that breaks

// response.job_title may now be absent or null
const job_title = response.job_title ?? fallback;

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