[API] Better validation of admin/emoji/add

This commit is contained in:
syuilo 2018-11-05 10:33:49 +09:00
parent 42ac7b954d
commit e813fe16b9
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -12,15 +12,15 @@ export const meta = {
params: {
name: {
validator: $.str
validator: $.str.min(1)
},
url: {
validator: $.str
validator: $.str.min(1)
},
aliases: {
validator: $.arr($.str).optional,
validator: $.arr($.str.min(1)).optional,
default: [] as string[]
}
}