mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-29 19:52:35 +01:00
Update the OpenApiPathsMapper to handle Value/Wildcard (#691)
This commit is contained in:
1 parent
8865543bf1
commit
897ee9ffe3
8 files changed
+77
-58
No files matched your search
@@ -13,7 +13,7 @@ namespace WireMock.Net.OpenApiParser.ConsoleApp
|
||||
{
|
||||
public static class Run
|
||||
{
|
||||
public static WireMockServer RunServer(string path, string url)
|
||||
public static WireMockServer RunServer(string path, string url, bool dynamicExamples = true)
|
||||
{
|
||||
var server = WireMockServer.Start(new WireMockServerSettings
|
||||
{
|
||||
@@ -31,7 +31,9 @@ namespace WireMock.Net.OpenApiParser.ConsoleApp
|
||||
|
||||
var settings = new WireMockOpenApiParserSettings
|
||||
{
|
||||
PathPatternToUse = ExampleValueType.Wildcard
|
||||
DynamicExamples = dynamicExamples,
|
||||
PathPatternToUse = ExampleValueType.Wildcard,
|
||||
HeaderPatternToUse = ExampleValueType.Wildcard
|
||||
};
|
||||
|
||||
server.WithMappingFromOpenApiFile(path, settings, out var diag);
|
||||
|
||||
Reference in new issue
Block a user