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

## Summary ts-json-schema-generator fails to parse types from declaration files (`*.d.ts`). ## Repro With the following minimal repro: ```ts // declaration.d.ts declare type Model = string; ``` ```ts // ForgeElementOverlay.ts...

Partially closes #2233 --- When a type alias with generic parameters ultimately resolves to a purely structural type (no remaining type-parameters, no public reusable symbol), emitting it as a separate...

Hi! At the moment, when an **exported** type is a union of **other exported literal-only unions**, the generator emits a separate definition for each constituent type and then references them...

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.15.30 to 24.0.3. Commits See full diff in compare view Most Recent Ignore Conditions Applied to This Pull Request | Dependency Name | Ignore Conditions | |...

dependencies
javascript

fix https://github.com/vega/ts-json-schema-generator/issues/2272

Seems like a very simple repro: Simpler repro: ```ts export type SomeType = { foo: NonNullable } ``` ```json { "$ref": "#/definitions/RelaxedMatchedHeadline", "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "RelaxedMatchedHeadline": { "properties": {...

### TL;DR * When `--additional-properties` is true, any helper that contains `TBase[K] /* where K ∈ keyof TBase */` inside a **mapped type** crashes the generator with ``` LogicError: Unexpected...

minimal reproduction: remove parameter type in test case https://github.com/vega/ts-json-schema-generator/blob/53c8da283a78cc15c286b45173580444b762b212/test/valid-data/function-parameters-default-value/main.ts#L1 ![Image](https://github.com/user-attachments/assets/73931351-1981-4b9a-afa3-4b134e0f0b52) run case ![Image](https://github.com/user-attachments/assets/fb3fb704-39b2-405f-81ce-aeb0b1b6e65b) i found parameter node.type is undefined in this case ![Image](https://github.com/user-attachments/assets/4ce978c5-bec1-4631-9b32-6740fcddef02) maybe we should get type by SymbolObject...

`ts-json-schema-generator` would be a tool that would greatly benefit from a faster execution time. With TS being ported to GO until it gets released as a go-only tool, I don't...

enhancement
help wanted