acacode / swagger-typescript-api

Generate the API Client for Fetch or Axios from an OpenAPI Specification
MIT License
3.27k stars 354 forks source link

[BUG] Issues generating IntEnums #765

Open drhaliburton opened 3 months ago

drhaliburton commented 3 months ago

Generating enums with integer values results in invalid and duplicated keys. This looks related to the other reported issues with IntEnum generation.

Expected: Screenshot 2024-06-05 at 9 56 30 AM

Received: Screenshot 2024-06-05 at 9 55 31 AM

Related issues: https://github.com/acacode/swagger-typescript-api/issues/623 https://github.com/acacode/swagger-typescript-api/issues/502 https://github.com/acacode/swagger-typescript-api/issues/474 https://github.com/acacode/swagger-typescript-api/issues/276