{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adhdevaluations-fyi/json-schema/adhdevaluations-fyi-place-node-schema.json",
  "title": "PlaceNode",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adhdevaluations-fyi-openapi.json#/components/schemas/PlaceNode",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "country",
        "region",
        "city"
      ]
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string",
      "description": "Pass a region slug as `region` and a city slug as `city` to /listings."
    },
    "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 code. Pass it as `country` to /listings."
    },
    "url": {
      "type": "string",
      "description": "The page for this place on the site."
    },
    "count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Published listings in this place. A place with none is left out."
    },
    "children": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PlaceNode"
      },
      "description": "Regions in a country, cities in a region. Empty for a city."
    }
  },
  "required": [
    "kind",
    "name",
    "slug",
    "country",
    "url",
    "count",
    "children"
  ],
  "additionalProperties": false,
  "$defs": {
    "PlaceNode": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "country",
            "region",
            "city"
          ]
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string",
          "description": "Pass a region slug as `region` and a city slug as `city` to /listings."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 code. Pass it as `country` to /listings."
        },
        "url": {
          "type": "string",
          "description": "The page for this place on the site."
        },
        "count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991,
          "description": "Published listings in this place. A place with none is left out."
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PlaceNode"
          },
          "description": "Regions in a country, cities in a region. Empty for a city."
        }
      },
      "required": [
        "kind",
        "name",
        "slug",
        "country",
        "url",
        "count",
        "children"
      ],
      "additionalProperties": false
    }
  }
}