~/talk

OpenAPI & .NET: You're Doing It Wrong

Talkat NDC London 2023 · 2023-01-23..01-27· [api-design, dotnet]
slides:none on file

Argues that teams should write and maintain the OpenAPI YAML as the source of truth instead of relying on Swashbuckle/NSwag generation, store it in Git, and bundle into one file for publishing. Shows using Redoc/Elements to produce static, copyable docs and code samples, a GitHub Actions workflow that generates static docs in GitHub Actions, .NET middleware to serve embedded static OpenAPI, and tooling roadmap: a bundler, analyzers that lint code against spec, test generator (openapi.test) and codegen that produces service stubs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30What is OpenAPI
  3. 3:57Misusing OpenAPI in .NET
  4. 8:13Handcrafted OpenAPI better
  5. 13:32When to handcraft specs
  6. 17:10Benefits of handcrafted files
  7. 20:43OpenAPI structure
  8. 30:18Live demo of OpenAPI
  9. 37:08Generating docs from OpenAPI
  10. 42:44Automating docs with GitHub Actions
  11. 47:06OpenAPI 4.0 changes
  12. 51:02OpenAPI tools in .NET
  13. 53:54Replacing Swashbuckle
  14. 56:22Validating API implementations against OpenAPI
  15. 57:46Testing APIs with specs
  16. 58:51Generating code from specs
  17. 1:00:19Resources and closing
~/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.