zocker icon indicating copy to clipboard operation
zocker copied to clipboard

Generate realistic mock-data from your `zod` schemas

Results 12 zocker issues
Sort by recently updated
recently updated
newest added

Not an issue, I'm just glad that you poured time on this project. I hope it stays maintained in the future!

> I'm posting this issue to all the libraries currently listed in the Ecosystem section of Zod's README. Apologies for the spam! Zod 4 is a big release and it's...

Adds missing generator for Zod's catch() schemas, which was causing "No generator for schema catch" errors. The generator correctly produces valid data from the underlying schema, only falling back to...

Maybe the schema definition is wrong but here, `queryStringParameters` shows the `limit` field is being generated as NaN. ``` const queryParamsSchema = z.object({ contentStatus: contentStatusSchema .extract(['submitted', 'rejected', 'failed', 'draft', 'succeeded',...

zocker 3.0 builds both CJS (dist/index.cjs) and ESM (dist/index.js). But in package.json only main is defined as CJS, and there is no exports field. As a result, Node/Vitest always load...

PR for https://github.com/LorisSigrist/zocker/issues/78 Usage: ```ts export const xSchema = z.object({ country_alpha3: z.string().length(3).optional(), }) zocker(xSchema).setSemanticFlagMap({ country_alpha3: () => faker.address.countryCode('alpha-3') }).generate() ``` this is proposal. I can add tests and documentation if...

I have schema like this ```ts export const xSchema = z.object({ country_alpha3: z.string().length(3).optional(), }) ``` I want to be able to provide custom `semantic_generators` like this ```ts { country_alpha3: ()...

solves https://github.com/LorisSigrist/zocker/issues/76

It's not uncommon to have a `string` schema that has many constraints: ```ts z.email() .regex(/[a-zA-Z0-9@]*/) .min(5) .max(10) .startsWith("abcd") ``` Zocker often cannot handle many string constraints like this (especially if...

enhancement

HI. First of all, thank you for this amazing library. I wonder what is a good way to compose factories? For example, let's say I have following schema: ```ts const...