{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/craftedtrust-com/json-schema/craftedtrust-com-server-detail-schema.json",
  "title": "ServerDetail",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/craftedtrust-com-openapi.yml#/components/schemas/ServerDetail",
  "allOf": [
    {
      "$ref": "#/$defs/ServerSummary"
    },
    {
      "type": "object",
      "properties": {
        "findingsSummary": {
          "type": "string"
        },
        "scanCount": {
          "type": "integer"
        },
        "transportType": {
          "type": "string"
        },
        "scanType": {
          "type": "string"
        },
        "packageName": {
          "type": "string"
        },
        "repositoryUrl": {
          "type": "string",
          "format": "uri"
        },
        "lastScanHistory": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        }
      }
    }
  ],
  "$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"
        }
      }
    }
  }
}