DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
API Development Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
API Development
In the Implement It Yourself example, why does deriving the OpenAPI path doc from UserSchema (rather than hand-writing it) help prevent drift?
A
It doesn't actually help — hand-writing and deriving are equally prone to drift
B
A rename to UserSchema becomes a SINGLE edit that propagates to both runtime validation AND the generated doc, rather than requiring a human to remember a SEPARATE edit to a hand-written spec
C
Deriving the doc makes the API run faster
D
This approach only works for GraphQL APIs
Check Answer