Skip to content

Commit

Permalink
CBG-4136: OpenAPI Specs: Limit db scopes to 1 and provide example (#7038
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bbrks authored Aug 5, 2024
1 parent c2dce28 commit 8aa0c89
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/api/components/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8aa0c89

Please sign in to comment.