mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 22:29:28 +09:00
[API] Better validation of admin/emoji/add
This commit is contained in:
parent
42ac7b954d
commit
e813fe16b9
@ -12,15 +12,15 @@ export const meta = {
|
|||||||
|
|
||||||
params: {
|
params: {
|
||||||
name: {
|
name: {
|
||||||
validator: $.str
|
validator: $.str.min(1)
|
||||||
},
|
},
|
||||||
|
|
||||||
url: {
|
url: {
|
||||||
validator: $.str
|
validator: $.str.min(1)
|
||||||
},
|
},
|
||||||
|
|
||||||
aliases: {
|
aliases: {
|
||||||
validator: $.arr($.str).optional,
|
validator: $.arr($.str.min(1)).optional,
|
||||||
default: [] as string[]
|
default: [] as string[]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user