zod-to-json-schema

v3.23.3
Converts Zod schemas to Json Schemas
zod json schema open api conversion

build:types

tsc -p tsconfig.types.json

build:cjs

tsc -p tsconfig.cjs.json && tsx postcjs.ts

build:esm

tsc -p tsconfig.esm.json && tsx postesm.ts

build

npm i && npm run gen && npm test && rimraf ./dist && npm run build:types && npm run build:cjs && npm run build:esm

dry

npm run build && npm pub --dry-run

test:watch

tsx watch test/index.ts

test:gen

tsx test/createIndex.ts

test

c8 --all tsx test/index.ts

gen

tsx createIndex.ts
npm i zod-to-json-schema

Metadata

  • ISC
  • Whatever
  • Stefan Terdell
  • released 9/9/2024

Downloads

Maintainers