ITV / scala-pact

A Scala implementation of CDC using the Pact standard
Other
108 stars 54 forks source link

Issue with bodyRegexRule #100

Open gokcekoyun opened 6 years ago

gokcekoyun commented 6 years ago

I have a response body like this: { "user" : [ { "data" : { "address" : { "street" : "GIR", "postcode" : "WC1" }, "timeStamp" : "2016-12-03T12:56:30" } } ] } As part of "matchingRules" I'd like to add a bodyRegexRule which looks like this: bodyRegexRule("user[].data.timeStamp", "")

But this fails to verify.

Whereas, if I have a bodyTypeRule like the following, it's fine: bodyTypeRule("user[*].data.timeStamp")

The headerRegexRule seems to be working fine.