{"repo":"vega/ts-json-schema-generator","free":true,"listed":false,"github":"https://github.com/vega/ts-json-schema-generator","clone":"git clone https://github.com/vega/ts-json-schema-generator.git","description":"Generate JSON schema from your Typescript sources","language":"TypeScript","stars":1713,"topics":["json-schema","typescript","compiler","generator"],"license":"MIT","category":"dev-tools","readme_excerpt":"ts-json-schema-generator Extended version of https://github.com/xiag-ag/typescript-to-json-schema. Inspired by YousefED/typescript-json-schema . Here's the differences list: - this implementation avoids the use of typeChecker.getTypeAtLocation() (so probably it keeps correct type aliases) - processing AST and formatting JSON schema have been split into two independent steps - not exported types, interfaces, enums are not exposed in the definitions section in the JSON schema Contributors This project is made possible by a community of contributors. We welcome contributions of any kind (issues, code, documentation, examples, tests,...). Please read our code of conduct. CLI Usage Run the schema generator with npx: Or install the package and then run it Note that different platforms (e.g. Windows) may use different path separators so you may have to adjust the command above. Also note that you need to quote paths with as otherwise the shell will expand the paths and therefore only pass the first path to the generator. By default, the command-line generator will use the tsconfig.json file in the current working directory, or the first parent directory that contains a tsconfig.json file up to the root of the filesystem. If you want to use a different tsconfig.json file, you can use the --tsconfig option. In particular, if you need to use different compilation options for types, you may want to create a separate tsconfig.json file for the schema generation only. Options Programmatic","default_branch":null,"files":null,"tree":[],"storefront":"/r/vega","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vega/ts-json-schema-generator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}