Tien Vo
07/28/2023, 6:06 AMeachLike directly, instead copying it code and use it like this:
children: {
value: [uuid(child)],
getValue: () => [uuid(child)],
'pact:matcher:type': 'type',
min: 0,
}
And ffi library happy to create the pact.
At provider side, response can contain "children": [] and the verification still passed.
Is it a bug? Should ffi library prevent to set min = 0 at the first place?
Related to this question https://pact-foundation.slack.com/archives/C9VBGLUM9/p1690472580471449 (example code are there)Matt (pactflow.io / pact-js / pact-go)
Tien Vo
07/28/2023, 2:55 PM