ts-json-schema-generator
ts-json-schema-generator copied to clipboard
Generate JSON schema from your Typescript sources
TSDoc uses/recommends `@defaultValue` instead of `@default` https://tsdoc.org/pages/tags/defaultvalue/ It would be good to map it back to the more common `default` key on generation
Not exactly sure why this is erroring...but I assume it has something to do with the generics: test.ts ``` enum Module { A = 'A', B = 'B', } interface...
I've been using `ts-json-schema-generator` as a CLI tool during development and it works great. I now have the need to use the tool in the browser. I'm trying to type...
xiag-ag/typescript-to-json-schema has had some new features that we should port over. Your help is greatly appreciated. See https://github.com/vega/ts-json-schema-generator/compare/master...xiag-ag:master for a diff.
TypeScript 4.0 introduced [labeled tuple elements](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-0.html#labeled-tuple-elements). However, it seems that they break the schema generator. When generating a schema from a type that references a labeled tuple, I end up...
Given the example: ```ts export interface MyGeneric { a: T["a"]; b: T["b"]; } export interface MyObject extends MyGeneric {} ``` The following output is expected: ```json { "$ref": "#/definitions/MyObject", "$schema":...
An inventorization of features that are missing in this module (for #101). There might be things that you (@domoritz) don't want to add, or that I missed some. If so,...
### Work as expected When defining a typescript type from an array const, ts-json-schema-generator works as expected, and output the correct json schema. `shared/src/foo.ts` ```ts export const MEDIA_TYPES = ['image',...
``` { MinAge: 9223372036854775807n | bigint; MaxAge: 9223372036854775807n | bigint; } ```
Using `object` in conditional type will cause incorrect generated schema: ``` export type Conditional = T extends object ? { a: object } : T extends string ? { b:...