Hacker GitHub

← All repos

StefanTerdell/zod-to-json-schema

View on GitHub ↗ ★ 1,248 TypeScript archived

Converts Zod schemas to Json schemas

3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2023-01-31 · latest 2023-08-22

Mentions per year 3 mentions · busiest year 2023 (3)
20082026
  1. I like to use zod for Typescript and Pydantic for python. https://github.com/StefanTerdell/zod-to-json-schema https://docs.pydantic.dev/latest/usage/json_schema/
    comment by beanaroo · 2023-08-22 · in JSON Schema Store
  2. …JSON Schema to e.g. communicate to the outside world, you can extract it from the Zod schema with https://github.com/StefanTerdell/zod-to-json-schema -- but if you don't, you don't. JSON Schema is kind of underpowered for real validation,…
  3. …typing of request handlers. [1] https://github.com/SocialGouv/e2esdk/blob/beta/packages/serv... [2] https://github.com/StefanTerdell/zod-to-json-schema