1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-01 15:18:20 +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:
Craig Jellick
2018-03-14 18:57:14 -07:00
parent e0efa84d62
commit cd5dee7857

View File

@@ -125,7 +125,7 @@ func (b *Builder) checkDefaultAndRequired(schema *types.Schema, input map[string
}
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 {
return err
}