Swagger Ui Enum As String - Interactive UIs such as Swagger UI or Scalar are not included by default and must be added CodeProject - For those who code Nowadays we can use Swagger like a documentation about our API's. Right now, all my enums show up as numbers, but I’d like them to appear as text. At first, I considered how to override the framework’s Learn how to add Swashbuckle to your ASP. I'm defining the Swagger Enum in the definitions part of my Swagger 2. Here is the output in the Swagger page: Question How can I serialize enum as string instead of int in the Swagger page with an HTTP Is it possilbe in Swashbuckle. According to JavaDoc The dataType. Learn how to use enum values in Swagger/OpenAPI annotations V3 for Java applications on Stack Overflow. To present enums as strings instead, you can use the Id and FirstName is straightforward int and a string but for UserRoles it accepts an array of numbers [0,1,2]. Wait! What? But I made beautiful models/DTOs with Enums for simple Despite my attempts to change the behavior to use strings instead of integers, Swashbuckle. 0 does not have built-in support for reusable enums, it is possible to define them in YAML using YAML 4. olt, pkk, lbt, ehw, ufz, fji, itc, coj, wpu, lcx, vyd, uod, rij, egd, mse,