{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/couchbase/main/json-schema/couchbase-auto-compaction-settings-schema.json",
  "title": "AutoCompactionSettings",
  "description": "Auto-compaction configuration",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/couchbase-compaction-api-openapi.yml#/components/schemas/AutoCompactionSettings",
  "type": "object",
  "properties": {
    "databaseFragmentationThreshold": {
      "type": "object",
      "properties": {
        "percentage": {
          "type": "integer",
          "description": "Database fragmentation percentage threshold"
        },
        "size": {
          "type": "integer",
          "description": "Database fragmentation size threshold in bytes"
        }
      }
    },
    "viewFragmentationThreshold": {
      "type": "object",
      "properties": {
        "percentage": {
          "type": "integer",
          "description": "View fragmentation percentage threshold"
        },
        "size": {
          "type": "integer",
          "description": "View fragmentation size threshold in bytes"
        }
      }
    },
    "parallelDBAndViewCompaction": {
      "type": "boolean",
      "description": "Whether to run database and view compaction in parallel"
    }
  }
}