Tuesday, October 24, 2017

Swagger–Expose enums as strings in your Web API

By default Swagger exposes enums in your API definitions as numbers which makes it not easy to understand what a specific parameter value means.


You can configure Swagger to expose enums using string names instead. Therefore add the following line to your Swagger configuration:



No comments: