Skip to content

Commit 1a285df

Browse files
committed
Allows the primitive value map recursive injection sub-keys
1 parent d300cff commit 1a285df

21 files changed

+290
-229
lines changed

conf/bind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func bindMap(p *Properties, v reflect.Value, t reflect.Type, param BindParam, fi
316316
et := t.Elem()
317317
ret := reflect.MakeMap(t)
318318

319-
keys, err := p.storage.SubKeys(param.Key)
319+
keys, err := p.storage.SubKeys(param.Key, utils.IsPrimitiveValueType(et))
320320
if err != nil {
321321
return fmt.Errorf("bind %s error: %w", param.Path, err)
322322
}

0 commit comments

Comments
 (0)