add comment

This commit is contained in:
kakkokari-gtyih 2024-11-07 12:22:40 +09:00
parent 2aa3139dbe
commit 10f6b28790
2 changed files with 18 additions and 0 deletions

View file

@ -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

View file

@ -3,6 +3,13 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
/**
* pageBlockSchemaも更新すること
*
*
* packages/backend/src/models/Page.ts
*/
const packedBlockBaseSchema = {
type: 'object',
properties: {