Skip to content

Commit

Permalink
Merge pull request #67 from akamai/gtm_schema_1.4
Browse files Browse the repository at this point in the history
add addtl check processing GTM domain http response
  • Loading branch information
edglynes authored Jan 27, 2020
2 parents 150b873 + 1e8a70f commit e6a5648
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions configgtm-v1_4/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,8 @@ func processObjectList(objectList []interface{}) map[string]NullPerObjectAttribu
}
}
case "[]interface {}":
//_, ok := objd.([]interface{})
//if !ok {
iSlice := objd.([]interface{})
if len(iSlice) > 0 && reflect.TypeOf(iSlice[0]).Kind() != reflect.String && reflect.TypeOf(iSlice[0]).Kind() != reflect.Int64 {
if len(iSlice) > 0 && reflect.TypeOf(iSlice[0]).Kind() != reflect.String && reflect.TypeOf(iSlice[0]).Kind() != reflect.Int64 && reflect.TypeOf(iSlice[0]).Kind() != reflect.Float64 && reflect.TypeOf(iSlice[0]).Kind() != reflect.Int32 {
objectChildList[makeFirstCharUpperCase(objf)] = processObjectList(objd.([]interface{}))
}
default:
Expand Down

0 comments on commit e6a5648

Please sign in to comment.