{
    "$schema": "http://json-schema.org/draft/2020-12/schema",
    "$id": "https://schemas.mpai.community/MMC/V2.2/data/Emotion.json",
    "title": "EntityEmotion",
    "type": "object",
    "properties": {
      "Header": {
        "type": "string",
        "pattern": "^MMC-EEM-V[0-9]{1,2}[.][0-9]{1.2}$"
      },
      "MInstanceID": {
        "type": "string"
      },
      "EntityEmotionID": {
        "type": "string"
      },
      "EntityEmotionSpaceTime": {
        "$ref": "https://schemas.mpai.community/OSD/V1.1/data/SpaceTime.json"
      },
      "Emotion": {
        "type": "object",
        "properties": {
          "FusedEmotion": {
            "type": "number",
            "minimum": 0
          },
          "TextEmotion": {
            "type": "number",
            "minimum": 0
          },
          "SpeechEmotion": {
            "type": "number",
            "minimum": 0
          },
          "FaceEmotion": {
            "type": "number",
            "minimum": 0
          },
          "GestureEmotion": {
            "type": "number",
            "minimum": 0
          },
          "EmotionVersion": {
            "type": "string",
            "pattern": "^[A-Za-z]+-\\d+\\.\\d+$"
          }
        },
        "anyOf": [
          {
            "required": [
              "EmotionVersion",
              "Fused Emotion"
            ]
          },
          {
            "required": [
              "EmotionVersion",
              "Text Emotion"
            ]
          },
          {
            "required": [
              "EmotionVersion",
              "Speech Emotion"
            ]
          },
          {
            "required": [
              "EmotionVersion",
              "Face Emotion"
            ]
          },
          {
            "required": [
              "EmotionVersion",
              "Gesture Emotion"
            ]
          }
        ]
      },
      "DescrMetadata": {
        "type": "string"
      }
    }
  }