{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.mpai.community/OSD/V1.2/data/VisualSceneDescriptors.json",
  "title": "VisualSceneDescriptors",
  "type": "object",
  "properties": {
    "Header": {
      "type": "string",
      "pattern": "^OSD-VSD-V[0-9]{1,2}[.][0-9]{1,2}$"
    },
    "MInstanceID": {
      "type": "string"
    },
    "VisualSceneDescriptorsID": {
      "type": "string"
    },
    "VisualSceneDescriptorsSpaceTime": {
      "$ref": "https://schemas.mpai.community/OSD/V1.2/data/SpaceTime.json"
    },
    "VisualObjectCount": {
      "type": "integer"
    },
    "VisualObjectsData": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "VisualObjectSpaceTime": {
            "$ref": "https://schemas.mpai.community/OSD/V1.2/data/SpaceTime.json"
          },
          "VisualObjectIDOrVisualObject": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "VisualObjectID": {
                      "type": "string"
                    }
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "VisualObject": {
                      "$ref": "https://schemas.mpai.community/OSD/V1.2/data/VisualObject.json"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    },
    "VisualSubSceneCount": {
      "type": "integer"
    },
    "VisualSubScenesData": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "VisualSubSceneSpaceTime": {
            "$ref": "https://schemas.mpai.community/OSD/V1.2/data/SpaceTime.json"
          },
          "VisualSubSceneIDOrVisualSubScene": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "VisualSubSceneID": {
                      "type": "string"
                    }
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "VisualSubScene": {
                      "$ref": "https://schemas.mpai.community/OSD/V1.2/data/VisualSceneDescriptors.json"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    },
    "BasicScenesOrScenes": {
      "type": "array",
      "oneOf": [
        {
          "$ref": "https://schemas.mpai.community/OSD/V1.2/data/VisualBasicSceneDescriptors.json"
        },
        {
          "$ref": "https://schemas.mpai.community/OSD/V1.2/data/VisualSceneDescriptors.json"
        }
      ]
    },
    "DescrMetadata": {
      "type": "string"
    }
  }
}