Sha256: 2f47f7d1a013865fae862c5d1ded47ea1f130ad38034eea9508bf68554eb1603

Contents?: true

Size: 967 Bytes

Versions: 2

Compression:

Stored size: 967 Bytes

Contents

{
  "title": "Example Schema",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "required": false
    },
    "request": {
      "type": "object",
      "required": true,
      "properties": {
        "method": {
          "type": "string",
          "required": true          
        },
        "path": {
          "type": "string",
          "required": true
        },
        "headers": {
          "type": "object",
          "required": false
        },
        "params": {   
          "type": "object",
          "required": false
        },
        "body": {
          "$ref": "http://json-schema.org/draft-03/schema#"
        }
      }
    },
    "response": {
      "type": "object",
      "required": true,
      "properties": {
        "status":{
          "type": "integer",
          "required": true
        },
        "body": {
          "$ref": "http://json-schema.org/draft-03/schema#"
        }
      }
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pacto-0.3.1 resources/contract_schema.json
pacto-0.3.0 resources/contract_schema.json