DEV Community

The No-Panic Guide to JSON Schema Validation for REST APIs (opens in new tab)

Discussed on DEV

A few years ago, I shipped what looked like a textbook, harmless API update. The endpoint returned valid JSON. Every single local test passed with flying colors. We hit deploy, dusted off our hands, and went to grab coffee. Ten minutes later, Slack exploded. The frontend team was reporting errors across the entire app. The culprit? A seemingly minor refactor: I had changed a property named name to fullName, and dropped another field entirely because "surely nothing is using this anymore." (Na...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help