diff --git a/openapi3/server.go b/openapi3/server.go index 5a817e51..e438e920 100644 --- a/openapi3/server.go +++ b/openapi3/server.go @@ -5,7 +5,6 @@ import ( "encoding/json" "errors" "fmt" - "math" "net/url" "sort" "strings" @@ -174,7 +173,7 @@ func (server Server) MatchRawURL(input string) ([]string, string, bool) { } else if ns < 0 { i = np } else { - i = int(math.Min(float64(np), float64(ns))) + i = min(np, ns) } if i < 0 { i = len(input)