ts-json-schema-generator
ts-json-schema-generator copied to clipboard
Handle const like enum with only one option
Need a way to handle this problem in the generator: https://github.com/json-editor/json-editor/pull/1446
The inspiration repo implements it with optional paramater --constAsEnum Use enums with a single value when declaring constants.
:
https://github.com/YousefED/typescript-json-schema