{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/staycharted-com/json-schema/staycharted-com-quality-schema.json",
  "title": "Quality",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/staycharted-com-openapi.yaml#/components/schemas/Quality",
  "type": "object",
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass back with a fix."
    },
    "usableRows": {
      "type": [
        "integer",
        "null"
      ]
    },
    "categoryCount": {
      "type": [
        "integer",
        "null"
      ]
    },
    "distribution": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "description": "Rows per category."
    },
    "duplicateCount": {
      "type": "integer"
    },
    "rareCategoryCount": {
      "type": "integer"
    },
    "verdict": {
      "type": [
        "string",
        "null"
      ],
      "description": "Whether the data is ready to train, as the app's Check data step says."
    },
    "reasons": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "duplicates": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  }
}