{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/devinit/versions/4.0.json",
  "title": "Codespaces DevInit Configuration",
  "x-lintel": {
    "source": "https://www.schemastore.org/devinit.schema-4.0.json",
    "sourceSha256": "db747343dc0d29751bdbd84190a61b8d2fef5dd246255eb6dbf128d30925567e",
    "fileMatch": [
      "devinit.json",
      ".devinit.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string"
    },
    "run": {
      "title": "The list of tools to run",
      "description": "'devinit.exe init' runs this list of tools sequentially. See also 'devinit.exe run'.",
      "items": {
        "allOf": [
          {
            "$ref": "#/$defs/runObject"
          }
        ],
        "anyOf": [
          {
            "$ref": "#/$defs/runObject"
          }
        ]
      }
    },
    "comments": {
      "title": "Comments",
      "description": "Comments for this file. For documentation only; ignored by the tool.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "run"
  ],
  "$defs": {
    "runObject": {
      "type": "object",
      "required": [
        "tool"
      ],
      "properties": {
        "tool": {
          "title": "The tool name",
          "description": "The name of the tool to run.",
          "type": "string",
          "enum": [
            "apt-get-install",
            "azurecli-login",
            "choco-install",
            "choco-upgrade",
            "dotnet-restore",
            "dotnet-toolinstall",
            "enable-iis",
            "msi-install",
            "npm-install",
            "nuget-restore",
            "require-azureartifactscredentialprovider",
            "require-azurecli",
            "require-choco",
            "require-dotnetcoresdk",
            "require-dotnetframeworksdk",
            "require-gitsubmodule",
            "require-mssql",
            "require-nodejs",
            "require-npm",
            "require-nuget",
            "require-psmodule",
            "require-vcpkg",
            "require-vscomponent",
            "require-winget",
            "set-env",
            "vcpkg-install",
            "windowsfeature-disable",
            "windowsfeature-enable",
            "windowsfeature-list",
            "winget-install",
            "wsl-install"
          ]
        },
        "input": {
          "title": "The tool input",
          "description": "The input varies by tool. For example, the required version number, the package-id, the input source file or source directory.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "additionalOptions": {
          "title": "Additional options",
          "description": "Additional Options to be appended to the tool's command line.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "comments": {
          "title": "Comments",
          "description": "Comments for this tool item. For documentation only; ignored by the tool.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false,
  "id": "https://json.schemastore.org/devinit.schema-4.0.json"
}
