Skip to content

Commit 1b53384

Browse files
committed
prettier fix
1 parent f72537e commit 1b53384

16 files changed

+694
-2881
lines changed

common/schemas/chat-api.json

Lines changed: 97 additions & 467 deletions
Large diffs are not rendered by default.

common/schemas/chat-entities.json

Lines changed: 6 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,7 @@
2626
},
2727
"status": {
2828
"type": "string",
29-
"enum": [
30-
"pending",
31-
"accepted",
32-
"rejected",
33-
"revoked",
34-
"expired"
35-
],
29+
"enum": ["pending", "accepted", "rejected", "revoked", "expired"],
3630
"description": "The status of the chat invitation. This is used to track whether the invitation is pending, accepted, or rejected."
3731
},
3832
"createdAt": {
@@ -45,16 +39,7 @@
4539
"description": "Unique identifier of the user who created the invitation. This is used to track who sent the invitation. It is a foreign key to the User model."
4640
}
4741
},
48-
"required": [
49-
"id",
50-
"chatId",
51-
"chatName",
52-
"message",
53-
"userId",
54-
"status",
55-
"createdAt",
56-
"createdBy"
57-
],
42+
"required": ["id", "chatId", "chatName", "message", "userId", "status", "createdAt", "createdBy"],
5843
"additionalProperties": false
5944
},
6045
"ChatMessageAttachment": {
@@ -73,11 +58,7 @@
7358
"description": "The type that hints how the attachment can be displayed"
7459
}
7560
},
76-
"required": [
77-
"id",
78-
"fileName",
79-
"type"
80-
],
61+
"required": ["id", "fileName", "type"],
8162
"additionalProperties": false
8263
},
8364
"ChatMessage": {
@@ -112,14 +93,7 @@
11293
"description": "The attachments of the message"
11394
}
11495
},
115-
"required": [
116-
"id",
117-
"content",
118-
"createdAt",
119-
"owner",
120-
"chatId",
121-
"attachments"
122-
],
96+
"required": ["id", "content", "createdAt", "owner", "chatId", "attachments"],
12397
"additionalProperties": false
12498
},
12599
"Chat": {
@@ -154,14 +128,8 @@
154128
"description": "A list of participants in the chat"
155129
}
156130
},
157-
"required": [
158-
"id",
159-
"name",
160-
"createdAt",
161-
"owner",
162-
"participants"
163-
],
131+
"required": ["id", "name", "createdAt", "owner", "participants"],
164132
"additionalProperties": false
165133
}
166134
}
167-
}
135+
}

0 commit comments

Comments
 (0)