I have an enum in my swagger scheme which looks like the following:
- name: shipmentType
in: query
required: false
type: integer
format: int32
enum:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
After generating the typescript-angular client with swagger codegen (2.4.17), the generated enum looks like the following picture:

is there any way to make the generator use the typescript enum type instead of creating a custom object?
It seems once I set stringEnums to true in the openapi-generator, it actually generates enums and not type
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With