https://www.saaspegasus.com/ logo
Title
s

Sean Xie

05/25/2023, 7:48 PM
anyone run into this issue? how to fix it? We’re using a model with some enum fields, and we’re generating front end code using open API
openapi-generator generate _-i_
<http://localhost:8000/api/schema/>
_-g_ typescript-fetch _-o_ ./assets/javascript/api-client
, Open API is generating an object of this form
{ '0': 'f', '1': 'i', '2': 's', '3': 'h' }
instead of string @Cory
A similar bug was reported here https://github.com/OpenAPITools/openapi-generator/issues/1429 but it was fixed. Not sure are they the same type of bug
c

Cory

05/26/2023, 6:43 AM
Haven't seen that before. Are you able to share the serializer/view code that leads to that?