Huma is a REST API framework for Go that generates OpenAPI 3.1 documentation and JSON Schema automatically from your code.
The framework solves the problem of keeping API documentation in sync with implementation and provides guardrails against common mistakes in HTTP API design. It works by letting you define request and response types as Go structs, then automatically generates complete OpenAPI 3.1 specifications and JSON Schema from those definitions. The tool supports incremental adoption into existing services by allowing you to bring your own router, middleware, and logging or metrics systems rather than forcing a complete rewrite.
Teams should choose Huma if they value automatically generated, always-accurate API documentation and want to avoid the maintenance burden of keeping OpenAPI specs synchronized with code changes. It suits projects where developers need high-quality generated tooling for API consumers and where preventing common HTTP API mistakes matters. The framework is designed for both greenfield REST APIs and HTTP RPC services in Go, and works well for teams that already have existing services and want to adopt it incrementally rather than all at once.
The project shows consistent development activity with regular updates to the codebase. Maintenance is responsive to issues and pull requests. The documentation is comprehensive and actively maintained across multiple languages. The project maintains a stable API surface while continuing to add refinements and improvements to the OpenAPI and JSON Schema generation layer.