chore: フォルダ名には最低1文字要求する様に

This commit is contained in:
yupix 2024-02-10 14:58:49 +00:00
parent bae2d3cfd7
commit f39f749f3a
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ export const meta = {
export const paramDef = {
type: 'object',
properties: {
name: { type: 'string', default: 'Untitled', maxLength: 200 },
name: { type: 'string', default: 'Untitled', minLength: 1, maxLength: 200 },
parentId: { type: 'string', format: 'misskey:id', nullable: true },
},
required: [],

View File

@ -49,7 +49,7 @@ export const paramDef = {
type: 'object',
properties: {
folderId: { type: 'string', format: 'misskey:id' },
name: { type: 'string', maxLength: 200 },
name: { type: 'string', minLength: 1, maxLength: 200 },
parentId: { type: 'string', format: 'misskey:id', nullable: true },
},
required: ['folderId'],