pydantic-to-typescript icon indicating copy to clipboard operation
pydantic-to-typescript copied to clipboard

Enum names are not preserved

Open javibookline opened this issue 2 years ago • 5 comments

Enums which are part of a pydantic model are translated to a type, losing relevant and useful information that could be kept if they were translated to enums in typescript too

javibookline avatar Nov 28 '22 14:11 javibookline

This is most likely a duplicate of https://github.com/phillipdupuis/pydantic-to-typescript/issues/15

robbieaverill avatar Jan 20 '23 00:01 robbieaverill

+1.

This would be nice considering I'm using enum names in backend and I would prefer not to use just the enum values in my frontend (which are nearly meaningless without the names).

kevinhikaruevans avatar Sep 11 '23 17:09 kevinhikaruevans