Relative Content

Tag Archive for asp.net-corejson.netswagger-uiswashbuckleswashbuckle.aspnetcore

How to configure Newtonsoft JSON.NET serializer settings for Swagger example classes?

I am using Newtonsoft JSON.NET for object serialization in an ASP.NET Core (.NET 8) project implementing REST APIs and I need to change serialization settings used for Swagger examples from serialization settings used elsewehere, but I do not see any methods of customizing serialization settings just for the Swagger UI. Is it possible, and if so, are there any examples?