zod-to-json-schema icon indicating copy to clipboard operation
zod-to-json-schema copied to clipboard

Converts Zod schemas to Json schemas

Results 24 zod-to-json-schema issues
Sort by recently updated
recently updated
newest added

Resolves #85 by adding the removeAdditionalStrategy schema (the term is a copy of the ajv option)

My objects pass zod parse, but they are failing ajv validation due to additionalProperties being false on all objects the schema. ```ts const User = z.object({ name: z.string(), company: z.object({...

First of all, thank you for creating the module! I started using your `zod-to-json-schema` and `json-schema-to-zod`. While the code looks to be working, my VSCode displays errors. ```dependencies "json-schema-to-zod": "^2.0.14",...

V4

Great simple library! Any interest in adding a `dict` property to `nativeEnum` types?

This is to enable callbacks in the parsing of Zod schemas. The use-case is that I'm doing custom validation of the Zod schema (making sure there's a description, that no...

I want to specify a file upload format like described in https://swagger.io/docs/specification/describing-request-body/file-upload/ which needs to be `binary`. Is it possible to do this?

Hello, thank you for a great library! It will be a part of [Superforms v2](https://blog.encodeart.dev/superforms-v2-supporting-all-validation-libraries) for sure! I have a question about default and require. When I add a default...

| Platform | Version | | :- | :- | | Deno | [3.20.0](https://deno.land/x/[email protected]) | ```ts // deno run --allow-all test.ts import { z } from 'https://deno.land/x/[email protected]/index.ts'; // import {...

help wanted
Deno

Hey! Awesome library, I appreciate you building it. We're using this with [openapi-generator](https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/typescript-axios.md) to build schemas/types with zod in our backend, create the openapi spec, then pull that down into...

See also: #64, #65. Reproduction: ```javascript const left = z.union([ z.object({ field1: z.number() }), z.object({ field3: z.string() }), ]); const right = z.object({ field2: z.boolean() }); const intersection = z.intersection(left,...

V4