{ "$schema":              "https://json-schema.org/draft/2020-12/schema",
  "$id":                  "https://schemas.mpai.community/CAV2/V1.1/data/Alert.json",
  "title":                "Alert V1.1",
  "type":                 "object",
  "additionalProperties": false,
                          "required": [ "Header", "AlertID", "AlertData" ], "properties": {

    "Header":             { "type": "string", "pattern": "^CAV-ALT-V[0-9],{1,2},[.][0-9],{1,2}$" },
    "MInstanceID":        { "type": "string" },
    "UEnvironmentID":     { "type": "string" },
    "AlertID":            { "type": "string" },
    "AlertTime":          { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/SpaceTime.json" },

    "AlertData":          { "type": "array", "minItems": 1, "items": { "oneOf": [
                          { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/AudioObject.json" },
                          { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/LiDARObject.json" },
                          { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/RADARObject.json" },
                          { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/SpeechObject.json" },
                          { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/TextObject.json" },
                          { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/UltrasoundObject.json" },
                          { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/VisualObject.json" } ] } },

    "DataXMData":         { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/DataExchangeMetadata.json" },
    "DescrMetadata":      { "type": "string", "maxLength": 2048 } } }

