We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5be91b commit 9d7f270Copy full SHA for 9d7f270
1 file changed
ProjectTemplates/ReferenceProject/Startup.cs
@@ -82,6 +82,11 @@ public void ConfigureServices(IServiceCollection services)
82
options.JsonSerializerOptions.IgnoreNullValues = true;
83
options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter(JsonNamingPolicy.CamelCase));
84
options.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;
85
+#if DEBUG
86
+ options.JsonSerializerOptions.WriteIndented = true;
87
+#else
88
+ options.JsonSerializerOptions.WriteIndented = false;
89
+#endif
90
})
91
.AddApiExplorer()
92
.SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
0 commit comments