From 3b7cb529dc0bc8925ce2ddaae242e7806ac65054 Mon Sep 17 00:00:00 2001 From: George Date: Thu, 22 Oct 2020 17:02:32 +0100 Subject: [PATCH] chore(docs): update PostDBRP docs to reflect mutual exclusive requirement of org vs orgID (#19802) --- http/swagger.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/http/swagger.yml b/http/swagger.yml index 4212ce71e4..94d0c1da10 100644 --- a/http/swagger.yml +++ b/http/swagger.yml @@ -11704,12 +11704,7 @@ components: type: string enum: ["slack", "pagerduty", "http", "telegram"] DBRP: - required: - - orgID - - org - - bucketID - - database - - retention_policy + type: object properties: id: type: string @@ -11735,6 +11730,17 @@ components: description: Specify if this mapping represents the default retention policy for the database specificed. links: $ref: "#/components/schemas/Links" + oneOf: + - required: + - orgID + - bucketID + - database + - retention_policy + - required: + - org + - bucketID + - database + - retention_policy DBRPs: properties: notificationEndpoints: