{
  "$schema": "http://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.mpai.community/MMM4/V1.0/data/RequestAction.json",
  "title": "RequestAction",
  "type": "object",
  "properties": {
    "Header": {
      "type": "string",
      "pattern": "^MMM-RQA-V[0-9]{1,2}[.][0-9]{1,2}$"
    },
    "MInstanceID": {
      "type": "string"
    },
    "RequestActionID": {
      "type": "string"
    },
    "RequestActionData": {
      "type": "object",
      "items": {
        "RequestActionSpaceTime": {
          "$ref": "https://schemas.mpai.community/OSD/V1.1/data/SpaceTime.json"
        },
        "SourceProcessID": {
          "type": "string"
        },
        "DestinationProcessID": {
          "type": "string"
        },
        "ProcessActionIDOrProcessAction": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "ProcessActionID": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "ProcessAction": {
                    "$ref": "https://schemas.mpai.community/MMM4/V1.0/data/ProcessAction.json"
                  }
                }
              }
            ]
          }
        },
        "OutRightsIDOrOutRights": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "OutRightsID": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "OutRights": {
                    "$ref": "https://schemas.mpai.community/MMM4/V1.0/data/Rights.json"
                  }
                }
              }
            ]
          }
        }
      }
    },
    "DescrMetadata": {
      "type": "string"
    }
  }
}