{ "$schema":              "https://json-schema.org/draft/2020-12/schema",
  "$id":                  "https://schemas.mpai.community/PGM1/V1.0/data/USRDirective.json",
  "title":                "USR Directive V1.0",
  "type":                 "object",
  "additionalProperties": false,
  "required":             [ "Header", "MInstance", "UEnvironment", "USRDirectiveID", "USRDirectiveTime", "SessionID", "Exchange" ],
  "properties":           {

    "Header":             { "type": "string", "const": "PGM-USD-V1.0" },
    "MInstance":          { "type": "string" },
    "UEnvironment":       { "type": "string" },
    "USRDirectiveID":     { "type": "string" },
    "USRDirectiveTime":   { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/SimpleTime.json" },
    "SessionID":          { "type": "string" },

    "Exchange":           { "type": "object", "additionalProperties": false, "required": [ "Phase" ], "properties": {
      "Phase":            { "type": "string", "enum": [ "new", "continuation" ] },
      "USRStatusID":      { "type": "string" } } },

    "Correction":         { "type": "object", "additionalProperties": false, "properties": {
      "Decision":         { "type": "string", "enum": [ "accept", "override" ] },
      "Engagement":       { "type": "object", "additionalProperties": false, "properties": {
        "Level":          { "type": "number", "minimum": 0, "maximum": 1 },
        "Mode":           { "type": "string" } } },
      "EntityState":      { "$ref": "https://schemas.mpai.community/MMC/V2.5/data/EntityState.json" },
      "Rationale":        { "type": "string", "maxLength": 2048 } } },

    "DataXMData":         { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/DataExchangeMetadata.json" },
    "DescrMetadata":      { "type": "string", "maxLength": 2048 } } }