{ "$id":                          "https://schemas.mpai.community/TFA/V1.5/data/MLModelQualifier.json",
  "$schema":                      "https://json-schema.org/draft/2020-12/schema",

  "title":                        "ML Model Qualifier TFA V1.5",
                                  "description": "Characteristics and regulatory attributes of a machine learning model.",
                                  "type": "object", "required": [ "Header", "MLModelQualifierID", "SubType", "Format", 
                                  "Trace" ], "additionalProperties": false, "properties": {

    "Header":                     { "type": "string", "pattern": "^TFA-MMQ-V[0-9]{1,2}[.][0-9]{1,2}$" },

    "MLModelQualifierID":         { "type": "string" },

    "SubType":                    { "type": "object", "additionalProperties": false, "properties": {
      "MLModelType":              { "$ref": "https://schemas.mpai.community/TFA/V1.5/types/MLModelTypes.json" },
      "NNModelType":              { "$ref": "https://schemas.mpai.community/TFA/V1.5/types/NNModelTypes.json" } } },

    "Format":                     { "type": "object", "additionalProperties": false, "properties": {
      "Extension":                { "$ref": "https://schemas.mpai.community/TFA/V1.5/types/NNModelExtensions.json" },
      "Framework":                { "$ref": "https://schemas.mpai.community/TFA/V1.5/types/NNModelFrameworks.json" },
      "Exchange":                 { "$ref": "https://schemas.mpai.community/TFA/V1.5/types/NNModelExchange.json" } } },

    "Attributes":                 { "$ref": "#/$defs/Attributes" },

    "DataExchangeMetadata":       { "$ref": "https://schemas.mpai.community/AIF/V3.0/data/DataExchangeMetadata.json" },
    "Trace":                      { "$ref": "https://schemas.mpai.community/AIF/V3.0/data/Trace.json" },
    "DescrMetadata":              { "type": "string", "maxLength": 2048 } },

  "$defs":                        {  "Attributes": { "type": "object", "additionalProperties":  false, "properties": {

    "MLModelManifest":            { "$ref": "https://schemas.mpai.community/AIF/V3.0/data/MLModelManifest.json" },

    "RegulationTypes":            { "$ref": "https://schemas.mpai.community/TFA/V1.5/types/RegulationTypes.json" },

    "CertificationType":          { "$ref": "https://schemas.mpai.community/TFA/V1.5/types/CertificationTypes.json" },

    "Validity":                   { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/Time.json" } } } } }