vega/ts-json-schema-generator
View on GitHub ↗ ★ 1,720 TypeScript
Generate JSON schema from your Typescript sources
4 mentions on Hacker News by 4 people: 0 stories, 4 comments · first 2020-02-01 · latest 2024-04-30
20082026
-
This looks interesting but I already have TypeScript types for my APIs so I developed https://github.com/vega/ts-json-schema-generator which lets me generate JSON schema from the sources directly. Yes, it does have some oddities because…
comment by domoritz · 2024-04-30 · in TypeSpec: A new language for API-centric development -
Not OP, but we have a very similar setup. We use https://github.com/vega/ts-json-schema-generator in a prebuild hook to generate a schema from Typescript. The schema is then fed into Fastify, and referenced in route configurations for…
comment by olex · 2023-01-31 · in Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees -
…schema; https://github.com/YousefED/typescript-json-schema (and also check out a good alternative https://github.com/vega/ts-json-schema-generator )
comment by YousefED · 2021-09-10 · in JSON Schema bundling formalised -
ts-json-schema-generator[1] generates a schema from an annotated interface definition. [1] https://github.com/vega/ts-json-schema-generator
comment by sramam · 2020-02-01 · in TypeScript’s quirks: How inconsistencies make the language more complex