{
  "id": "app",
  "title": "App",
  "description": "An application definition for http-app-router",
  "type": "object",
  "required": [
    "name",
    "routes",
    "host"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the application."
    },
    "description": {
      "type": "string",
      "description": "A description of the application."
    },
    "routes": {
      "oneOf": [
        {
          "type": "array",
          "description": "The routes the application handles.",
          "items": {
            "type": "string",
            "minItems": 1,
            "uniqueItems": true
          }
        },
        {
          "type": "string",
          "enum": [
            "*"
          ]
        }
      ]
    },
    "host": {
      "type": "string",
      "description": "The application's host where it serves HTTPS requests",
      "format": "hostname"
    },
    "insecure": {
      "type": "boolean",
      "description": "Toggles requests to use HTTP instead of HTTPS",
      "default": false
    },
    "headers": {
      "type": "object",
      "description": "Headers to set on client requests for the app"
    },
    "prefix": {
      "type": "string",
      "description": "Path prefix to strip",
      "default": ""
    },
    "cookies": {
      "type": "array",
      "description": "An array of allowed cookie names that will be passed through to/from the application",
      "items": {
        "type": "string"
      },
      "default": []
    },
    "transforms": {
      "type": "array",
      "description": "A list of HTML transforms to run in series",
      "items": {
        "type": "string",
        "description": "A transform key"
      }
    },
    "timeout": {
      "type": "integer",
      "description": "The maximum amount of time in milliseconds that the application can take to respond",
      "default": 0,
      "minimum": 0
    }
  },
  "additionalProperties": false
}
