{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/inscribe/json-schema/inscribe-transaction-categories-schema.json",
  "title": "TransactionCategories",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/inscribe-transactions-api-openapi.yml#/components/schemas/TransactionCategories",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "category_id": {
            "type": "string",
            "description": "The category identifier."
          },
          "category_key": {
            "type": "string",
            "description": "The category key."
          },
          "subcategories": {
            "description": "List of all subcategories for this category.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "category_id": {
                  "type": "string",
                  "description": "The subcategory identifier."
                },
                "category_key": {
                  "type": "string",
                  "description": "The subcategory key."
                },
                "subcategories": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      },
      "description": "An array of category objects."
    }
  }
}