mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-18 05:41:49 +01:00
chore: relax filter limits
This commit is contained in:
parent
8d4c181f07
commit
88e1d61936
@ -3,10 +3,10 @@ import Schema from 'joi'
|
||||
import { kindSchema, prefixSchema } from './base-schema'
|
||||
|
||||
export const filterSchema = Schema.object({
|
||||
ids: Schema.array().items(prefixSchema.label('prefixOrId')).max(256),
|
||||
authors: Schema.array().items(prefixSchema.label('prefixOrAuthor')).max(256),
|
||||
ids: Schema.array().items(prefixSchema.label('prefixOrId')).max(1000),
|
||||
authors: Schema.array().items(prefixSchema.label('prefixOrAuthor')).max(1000),
|
||||
kinds: Schema.array().items(kindSchema).max(20),
|
||||
since: Schema.number().min(0).multiple(1),
|
||||
until: Schema.number().min(0).multiple(1),
|
||||
limit: Schema.number().min(1).multiple(1).max(10000),
|
||||
}).pattern(/^#[a-z]$/, Schema.array().items(Schema.string().max(1024)).max(256))
|
||||
}).pattern(/^#[a-z]$/, Schema.array().items(Schema.string().max(1024)).max(100))
|
||||
|
Loading…
x
Reference in New Issue
Block a user