~/talk

Better APIs with Shareable Validation Logic

Talkat GopherCon Europe 2020 · 2020-06-15..06-18· [api-design, developer-experience]
slides:none on file

CUE is used as a middle layer to convert between Go, OpenAPI and JSON Schema, merge schemas deterministically and surface conflicts as errors; conversions from protobuf and CRD composition are demonstrated with the Istio pipeline. A small toolchain extracts validation logic from Go via SSA, generates CUE, and emits OpenAPI; extraction yields 100% detection of validation sites and ~90% coverage of error paths in the demo. Live merges use the CUE unification engine and show failing merges for incompatible constraints.

AI-written summary · about

  1. 0:00Introduction
  2. 2:20Shareable Validation Logic
  3. 5:40Queue
  4. 9:13Demo
  5. 13:10Source of truth
  6. 17:35Shareable QA
  7. 20:28Results
  8. 22:50Questions
~/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.