Sha256: 8b9653fa239e33cc780f97d5660fa56b4c4337c55d8615a457148a8403e39265

Contents?: true

Size: 542 Bytes

Versions: 3

Compression:

Stored size: 542 Bytes

Contents

{
  "description": "a request to make something",
  "providerState" : null,
  "request" : {
    "method" : "POST",
    "path" : "/something",
    "body": {
      "name": "Mary"
    },
    "requestMatchingRules": {
      "$.body.name" : {"regex" : ".+"}
    }
  },
  "response" : {
    "status" : 200,
    "body" : {
      "_links" : {
        "self" : {
          "href" : "http://localhost:1234/things/1"
        }
      }
    },
    "responseMatchingRules" : {
      "$.body._links.self.href": {"regex": "http:\\/\\/.*\\/\\d+"}
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pact-support-0.4.0 spec/fixtures/interaction-with-matching-rules.json
pact-support-0.3.1 spec/fixtures/interaction-with-matching-rules.json
pact-support-0.3.0 spec/fixtures/interaction-with-matching-rules.json