{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/raid-profile/latest.json",
  "title": "Raid Profile Configuration",
  "description": "Configuration for one or more raid profiles.",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/8bitAlex/raid/main/schemas/raid-profile.schema.json",
    "sourceSha256": "fdb63953cafb3497c4c4168c4e46838492f85ec303f04ea02d02bc5cada04fd2",
    "fileMatch": [
      "*.raid.yaml",
      "*.raid.yml",
      "*.raid.json"
    ],
    "parsers": [
      "json",
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the raid profile"
    },
    "repositories": {
      "type": "array",
      "description": "The repositories to include in the raid profile",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the repository"
          },
          "path": {
            "type": "string",
            "description": "The local path to the repository"
          },
          "url": {
            "type": "string",
            "description": "The URL of the repository"
          }
        },
        "required": [
          "name",
          "path",
          "url"
        ]
      },
      "minItems": 1
    },
    "environments": {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/raid-profile/_shared/latest--raid-defs.schema.json#/properties/environments"
    },
    "install": {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/raid-profile/_shared/latest--raid-defs.schema.json#/properties/install"
    },
    "task_groups": {
      "type": "object",
      "description": "Named reusable task sequences. Reference them in any task list with type: Group and ref: <name>.",
      "additionalProperties": {
        "$ref": "https://catalog.lintel.tools/schemas/schemastore/raid-profile/_shared/latest--raid-defs.schema.json#/properties/tasks"
      }
    },
    "commands": {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/raid-profile/_shared/latest--raid-defs.schema.json#/properties/commands"
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}
