GitHub
04/17/2024, 6:45 AMeachLike sets a min of 0 by default or the documentation is corrected.
Actual behaviour
eachLike sets a min of 1 by default. The documentation states that the length is not checked. Likely introduced in 974d247#diff-884c1c7cbdaafa772a7a428e0ca83ce1fc58f03972dfa0fabcb89106d6ac35f5
Steps to reproduce
Use eachLike for an array property. Run pact consumer tests. See the property received a min of 1. Should look something like this:
"$[*].theArrayProperty": {
"combine": "AND",
"matchers": [
{
"match": "type",
"min": 1
}
]
},
Relevant log files
Please ensure you set logging to DEBUG and attach any relevant log files here (or link to a gist).
As described, I can add logs from a reproduction repo if desired, but I think this might not be required here.
pact-foundation/pact-jsGitHub
04/26/2024, 6:48 AM