typescript-json-schema icon indicating copy to clipboard operation
typescript-json-schema copied to clipboard

Generate json-schema from your Typescript sources

Results 108 typescript-json-schema issues
Sort by recently updated
recently updated
newest added

## Issue When generating a schema programmatically, specifying an absolute `basePath` causes a "Error: type [target TS type] not found" error, presumably because TSJ is failing to find the specified...

* add helper functions getDeclarationValue() and getInitializerValue() * make user symbols available to sandbox evaluation * simplify initializer logic (eliminate ifs) Please: - [x] Make your pull request atomic, fixing...

```typescript enum Fruit { Apple = 'apple', Orange = 'orange' } class Test { fruit: Fruit = Fruit.Apple; } ``` Then I get: ```typescript { fruit: { enum: ['apple', 'orange'],...

enhancement
help wanted

`getMainFileSymbols` returns all available symbols within the file, including imported types. We need only the exported symbols. Is there any way to figure out, whether a symbol is exported or...

I've a TypeScript class wich extends HTMLElement. I'd like to create the json scheme, but ignore alle the properties/methods/events from the base class. So the schema should only contain my...

Used fix provided by @jer-sen and closes #582 I _believe_ this only occurs for ESM projects with `"moduleResolution": "NodeNext"` in `tsconfig.json` and introduced in [TS 4.7](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-beta/#resolution-mode). This fix is backwards...

# problem consider `Record`, and that it outputs: `$ref: #/definitions/Record`, where `#/definitions/Record` in the definitions object is: ``` "Record": { "description": "Construct a type with a set of properties K...

When adding the `--title` parameter, I get a schema with the following content: ```json { "definitions": { "SomePropertyType": { ... } }, "properties": { "someProperty": { "$ref": "#/definitions/SomePropertyType", "title": "someProperty"...

The following example still in one case generates `const` instead of `enum`: ```typescript type A = B | C interface B { myProp?: false } interface C { myProp: true...

[email protected] is error, but [email protected] is correct. error in: description output Expected output: "description": "This file was auto-generated by @aaa/bbb.\nDo not make direct changes to the file.", actual output: "description":...