{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/craftedtrust-com/json-schema/craftedtrust-com-stats-response-schema.json",
  "title": "StatsResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/craftedtrust-com-openapi.yml#/components/schemas/StatsResponse",
  "type": "object",
  "properties": {
    "stats": {
      "type": "object",
      "additionalProperties": true
    },
    "recentlyScanned": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ServerSummary"
      }
    },
    "highestRated": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ServerSummary"
      }
    },
    "recentlyFlagged": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ServerSummary"
      }
    }
  },
  "$defs": {
    "ServerSummary": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "name": {
          "type": "string"
        },
        "publisherName": {
          "type": "string"
        },
        "trustScore": {
          "type": "number"
        },
        "grade": {
          "type": "string",
          "enum": [
            "A",
            "B",
            "C",
            "D",
            "F"
          ]
        },
        "trustSummary": {
          "type": "string"
        },
        "manualReviewStatus": {
          "type": "string",
          "enum": [
            "none",
            "standard",
            "premium"
          ],
          "description": "Manual review status derived from legacy registry fields."
        },
        "certificationStatus": {
          "type": "string",
          "enum": [
            "none",
            "standard",
            "premium"
          ],
          "deprecated": true,
          "description": "Legacy alias for manualReviewStatus."
        },
        "lastScanned": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}