Sha256: b3195ab590db3c6a1b2cfa724b75c66c3795f897eb7d15801cf573519a56b68f

Contents?: true

Size: 927 Bytes

Versions: 3

Compression:

Stored size: 927 Bytes

Contents

{
  "request": {
    "headers": {
    },
    "http_method": "get",
    "path": "/api/echo",
    "schema": {
      "type": "object",
      "required": ["message"],
      "properties": {
        "message": {
          "type": "string"
        }
      }
    }
  },
  "response": {
    "headers": {
      "Content-Type": "application/json"
    },
    "status": 200,
    "schema": {
      "type": "object",
      "required": ["message"],
      "properties": {
        "message": {
          "type": "string"
        }
      }
    }
  },
  "examples": {
    "max": {
      "request": {
        "body": {
          "message": "max"
        }
      },
      "response": {
        "body": {
          "message": "max"
        }
      }
    },
    "12345": {
      "request": {
        "body": {
          "message": 12345
        }
      },
      "response": {
        "body": {
          "message": 12345
        }
      }
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

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