You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/transformers/type-format-zod/zod.gen.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
import*aszfrom'zod';
4
4
5
5
exportconstzFoo=z.object({
6
-
bar: z.optional(z.int()),
6
+
bar: z.int().optional(),
7
7
foo: z.coerce.bigint().min(BigInt('-9223372036854775808'),{error: 'Invalid value: Expected int64 to be >= -9223372036854775808'}).max(BigInt('9223372036854775807'),{error: 'Invalid value: Expected int64 to be <= 9223372036854775807'}).default(BigInt(0)),
Copy file name to clipboardExpand all lines: packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/transformers/type-format-zod/zod.gen.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
import*aszfrom'zod';
4
4
5
5
exportconstzFoo=z.object({
6
-
bar: z.optional(z.int()),
6
+
bar: z.int().optional(),
7
7
foo: z.coerce.bigint().min(BigInt('-9223372036854775808'),{error: 'Invalid value: Expected int64 to be >= -9223372036854775808'}).max(BigInt('9223372036854775807'),{error: 'Invalid value: Expected int64 to be <= 9223372036854775807'}).default(BigInt(0)),
Copy file name to clipboardExpand all lines: packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/transformers/type-format-zod/zod.gen.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
import*aszfrom'zod';
4
4
5
5
exportconstzFoo=z.object({
6
-
bar: z.optional(z.int()),
6
+
bar: z.int().optional(),
7
7
foo: z.coerce.bigint().min(BigInt('-9223372036854775808'),{error: 'Invalid value: Expected int64 to be >= -9223372036854775808'}).max(BigInt('9223372036854775807'),{error: 'Invalid value: Expected int64 to be <= 9223372036854775807'}).default(BigInt(0)),
0 commit comments