{ "$id":                        "https://schemas.mpai.community/TFA/V1.5/data/CertificateQualifier.json",
  "$schema":                    "https://json-schema.org/draft/2020-12/schema",
  "title":                      "CertificateQualifier",
  "description":                "Qualifier for certificates describing subtypes, formats, and implementation-defined attributes.",
  "type":                       "object", "required": [ "Header", "CertificateQualifierID", "SubType", "Format" ],
  "additionalProperties":       false,
  "properties":                 {

    "Header":                   { "type": "string", "pattern": "^TFA-CTQ-V[0-9],{1,2},[.][0-9],{1,2}$" },
    "MInstanceID":              { "type": "string" },
    "UEnvironmentID":           { "type": "string" },
    "CertificateQualifierID":   { "type": "string" },
    "CertificateQualifierTime": { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/SpaceTime.json" },

    "SubType":                  { "type": "object", "additionalProperties": false, "properties": {
      "Categories":             { "type": "array", "items": { "type": "string", "enum": [ "Real", "Virtual" ] },
                                  "minItems": 1, "uniqueItems": true } } },

    "Format":                   { "type": "object", "additionalProperties": false, "properties": {
      "MPAICertificateFormat":  { "$ref": "https://schemas.mpai.community/MMM4/V2.2/data/SimpleCertificate.json" },
      "OtherCertificateFormats":{ "$ref": "https://schemas.mpai.community/TFA/V1.5/formats/CertificateFormats.json" } } },

    "Attributes":               { "type": "object", "additionalProperties": true },

    "DataXMData":               { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/DataExchangeMetadata.json" },
    "DescrMetadata":            { "type": "string", "maxLength": 2048 } } }
