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
which causes an unexpected token error due to numeric enum key not being valid.
before converting swagger enum array to typescript enum, can the generator check to see if the enum key is possibly numeric and if so keep the key a string?
The other issue is also enums with spaces in the enum values
The text was updated successfully, but these errors were encountered:
bradrisse
changed the title
useEnums with numberic values in swagger
useEnums with numberic values or strings with spaces in swagger
Jul 21, 2023
bradrisse
changed the title
useEnums with numberic values or strings with spaces in swagger
useEnums with numeric values or strings with spaces in swagger
Aug 8, 2023
gets converted to
which causes an unexpected token error due to numeric enum key not being valid.
before converting swagger enum array to typescript enum, can the generator check to see if the enum key is possibly numeric and if so keep the key a string?
The other issue is also enums with spaces in the enum values
Maybe 'x-enumNames' like here https://stackoverflow.com/questions/66465888/how-to-define-enum-mapping-in-openapi
The text was updated successfully, but these errors were encountered: