{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "required": [
    "pipeline"
  ],
  "properties": {
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "environment": {
      "type": "object"
    },
    "schedule": {
      "type": "object",
      "properties": {
        "crontab": {
          "type": "string"
        }
      }
    },
    "pipeline": {
      "type": "array",
      "minLength": 1,
      "items": {
        "type": "object",
        "oneOf": [
          {
            "required": [
              "run"
            ]
          },
          {
            "required": [
              "flow"
            ]
          }
        ],
        "properties": {
          "run": {
            "type": "string"
          },
          "parameters": {
            "type": "object"
          },
          "cache": {
            "type": "boolean"
          },
          "validate": {
            "type": "boolean"
          }
        }
      }
    },
    "dependencies": {
      "type": "array",
      "items": {
        "type": "object",
        "maxProperties": 1,
        "properties": {
          "datapackage": {
            "type": "string",
            "format": "uri"
          },
          "pipeline": {
            "type": "string"
          }
        }
      }
    }
  }
}