From 12f290905aa43b0bc2e808c71e5ba8077a0215c7 Mon Sep 17 00:00:00 2001 From: "Frederick [Bot]" Date: Tue, 9 Jun 2026 23:32:10 +0000 Subject: [PATCH] [skip ci] Updated swagger docs --- pkg/swagger/docs.go | 5 +++-- pkg/swagger/swagger.json | 5 +++-- pkg/swagger/swagger.yaml | 5 ++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index 8d094f3ae..874d9ec09 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -9876,7 +9876,8 @@ const docTemplate = `{ }, "value": { "description": "The actual reaction. This can be any valid utf character or text, up to a length of 20.", - "type": "string" + "type": "string", + "maxLength": 20 } } }, @@ -10373,7 +10374,7 @@ const docTemplate = `{ "type": "integer" }, "relation_kind": { - "description": "The kind of the relation.", + "description": "The kind of the relation.\nThe enum list must stay in sync with RelationKind.isValid() (RelationKindUnknown excluded); the v2 delete route param repeats it.", "allOf": [ { "$ref": "#/definitions/models.RelationKind" diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index b8f10bda2..1d9d15f49 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -9868,7 +9868,8 @@ }, "value": { "description": "The actual reaction. This can be any valid utf character or text, up to a length of 20.", - "type": "string" + "type": "string", + "maxLength": 20 } } }, @@ -10365,7 +10366,7 @@ "type": "integer" }, "relation_kind": { - "description": "The kind of the relation.", + "description": "The kind of the relation.\nThe enum list must stay in sync with RelationKind.isValid() (RelationKindUnknown excluded); the v2 delete route param repeats it.", "allOf": [ { "$ref": "#/definitions/models.RelationKind" diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index 2018d52ca..6bc114729 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -741,6 +741,7 @@ definitions: value: description: The actual reaction. This can be any valid utf character or text, up to a length of 20. + maxLength: 20 type: string type: object models.ReactionMap: @@ -1134,7 +1135,9 @@ definitions: relation_kind: allOf: - $ref: '#/definitions/models.RelationKind' - description: The kind of the relation. + description: |- + The kind of the relation. + The enum list must stay in sync with RelationKind.isValid() (RelationKindUnknown excluded); the v2 delete route param repeats it. task_id: description: The ID of the "base" task, the task which has a relation to another. type: integer