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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user