mirror of
https://github.com/Cameri/nostream.git
synced 2025-09-18 03:22:13 +02:00
chore: allow filter with limit zero
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
This commit is contained in:
@@ -69,7 +69,7 @@ describe('NIP-01', () => {
|
||||
],
|
||||
limit: [
|
||||
{ message: 'must be a number', transform: assocPath(['limit'], null) },
|
||||
{ message: 'must be greater than or equal to 1', transform: assocPath(['limit'], -1) },
|
||||
{ message: 'must be greater than or equal to 0', transform: assocPath(['limit'], -1) },
|
||||
{ message: 'must be a multiple of 1', transform: assocPath(['limit'], Math.PI) },
|
||||
{ message: 'must be less than or equal to 10000', transform: assocPath(['limit'], 10001) },
|
||||
],
|
||||
|
Reference in New Issue
Block a user