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:
@@ -391,6 +391,9 @@ func convertToArray(ctx context.Context, in any, path string, t *vo.TypeInfo, op
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
} else if ws != nil {
|
||||
if elemType.Type == vo.DataTypeObject { // If the array type and the element is an object, the converted object will also need to be added to the array when waring occurs
|
||||
out = append(out, newV)
|
||||
}
|
||||
warnings = append(warnings, *ws...)
|
||||
} else { // only correctly converted elements go into the final array
|
||||
out = append(out, newV)
|
||||
|
||||
Reference in New Issue
Block a user