{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/entityindex-ai/json-schema/entityindex-ai-entity-list-schema.json",
  "title": "EntityList",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/entityindex-ai-openapi.json#/components/schemas/EntityList",
  "type": "object",
  "properties": {
    "generated": {
      "type": "string",
      "format": "date"
    },
    "country": {
      "type": "string"
    },
    "sector": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "entities": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EntitySummary"
      }
    },
    "license": {
      "$ref": "#/$defs/License"
    }
  },
  "$defs": {
    "EntitySummary": {
      "type": "object",
      "required": [
        "id",
        "name",
        "official_url"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "sector": {
          "type": "string"
        },
        "subtype": {
          "type": "string"
        },
        "location": {
          "$ref": "#/$defs/Location"
        },
        "official_url": {
          "type": "string",
          "format": "uri"
        },
        "action_url": {
          "type": "string",
          "format": "uri",
          "description": "Official website with src=entityindex"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Public record page"
        },
        "api": {
          "type": "string",
          "description": "Path of the full JSON record"
        },
        "verified": {
          "type": "object",
          "description": "Verified facts in short form (field -> value).",
          "additionalProperties": true
        }
      }
    },
    "License": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "attribution": {
          "type": "string"
        }
      }
    },
    "Location": {
      "type": "object",
      "properties": {
        "locality": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2"
        }
      }
    }
  }
}