Hi everyone! Is there a chance to use multiple "ma...
# help
m
Hi everyone! Is there a chance to use multiple "matchesJsonPath" with "expression" inside? Like that
Copy code
"bodyPatterns": [
  {
    "matchesJsonPath": {
      "expression": "$.abc",
      "contains": "123"
    }
  },
  {
    "matchesJsonPath": {
      "expression": "$.qwe",
      "contains": "321"
    }
  }
]
r
hi maxim, yes you can put as many body matchers in your stub as you like. all matchers will need to match in order for the stub to be matched
m
Thanks a bunch, Rafe! Will check)
👍 1