GitHub
02/28/2023, 3:16 PMconst interaction = {
...
willRespondWith: {
body: {
...
'someInteger': integer(20)
}
}
}
The corresponding generated JSON file has matchers applied as follows:
"response" {
...
"body": {
"someInteger": 20
},
"matchingRules": {
"$.body.someInteger": {
"match": "type"
}
}
}
But if the key includes a forward-slash (/) like so:
const interaction = {
...
willRespondWith: {
body: {
...
'/someInteger': integer(20)
}
}
}
The generated JSON doesn't contain matchingRules like so:
"response" {
...
"body": {
"/someInteger": 20
}
}
Steps to reproduce
Use a matcher for a property of an object with key that includes a forward slash.
pact-foundation/pact-js