{
  "$id": "https://json.schemastore.org/swa-cli.config.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "configurations": {
      "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"
          }
        ]
      },
      "type": "object"
    }
  },
  "type": "object"
}
