Can you please share the pact file that is failing...
# pact-js
m
Can you please share the pact file that is failing?
t
Sure,
Copy code
{
  "consumer": {
    "name": "consumer"
  },
  "interactions": [
    {
      "description": "a request to get all events",
      "providerStates": [
        {
          "name": "I can get all events"
        }
      ],
      "request": {
        "method": "GET",
        "path": "/events",
        "query": {
          "limit": [
            "10"
          ],
          "name": [
            ""
          ],
          "offset": [
            "0"
          ]
        }
      },
      "response": {
        "body": {
          "items": [
            {
              "id": "1cb9eb9e",
              "name": "test event 1",
              "teamId": "dummy_tid"
            }
          ],
          "totalCount": 1
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "matchingRules": {
          "body": {
            "$.items": {
              "combine": "AND",
              "matchers": [
                {
                  "match": "type"
                }
              ]
            },
            "$.totalCount": {
              "combine": "AND",
              "matchers": [
                {
                  "match": "type"
                }
              ]
            }
          }
        },
        "status": 200
      }
    }
  ],
  "metadata": {
    "pact-js": {
      "version": "10.1.4"
    },
    "pactRust": {
      "ffi": "0.3.11",
      "models": "0.4.5"
    },
    "pactSpecification": {
      "version": "3.0.0"
    }
  },
  "provider": {
    "name": "provider"
  }
}
m
Thanks. As you can see, it's a v3 pact
t
yep, I use v3 for consumer