~/talk

Using GraphQL SDL files as executable API Contracts

Talkat apidays New York 2025 · 2025-05-14..05-15· [graphql, api-design]
slides:none on file

Uses GraphQL SDL files as executable API contracts with Specmatic to auto‑generate contract tests, mocks and backward‑compatibility checks; demos run from CLI, Kotlin/Spring Boot and React/Apollo. One SDL yields three basic tests then expands to 73 tests when resiliency and negative cases are enabled, catching a data corruption bug where a non‑null field was accepted as null. Central Git repo of SDLs prevents divergence and a loop test for backward compatibility compares v1/v2 to flag contractions; mocking supports fault simulation (delays) and the generated tests run in CI.

AI-written summary · about

  1. 0:00GraphQL SDL as contracts
  2. 3:58Mock-based GraphQL API problems
  3. 8:48Contract testing demo
  4. 12:20Detecting API deviations
  5. 14:29Resiliency testing with mutations
  6. 18:47Contract repository for versioning
  7. 19:10GraphQL SDL for service virtualization
  8. 23:23Fault simulation with mock servers
  9. 26:55Front-end testing with GraphQL mocks
  10. 27:58Backward compatibility testing
  11. 32:35Contract-driven development
  12. 37:10Shift-left testing benefits
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.