Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What about enum generation from swagger Swashbuckle? #9

Open
mail4andrey opened this issue Jun 28, 2018 · 0 comments
Open

What about enum generation from swagger Swashbuckle? #9

mail4andrey opened this issue Jun 28, 2018 · 0 comments

Comments

@mail4andrey
Copy link

What about enum generation from swagger Swashbuckle?
Enum example -
... "properties": { "EnumTest": { "enum": [ "Test", "Test2", ], "type": "string" } }...
Now swagger-ts-client miss enum types. Just generate properties as string type - propTest?: string;

For example it works in https://github.com/RSuter/NSwag/wiki/NSwagStudio but it's in c#.
It generates something this -
export enum EnumTest { Test = <any>"Test", Test2 = <any>"Test2", }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants