Remove todo..
This commit is contained in:
parent
d565497de1
commit
a0ebf89ef8
@ -7,9 +7,8 @@ const schema_get = validator.object({
|
||||
order: validator.string().valid('asc', 'desc').default('asc'),
|
||||
take: validator.number().min(1).max(512),
|
||||
skip: validator.number().min(0),
|
||||
|
||||
|
||||
search: validator.string().min(3).max(20).regex(new RegExp('^(?!.*\\*{2,}).*$')), // TODO: Check if * or ** or *** -> Due to crashes..
|
||||
// This regex ensures that the search string does not contain consecutive asterisks (**) and is at least 3 characters long.
|
||||
search: validator.string().min(3).max(20).regex(new RegExp('^(?!.*\\*{2,}).*$')),
|
||||
id: validator.number().positive().precision(0),
|
||||
count: validator.boolean()
|
||||
}).nand('id', 'search'); // Allow id or search. not both.
|
||||
|
Loading…
x
Reference in New Issue
Block a user