{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/dbt-dependencies/latest.json",
  "title": "dependencies",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/dbt-labs/dbt-jsonschema/main/schemas/latest/dependencies-latest.json",
    "sourceSha256": "b502d09d5dfdab511fc1e343bb69ecdc3935b0454d00f8a99811830a09b38711",
    "fileMatch": [
      "**/*dbt*/dependencies.yaml",
      "**/*dbt*/dependencies.yml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "packages": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "package",
              "version"
            ],
            "properties": {
              "version": {
                "title": "Package version",
                "description": "A semantic version string or range, such as [\">=1.0.0\", \"<2.0.0\"]",
                "type": [
                  "array",
                  "number",
                  "string"
                ]
              },
              "install-prerelease": {
                "title": "Install Prerelease",
                "description": "Opt in to prerelease versions of a package",
                "type": "boolean"
              },
              "package": {
                "title": "Package identifier",
                "description": "Must be in format `org_name/package_name`. Refer to hub.getdbt.com for installation instructions",
                "type": "string",
                "examples": [
                  "dbt-labs/dbt_utils"
                ],
                "pattern": "^[\\w\\-\\.]+/[\\w\\-\\.]+$"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "private"
            ],
            "properties": {
              "private": {
                "title": "Package identifier",
                "description": "Must be in format `org_name/package_name`. Refer to docs.getdbt.com for installation instructions",
                "type": "string",
                "examples": [
                  "dbt-labs/private_dbt_utils"
                ],
                "pattern": "^[\\w\\-\\.]+/[\\w\\-\\.]+$"
              },
              "revision": {
                "title": "Revision",
                "description": "Pin your package to a specific release by specifying a release name",
                "type": "string"
              },
              "subdirectory": {
                "title": "Repo subdirectory",
                "description": "Subdirectory of the repo where the dbt package is located",
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "git"
            ],
            "properties": {
              "git": {
                "title": "Git URL",
                "type": "string"
              },
              "revision": {
                "title": "Revision",
                "description": "Pin your package to a specific release by specifying a release name",
                "type": "string"
              },
              "subdirectory": {
                "title": "Subdirectory",
                "description": "Only required if the package is nested in a subdirectory of the git project",
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "name",
              "tarball"
            ],
            "properties": {
              "name": {
                "description": "dbt will create a subdirectory in your `packages-install-path` with this name, and the tarball's source code will be installed here.",
                "type": "string"
              },
              "tarball": {
                "title": "Internally-hosted tarball URL",
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "local": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "minItems": 1
    },
    "projects": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
