geeklearningio / gl-swagger-generator

Jane - An OpenAPI Specification (formerly Swagger) Client Generator
MIT License
6 stars 1 forks source link

Enum support #9

Open arnaudauroux opened 7 years ago

arnaudauroux commented 7 years ago

Enumerations are today converted to strings

sandorfr commented 6 years ago

Yes and no it depends on your swagger / api. For instance it's likely you are using this swashbuckle settings: https://github.com/domaindrivendev/Swashbuckle.AspNetCore#customize-schema-for-enum-types.

That being said, I definitely want to improve the scenarios around enums which shouldn't be to hard especially since typescript now supports string enums.

Can you tell me more about what you expect so I might come with a draft spec?

other inputs in #40

sandorfr commented 6 years ago

ping @arnaudauroux