This commit is contained in:
@@ -81,6 +81,9 @@ namespace AyaNova
|
||||
config.Filters.Add(new AyaNova.Api.ControllerHelpers.ApiCustomExceptionFilter(_newLog));
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
//Prevent default model binding automatic 400 page so we can consistently show *our* error to our specs
|
||||
//https://docs.microsoft.com/en-us/aspnet/core/web-api/index?view=aspnetcore-3.1#automatic-http-400-responses
|
||||
MvcBuilder.ConfigureApiBehaviorOptions(options =>
|
||||
@@ -89,9 +92,12 @@ namespace AyaNova
|
||||
});
|
||||
|
||||
_newLog.LogDebug("BOOT: init JSON");
|
||||
|
||||
MvcBuilder.AddNewtonsoftJson(options =>
|
||||
{
|
||||
options.SerializerSettings.Formatting = Newtonsoft.Json.Formatting.None;
|
||||
options.SerializerSettings.DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc;
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -134,7 +140,7 @@ namespace AyaNova
|
||||
bool LOG_SENSITIVE_DATA = false;
|
||||
|
||||
#if (DEBUG)
|
||||
LOG_SENSITIVE_DATA = false;
|
||||
LOG_SENSITIVE_DATA = false;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user