{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/azure-static-web-apps-cli-configuration-file/latest.json",
  "x-lintel": {
    "source": "https://www.schemastore.org/swa-cli.config.json",
    "sourceSha256": "ba0202d2c44c5cfa1e8f0143127b809bb3a95a98d77e7f1629689dbe2e6547aa",
    "fileMatch": [
      "swa-cli.config.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "configurations": {
      "type": "object",
      "additionalProperties": {
        "allOf": [
          {
            "properties": {
              "apiLocation": {
                "description": "API folder or Azure Functions emulator address",
                "type": "string"
              },
              "apiPort": {
                "description": "API backend port",
                "type": "number"
              },
              "apiPrefix": {
                "enum": [
                  "api"
                ],
                "type": "string"
              },
              "appArtifactLocation": {
                "description": "Location of the build output directory relative to the appLocation",
                "type": "string"
              },
              "appLocation": {
                "description": "Location for the static app source code",
                "type": "string"
              },
              "build": {
                "type": "boolean"
              },
              "customUrlScheme": {
                "type": "string"
              },
              "devserverTimeout": {
                "description": "Time to wait(in ms) for the dev server to start",
                "type": "number"
              },
              "host": {
                "description": "CLI host address",
                "type": "string"
              },
              "overridableErrorCode": {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              "port": {
                "description": "set the cli port",
                "type": "number"
              },
              "run": {
                "description": "Run a command at startup",
                "type": "string"
              },
              "ssl": {
                "description": "Serve the app and API over HTTPS",
                "type": "boolean"
              },
              "sslCert": {
                "description": "SSL certificate (.crt) to use for serving HTTPS",
                "type": "string"
              },
              "sslKey": {
                "description": "SSL key (.key) to use for serving HTTPS",
                "type": "string"
              },
              "swaConfigFilename": {
                "enum": [
                  "staticwebapp.config.json"
                ],
                "type": "string"
              },
              "swaConfigFilenameLegacy": {
                "enum": [
                  "routes.json"
                ],
                "type": "string"
              },
              "swaConfigLocation": {
                "type": "string"
              },
              "verbose": {
                "type": "string"
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "context": {
                "type": "string"
              }
            },
            "type": "object"
          }
        ]
      }
    }
  }
}
