~/talk

OpenAPI & .NET: You're Doing It Wrong!

Talkat Build Stuff 2023 Β· 2023-11-15..11-17Β· [api-design, dotnet]
slides:none on file

Argument: stop auto-generating Swagger from controllers and handwrite OpenAPI as the source of truth. Concrete workflow: use OpenAPI 3.1 YAML checked into GitHub, run a bundler (Redocly or a .NET bundler) in GitHub Actions to produce a single spec, publish static docs with Elements or Redocly, and generate clients or skeleton servers. At a UK financial shop with ~20 teams this cuts duplicated markdown, produces real examples and descriptions, enables validations, analyzers and tests, and surfaces mismatch warnings early.

AI-written summary Β· about

  1. 0:00πŸš€ Build Stuff Conference – Get Your Tickets!
  2. 0:35Introduction: What is OpenAPI and Why Does It Matter?
  3. 3:00The Flaws of Auto-Generated OpenAPI Docs
  4. 5:28OpenAPI in the .NET Ecosystem: Swashbuckle vs. Handwritten Specs
  5. 8:01A Better Way: Writing OpenAPI Specs by Hand
  6. 9:14Real-World Example: Implementing OpenAPI in a Financial Microservices System
  7. 12:05The Role of OpenAPI in API Design and Communication
  8. 15:00Why Handwriting OpenAPI Spec is Better Than Auto-Generation
  9. 18:47Exploring the OpenAPI 3.0 vs. 3.1 Changes
  10. 22:30Writing and Structuring OpenAPI YAML Files by Hand
  11. 27:00Using GitHub Actions to Automate Documentation Generation
  12. 30:00Integrating OpenAPI into Your Development Workflow
  13. 33:15Using OpenAPI with Swagger UI and Elements for Interactive Docs
  14. 37:00How OpenAPI Fits with Other Tools and API Models (e.g., gRPC, AsyncAPI)
  15. 41:10Final Thoughts and Best Practices for OpenAPI in .NET
~/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.