ts-json-schema-generator icon indicating copy to clipboard operation
ts-json-schema-generator copied to clipboard

Generate JSON schema from your Typescript sources

Results 178 ts-json-schema-generator issues
Sort by recently updated
recently updated
newest added

I'd love to support something like this: ``` type SnakeToCamelCase = S extends `${infer T}_${infer U}` ? `${T}${Capitalize}` : S; type C = SnakeToCamelCase; ``` Right now, `C` seems just...

## Bug: Invalid index "length" in type "[]" ### Description When running `ts-json-schema-generator` on a file containing the following TypeScript type: ```typescript export type Test = []['length']; ``` the tool...

![Image](https://github.com/user-attachments/assets/97d8b97d-b394-45ff-b8f2-a30ff0338b16) npx ts-json-schema-generator --path 'test1.ts' ```zsh npx ts-json-schema-generator --path 'test1.ts' error TSJ - 103: Type "B" has multiple definitions. B: Type "B" has multiple definitions. ``` How to reproduce ```ts...

All root child definitions have a `title` added to their definition if the opt-in `definitionTitles` option is set * The title value is the same as the node name (which...

feedback

Hi, I'd like to know if this is a known issue and whether there's a chance that ts-json-schema-generator addresses such cases. This is currently preventing me from migrating away from...

When a type is imported from another file - even a simple object type - the generated schema includes an extra `$ref` and definition, unlike the same type defined inline....

I'm working on a big project. It compiles using TSC to `.d.ts` files (see #2215). However, when trying to run the `ts-json-schema-generator` on the `.d.ts` files, I am regularly getting...

_Example types:_ ```ts export type BaseExample = { results: T; }; export type BaseExampleWithDefault = { results: T; }; export type BaseExampleWithConstraint = { results: T; }; ``` None of...

> To reproduce this behavior: > > ```bash > git clone https://github.com/TypeStrong/typedoc > cd typedoc > npx ts-json-schema-generator -p src/**.ts -t ProjectReflection -f tsconfig.json --no-type-check >/dev/null # succeeds > npx...

Not an issue, but a set of instructions for folks interested (and maybe the maintainers are interested in supporting this natively) You can see my WIP playground (for something else)...