From 2a424699d7695156b46dd7a38b4d04a9310f371f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D1=83=D0=B7=D0=BD=D0=B5=D1=86=D0=BE=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=20=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD?= =?UTF-8?q?=D0=B4=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Thu, 17 Apr 2025 15:22:30 +0300 Subject: [PATCH] MSP-5223 composition struct domain.Config in domain.CreateUpdateConfigResponse --- docs/swagger.yaml | 20 ++++++++++++++++++-- domain/response.go | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 9d6ac45..f0023ac 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -95,10 +95,26 @@ definitions: type: object domain.CreateUpdateConfigResponse: properties: - config: - $ref: '#/definitions/domain.Config' + active: + type: boolean + createdAt: + type: string + data: + type: object + id: + type: string isChanged: type: boolean + moduleId: + type: string + name: + type: string + updatedAt: + type: string + valid: + type: boolean + version: + type: integer type: object domain.CreateVariableRequest: properties: diff --git a/domain/response.go b/domain/response.go index 6a6f01a..250301c 100644 --- a/domain/response.go +++ b/domain/response.go @@ -12,7 +12,7 @@ type DeleteResponse struct { type CreateUpdateConfigResponse struct { IsChanged bool - Config Config + Config } type ModuleInfo struct {