bcherny / json-schema-to-typescript

Compile JSON Schema to TypeScript type declarations
https://bcherny.github.io/json-schema-to-typescript-browser/
MIT License
2.95k stars 393 forks source link

Allow for deduplication #629

Closed Bluscream closed 2 months ago

Bluscream commented 2 months ago

I have a bunch of schemas for different responses from a API: https://github.com/Bluscream/grayjay-source-pietsmietde/tree/master/schemas/pietsmiet.de And i would like to be able to convert them to .d.ts files, but the problem is that some of them include duplicates (a type being used by multiple responses and therefor in multiple

bcherny commented 2 months ago

Dup of https://github.com/bcherny/json-schema-to-typescript/issues/258