mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-02-17 15:57:41 +01:00
* Create WireMock.Net.MimePart project * . * REFACTOR * ILRepack * -- * ... * x * x * . * fix * public class MimePartMatcher * shared * min * . * <!--<DelaySign>true</DelaySign>--> * Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
// Copyright © WireMock.Net
|
|
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Serialization;
|
|
|
|
namespace WireMock.Serialization;
|
|
|
|
internal static class JsonSerializationConstants
|
|
{
|
|
public static readonly JsonSerializerSettings JsonSerializerSettingsDefault = new()
|
|
{
|
|
Formatting = Formatting.Indented,
|
|
NullValueHandling = NullValueHandling.Ignore
|
|
};
|
|
|
|
public static readonly JsonSerializerSettings JsonSerializerSettingsIncludeNullValues = new()
|
|
{
|
|
Formatting = Formatting.Indented,
|
|
NullValueHandling = NullValueHandling.Include
|
|
};
|
|
|
|
public static readonly JsonSerializerSettings JsonDeserializerSettingsWithDateParsingNone = new()
|
|
{
|
|
DateParseHandling = DateParseHandling.None
|
|
};
|
|
|
|
public static readonly JsonSerializerSettings JsonSerializerSettingsPact = new()
|
|
{
|
|
Formatting = Formatting.Indented,
|
|
NullValueHandling = NullValueHandling.Ignore,
|
|
ContractResolver = new DefaultContractResolver
|
|
{
|
|
NamingStrategy = new CamelCaseNamingStrategy()
|
|
}
|
|
};
|
|
} |