huma
huma copied to clipboard
Huma REST/HTTP API Framework for Golang with OpenAPI 3.1
Hi, Is there a way to access the validation results in the downstream middlewares and/or handlers in the request pipeline before returning a response? I am happy with the built-in...
Currently in the process of building some of the more complex schemas for an OpenAPI-based API and running into some new issues. I have an example that looks something like...
When I add servers to the OpenAPI configuration the docs page will not load because the openapi.json call returns a 404. ```go apiConfig := huma.DefaultConfig("My API V1", "1.0.0") apiConfig.Info.Description =...
fix #433
Is there any way to generate a REST API using Huma from an OpenAPI spec? The docs mention the opposite, using Huma and `oapi-generator` to reconstruct a server without Huma....
The idea is to have something like ```go type Nullable[T any] struct { Null bool Value T } func (o Nullable[T]) Schema(r huma.Registry) *huma.Schema { return r.Schema(reflect.TypeOf(o.Value), true, "") }...