awesome-everything RU
↑ Back to the climb

APIs

OpenAPI: free-recall review

Crux Free-recall prompts across the OpenAPI unit. Answer each in your own words first, then reveal the model answer and compare.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at senior altitude — in orbit
◷ 14 min

Retrieval beats re-reading. For each prompt, say or write a full answer from memory before opening the model answer — the effort of recall is what makes the contract discipline stick.

Goal

Reconstruct the unit’s spine — why an unenforced spec is fiction, spec-first vs code-first, what codegen and edge validation buy you, what oasdiff catches, and the 3.1 schema shift — without looking back at the lesson.

Recall before you leave
  1. 01
    Why is having an OpenAPI spec not the same as being protected against breaking changes? What actually protects you?
  2. 02
    Define contract drift and name the two mechanisms that prevent it.
  3. 03
    Contrast spec-first and code-first: what differs, and what enforcement do both still need?
  4. 04
    What does codegen buy you, and what makes the difference between a strong generated client and an any-riddled one?
  5. 05
    List the canonical breaking changes a diff tool like oasdiff catches, and one compatible alternative to a breaking change.
  6. 06
    What changed between OpenAPI 3.0 and 3.1, and why does it matter in practice?
Recap

If you could reconstruct each answer from memory, you hold the unit’s spine: an unenforced spec is fiction, and the cure for contract drift is making the spec load-bearing — edge validation and a CI breaking-change diff. Spec-first vs code-first decides where truth lives and whether the contract is reviewed, but both need the same gate. Codegen kills hand-rolled-request bugs only when the schema is tight, oasdiff catches the canonical breaking changes (added required field, removed response field, narrowed type), and OpenAPI 3.1 moves schemas to JSON Schema 2020-12 with type-array nullability. Always: make the contract impossible to break silently.

Continue the climb ↑OpenAPI: spec and diff reading
shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.