Open shubhankard34 opened 1 year ago
@uglyog I remember seeing a similar issue, perhaps it was with Pact JVM. Do you know if this is supported in the rust core?
I have never seen this issue before. If there is a slash in the key, it needs to be escaped. I.e, the matching rule in the Pact file should be something like:
"matchingRules": {
"$.body['/someInteger']": {
"match": "type"
}
}
Software versions
Issue Checklist
Please confirm the following:
Expected behaviour
Consider this partial interaction:
The corresponding generated JSON file has matchers applied as follows:
But if the key includes a forward-slash (
/
) like so:The generated JSON doesn't contain
matchingRules
like so:Steps to reproduce
Use a matcher for a property of an object with key that includes a forward slash.