diff --git a/api/docs/docs.go b/api/docs/docs.go index fcb451bd..3c1b2ee1 100644 --- a/api/docs/docs.go +++ b/api/docs/docs.go @@ -51,10 +51,7 @@ var doc = `{ "type": "object", "properties": { "data": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/definitions/api.HealthCheckResponse" } } } @@ -431,6 +428,17 @@ var doc = `{ } } }, + "api.HealthCheckResponse": { + "type": "object", + "properties": { + "commit": { + "type": "string" + }, + "tag": { + "type": "string" + } + } + }, "api.UpdateMedia": { "type": "object", "required": [ diff --git a/api/docs/swagger.json b/api/docs/swagger.json index 5c44dcee..62bf744f 100644 --- a/api/docs/swagger.json +++ b/api/docs/swagger.json @@ -40,10 +40,7 @@ "type": "object", "properties": { "data": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/definitions/api.HealthCheckResponse" } } } @@ -420,6 +417,17 @@ } } }, + "api.HealthCheckResponse": { + "type": "object", + "properties": { + "commit": { + "type": "string" + }, + "tag": { + "type": "string" + } + } + }, "api.UpdateMedia": { "type": "object", "required": [ diff --git a/api/docs/swagger.yaml b/api/docs/swagger.yaml index d22432b5..ec550012 100644 --- a/api/docs/swagger.yaml +++ b/api/docs/swagger.yaml @@ -8,6 +8,13 @@ definitions: required: - title type: object + api.HealthCheckResponse: + properties: + commit: + type: string + tag: + type: string + type: object api.UpdateMedia: properties: title: @@ -70,9 +77,7 @@ paths: - $ref: '#/definitions/httputils.DataResponse' - properties: data: - additionalProperties: - type: string - type: object + $ref: '#/definitions/api.HealthCheckResponse' type: object summary: Check service status tags: