How to match number with JsonPartialWildcardMatcher
See original GitHub issueI have the following body matcher in json mapping file and I would like to match any number for price field.
"Body": {
"Matcher": {
"Name": "JsonPartialWildcardMatcher",
"Pattern": {
"applicationId": "*",
"currency": "EUR",
"price": *,
"externalId": "*",
"transactionDescription": "*",
},
"IgnoreCase": false
}
}
The file loading crashes with File xyz.json could not be read. This file will be skipped. probably because it is not a valid json file. If I specify:
"price": "*"
no matching happens (No matching mapping found). Using AllowPartialMapping=false
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
Request Matching JsonPartialWildcardMatcher
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating.
Read more >Request Matching JsonPartialMatcher · WireMock-Net ...
Example for C# when you want to match the id for any number. var server = WireMockServer.Start(); server .
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

For me, I confirm that this release allows me to match numbers using regex expression. Thank you for support.
@robertmircea I can fix this by allowing a regular expression:
So in your case: