quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

Make enums optional

Open Philip2809 opened this issue 1 year ago • 1 comments

Hey!

Awesome project you have, I love it, used for typescript and c#, however I would like to have the feature to toggle if it should generate enums or just put "string". Here is an example: image I have provided a sample data of about 50 entries, and I don't want to be limited to these colors for example. Right now I manually have to replace everything with string, but would be nice if it was a toggle to use enums or strings.

Thanks, best regards Philip

Philip2809 avatar Mar 24 '23 20:03 Philip2809

I just want to reignite the discussion since we generate schemas from numerous sources and aim to avoid enum generation. It would also be beneficial to have the ability to specify field names for which we do not want to generate enums.

dobeerman avatar Feb 10 '24 12:02 dobeerman