You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"", errors.New("found float, the usage of which is highly discouraged, as support for them varies across languages. Please consider serializing your float as string instead. If you are really sure you want to use them, re-run with crd:allowDangerousTypes=true")
573
+
return"", "", errors.New("found float, the usage of which is highly discouraged, as support for them varies across languages. Please consider serializing your float as string instead. If you are really sure you want to use them, re-run with crd:allowDangerousTypes=true")
572
574
}
573
575
default:
574
-
return"", fmt.Errorf("unsupported type %q", basic.String())
576
+
return"", "", fmt.Errorf("unsupported type %q", basic.String())
575
577
}
576
578
577
-
returntyp, nil
579
+
switchbasic.Kind() {
580
+
casetypes.Int32, types.Uint32:
581
+
format="int32"
582
+
casetypes.Int64, types.Uint64:
583
+
format="int64"
584
+
}
585
+
586
+
returntyp, format, nil
578
587
}
579
588
580
589
// Open coded go/types representation of encoding/json.Marshaller
0 commit comments