{
  "$schema": "http://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.mpai.community/MMM4/V2.1/data/CertificateObject.json",
  "title": "CertificateObject",
  "type": "object", "properties": { 
    "Header": { "type": "string", "pattern": "^MMM-CTO-V[0-9]{1,2}[.][0-9]{1,2}$" },
    "MInstanceID": { "type": "string" },
    "CertificateID": { "type": "string" },
    "CertificateData": { "type": "array", "items": { "anyOf": [
      { "type": "object", "properties": { "DataLength": { "type": "integer" }, "DataURI": { "type": "string", "format": "uri" } } }, 
      { "type": "object", "properties": { "Data": { "type": "string" } } },
      { "type": "object", "properties": { "ID": { "type": "string" } } } ] } },
    "CertificateQualifier": { "$ref": "https://schemas.mpai.community/TFA/V1.4/data/CertificateQualifier.json" },
    "DescrMetadata": { "type": "string" } }
}