summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/json-schema/muting.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-03-10 14:22:37 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-03-10 14:22:37 +0900
commit5de8930058c28be983ea38b04acec528e7c79577 (patch)
tree741487a20234ba1c5200d9a2a442e4503a38483e /packages/backend/src/models/json-schema/muting.ts
parent:art: (diff)
downloadsharkey-5de8930058c28be983ea38b04acec528e7c79577.tar.gz
sharkey-5de8930058c28be983ea38b04acec528e7c79577.tar.bz2
sharkey-5de8930058c28be983ea38b04acec528e7c79577.zip
refactor: rename schema to json-schema
Diffstat (limited to 'packages/backend/src/models/json-schema/muting.ts')
-rw-r--r--packages/backend/src/models/json-schema/muting.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/backend/src/models/json-schema/muting.ts b/packages/backend/src/models/json-schema/muting.ts
new file mode 100644
index 0000000000..3ab99e17e7
--- /dev/null
+++ b/packages/backend/src/models/json-schema/muting.ts
@@ -0,0 +1,31 @@
+export const packedMutingSchema = {
+ type: 'object',
+ properties: {
+ id: {
+ type: 'string',
+ optional: false, nullable: false,
+ format: 'id',
+ example: 'xxxxxxxxxx',
+ },
+ createdAt: {
+ type: 'string',
+ optional: false, nullable: false,
+ format: 'date-time',
+ },
+ expiresAt: {
+ type: 'string',
+ optional: false, nullable: true,
+ format: 'date-time',
+ },
+ muteeId: {
+ type: 'string',
+ optional: false, nullable: false,
+ format: 'id',
+ },
+ mutee: {
+ type: 'object',
+ optional: false, nullable: false,
+ ref: 'UserDetailed',
+ },
+ },
+} as const;