From e4034af2ab43af15e8007098125e31721b810c0f Mon Sep 17 00:00:00 2001 From: Simon Richardson Date: Mon, 1 Aug 2022 10:57:54 +0100 Subject: [PATCH] docs(stacks): Stacks POST orgID is required The following updates the openAPI contract for the creation of stacks, which the code states orgID is a requirement for cloud and OSS. This seems to have been an oversight and is now fixed with this change. --- contracts/cloud.json | 3 +++ contracts/cloud.yml | 2 ++ contracts/common.yml | 2 ++ contracts/oss.json | 3 +++ contracts/oss.yml | 2 ++ contracts/ref/cloud.yml | 2 ++ contracts/ref/oss.yml | 2 ++ src/common/paths/stacks.yml | 2 ++ 8 files changed, 18 insertions(+) diff --git a/contracts/cloud.json b/contracts/cloud.json index 636f9c7b..d54f18fa 100644 --- a/contracts/cloud.json +++ b/contracts/cloud.json @@ -5142,6 +5142,9 @@ "schema": { "type": "object", "title": "PostStackRequest", + "required": [ + "orgID" + ], "properties": { "orgID": { "type": "string" diff --git a/contracts/cloud.yml b/contracts/cloud.yml index 86001208..e502a1a5 100644 --- a/contracts/cloud.yml +++ b/contracts/cloud.yml @@ -3368,6 +3368,8 @@ paths: schema: type: object title: PostStackRequest + required: + - orgID properties: orgID: type: string diff --git a/contracts/common.yml b/contracts/common.yml index 489f9f33..39b4881f 100644 --- a/contracts/common.yml +++ b/contracts/common.yml @@ -3250,6 +3250,8 @@ paths: schema: type: object title: PostStackRequest + required: + - orgID properties: orgID: type: string diff --git a/contracts/oss.json b/contracts/oss.json index 74cbd876..2eb60943 100644 --- a/contracts/oss.json +++ b/contracts/oss.json @@ -5146,6 +5146,9 @@ "schema": { "type": "object", "title": "PostStackRequest", + "required": [ + "orgID" + ], "properties": { "orgID": { "type": "string" diff --git a/contracts/oss.yml b/contracts/oss.yml index 2d31a1e9..fbc736d4 100644 --- a/contracts/oss.yml +++ b/contracts/oss.yml @@ -3374,6 +3374,8 @@ paths: schema: type: object title: PostStackRequest + required: + - orgID properties: orgID: type: string diff --git a/contracts/ref/cloud.yml b/contracts/ref/cloud.yml index 11552679..6f46a86d 100644 --- a/contracts/ref/cloud.yml +++ b/contracts/ref/cloud.yml @@ -10077,6 +10077,8 @@ paths: items: type: string type: array + required: + - orgID title: PostStackRequest type: object description: The stack to create. diff --git a/contracts/ref/oss.yml b/contracts/ref/oss.yml index a4ccbb6e..bff3b085 100644 --- a/contracts/ref/oss.yml +++ b/contracts/ref/oss.yml @@ -12061,6 +12061,8 @@ paths: items: type: string type: array + required: + - orgID title: PostStackRequest type: object description: The stack to create. diff --git a/src/common/paths/stacks.yml b/src/common/paths/stacks.yml index 84fda768..307318c0 100644 --- a/src/common/paths/stacks.yml +++ b/src/common/paths/stacks.yml @@ -51,6 +51,8 @@ post: schema: type: object title: PostStackRequest + required: + - orgID properties: orgID: type: string