Sha256: 15bca14e050d59c651305429273e24b2e5aee6448a905a519dce187df8deed4d

Contents?: true

Size: 742 Bytes

Versions: 2

Compression:

Stored size: 742 Bytes

Contents

{
  "request": {
    "method": "GET",
    "path": "/strict",
    "headers": {
      "Accept": "application/json"
    },
    "params": {}
  },

  "response": {
    "status": 200,
    "headers": { "Content-Type": "application/json" },
    "body": {
      "type": "object",
      "required": true,
      "properties": {
        "devices": {
            "type": "array",
            "minItems": 2,
            "items": {
              "type": "string",
              "required": true,
              "default": "/dev/<%= values[:device_id].tap do values[:device_id] = values[:device_id] + 1 end %>",
              "pattern": "^/dev/[\\d]+$"
            },
            "required": true,
            "uniqueItems": true
        }
      }
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pacto-0.3.1 spec/integration/data/strict_contract.json
pacto-0.3.0 spec/integration/data/strict_contract.json