-
|
Hey, Is it possible to instruct Huma how to create the OpenAPI spec for embedded structs? Consider: type Meta {
CreatedAt time.Time `json:"created_at" db:"created_at"`
}
type Foo struct {
Meta `json:"meta"`
}Should yield a spec of (This is the behaviour of json.Marshal) {
"meta": {
"created_at": "..."
}
}But it flattens it into: {
"created_at": "..."
} Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
wolveix
Feb 19, 2026
Replies: 1 comment
-
|
Moved to #975 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wolveix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Moved to #975