✅ 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?


6 Replies
Forgot to include I am using .AddSwaggerGenNewtonsoftSupport() too

$close
If you have no further questions, please use /close to mark the forum thread as answered
.....?
I meant I forgot to include in my post the fact I have included that line, yet Swagger UI is not using snake case.
Ah, sry. I thought it resolved your issue
You're good
Fixed it by removing OpenAPI (which I thought was part of swagger, or the new swagger? Idk).