{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-data-quality-score-list-schema.json",
  "title": "DataQualityScoreList",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-purview-data-quality-scores-api-openapi.yml#/components/schemas/DataQualityScoreList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataQualityScore"
      }
    },
    "nextLink": {
      "type": "string"
    }
  },
  "$defs": {
    "DataQualityScore": {
      "type": "object",
      "description": "A data quality score for a data asset",
      "properties": {
        "id": {
          "type": "string"
        },
        "assetId": {
          "type": "string"
        },
        "assetName": {
          "type": "string"
        },
        "overallScore": {
          "type": "number",
          "format": "float",
          "minimum": 0,
          "maximum": 100
        },
        "dimensionScores": {
          "type": "object",
          "properties": {
            "completeness": {
              "type": "number",
              "format": "float"
            },
            "uniqueness": {
              "type": "number",
              "format": "float"
            },
            "freshness": {
              "type": "number",
              "format": "float"
            },
            "accuracy": {
              "type": "number",
              "format": "float"
            },
            "consistency": {
              "type": "number",
              "format": "float"
            },
            "validity": {
              "type": "number",
              "format": "float"
            }
          }
        },
        "evaluatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "ruleResults": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RuleResult"
          }
        }
      }
    },
    "RuleResult": {
      "type": "object",
      "properties": {
        "ruleId": {
          "type": "string"
        },
        "ruleName": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "Passed",
            "Failed",
            "Error",
            "NotApplicable"
          ]
        },
        "score": {
          "type": "number",
          "format": "float"
        },
        "details": {
          "type": "string"
        }
      }
    }
  }
}