{ "$schema":                  "https://json-schema.org/draft/2020-12/schema",
  "$id":                      "https://schemas.mpai.community/MMM4/V2.2/data/IPPMessage.json",
  "title":                    "IPP Message V2.2",
  "type":                     "object",
  "properties":               {

    "Header":                 { "type": "string", "pattern": "^MMM-IPP-V[0-9],{1,2},[.][0-9],{1,2}$" },
    "MInstanceID":            { "type": "string" },
    "MEnvironmentID":         { "type": "string" },
    "IPPMessageID":           { "type": "string" },
    "IPPMessageTime":         { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/SpaceTime.json" },
    "PreviousMessageID":      { "type": "string" },

    "ProcessID":              { "type": "array", "items": {"oneOf": [
                              { "type": "object", "properties": {
      "SourceProcessID":      { "type": "string" } } },
                              { "type": "object", "properties": {
      "DestinationProcessID": { "type": "integer" } } } ] } },

    "PAIDOrPA":               { "type": "array", "items": { "oneOf": [
                              { "type": "object", "properties": {
      "ProcessAction":        { "$ref": "https://schemas.mpai.community/MMM4/V2.2/data/ProcessAction.json" } } },
                              { "type": "object", "properties": {
      "ProcessActionID":      { "type": "string" } } } ] } },

    "ResolutionServiceID":    { "type": "string" },

    "Status":                 { "type": "string" },

    "DataXMData":             { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/DataExchangeMetadata.json" },
    "DescrMetadata":          { "type": "string", "maxLength": 2048 } } }

