{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/aqua-yaml/latest.json",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/aqua-yaml.json",
    "sourceSha256": "306717115c8e99441a0321acc8fcd10d413f7ebf0f628432507afa0399a5db55",
    "fileMatch": [
      ".aqua.yaml",
      ".aqua.yml",
      "aqua.yaml",
      "aqua.yml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "$ref": "#/$defs/Config",
  "$defs": {
    "Checksum": {
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "require_checksum": {
          "type": "boolean"
        },
        "supported_envs": {
          "$ref": "#/$defs/SupportedEnvs"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "CommandAlias": {
      "properties": {
        "command": {
          "type": "string"
        },
        "alias": {
          "type": "string"
        },
        "no_link": {
          "type": "boolean"
        }
      },
      "required": [
        "command",
        "alias"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "Config": {
      "properties": {
        "packages": {
          "items": {
            "$ref": "#/$defs/Package"
          },
          "type": "array"
        },
        "registries": {
          "$ref": "#/$defs/Registries"
        },
        "checksum": {
          "$ref": "#/$defs/Checksum"
        },
        "import_dir": {
          "type": "string"
        }
      },
      "required": [
        "registries"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "Package": {
      "properties": {
        "name": {
          "type": "string"
        },
        "registry": {
          "type": "string",
          "description": "Registry name",
          "default": "standard",
          "examples": [
            "foo",
            "local"
          ]
        },
        "version": {
          "type": "string"
        },
        "import": {
          "type": "string"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "description": {
          "type": "string"
        },
        "link": {
          "type": "string"
        },
        "update": {
          "$ref": "#/$defs/Update"
        },
        "go_version_file": {
          "type": "string"
        },
        "version_expr": {
          "type": "string"
        },
        "version_expr_prefix": {
          "type": "string"
        },
        "vars": {
          "type": "object"
        },
        "command_aliases": {
          "items": {
            "$ref": "#/$defs/CommandAlias"
          },
          "type": "array"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "Registries": {
      "items": {
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "standard",
              "local",
              "github_content"
            ]
          },
          "repo_owner": {
            "type": "string"
          },
          "repo_name": {
            "type": "string"
          },
          "ref": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "private": {
            "type": "boolean"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "type": "array"
    },
    "SupportedEnvs": {
      "items": {
        "type": "string",
        "enum": [
          "all",
          "darwin",
          "linux",
          "windows",
          "amd64",
          "arm64",
          "darwin/amd64",
          "darwin/arm64",
          "linux/amd64",
          "linux/arm64",
          "windows/amd64",
          "windows/arm64"
        ]
      },
      "type": "array"
    },
    "Update": {
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "allowed_version": {
          "type": "string"
        },
        "types": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  }
}
