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 392 forks source link

Added option to remove comment about interface referencer #575

Open Stmated opened 9 months ago

Stmated commented 9 months ago

When generating code using unreachableDefinitions it adds a comment to the interface stating This interface was referenced by.... I find this quite annoying. So I added an option to not include those comments.

Stmated commented 8 months ago

Thanks for the contribution, but I'm not sure this change is worth the added complexity it introduces. We can revisit if there is significant interest from others (please feel welcome to open an issue).

You know what would bring even less complexity? Just removing the comment without any setting of enabling it.