From cd4e291bcf5b739503e9c5e169d08c628b58a596 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Wed, 30 Mar 2022 08:03:17 -0600 Subject: [PATCH] Fix ExampleValidator test for 32-bit architectures (#516) --- openapi3filter/middleware_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi3filter/middleware_test.go b/openapi3filter/middleware_test.go index 4d88aaf91..930af2ada 100644 --- a/openapi3filter/middleware_test.go +++ b/openapi3filter/middleware_test.go @@ -420,7 +420,7 @@ paths: // requests. squareHandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { xParam := path.Base(r.URL.Path) - x, err := strconv.Atoi(xParam) + x, err := strconv.ParseInt(xParam, 10, 64) if err != nil { panic(err) }