danielgtaylor / danielgtaylor/huma
Nested header on input
Open
question
- Dominant language
- Go
- Stars
- 4.4k
- Forks
- 285
- Avg merge
- 40m
- Merged PRs (30d)
- 1
Description
I see that it is a common pattern with `Huma` that the body, both in the input and output, is to be created inside the nested struct field `Body`. Is it possible to do the same with headers and path/query parameters? Something like:
```go
type MyInput struct {
Headers struct {
UserIP string `header:"user-ip"`
}
Body struct {
Name string `json:"name"`
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.