API Reliability

API Schema Drift Debugging Guide

Detect API schema drift when fields, types, nullability or nested response shapes change without a coordinated client release. Last updated September 16, 2026.

Detect API schema drift when fields, types, nullability or nested response shapes change without a coordinated client release. This reference is written for developers who need practical validation behavior, reviewable rules and safe examples rather than copied snippets with no explanation.

Recommended workflow

StepWhy it matters
Preserve both payloadsKeep small redacted examples from the last known-good response and the failing response.
Compare structureLook for renamed fields, number-to-string changes, new null values and arrays that became objects.
Find the contract ownerConfirm whether the producer changed intentionally or the consumer relied on undocumented behavior.
Add a regression checkTurn the resolved difference into a schema or consumer contract test.

Starter snippet

capture known-good response -> compare current shape -> classify breaking change -> update contract test

Review checks

Common mistakes

Validation should help users correct input while protecting systems from bad data. Keep syntax checks, product policy, security review and deliverability checks separate.

Related Formalint references

Continue with Json Diff, Json Schema Guide, Api Versioning Strategy Guide.