json-schema-to-typescript
json-schema-to-typescript copied to clipboard
Compile JSON Schema to TypeScript type declarations
For the "Not expressible in TypeScript:" list in the README, I am wondering whether you would be interested in providing default output whereby such items could be expressed as jsdoc...
Hi, I'm using this tool in my project and I was thinking that it would be good if the tool added a union type for arrays when translating a JSON...
Currently there is no way how to pass to CLI file with banner ( banners tends to be longer than one line comment ) **Current solution:** ```sh json2ts -i events.json...
I have a json schema using keyword $merge (to merge two subschemas, where allof fails due to the 'additionalProperties=false' issue). Passing it through the json-schema-to-typescript gives an empty interface.
So we have project with structure like `project/apidocs/entitity` `project/apidocs/response` `project/ts-apidocs/entitity` `project/ts-apidocs/response` if we launch cli tool like `cd apidocs && json2ts -i ./response/**/*.json -o ../ts-apidocs` we have a file `./apidocs/response/Something.json`...
Some popular packages, like [Ramda](https://github.com/ramda/ramda#installation), allow installation from [Deno](https://deno.land/), - a js/ts environment, much more secure than NodeJS, made by Ryan Dahl, author of NodeJS (with ts being first-class citizen,...
The `oneOf` properties is described in README as `Not expressible in TypeScript`. I recently discovered the discriminated union type with a mutual exclusion, which fit perfectly with a XOR: ```typescript...
Fixes #272 - adds new option `--exportMainOnly` (default to false) which causes all definition types to be not exported - adds new option `usedNames` (not available to command line) which...
Hi @bcherny, Once again, thanks for your great work! I'm having a strange situation, might be considered as a bug, or a feature... depends on your interpretation. For me it's...
Hi there ! I have a problem with property, ref and description. If two properties of a type have the same ref definitions and two different descriptions, `json2ts` duplicate the...