Swashbuckle.aspnetcore: Add support for JsonPropertyNameAttribute from System.Text.Json

Created on 28 Sep 2019  路  4Comments  路  Source: domaindrivendev/Swashbuckle.AspNetCore

With the new json serializer from Microsoft the [JsonPropertyName] attribute comes to replace the old [JsonProperty]. However, swagger is not taking the value from this new attribute.

All 4 comments

Full support for System.Text.Json is next up on the backlog (once I get v3.0.0 released) and due to some recent refactorings should be relatively trivial. So, hopefully within the next month

hi there - i just came across this and i'm facing the same problem. i wanted to use the [JsonPropertyName] as swagger does not seem to be very case sensitive when dealing with parameters.

any progress here?

I'm also very interested in this feature

Changes are in master. Can preview by downloading latest preview from myget.org. Closing in on the official release

Was this page helpful?
0 / 5 - 0 ratings