{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/couchbase/main/json-schema/couchbase-database-config-schema.json",
  "title": "DatabaseConfig",
  "description": "Database configuration",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/couchbase-database-management-api-openapi.yml#/components/schemas/DatabaseConfig",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Database name"
    },
    "bucket": {
      "type": "string",
      "description": "Couchbase Server bucket name"
    },
    "sync": {
      "type": "string",
      "description": "JavaScript sync function"
    },
    "import_filter": {
      "type": "string",
      "description": "JavaScript import filter function"
    },
    "enable_shared_bucket_access": {
      "type": "boolean",
      "description": "Whether shared bucket access is enabled"
    },
    "import_docs": {
      "type": "boolean",
      "description": "Whether to auto-import documents"
    },
    "num_index_replicas": {
      "type": "integer",
      "description": "Number of GSI index replicas"
    },
    "delta_sync": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "rev_max_age_seconds": {
          "type": "integer"
        }
      }
    },
    "guest": {
      "type": "object",
      "properties": {
        "disabled": {
          "type": "boolean"
        },
        "admin_channels": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}