json-schema-to-typescript
json-schema-to-typescript copied to clipboard
Compile JSON Schema to TypeScript type declarations
As the title is saying I was wondering if it is possible to disable the generation of reference comments when `--unreachableDefinitions` is used. I had recently to enable this feature...
Hello, @bcherny, thank you for package 🙂 i use it and stumbled a mirror bug with `title` inside property. Currently `title` in property means name of property but in [json...
I would love to generate `myTypes.ts` instead of generating `myTypes.d.ts ` Is this possible? ` "build:types": "yarn json2ts -i src/feature/schema/ -o src/feature/type/`
Thank you for this library. Very useful! I noticed that when I set `declareExternallyReferenced` to `true`, only the root object of a schema is parsed but none of the child...
Hello, I noticed a inconsistent handling of the `cwd` option in [compile](https://github.com/bcherny/json-schema-to-typescript/blob/8ea10a61f0d4b24749ae033a37f9aa3fb9a94417/src/index.ts#L96) because of the default function argument assignation and the merging of a default cwd value. _Case 1: no...
Added root level yaml-file support Didn't really look at the tests, feedback appreciated
This is sometimes used in comments to refer to some Paths and make Prettier fail, resulting in a log message and an empty file. It would be very handy to...
This schema: ```js { // ... "type": "object", "properties": { "displaySymbol": { "title": "Symbol", "type": "string", "nullable": true }, // ... } ``` Emits: ```typescript export type Symbol = string;...
`cat schema.json | json2ts` produces an empty file (just some comments) `json2ts schema.json` works as expected.
I hope enums of string ``` { "title": "TestEnum", "type": "string", "enum": [ "A", "B" ] } ``` to be converted as typescript string enum like below. ``` enum TestEnum...