{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/azure-iot-edgehub-deployment/versions/1.0.json",
  "title": "JSON schema for Azure IoT EdgeHub Deployment version 1.0",
  "x-lintel": {
    "source": "https://www.schemastore.org/azure-iot-edgehub-deployment-1.0.json",
    "sourceSha256": "27254d7522640e1c21c68e01546506447f2eebcc6c51580d218d2b15c7a96c69"
  },
  "type": "object",
  "properties": {
    "$edgeHub": {
      "type": "object",
      "title": "Configuration for the edgeHub module",
      "required": [
        "properties.desired"
      ],
      "properties": {
        "properties.desired": {
          "type": "object",
          "required": [
            "schemaVersion",
            "routes"
          ],
          "properties": {
            "schemaVersion": {
              "type": "string",
              "pattern": "1.0"
            },
            "routes": {
              "type": "object",
              "patternProperties": {
                "^.+$": {
                  "type": "string",
                  "examples": [
                    "FROM /* INTO $upstream"
                  ],
                  "pattern": "^.+$"
                }
              }
            },
            "storeAndForwardConfiguration": {
              "type": "object",
              "required": [
                "timeToLiveSecs"
              ],
              "properties": {
                "timeToLiveSecs": {
                  "type": "integer",
                  "examples": [
                    7200
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "required": [
    "$edgeHub"
  ],
  "additionalProperties": false
}
