Fix tags test to ignore pointers to list
@@ -98,6 +98,9 @@ func checkInternalJsonTags(objType reflect.Type, seen *map[reflect.Type]bool, t
if internalTypesWithAllowedJsonTags.Has(objType.Name()) {
return
}
+ if objType.Kind() != reflect.Struct {
+ return
+ }
for i := 0; i < objType.NumField(); i++ {
structField := objType.FieldByIndex([]int{i})
@@ -143,6 +146,10 @@ func checkExternalJsonTags(objType reflect.Type, seen *map[reflect.Type]bool, t
return
}
+ if objType.Kind() != reflect.Struct {
+ return
+ }
+
for i := 0; i < objType.NumField(); i++ {
structField := objType.FieldByIndex([]int{i})
