mirror of
https://github.com/rancher/norman.git
synced 2025-09-06 17:50:25 +00:00
User proper type field when converting array
Previously we were passing the name of the field, not the type
This commit is contained in:
@@ -125,7 +125,7 @@ func (b *Builder) checkDefaultAndRequired(schema *types.Schema, input map[string
|
|||||||
}
|
}
|
||||||
|
|
||||||
if definition.IsArrayType(field.Type) {
|
if definition.IsArrayType(field.Type) {
|
||||||
slice, err := b.convertArray(fieldName, result[fieldName], op)
|
slice, err := b.convertArray(field.Type, result[fieldName], op)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user