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

So i'm trying to get my head around how I can utilise common headers in all my responses. I tried the following ``` type CommonHeaders struct { MyHeader string `header:"X-My-Header"`...

I am looking at migrating to use huma in a project but one thing that is blocking me is support for requests such as `/path?foo=bar&foo=baz`. This is especially useful when...

enhancement

Hi, When using a chi router I get a fmt.Println message: warning: unable to set write deadline. I understand chi is not implementing this interface but only the go 1.22...

question

@danielgtaylor @victoraugustolls Thanks for the prototype solution in #386 and #387 for setting headers in error responses. While it worked well initially, I've hit a case where I don't see...

question

Quick question. Using the `readOnly` tag. I can see that it effectively removes the field from the documentation for POST/PATCH requests, but it doesn't actually seem to have any validatory...

question

With Go < 1.22 I get this error when running the tutorial: ``` ../../go/pkg/mod/github.com/danielgtaylor/huma/[email protected]/formdata.go:173:21: undefined: slices.Concat ``` I think slices.Concat is new in 1.22. With 1.22.4 the tutorial works fine....

bug

i have following type which im returning. type InstanceArrayResponse struct { Body []*InstanceBody } if the Body is now an empty array i get null as a response when testing...

question

I think we have spotted a data race when consuming the raw body of the input across multiple go routines. Here a minimal environment where we manage to reproduce this:...

bug

I have defined 2 structs, named Notice, and User. The Notice struct has a field of type User with `json:"user" readOnly:"true"` but it ends up in the Body for a...

question

https://github.com/danielgtaylor/huma/blob/6019e80758fc8b209c5e1a4e319d429572104f35/validate.go#L543 When using a custom `RequestBody` in a `huma.Operation` given to the `huma.Register` function, `s.propertyNames` field is only populated when the `PrecomputeMessages()` method is explicitly called on the `Schema` given...

bug