Closed mercer closed 4 years ago
Dup of #1459. TL;DR this version defaults to honoring System.Text.Json
(as opposed to Newtonsoft
) serializer behavior. You need to expicitly opt-in to honoring Newtonsoft as described here in the readme
I'm with netcoreapp2.2
, does this still apply? https://github.com/domaindrivendev/Swashbuckle.AspNetCore#systemtextjson-stj-vs-newtonsoft talks about netcoreapp3.0
It does apply; problem solved
Swagger api for an endpoint that accepts an enum query is generated as in values.
I'm with Swashbuckle.AspNetCore.SwaggerGen 5.0.0 and netcoreapp2.2
The enum I use
My controller
Generated swagger api
Swashbuckle.AspNetCore.SwaggerGen 4.0.0 used to generate proper enum values