mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 18:48:31 +01:00
add comment
This commit is contained in:
parent
2aa3139dbe
commit
10f6b28790
2 changed files with 18 additions and 0 deletions
|
@ -121,6 +121,15 @@ export class MiPage {
|
|||
|
||||
export const pageNameSchema = { type: 'string', pattern: /^[a-zA-Z0-9_-]{1,256}$/.source } as const;
|
||||
|
||||
//#region ページブロックのスキーマ(バリデーション用)
|
||||
|
||||
/**
|
||||
* 併せてpackedPageBlockSchemaも更新すること
|
||||
* (そっちはAPIの戻り型の定義なので以下の定義とは若干異なる)
|
||||
*
|
||||
* packages/backend/src/models/json-schema/page.ts
|
||||
*/
|
||||
|
||||
const blockBaseSchema = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
|
@ -222,3 +231,5 @@ export const pageBlockSchema = {
|
|||
noteBlockSchema,
|
||||
],
|
||||
} as const;
|
||||
|
||||
//#endregion
|
||||
|
|
|
@ -3,6 +3,13 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
/**
|
||||
* ページブロックのスキーマを変更したら、併せてpageBlockSchemaも更新すること
|
||||
* (そっちは入力バリデーション用の定義なので以下の定義とは若干異なる)
|
||||
*
|
||||
* packages/backend/src/models/Page.ts
|
||||
*/
|
||||
|
||||
const packedBlockBaseSchema = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
|
|
Loading…
Reference in a new issue