pydantic-to-typescript
pydantic-to-typescript copied to clipboard
Enum names are not preserved
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
This is most likely a duplicate of https://github.com/phillipdupuis/pydantic-to-typescript/issues/15
+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).