mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 07:43:09 +02:00
c2370a1be6
* chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
56 lines
1 KiB
TypeScript
56 lines
1 KiB
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export const packedPageSchema = {
|
|
type: 'object',
|
|
properties: {
|
|
id: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
example: 'xxxxxxxxxx',
|
|
},
|
|
createdAt: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'date-time',
|
|
},
|
|
updatedAt: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'date-time',
|
|
},
|
|
title: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
name: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
summary: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
},
|
|
content: {
|
|
type: 'array',
|
|
optional: false, nullable: false,
|
|
},
|
|
variables: {
|
|
type: 'array',
|
|
optional: false, nullable: false,
|
|
},
|
|
userId: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
},
|
|
user: {
|
|
type: 'object',
|
|
ref: 'UserLite',
|
|
optional: false, nullable: false,
|
|
},
|
|
},
|
|
} as const;
|