Open javiplay opened 1 month ago
I think this is correct behaviour - your matcher is saying "should return at least 3 elements, and each element looks like
Pact is about testing the contract "shape" rather than any particular behaviour details.
@mefellows Would you be able to comment on the change between versions?
I would expect that to be an implementation detail which doesn't affect the contract semantics, but that would be something inside the FFI anyway.
@mefellows Would you be able to comment on the change between versions?
I'd need to check the FFI updates, but I would consider this a bug - it should return the minimum IMO.
I would expect that to be an implementation detail which doesn't affect the contract semantics, but that would be something inside the FFI anyway.
Yes, I think that's correct.
P.S. thank you @javiplay for the nice bug report :)
Previous issues Have you searched the issue tracker to ensure this hasn't been discussed before? Yes but I did not find any discussion on this.
Version information:
Describe the bug When creating contract using MinType to return at least a number of elements in array property only one element is returned by the fake server.
Steps To Reproduce
Expected behavior I would expect the server to return 3 elements instead of one.
Log Output This is the generated contract (after forcing test to pass by expecting one element)
Additional context In previous version it was returning the number of items specified in the contract, this is how it was before: