···11// This file is auto-generated by @hey-api/openapi-ts
2233-import { z } from 'zod';
33+import { z } from 'zod/v3';
4455export const zFoo = z.enum([
66 'foo',
···11// This file is auto-generated by @hey-api/openapi-ts
2233-import { z } from 'zod';
33+import { z } from 'zod/v3';
4455export const zFoo = z.enum([
66 'foo',
···11+// This file is auto-generated by @hey-api/openapi-ts
22+33+import * as z from 'zod/mini';
44+55+export const zBar = z.string();
66+77+export const zFoo = z.object({
88+ foo: z.optional(z.array(zBar).check(z.minLength(1), z.maxLength(2147483647)))
99+});
···11+// This file is auto-generated by @hey-api/openapi-ts
22+33+import * as z from 'zod/mini';
44+55+export const zBar = z.string();
66+77+export const zFoo = z.object({
88+ foo: z.optional(z.array(zBar).check(z.minLength(1), z.maxLength(2147483647)))
99+});
···11+// This file is auto-generated by @hey-api/openapi-ts
22+33+import * as z from 'zod/mini';
44+55+export const zFoo = z.object({
66+ foo: z.optional(z.coerce.bigint().check(z.gte(BigInt(0)), z.lte(BigInt(100))))
77+});
···11+// This file is auto-generated by @hey-api/openapi-ts
22+33+import { z } from 'zod/v3';
44+55+export const zFoo = z.object({
66+ foo: z.coerce.bigint().gte(BigInt(0)).lte(BigInt(100)).optional()
77+});
···991010export type State = {
1111 circularReferenceTracker: Array<string>;
1212+ /**
1313+ * Works the same as `circularReferenceTracker`, but it resets whenever we
1414+ * walk inside another schema. This can be used to detect if a schema
1515+ * directly references itself.
1616+ */
1717+ currentReferenceTracker: Array<string>;
1218 hasCircularReference: boolean;
1319};
14201521export type ZodSchema = {
1622 expression: ts.Expression;
1717- typeName?: string;
2323+ hasCircularReference?: boolean;
2424+ typeName?: string | ts.Identifier;
1825};