Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion huma.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func _findInType[T comparable](t reflect.Type, path []int, result *findResult[T]
result.Paths = append(result.Paths, findResultPath[T]{fi, v})
}
}
if f.Anonymous || recurseFields || deref(f.Type).Kind() != reflect.Struct {
if f.Anonymous || recurseFields || deref(f.Type).Kind() != reflect.Struct || f.Tag.Get("recursive") == "true" {
// Always process embedded structs and named fields which are not
// structs. If `recurseFields` is true then we also process named
// struct fields recursively.
Expand Down