{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adhdevaluations-fyi/json-schema/adhdevaluations-fyi-category-node-schema.json",
  "title": "CategoryNode",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adhdevaluations-fyi-openapi.json#/components/schemas/CategoryNode",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "description": "Pass it as `category` to /listings."
    },
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "description": "The page for this category on the site."
    },
    "count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Published listings in this category or one below it. Every category in the config is listed, also with 0."
    },
    "children": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CategoryNode"
      }
    }
  },
  "required": [
    "slug",
    "name",
    "url",
    "count",
    "children"
  ],
  "additionalProperties": false,
  "$defs": {
    "CategoryNode": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string",
          "description": "Pass it as `category` to /listings."
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "description": "The page for this category on the site."
        },
        "count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991,
          "description": "Published listings in this category or one below it. Every category in the config is listed, also with 0."
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CategoryNode"
          }
        }
      },
      "required": [
        "slug",
        "name",
        "url",
        "count",
        "children"
      ],
      "additionalProperties": false
    }
  }
}