-
-
Notifications
You must be signed in to change notification settings - Fork 482
Open
Description
Hi,
I have an api that returns something like:
Map<string, List<RandomObject>>
I try to create a pact file for PactSpecVersion.V3.
With pact-jvm 3.6.13 the mock
newJsonBody(root -> root.minArrayLike('Item1', 1, obj -> ....
works fine. This generates:
"matchingRules": { "body": { "$.Item1": { "matchers": [ { "match": "type", "min": 1 } ], "combine": "AND" }
But when I do the same with 4.6.11 then I get:
"matchingRules": { "body": { "$[Item1]": { "combine": "AND", "matchers": [ { "match": "type", "min": 1 } ] }
The producer-test throws an exception when there are brackets around Item1,
Do you have an idea what I'm doing wrong? Is there another api for my needs?
Thanks for your help!
Metadata
Metadata
Assignees
Labels
No labels