Sha256: f079eb9e26bb851db6f2525f27ff1c5611cb4d8c6b5ea5ca48b48b3962630925

Contents?: true

Size: 839 Bytes

Versions: 3

Compression:

Stored size: 839 Bytes

Contents

{
  "name": "Strict Contract",
  "request": {
    "http_method": "GET",
    "path": "/strict",
    "headers": {
      "Accept": "application/json"
    },
    "params": {}
  },

  "response": {
    "status": 200,
    "headers": { "Content-Type": "application/json" },
    "schema": {
      "$schema": "http://json-schema.org/draft-03/schema#",
      "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

3 entries across 3 versions & 1 rubygems

Version Path
pacto-0.4.0.rc3 spec/fixtures/contracts/legacy/strict_contract.json
pacto-0.4.0.rc2 spec/fixtures/contracts/legacy/strict_contract.json
pacto-0.4.0.rc1 spec/fixtures/contracts/strict_contract.json