We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db9cebd commit f41fd20Copy full SHA for f41fd20
protoc-gen-openapiv2/internal/genopenapi/template_test.go
@@ -2654,13 +2654,13 @@ func TestValidateDefaultValueType(t *testing.T) {
2654
},
2655
{
2656
"integer",
2657
- fmt.Sprint(math.MaxInt32 + 1),
+ fmt.Sprint(int64(math.MaxInt32) + 1),
2658
"int32",
2659
errors.New("the provided default value \"2147483648\" does not match provided format \"int32\""),
2660
2661
2662
2663
- fmt.Sprint(math.MaxInt64),
+ fmt.Sprint(int64(math.MaxInt64)),
2664
"int64",
2665
nil,
2666
0 commit comments