{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pluggy/json-schema/pluggy-page-response-categories-schema.json",
  "title": "PageResponseCategories",
  "description": "Paginated list of transaction categories",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pluggy-category-api-openapi.yml#/components/schemas/PageResponseCategories",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Category"
      },
      "description": "Categories for the current page"
    },
    "page": {
      "type": "number",
      "format": "double",
      "description": ""
    },
    "total": {
      "type": "number",
      "format": "double",
      "description": ""
    },
    "totalPages": {
      "type": "number",
      "format": "double",
      "description": ""
    }
  },
  "type": "object",
  "required": [
    "results",
    "page",
    "total",
    "totalPages"
  ],
  "$defs": {
    "Category": {
      "description": "Cateogry response",
      "properties": {
        "id": {
          "type": "string",
          "description": "Identifier for the category"
        },
        "description": {
          "type": "string",
          "description": "Description of the category"
        },
        "descriptionTranslated": {
          "type": "string",
          "description": "Description of the category, translated to portuguese"
        },
        "parentId": {
          "type": "string",
          "description": "Parent's identifier"
        },
        "parentDescription": {
          "type": "string",
          "description": "Parent's category description"
        }
      },
      "type": "object",
      "required": [
        "id",
        "description"
      ]
    }
  }
}