Delete SimpleSchema/SimpleObj

and Move schemas to dedicated files
This commit is contained in:
tamaina
2022-01-14 03:16:39 +09:00
parent 21b6176d97
commit 59a5d00d6b
48 changed files with 1546 additions and 1570 deletions

View File

@@ -0,0 +1,27 @@
export const packedMutingSchema = {
type: 'object' as const,
optional: false as const, nullable: false as const,
properties: {
id: {
type: 'string' as const,
optional: false as const, nullable: false as const,
format: 'id',
example: 'xxxxxxxxxx',
},
createdAt: {
type: 'string' as const,
optional: false as const, nullable: false as const,
format: 'date-time',
},
muteeId: {
type: 'string' as const,
optional: false as const, nullable: false as const,
format: 'id',
},
mutee: {
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'User' as const,
},
},
};