ts-json-schema-generator icon indicating copy to clipboard operation
ts-json-schema-generator copied to clipboard

Handle const like enum with only one option

Open UzairNoman opened this issue 10 months ago • 2 comments

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

UzairNoman avatar Mar 27 '24 14:03 UzairNoman