From 9df2437fc11d657d1bd0e4513d734f5dfe9868a2 Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Wed, 6 Nov 2024 22:33:11 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20message=5Fid=20=E5=91=A8=E3=82=8A?= =?UTF-8?q?=E3=81=AE=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/endpoints/forms.tsp | 6 ++++-- src/models/message.tsp | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/endpoints/forms.tsp b/src/endpoints/forms.tsp index 9b5607d..2b7a938 100644 --- a/src/endpoints/forms.tsp +++ b/src/endpoints/forms.tsp @@ -343,7 +343,8 @@ namespace Forms { @path answerId: uint32, @path - message_id: uint32, + @format("uuid") + message_id: string, @body body: { body: string; @@ -361,7 +362,8 @@ namespace Forms { @path answerId: uint32, @path - message_id: uint32, + @format("uuid") + message_id: string, ): { @statusCode statusCode: 204; } | { diff --git a/src/models/message.tsp b/src/models/message.tsp index 590badb..8070e64 100644 --- a/src/models/message.tsp +++ b/src/models/message.tsp @@ -1,6 +1,10 @@ import "../endpoints/users.tsp"; model Message { + @visibility("read") + @format("uuid") + id: string; + body: string; sender: User; timestamp: utcDateTime;