mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-27 03:21:04 +01:00
* Fixes for JsonPath * More tests * Fixes + added tests
This commit is contained in:
@@ -166,7 +166,8 @@ namespace WireMock.Serialization
|
||||
return null;
|
||||
}
|
||||
|
||||
var patterns = matcher.GetPatterns();
|
||||
IStringMatcher stringMatcher = matcher as IStringMatcher;
|
||||
string[] patterns = stringMatcher != null ? stringMatcher.GetPatterns() : new string[0];
|
||||
|
||||
return new MatcherModel
|
||||
{
|
||||
@@ -192,7 +193,9 @@ namespace WireMock.Serialization
|
||||
public static IMatcher Map([CanBeNull] MatcherModel matcher)
|
||||
{
|
||||
if (matcher == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var parts = matcher.Name.Split('.');
|
||||
string matcherName = parts[0];
|
||||
|
||||
Reference in New Issue
Block a user