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