danielgtaylor / danielgtaylor/huma

Header tag not working for generic types

Open
#692 0 comments 1 reaction 1 assignee Claimed by @wolveix View on GitHub
bug
Dominant language
Go
Stars
4.4k
Forks
285
Avg merge
40m
Merged PRs (30d)
1

Description

```go
type OutputResp[B any, H any] struct {
Body comm.ResponseT[B] `json:",inline" doc:",inline"`
Header H `json:",inline" header:",inline" doc:",inline"`
}
```

I'm trying to wrap my response with a generic type. While the body is working correctly, I'm having issues with the header. The response header doesn't display my custom headers.

![image](https://github.com/user-attachments/assets/717704ae-c7f0-4ac4-871d-001eaddc2a46)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.