{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/edgechat-ai/json-schema/edgechat-ai-list-geo-response-schema.json",
  "title": "ListGeoResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/edgechat-ai-geo-api-openapi.yml#/components/schemas/ListGeoResponse",
  "type": "object",
  "properties": {
    "regions": {
      "type": "array",
      "items": {
        "allOf": [
          {
            "$ref": "#/$defs/Topic"
          },
          {
            "type": "object",
            "properties": {
              "children": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Topic"
                }
              }
            }
          }
        ]
      }
    },
    "license": {
      "$ref": "#/$defs/License"
    }
  },
  "$defs": {
    "License": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "summary": {
          "type": "string"
        },
        "spdx": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "url"
      ]
    },
    "Topic": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "articles": {
          "type": "integer"
        },
        "api_url": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "id",
        "label",
        "api_url"
      ]
    }
  }
}