From 38e32a71a094a9ce92bd332d4915ce8a30f50a4c Mon Sep 17 00:00:00 2001 From: Silthus <755327+Silthus@users.noreply.github.com> Date: Thu, 6 Oct 2022 14:33:17 +0200 Subject: [PATCH] fix(api): patch and create owner dto not extending base owner dto RELTEC-10000 --- api/v1/apimodel.go | 4 ++++ docs/openapi-v3-spec.json | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/api/v1/apimodel.go b/api/v1/apimodel.go index f2d76f5..4dde4f6 100644 --- a/api/v1/apimodel.go +++ b/api/v1/apimodel.go @@ -25,6 +25,8 @@ type OwnerCreateDto struct { Contact string `json:"contact"` // The product owner of this owner space ProductOwner *string `json:"productOwner,omitempty"` + // A list of users that are allowed to promote services in this owner space + Promoters []string `json:"promoters,omitempty"` // The default jira project that is used by this owner space DefaultJiraProject *string `json:"defaultJiraProject,omitempty"` // The jira issue to use for committing a change, or the last jira issue used. @@ -59,6 +61,8 @@ type OwnerPatchDto struct { Contact *string `json:"contact,omitempty"` // The product owner of this owner space ProductOwner *string `json:"productOwner,omitempty"` + // A list of users that are allowed to promote services in this owner space + Promoters []string `json:"promoters,omitempty"` // The default jira project that is used by this owner space DefaultJiraProject *string `json:"defaultJiraProject,omitempty"` // ISO-8601 UTC date time at which this information was originally committed. When sending an update, include the original timestamp you got so we can detect concurrent updates. diff --git a/docs/openapi-v3-spec.json b/docs/openapi-v3-spec.json index f2902ca..628a7f1 100644 --- a/docs/openapi-v3-spec.json +++ b/docs/openapi-v3-spec.json @@ -1957,6 +1957,19 @@ "description": "The product owner of this owner space", "example": "kschlangenheld" }, + "promoters": { + "type": "array", + "description": "A list of users that are allowed to promote services in this owner space", + "items": { + "type": "string", + "description": "The username of a user allowed to promote services in this owner space", + "example": "kschlangenheld" + }, + "example": [ + "kschlangenheld", + "someotheruser" + ] + }, "defaultJiraProject": { "type": "string", "description": "The default jira project that is used by this owner space", @@ -1987,6 +2000,19 @@ "description": "The product owner of this owner space", "example": "kschlangenheld" }, + "promoters": { + "type": "array", + "description": "A list of users that are allowed to promote services in this owner space", + "items": { + "type": "string", + "description": "The username of a user allowed to promote services in this owner space", + "example": "kschlangenheld" + }, + "example": [ + "kschlangenheld", + "someotheruser" + ] + }, "defaultJiraProject": { "type": "string", "description": "The default jira project that is used by this owner space",