feat(backend): when the convert array element contains an object, waring information occurs, and the object needs to be added to the array element as well

This commit is contained in:
zhuangjie.1125
2025-07-23 15:50:52 +08:00
parent 59729f01b2
commit 3b546369d8
2 changed files with 6 additions and 0 deletions

View File

@@ -154,6 +154,9 @@ func FillIfNotRequired(tInfo *vo.TypeInfo, container map[string]any, k string, s
}
newSubContainer := maps.Clone(subContainer)
if newSubContainer == nil {
newSubContainer = make(map[string]any)
}
for subK, subL := range elemTInfo.Properties {
if err := FillIfNotRequired(subL, newSubContainer, subK, strategy, true); err != nil {