Justin Berger
03/30/2022, 9:23 PMval pact = ConsumerPactBuilder
.consumer("Android")
.pactSpecVersion(PactSpecVersion.V2)
...
.willRespondWith()
.status(200)
.body(
newJsonObject {
this.`object`("data") { o ->
o.integerType("created_at", 1648049202)
}
}
)
I was hoping that setting it to pact spec 2 it would generate (yeah, it's still not quite v2, but go supports the v3 doc, just not the v3 matchers)
"$.data.tokens[0].created_at": {
"combine": "AND",
"matchers": [
{
"match": "type"
}
]
},
but instead it's still generating te v3 matcher (which isn't yet supported in go, which is what our producer is written in)
"$.data.tokens[0].created_at": {
"combine": "AND",
"matchers": [
{
"match": "integer"
}
]
},
uglyog
uglyog
Justin Berger
03/30/2022, 10:18 PM