diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-03-10 14:22:37 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-03-10 14:22:37 +0900 |
| commit | 5de8930058c28be983ea38b04acec528e7c79577 (patch) | |
| tree | 741487a20234ba1c5200d9a2a442e4503a38483e /packages/backend/src/models/json-schema/muting.ts | |
| parent | :art: (diff) | |
| download | sharkey-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.ts | 31 |
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; |