{"library":"ts-json-schema-generator","type":"library","category":null,"description":"ts-json-schema-generator is a robust tool that generates JSON Schema (supporting Draft 07, 2019-09, and 2020-12) directly from TypeScript types, interfaces, and classes. Unlike some alternatives, it processes the TypeScript Abstract Syntax Tree (AST) using the TypeScript compiler API, which allows for accurate handling of advanced TypeScript features such as generics, mapped types, union types, conditional types, and type aliases. The package, currently at version 2.9.0, is actively maintained with frequent minor updates and bug fixes. It serves as an extended version of `typescript-to-json-schema`, specifically designed to provide better support for type alias resolution and a more consistent schema output. It offers both a command-line interface (CLI) for quick generation and a programmatic API for integration into build pipelines, making it a versatile choice for ensuring data contracts align between TypeScript code and JSON-based systems.","language":"javascript","status":"active","version":"2.9.0","tags":["javascript","ts","typescript","json","schema","jsonschema"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ts-json-schema-generator","imports":["import { createGenerator } from 'ts-json-schema-generator';","import type { Config } from 'ts-json-schema-generator';","import type { Schema } from 'ts-json-schema-generator';"]},{"cmd":"yarn add ts-json-schema-generator","imports":[]},{"cmd":"pnpm add ts-json-schema-generator","imports":[]}],"homepage":null,"github":"https://github.com/vega/ts-json-schema-generator","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-json-schema-generator","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ts-json-schema-generator/compatibility"}}