mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-31 06:03:03 +02:00
Implement PatternAsFile for StringMatcher (#651)
This commit is contained in:
@@ -260,11 +260,13 @@ namespace WireMock.Server
|
||||
|
||||
private void ProcessWireMockOrgJObjectAndUseIMatcher(JObject items, Action<IMatcher> action)
|
||||
{
|
||||
IMatcher matcher = null;
|
||||
if (!(items.First is JProperty firstItem))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var firstItem = items.First as JProperty;
|
||||
|
||||
if (firstItem?.Name == "equalToJson")
|
||||
IMatcher matcher;
|
||||
if (firstItem.Name == "equalToJson")
|
||||
{
|
||||
matcher = new JsonMatcher(firstItem.Value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user