Open
Description
Previously, examples were able to be formatted separately from formatting the JSON output.
This change removed the JsonSerializerSettings
which would allow you to set JsonSerializerSettings.Formatting
to whatever you like.
I was able to get examples to format in the swagger document by including the following in my Startup.ConfigureServices
:
.AddNewtonsoftJson(options =>
{
options.SerializerSettings.Formatting = Formatting.Indented;
});
However, this means that all responses from my endpoints are now formatted, which increases the size of the response as well as breaking any tests that were looking for specific spacing.
Metadata
Metadata
Assignees
Labels
No labels