We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c79f28f commit 549a6f8Copy full SHA for 549a6f8
api/src/utils/validator.js
@@ -13,14 +13,10 @@ const integerSchema = () => number().integer();
13
const booleanSchema = () => boolean();
14
15
const positiveIntSchema = () =>
16
- integerSchema()
17
- .min(0)
18
- .max(Number.MAX_SAFE_INTEGER - 1);
+ integerSchema().min(0).max(Number.MAX_SAFE_INTEGER);
19
20
const positiveStrictIntSchema = () =>
21
22
- .min(1)
23
+ integerSchema().min(1).max(Number.MAX_SAFE_INTEGER);
24
25
const timestampSchema = () =>
26
string().match(
0 commit comments