{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/craftedtrust-com/json-schema/craftedtrust-com-search-response-schema.json",
  "title": "SearchResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/craftedtrust-com-openapi.yml#/components/schemas/SearchResponse",
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    },
    "page": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    },
    "totalPages": {
      "type": "integer"
    },
    "results": {
      "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"
        }
      }
    }
  }
}