1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-04 00:44:22 +02:00
This commit is contained in:
tamaina
2023-05-10 16:22:21 +00:00
parent 0e08c56bc7
commit ad6c5275ec
4 changed files with 292 additions and 260 deletions

View File

@@ -1,29 +1,26 @@
import type { JSONSchema7Definition } from 'schema-type';
export const packedUserListSchema = {
$id: 'https://misskey-hub.net/api/schemas/UserList',
type: 'object',
properties: {
id: {
type: 'string',
optional: false, nullable: false,
format: 'id',
example: 'xxxxxxxxxx',
},
id: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
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',
},
items: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
},
},
} as const;
required: [
'id',
'createdAt',
'name',
],
} as const satisfies JSONSchema7Definition;