huma icon indicating copy to clipboard operation
huma copied to clipboard

Huma REST/HTTP API Framework for Golang with OpenAPI 3.1

Results 66 huma issues
Sort by recently updated
recently updated
newest added

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...

question

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...

question

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 =...

question

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....

question

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, "") }...

enhancement