summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/json-schema/user-list.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/user-list.ts
parent:art: (diff)
downloadmisskey-5de8930058c28be983ea38b04acec528e7c79577.tar.gz
misskey-5de8930058c28be983ea38b04acec528e7c79577.tar.bz2
misskey-5de8930058c28be983ea38b04acec528e7c79577.zip
refactor: rename schema to json-schema
Diffstat (limited to 'packages/backend/src/models/json-schema/user-list.ts')
-rw-r--r--packages/backend/src/models/json-schema/user-list.ts29
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/backend/src/models/json-schema/user-list.ts b/packages/backend/src/models/json-schema/user-list.ts
new file mode 100644
index 0000000000..3ba5dc4a8a
--- /dev/null
+++ b/packages/backend/src/models/json-schema/user-list.ts
@@ -0,0 +1,29 @@
+export const packedUserListSchema = {
+ type: 'object',
+ properties: {
+ id: {
+ type: 'string',
+ optional: false, nullable: false,
+ format: 'id',
+ example: 'xxxxxxxxxx',
+ },
+ createdAt: {
+ type: 'string',
+ optional: false, nullable: false,
+ format: 'date-time',
+ },
+ name: {
+ type: 'string',
+ optional: false, nullable: false,
+ },
+ userIds: {
+ type: 'array',
+ nullable: false, optional: true,
+ items: {
+ type: 'string',
+ nullable: false, optional: false,
+ format: 'id',
+ },
+ },
+ },
+} as const;