From f82b55dcdf66685e3539b2fd4e35a6456e7f55ff Mon Sep 17 00:00:00 2001 From: Tor Colvin Date: Thu, 3 Oct 2024 10:15:27 -0400 Subject: [PATCH] Fix version numbers for 3.2 openapi documentation (#7142) --- docs/api/components/schemas.yaml | 10 ++++++++++ docs/api/diagnostic.yaml | 2 +- docs/api/metric-capella.yaml | 2 +- docs/api/metric.yaml | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/api/components/schemas.yaml b/docs/api/components/schemas.yaml index 220a3bd65b..437e9efd43 100644 --- a/docs/api/components/schemas.yaml +++ b/docs/api/components/schemas.yaml @@ -1201,6 +1201,16 @@ Database: additionalProperties: x-additionalPropertiesName: scopename $ref: '#/Scopes' + maxProperties: 1 + example: + scopename: + collections: + collectionname1: + sync: 'function(doc){channel("collection name");}' + import_filter: 'function(doc) { if (doc.type != ''mobile'') { return false; } return true; }' + collectionname2: + sync: 'function(doc){channel("collection name");}' + import_filter: 'function(doc) { if (doc.type != ''mobile'') { return false; } return true; }' name: description: The name of the database. type: string diff --git a/docs/api/diagnostic.yaml b/docs/api/diagnostic.yaml index e9b1fd5eb6..6a857c0a3d 100644 --- a/docs/api/diagnostic.yaml +++ b/docs/api/diagnostic.yaml @@ -10,7 +10,7 @@ openapi: 3.0.3 info: title: Sync Gateway description: Sync Gateway manages access and synchronization between Couchbase Lite and Couchbase Server - version: 3.3.0 + version: '3.2' license: name: Business Source License 1.1 (BSL) url: 'https://github.com/couchbase/sync_gateway/blob/master/LICENSE' diff --git a/docs/api/metric-capella.yaml b/docs/api/metric-capella.yaml index 286ff63913..93fe93cca6 100644 --- a/docs/api/metric-capella.yaml +++ b/docs/api/metric-capella.yaml @@ -10,7 +10,7 @@ openapi: 3.0.3 info: title: App Services Metrics API description: 'App Services manages access and synchronization between Couchbase Lite and Couchbase Capella' - version: 3.3.0 + version: '3.2' license: name: Business Source License 1.1 (BSL) url: 'https://github.com/couchbase/sync_gateway/blob/master/LICENSE' diff --git a/docs/api/metric.yaml b/docs/api/metric.yaml index e910c8c908..0d6694ccc1 100644 --- a/docs/api/metric.yaml +++ b/docs/api/metric.yaml @@ -10,7 +10,7 @@ openapi: 3.0.3 info: title: Sync Gateway description: Sync Gateway manages access and synchronization between Couchbase Lite and Couchbase Server - version: 3.3.0 + version: '3.2' license: name: Business Source License 1.1 (BSL) url: 'https://github.com/couchbase/sync_gateway/blob/master/LICENSE'