Sha256: 00fb6e1b892fe2d821869d25abefb011557423f699fd713be0289593d821889f

Contents?: true

Size: 1.15 KB

Versions: 110

Compression:

Stored size: 1.15 KB

Contents

{
  "provider": {
    "name": "Some Provider"
  },
  "consumer": {
    "name": "Some Consumer"
  },
  "interactions": [
    {
      "description": "a request for alligators in BrĂ¼ssel",
      "provider_state": "alligators exist",
      "request": {
        "method": "get",
        "path": "/alligators"
      },
      "response": {
        "headers" : {"Content-Type": "application/json"},
        "status" : 200,
        "body" : {
          "alligators": [{
            "name": "Bob",
            "phoneNumber" : {
              "json_class": "Pact::Term",
              "data": {
                "generate": "12345678",
                "matcher": {"json_class":"Regexp","o":0,"s":"\\d+"}
              }
            }
          }]
        }
      }
    },{
      "description": "a request for polar bears",
      "provider_state": null,
      "request": {
        "method": "get",
        "path": "/polar-bears"
      },
      "response": {
        "headers" : {"Content-Type": "application/json"},
        "status" : 404,
        "body" : {
          "message": "Sorry, due to climate change, the polar bears are currently unavailable."
        }
      }
    }
  ]
}

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
pact_broker-2.75.0 spec/support/markdown_pact.json
pact_broker-2.74.1 spec/support/markdown_pact.json
pact_broker-2.74.0 spec/support/markdown_pact.json
pact_broker-2.73.0 spec/support/markdown_pact.json
pact_broker-2.72.0 spec/support/markdown_pact.json
pact_broker-2.71.0 spec/support/markdown_pact.json
pact_broker-2.70.0 spec/support/markdown_pact.json
pact_broker-2.69.0 spec/support/markdown_pact.json
pact_broker-2.68.1 spec/support/markdown_pact.json
pact_broker-2.68.0 spec/support/markdown_pact.json
pact_broker-2.67.0 spec/support/markdown_pact.json
pact_broker-2.66.0 spec/support/markdown_pact.json
pact_broker-2.65.0 spec/support/markdown_pact.json
pact_broker-2.64.0 spec/support/markdown_pact.json
pact_broker-2.63.0 spec/support/markdown_pact.json
pact_broker-2.62.0 spec/support/markdown_pact.json
pact_broker-2.61.0 spec/support/markdown_pact.json
pact_broker-2.60.1 spec/support/markdown_pact.json
pact_broker-2.60.0 spec/support/markdown_pact.json
pact_broker-2.59.2 spec/support/markdown_pact.json