@@ -24,7 +24,7 @@ import (
2424func FindPath (request * http.Request , document * v3.Document ) (* v3.PathItem , []* errors.ValidationError , string ) {
2525 var validationErrors []* errors.ValidationError
2626
27- basePaths := getBasePaths (request , document )
27+ basePaths := getBasePaths (document )
2828 stripped := StripRequestPath (request , document )
2929
3030 reqPathSegments := strings .Split (stripped , "/" )
@@ -193,7 +193,7 @@ pathFound:
193193 }
194194}
195195
196- func getBasePaths (request * http. Request , document * v3.Document ) []string {
196+ func getBasePaths (document * v3.Document ) []string {
197197 // extract base path from document to check against paths.
198198 var basePaths []string
199199 for _ , s := range document .Servers {
@@ -209,7 +209,7 @@ func getBasePaths(request *http.Request, document *v3.Document) []string {
209209// StripRequestPath strips the base path from the request path, based on the server paths provided in the specification
210210func StripRequestPath (request * http.Request , document * v3.Document ) string {
211211
212- basePaths := getBasePaths (request , document )
212+ basePaths := getBasePaths (document )
213213
214214 // strip any base path
215215 stripped := stripBaseFromPath (request .URL .Path , basePaths )
0 commit comments