{
  "$schema": "http://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.mpai.community/OSD/V1.1/data/AudioVisualEventDescriptors.json",
  "title": "AudioVisualEventDescriptors",
  "type": "object",
  "items": {
    "Header": {
      "type": "string",
      "pattern": "^OSD-AVE-V[0-9]{1,2}[.][0-9]{1,2}$"
    },
    "MInstanceID": {
      "type": "string"
    },
    "AudioVisualEventID": {
      "type": "string"
    },
    "AudioVisualEventSpaceTime": {
      "$ref": "https://schemas.mpai.community/OSD/V1.1/data/SpaceTime.json"
    },
    "AudioVisuaSceneDescriptors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "AVSIDOrAVS": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                      "AudioVisuaSceneDescriptorsID": {
                        "type": "string"
                      }
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "AudioVisuaSceneDescriptors": {
                      "$ref": "https://schemas.mpai.community/OSD/V1.1/data/AudioVisualSceneDescriptors.json"
                    }
                  }
                }
              ]
            }  
          }
        }
      }  
    },
    "DescrMetadata": {
      "type": "string"
    }
  }
}