You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is strange... It should™ work exactly this way and with the demo/enumApi.ts it does:
I'd assume this is a problem on your end. Maybe along the lines of import type { JobCommand } instead of import { JobCommand }. Can you please double-check?
Closing as I assume we can't help with this, please re-open when you have more infos and need adjustments on our end.
I can use the
--useEnumType
flag to generate enums instead of union types. For example:However, this won't let me reference the values in code like
JobCommand.Start
I'm trying to migrate from the official open api generator, which generated this:
The text was updated successfully, but these errors were encountered: