CarterCommunity / Carter

Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable.
MIT License
2.05k stars 172 forks source link

OpenAPI Enum Support #262

Closed Dreamwalker666 closed 3 years ago

Dreamwalker666 commented 3 years ago

OpenAPI supports enums of string values

Currently enums output as {} in components.schema. I think these should output using string and the enum values using the enum specification

https://swagger.io/docs/specification/data-models/enums/