{ "$schema":                      "https://json-schema.org/draft/2020-12/schema",
  "$id":                          "https://schemas.mpai.community/CAV2/V1.1/data/Interaction.json",
  "title":                        "Interaction V1.1",
  "type":                         "object",
  "required":                     [ "Header" ],
  "properties":                   {

    "Header":                     { "type": "string", "pattern": "^CAV-INT-V[0-9],{1,2},[.][0-9],{1,2}$" },
    "MInstanceID":                { "type": "string" },
    "UEnvironmentID":             { "type": "string" },
    "InteractionID":              { "type": "string" },
    "InteractionTime":            { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/Time.json" },

    "RouteRequest":               { "type": "string" },
    "RouteResponse":              { "$ref": "https://schemas.mpai.community/CAV2/V1.1/data/Route.json" },
    "PathRequest":                { "type": "string" },
    "PathResponse":               { "$ref": "https://schemas.mpai.community/CAV2/V1.1/data/Path.json" },
    "TrajectoryRequest":          { "type": "string" },
    "TrajectoryResponse":         { "$ref": "https://schemas.mpai.community/CAV2/V1.1/data/Trajectory.json" },

    "DataXMData":                 { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/DataExchangeMetadata.json" },
    "DescrMetadata":              { "type": "string", "maxLength": 2048 } },

  "oneOf": [                      { "required": [ "RouteRequest" ] },
                                  { "required": [ "RouteResponse" ] },
                                  { "required": [ "PathRequest" ] },
                                  { "required": [ "PathResponse" ] },
                                  { "required": [ "TrajectoryRequest" ] },
                                  { "required": [ "TrajectoryResponse" ] } ] }
