From 8aa0c899a0c40c62efaffcfd823b3af292cc055d Mon Sep 17 00:00:00 2001 From: Ben Brooks Date: Mon, 5 Aug 2024 15:12:42 +0100 Subject: [PATCH] CBG-4136: OpenAPI Specs: Limit db scopes to 1 and provide example (#7038) --- docs/api/components/schemas.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/api/components/schemas.yaml b/docs/api/components/schemas.yaml index b28c41f806..0c06f0bff4 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