C
C#5h ago
Swyftey

✅ Asp.Net 9 OpenAPI Swagger UI not using Newtonsoft JSON Snake Case strategy

Hi, How can I get the Swagger UI for OpenAPI to work with Newtonsoft JSON for Snake Case? I've tried: - Setting attributes on the body input DTO (JsonObject, JsonPropertyName) - Making a snake case Schema and Document filter How can I fix this?
No description
No description
6 Replies
Swyftey
SwyfteyOP5h ago
Forgot to include I am using .AddSwaggerGenNewtonsoftSupport() too
No description
kurumi
kurumi5h ago
$close
MODiX
MODiX5h ago
If you have no further questions, please use /close to mark the forum thread as answered
Swyftey
SwyfteyOP5h ago
.....? I meant I forgot to include in my post the fact I have included that line, yet Swagger UI is not using snake case.
kurumi
kurumi5h ago
Ah, sry. I thought it resolved your issue
Swyftey
SwyfteyOP5h ago
You're good Fixed it by removing OpenAPI (which I thought was part of swagger, or the new swagger? Idk).

Did you find this page helpful?