refactor: rename schema to json-schema

This commit is contained in:
syuilo
2023-03-10 14:22:37 +09:00
parent 66aef2e716
commit 5de8930058
65 changed files with 76 additions and 76 deletions

View File

@@ -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;