{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "https://flynn.io/schema/examples/base#",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "request",
    "response"
  ],
  "properties": {
    "request": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "method",
        "url",
        "headers"
      ],
      "properties": {
        "method": {
          "type": "string",
          "enum": [
            "GET",
            "POST",
            "PUT",
            "DELETE"
          ]
        },
        "url": {
          "type": "string",
          "_format": "uri"
        },
        "headers": {
          "type": "object"
        },
        "params": {
          "type": "object"
        },
        "body": {
          "type": "object"
        }
      }
    },
    "response": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "headers"
      ],
      "properties": {
        "headers": {
          "type": "object"
        },
        "body": {
        }
      }
    }
  }
}