{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rossdata-dev/json-schema/rossdata-dev-stats-schema.json",
  "title": "Stats",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rossdata-dev-openapi.json#/components/schemas/Stats",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "schema": {
      "type": "string"
    },
    "modules": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "counts": {
      "type": "object",
      "properties": {
        "table": {
          "type": "integer"
        },
        "view": {
          "type": "integer"
        },
        "procedure": {
          "type": "integer"
        },
        "function": {
          "type": "integer"
        }
      }
    },
    "totalColumns": {
      "type": "integer"
    },
    "distinctColumnNames": {
      "type": "integer"
    },
    "auditTwinPairs": {
      "type": "integer"
    },
    "insights": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      }
    },
    "topModules": {
      "type": "array",
      "description": "[module, objectCount] pairs, most objects first",
      "items": {
        "type": "array",
        "items": {}
      }
    }
  }
}