Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,22 @@ func unmarshalAttribute(
return
}

func handleIntSlice(
attribute interface{},
fieldType reflect.Type,
fieldValue reflect.Value) (reflect.Value, error) {

v := reflect.ValueOf(attribute)

values := make([]int, v.Len())
for i := 0; i < v.Len(); i++ {
ve := v.Index(i)
values[i] = int(ve.Interface().(float64))
}

return reflect.ValueOf(values), nil
}

func handleStringSlice(attribute interface{}) (reflect.Value, error) {
v := reflect.ValueOf(attribute)
values := make([]string, v.Len())
Expand Down