{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowra-dev/json-schema/flowra-dev-collection-info-dto-array-success-response-schema.json",
  "title": "CollectionInfoDtoArraySuccessResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flowra-dev-table-api-openapi.yml#/components/schemas/CollectionInfoDtoArraySuccessResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Success status"
    },
    "message": {
      "type": "string",
      "description": "Success message"
    },
    "data": {
      "description": "Response data",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Collection ID (use in documents endpoints)"
          },
          "name": {
            "type": "string",
            "description": "Collection display name"
          },
          "description": {
            "type": "string",
            "description": "Collection description"
          },
          "schema": {
            "type": "object",
            "description": "Collection schema"
          },
          "documentCount": {
            "type": "number",
            "description": "Total number of documents in the collection"
          },
          "exposeViaMcp": {
            "type": "boolean",
            "description": "When true, MCP tools may read this collection (list/find/count/aggregate only)",
            "default": false
          },
          "ownerEUID": {
            "type": "string",
            "description": "External user id of the collection owner (enforced for non-admin database tools)"
          }
        },
        "required": [
          "id",
          "name",
          "description"
        ]
      }
    }
  },
  "required": [
    "success",
    "message",
    "data"
  ]
}