Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: message_id 周りの変更 #175

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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