{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/datagalactica-com/json-schema/datagalactica-com-hit-schema.json",
  "title": "Hit",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/datagalactica-com-api-openapi.json#/components/schemas/Hit",
  "type": "object",
  "required": [
    "id",
    "name",
    "url",
    "type"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Galactica ID"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "description": "Page URL"
    },
    "type": {
      "type": "string",
      "enum": [
        "company",
        "person"
      ]
    },
    "kind": {
      "type": "string"
    },
    "quality": {
      "$ref": "#/$defs/Grade"
    },
    "sub": {
      "type": "string",
      "description": "One-line subtitle"
    },
    "matched": {
      "type": "string",
      "enum": [
        "name",
        "alias",
        "text",
        "meaning"
      ],
      "description": "What the words matched on; meaning = close in meaning (/find)"
    },
    "city": {
      "type": "string"
    },
    "country": {
      "type": "string",
      "description": "Country name"
    }
  },
  "$defs": {
    "Grade": {
      "type": "string",
      "enum": [
        "bronze",
        "silver",
        "gold",
        "verified"
      ],
      "description": "Overall: verified = claimed by the owner; gold = an e-mail and a phone, both verified or deliverable; silver = an e-mail and a phone; bronze = less. In quality.sections, the grade says how well that section is sourced."
    }
  }
}