{ "$id":                                            "https://schemas.mpai.community/OSD/V1.5/data/RADAREventDescriptors.json",
  "$schema":                                        "https://json-schema.org/draft/2020-12/schema",

  "title":                                          "RADAREvent Descriptors V1.5", "type": "object", "required": [ "Header", "RADAREventDescriptorsID", 
                                                    "RADAREventDescriptorsSpaceTime", "Trace" ], "additionalProperties": false, "properties": {

    "Header":                                       { "type": "string", "pattern": "^OSD-VED-V[0-9]{1,2}[.][0-9]{1,2}$" },

    "MInstanceID":                                  { "type": "string" },

    "RADAREventDescriptorsID":                      { "type": "string" },

    "RADAREventDescriptorsSpaceTime":               { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/SpaceTime.json" },

    "RADAREventDescriptors":                        { "type": "array", "items": { "type": "object", "additionalProperties": false, "properties": {

      "RADAREventIDOrRADAREvent":                   { "$ref": "#/$defs/RADAREventIDOrRADAREvent" } } } },

    "Annotations":                                  { "$ref": "#/$defs/Annotations" },
    "Rights":                                       { "$ref": "#/$defs/Rights" },
    "DataExchangeMetadata":                         { "$ref": "https://schemas.mpai.community/AIF/V3.0/data/DataExchangeMetadata.json" },
    "Trace":                                        { "$ref": "https://schemas.mpai.community/AIF/V3.0/data/Trace.json" },
    "DescrMetadata":                                { "type": "string", "maxLength": 2048 } },

  "$defs":                                          {

    "Annotations":                                  { "type": "array", "items": { "type": "object", "additionalProperties": false,
                                                      "required": [ "AnnotationIDOrAnnotation", "AnnotationTimeSpace" ], "properties": {
      "AnnotationIDOrAnnotation":                   { "type": "array", "minItems": 1, "maxItems": 1, "items": { "oneOf": [
        { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/Annotation.json" },
        { "type": "string" } ] } },
      "AnnotationTimeSpace":                        { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/SpaceTime.json" },
      "AnnotationRights":                           { "$ref": "#/$defs/Rights" } } } },

    "RADAREventIDOrRADAREvent":                     { "type": "array", "minItems": 1, "maxItems": 1, "items": { "oneOf": [
        { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/RADAREventDescriptors.json" },
        { "type": "string" } ] } },

    "Rights":                                       { "type": "array", "minItems": 1, "items": { "oneOf": [

        { "type": "object", "additionalProperties": false, "required": [ "Right" ], "properties":
          { "Right": { "$ref": "https://schemas.mpai.community/MMM4/V2.2/data/Right.json" } } },

        { "type": "object", "additionalProperties": false, "required": [ "RightID" ], "properties":
          { "RightID": { "type": "string" } } } ] } } } }