mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
[API] Better validation of admin/emoji/add
This commit is contained in:
parent
a84c88baf6
commit
f43a9b9fb0
@ -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[]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user