mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 11:53:08 +02:00
39 lines
699 B
TypeScript
39 lines
699 B
TypeScript
|
export const packedClipSchema = {
|
||
|
type: 'object',
|
||
|
properties: {
|
||
|
id: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
format: 'id',
|
||
|
example: 'xxxxxxxxxx',
|
||
|
},
|
||
|
createdAt: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
format: 'date-time',
|
||
|
},
|
||
|
userId: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
format: 'id',
|
||
|
},
|
||
|
user: {
|
||
|
type: 'object',
|
||
|
ref: 'UserLite',
|
||
|
optional: false, nullable: false,
|
||
|
},
|
||
|
name: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
},
|
||
|
description: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: true,
|
||
|
},
|
||
|
isPublic: {
|
||
|
type: 'boolean',
|
||
|
optional: false, nullable: false,
|
||
|
},
|
||
|
},
|
||
|
} as const;
|