{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/aqua-policy-yaml/latest.json",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/policy.json",
    "sourceSha256": "7adcf64ee8de7c9e8a0af9b48dc78136e9771bab4faf21431ab86172902a7565",
    "fileMatch": [
      ".aqua-policy.yaml",
      "aqua-policy.yaml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "$ref": "#/$defs/ConfigYAML",
  "$defs": {
    "ConfigYAML": {
      "properties": {
        "registries": {
          "items": {
            "$ref": "#/$defs/Registry"
          },
          "type": "array"
        },
        "packages": {
          "items": {
            "$ref": "#/$defs/Package"
          },
          "type": "array"
        }
      },
      "required": [
        "registries"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "Package": {
      "properties": {
        "name": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "registry": {
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "Registry": {
      "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"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  }
}
