{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raidcli.dev/schema/v1/raid-profile.schema.json",
  "title": "Raid Profile Configuration",
  "description": "Configuration for one or more raid profiles.",
  "type": "object",
  "additionalProperties": false,
  "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. Optional — omit for local-only repos that aren't backed by a git remote. When omitted, raid skips cloning and runs install tasks against the existing path."
          }
        },
        "required": ["name", "path"]
      },
      "minItems": 1
    },
    "environments": {
      "$ref": "https://raidcli.dev/schema/v1/raid-defs.schema.json#/properties/environments"
    },
    "install": {
      "$ref": "https://raidcli.dev/schema/v1/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://raidcli.dev/schema/v1/raid-defs.schema.json#/properties/tasks"
      }
    },
    "commands": {
      "$ref": "https://raidcli.dev/schema/v1/raid-defs.schema.json#/properties/commands"
    },
    "verify": {
      "$ref": "https://raidcli.dev/schema/v1/raid-defs.schema.json#/$defs/verifyArray"
    }
  },
  "required": ["name"]
}
