{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/couchbase/main/json-schema/couchbase-scopes-list-schema.json",
  "title": "ScopesList",
  "description": "List of scopes in a bucket",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/couchbase-scopes-and-collections-api-openapi.yml#/components/schemas/ScopesList",
  "type": "object",
  "properties": {
    "uid": {
      "type": "string",
      "description": "Unique identifier for the manifest"
    },
    "scopes": {
      "type": "array",
      "description": "List of scopes",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the scope"
          },
          "uid": {
            "type": "string",
            "description": "Unique identifier for the scope"
          },
          "collections": {
            "type": "array",
            "description": "Collections within the scope",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Name of the collection"
                },
                "uid": {
                  "type": "string",
                  "description": "Unique identifier for the collection"
                },
                "maxTTL": {
                  "type": "integer",
                  "description": "Maximum TTL for documents in seconds"
                }
              }
            }
          }
        }
      }
    }
  }
}