Support basepath from servers (#675)

* Support basepath from servers

* Refactor BasePath

* Comments applied
This commit is contained in:
Daniel L. Romero
2021-11-02 09:28:02 -05:00
committed by GitHub
parent c3ec3a66b3
commit 49e10ed20f
2 changed files with 25 additions and 9 deletions

View File

@@ -62,7 +62,7 @@ namespace WireMock.Net.OpenApiParser
[PublicAPI]
public IEnumerable<MappingModel> FromDocument(OpenApiDocument openApiDocument, WireMockOpenApiParserSettings settings = null)
{
return new OpenApiPathsMapper(settings).ToMappingModels(openApiDocument.Paths);
return new OpenApiPathsMapper(settings).ToMappingModels(openApiDocument.Paths, openApiDocument.Servers);
}
}
}