mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-26 02:51:04 +01:00
Updated Request Matching (markdown)
@@ -16,6 +16,7 @@ At this moment these matchers are supported:
|
||||
* [LinqMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#dynamic-linq-linqmatcher)
|
||||
* [CSharpCodeMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#csharp-code-csharpcodematcher)
|
||||
* [JsonMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#json-jsonmatcher)
|
||||
* [JsonPartialMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#json-jsonpartialmatcher)
|
||||
* [JsonPathMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#json-path-jsonpathmatcher)
|
||||
* [JmesPathMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#jmes-path-jmespathmatcher)
|
||||
* [XPathMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#xpathmatcher)
|
||||
@@ -265,7 +266,6 @@ server
|
||||
{ "x": 42, "s": "?" }
|
||||
```
|
||||
|
||||
|
||||
#### C# option 3
|
||||
It's also possible to use set `IgnoreCase` to true, this means that the PropertNames and PropertyValues will be matced regarding any case.
|
||||
```csharp
|
||||
@@ -317,6 +317,8 @@ server
|
||||
{ "X": 42, "s": "S" }
|
||||
```
|
||||
|
||||
|
||||
|
||||
### JSON Path (JsonPathMatcher)
|
||||
Deems a match if the attribute value is valid JSON and matches the JSON Path expression supplied.
|
||||
A JSON body will be considered to match a path expression if the expression returns either a non-null single value (string, integer etc.), or a non-empty object or array.
|
||||
|
||||
Reference in New Issue
Block a user