{
  "$ref": "#/definitions/capabilities",
  "definitions": {
    "capabilities": {
      "type": "object",
      "properties": {
        "profiles": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "enum": [
                  "core",
                  "embed",
                  "companion",
                  "provider"
                ]
              },
              "version": {
                "type": "string",
                "pattern": "^\\d+\\.\\d+$"
              }
            },
            "required": [
              "name",
              "version"
            ],
            "additionalProperties": false
          },
          "minItems": 1
        },
        "stt": {
          "type": "string",
          "enum": [
            "device",
            "hub",
            "none"
          ],
          "default": "none"
        },
        "tts": {
          "type": "string",
          "enum": [
            "device",
            "hub",
            "none"
          ],
          "default": "none"
        },
        "locales": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 2,
            "maxLength": 35
          },
          "default": []
        },
        "audio": {
          "type": "boolean",
          "default": false
        },
        "tools": {
          "type": "boolean",
          "default": false
        }
      },
      "required": [
        "profiles"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schwaizer.ch/ocp/schemas/1.0/capabilities.json"
}
