From 08b4bcaff990cf61814ebffd3f3825149dc2f7db Mon Sep 17 00:00:00 2001 From: "Frederick [Bot]" Date: Wed, 4 Sep 2024 20:43:53 +0000 Subject: [PATCH] [skip ci] Updated swagger docs (cherry picked from commit 5aa0b6a0cf7d8b6dc4c064b0b9c01c4ae121be34) --- pkg/swagger/docs.go | 10 +--------- pkg/swagger/swagger.json | 10 +--------- pkg/swagger/swagger.yaml | 6 +----- 3 files changed, 3 insertions(+), 23 deletions(-) diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index 7c29b58e2..23f46aacc 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -8625,7 +8625,7 @@ const docTemplate = `{ "type": "string" }, "entity": { - "type": "string" + "type": "integer" }, "entity_id": { "description": "The id of the entity to subscribe to.", @@ -8634,14 +8634,6 @@ const docTemplate = `{ "id": { "description": "The numeric ID of the subscription", "type": "integer" - }, - "user": { - "description": "The user who made this subscription", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] } } }, diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index a30ca1570..aa456388f 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -8617,7 +8617,7 @@ "type": "string" }, "entity": { - "type": "string" + "type": "integer" }, "entity_id": { "description": "The id of the entity to subscribe to.", @@ -8626,14 +8626,6 @@ "id": { "description": "The numeric ID of the subscription", "type": "integer" - }, - "user": { - "description": "The user who made this subscription", - "allOf": [ - { - "$ref": "#/definitions/user.User" - } - ] } } }, diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index b472d8d8e..9ce883586 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -710,17 +710,13 @@ definitions: this value. type: string entity: - type: string + type: integer entity_id: description: The id of the entity to subscribe to. type: integer id: description: The numeric ID of the subscription type: integer - user: - allOf: - - $ref: '#/definitions/user.User' - description: The user who made this subscription type: object models.Task: properties: