Migrate cafy to 14.0 (#4240)
This commit is contained in:
parent
b083430011
commit
5aa58da918
77 changed files with 334 additions and 345 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue