{
  "$schema": "http://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.mpai.community/MMC/V2.3/data/SocialAttitude.json",
  "title": "EntitySocialAttitude",
  "type": "object",
  "properties": {
    "Header": {
      "type": "string",
      "pattern": "^MMC-ESA-V[0-9]{1,2}[.][0-9]{1.2}$"
    },
    "MInstanceID": {
      "type": "string"
    },
    "SocialAttitudeID": {
      "type": "string"
    },
    "SocialAttitudeSpaceTime": {
      "$ref": "https://schemas.mpai.community/OSD/V1.2/data/SpaceTime.json"
    },
    "SocAtt": {
      "type": "object",
      "properties": {
        "FusedSocAtt": {
          "type": "number",
          "minimum": 0
        },
        "TextSocAtt": {
          "type": "number",
          "minimum": 0
        },
        "SpeechSocAtt": {
          "type": "number",
          "minimum": 0
        },
        "FaceSocAtt": {
          "type": "number",
          "minimum": 0
        },
        "GestureSocAtt": {
          "type": "number",
          "minimum": 0
        },
        "SocAttVersion": {
          "type": "string",
          "pattern": "^[A-Za-z]+-\\d+\\.\\d+$"
        }
      },
      "anyOf": [
        {
          "required": [
            "SocAttVersion",
            "Fused SocAtt"
          ]
        },
        {
          "required": [
            "SocAttVersion",
            "Text SocAtt"
          ]
        },
        {
          "required": [
            "SocAttVersion",
            "Speech SocAtt"
          ]
        },
        {
          "required": [
            "SocAttVersion",
            "Face SocAtt"
          ]
        },
        {
          "required": [
            "SocAttVersion",
            "Gesture SocAtt"
          ]
        }
      ]
    },
    "DescrMetadata": {
      "type": "string"
    }
  }
}