geeklearningio / gl-swagger-generator

Jane - An OpenAPI Specification (formerly Swagger) Client Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enum support

arnaudauroux opened this issue · comments

Enumerations are today converted to strings

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