feat(Format): create to centrilize the formats.

- Add json serializer settings for diagnostics and implement to DocumentController
This commit is contained in:
2025-09-03 11:06:47 +02:00
parent e623680c3f
commit fa46dd1fa8
3 changed files with 24 additions and 11 deletions

View File

@@ -0,0 +1,20 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace EnvelopeGenerator.Domain.Constants
{
public class Format
{
#region Json Serializer Settings
public static class Json
{
public static readonly JsonSerializerSettings ForDiagnostics = new JsonSerializerSettings()
{
ContractResolver = new CamelCasePropertyNamesContractResolver(),
Formatting = Formatting.Indented,
NullValueHandling = NullValueHandling.Include
};
}
#endregion
}
}

View File

@@ -35,6 +35,7 @@
<ItemGroup>
<PackageReference Include="DigitalData.EmailProfilerDispatcher.Abstraction.Attributes" Version="1.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="UserManager.Domain" Version="3.2.3" />
</ItemGroup>