mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 19:36:25 +02:00
Migrate cafy to 14.0 (#4240)
This commit is contained in:
@@ -16,7 +16,7 @@ export const meta = {
|
||||
|
||||
params: {
|
||||
userId: {
|
||||
validator: $.type(ID).optional,
|
||||
validator: $.optional.type(ID),
|
||||
transform: transform,
|
||||
desc: {
|
||||
'ja-JP': '対象のユーザーのID',
|
||||
@@ -25,7 +25,7 @@ export const meta = {
|
||||
},
|
||||
|
||||
userIds: {
|
||||
validator: $.arr($.type(ID)).optional.unique(),
|
||||
validator: $.optional.arr($.type(ID)).unique(),
|
||||
transform: transformMany,
|
||||
desc: {
|
||||
'ja-JP': 'ユーザーID (配列)'
|
||||
@@ -33,11 +33,11 @@ export const meta = {
|
||||
},
|
||||
|
||||
username: {
|
||||
validator: $.str.optional
|
||||
validator: $.optional.str
|
||||
},
|
||||
|
||||
host: {
|
||||
validator: $.str.optional.nullable
|
||||
validator: $.optional.nullable.str
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user