Skip to content

Commit

Permalink
Merge pull request #175 from GiganticMinecraft/fix/message-model
Browse files Browse the repository at this point in the history
chore: message_id 周りの変更
  • Loading branch information
rito528 authored Nov 6, 2024
2 parents 2182118 + 9df2437 commit 6e6e6bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/endpoints/forms.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ namespace Forms {
@path answerId: uint32,

@path
message_id: uint32,
@format("uuid")
message_id: string,

@body body: {
body: string;
Expand All @@ -361,7 +362,8 @@ namespace Forms {
@path answerId: uint32,

@path
message_id: uint32,
@format("uuid")
message_id: string,
): {
@statusCode statusCode: 204;
} | {
Expand Down
4 changes: 4 additions & 0 deletions src/models/message.tsp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import "../endpoints/users.tsp";

model Message {
@visibility("read")
@format("uuid")
id: string;

body: string;
sender: User;
timestamp: utcDateTime;
Expand Down

0 comments on commit 6e6e6bc

Please sign in to comment.