[API] Better validation of admin/emoji/add

This commit is contained in:
syuilo 2018-11-05 10:33:49 +09:00
parent a84c88baf6
commit f43a9b9fb0

View file

@ -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[]
} }
} }