{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/componecat-ai/json-schema/componecat-ai-rest-api-list-response-of-catalog-documentation-section-list-item-schema.json",
  "title": "RestApiListResponseOfCatalogDocumentationSectionListItem",
  "description": "Standard REST API response envelope for a collection of resources.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/componecat-ai-documentation-sections-api-openapi.yml#/components/schemas/RestApiListResponseOfCatalogDocumentationSectionListItem",
  "required": [
    "data",
    "pagination"
  ],
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CatalogDocumentationSectionListItem"
      }
    },
    "pagination": {
      "$ref": "#/$defs/PaginationInfo"
    }
  },
  "$defs": {
    "CatalogDocumentationSectionListItem": {
      "required": [
        "id",
        "catalogEntityId",
        "sectionType",
        "customSectionType",
        "title",
        "sortOrder"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "catalogEntityId": {
          "type": "string",
          "format": "uuid"
        },
        "sectionType": {
          "type": "string"
        },
        "customSectionType": {
          "type": [
            "null",
            "string"
          ]
        },
        "title": {
          "type": "string"
        },
        "sortOrder": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int32"
        }
      },
      "description": "Documentation section list view -- minimal fields for collection responses."
    },
    "PaginationInfo": {
      "required": [
        "cursor",
        "hasMore"
      ],
      "type": "object",
      "properties": {
        "cursor": {
          "type": [
            "null",
            "string"
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "description": "Pagination metadata for REST API list responses."
    }
  }
}