{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dealroom/json-schema/dealroom-company-geo-response-schema.json",
  "title": "CompanyGeoResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dealroom-companies-api-openapi.yml#/components/schemas/CompanyGeoResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CompanyGeoPoint"
      }
    },
    "page": {
      "type": "object",
      "properties": {
        "total": {
          "type": [
            "number",
            "null"
          ]
        },
        "limit": {
          "type": "number"
        },
        "offset": {
          "type": "number"
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opaque cursor for the next page. Null when no further pages exist."
        },
        "prev_cursor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opaque cursor for the previous page. Null when on the first page."
        }
      },
      "required": [
        "total",
        "limit",
        "offset",
        "next_cursor",
        "prev_cursor"
      ]
    }
  },
  "required": [
    "data",
    "page"
  ],
  "$defs": {
    "CompanyGeoPoint": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Stable UUID of the company"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "lat": {
          "type": "number",
          "description": "HQ latitude (WGS84)"
        },
        "lon": {
          "type": "number",
          "description": "HQ longitude (WGS84)"
        },
        "logo": {
          "type": [
            "string",
            "null"
          ],
          "description": "Logo/avatar image URL for the company (powers the map's logo layer); null when the entity has no image. May be a bare host/path or a full URL."
        },
        "value": {
          "type": [
            "number",
            "null"
          ],
          "description": "The `size_by` dimension's value for this company (USD for monetary dimensions); null when there is no value or no `size_by` was requested"
        }
      },
      "required": [
        "id",
        "name",
        "lat",
        "lon",
        "logo",
        "value"
      ]
    }
  }
}