Skip to content

Commit 9b6b1e4

Browse files
fix: Don't display int64 range in docs (#282)
* fix: Don't display int64 range in docs * removed console * fix: updated test case * removing testcase
1 parent cdfd9e3 commit 9b6b1e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/shared/Validations.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,16 @@ const validationFormatters: Record<string, (value: unknown) => ValidationFormat
7373
style: createValidationsFormatter('Style', { exact: true, nowrap: true }),
7474
};
7575

76+
7677
const oasFormats = {
78+
7779
int32: {
7880
minimum: 0 - 2 ** 31,
7981
maximum: 2 ** 31 - 1,
8082
},
8183
int64: {
82-
minimum: 0 - 2 ** 63,
83-
maximum: 2 ** 63 - 1,
84+
minimum: Number.MIN_SAFE_INTEGER,
85+
maximum: Number.MAX_SAFE_INTEGER,
8486
},
8587
float: {
8688
minimum: 0 - 2 ** 128,

0 commit comments

Comments
 (0)