{
  "$schema": "http://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.mpai.community/MMM4/V2.1/data/UMCapturePA.json",
  "title": "UMCapturePA",
  "type": "object", "properties": {
    "Header": { "type": "string", "pattern": "^MMM-1CP-V[0-9]{1,2}[.][0-9]{1,2}$" },
    "MInstanceID": { "type": "string" },
    "MEnvironmentID": { "type": "string" },
    "UEnvironmentID": { "type": "string" },
    "UMCapturePA": {
      "type": "object", "properties": {
        "Time": { "$ref": "https://schemas.mpai.community/OSD/V1.4/data/Time.json" },
        "RQComplements": { "type": "object", "properties": {
          "RQ1": { "type": "object", "properties": {
            "Complement": { "type": "string", "enum": [ "Nil"] },
            "ULocation": { "$ref": "https://schemas.mpai.community/MMM4/V2.1/data/ULocation.json" } } },
          "RQ2": { "type": "object", "properties": {
            "Complement": { "type": "string", "enum": [ "With"] },
            "Qualifier": { "$ref": "https://schemas.mpai.community/TFA/V1.4/data/Qualifiers.json" } } },
          "RQ3": { "type": "object", "properties": {
            "Complement": { "type": "string", "enum": [ "At"] },
            "ModelRights": { "$ref": "https://schemas.mpai.community/MMM4/V2.1/data/Rights.json" } } },
          "RQ4": { "type": "object", "properties": {
            "Complement": { "type": "string", "enum": [ "With"] },
            "Transaction": { "$ref": "https://schemas.mpai.community/MMM4/V2.1/data/Transaction.json" } } } } },
        "RSComplements": { "type": "object", "properties": {
          "RS1": { "type": "object", "properties": {
            "Complement": { "type": "string", "enum": [ "Nil"] },
            "Data": { "type": "string" } } },
          "RS2": { "type": "object", "properties": {
            "Complement": { "type": "string", "enum": [ "With"] },
            "SpatialAttitude": { "$ref": "https://schemas.mpai.community/OSD/V1.4/data/SpatialAttitude.json" } } },
          "RS3": { "type": "object", "properties": {
            "Complement": { "type": "string", "enum": [ "With"] },
            "Rights": { "$ref": "https://schemas.mpai.community/MMM4/V2.1/data/Rights.json" } } },
          "RS4": { "type": "object", "properties": {
            "Complement": { "type": "string", "enum": [ "With"] } ,
            "PAStatus": { "type": "array", "items": { "oneOf": [
              { "type": "object", "properties": { "Err": { "type": "string", "enum": [ "FaultyPA", "IncID", "InsRights", "InsValue", "QualNS", "ULocOOR" ] } } }, 
              { "type": "object", "properties": { "Ack": { "type": "string", "enum": [ "Ack"] } } } ] } } } } } } } },
    "DescrMetadata": { "type": "string" } }
}