Generate OpenAPI Schema from Golang Code with the Fuego Framework.
summary
A Go-first framework that generates OpenAPI v3 directly from Go types and routes, using generics and the standard library and producing docs at server start or on demand. Demo builds endpoints (hello, books), shows content negotiation (JSON/XML), centralized RFC-compliant error handling, validation and CLI generates CRUD controllers that scaffold resources. Project claims exactly matching spec-to-code, reports 900+ stars and 25 contributors, and the generated spec and UI work live in the demo.
AI-written summary · about
chapters (9)
- 0:00Introduction to Fuego
- 1:05The importance of OpenAPI
- 3:03Code-first vs. Doc-first
- 4:27Benefits of code-first
- 7:03Why create Fuego for Go?
- 8:57Fuego core features
- 10:42Integrating Fuego
- 12:59Hands-on demo
- 21:16Conclusion and community
related talks
26mOpenAPI Generator - The Babel Fish of the API World
35mShow Me the Schema! RPCs and Learning to Love Code Gen
40mOpenAPI Generator: 4000 stars on GitHub and spaghetti
30mOne Spec to Rule them all - OpenAPI in Action
27mGiving Cloud Foundry APIs Their Swagger Back
40mFrom Bland to Spiky: How Generics Made My Service Super Robust
39mAPI Development in 2017
24mGoing GraphQL
