{ "$schema":                "https://json-schema.org/draft/2020-12/schema",
  "$id":                    "https://schemas.mpai.community/MMM4/V2.2/data/ActivityData.json",
  "title":                  "ActivityData V2.2",
  "type":                   "object",
  "properties":             {

    "Header":               { "type": "string", "pattern": "^MMM-ACD-V[0-9],{1,2},[.][0-9],{1,2}$" },
    "MInstanceID":          { "type": "string" },
    "MIEnvironment":        { "type": "string" },
    "ActivityDataID":       { "type": "string" },

    "ActivityData":         { "type": "array", "items": { "oneOf": [
                            { "$ref": "https://schemas.mpai.community/MMM4/V2.2/data/IPPMessage.json" },
                            { "type": "object", "properties": { "IPPMessageID": { "type": "string" } } } ] } },

    "DataXMData":           { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/DataExchangeMetadata.json" },
    "DescrMetadata":        { "type": "string", "maxLength": 2048 } } }
