Skip to content

Commit 5140c25

Browse files
author
Oren (electricessence)
committed
Make options 'optional'. Fixed spelling.
1 parent f9260d2 commit 5140c25

4 files changed

Lines changed: 19 additions & 19 deletions

File tree

Open.Serialization.Json/IJsonSerializationOptions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ public interface IJsonSerializationOptions
88
/// <summary>
99
/// If true the serializer will format the JSON properties camelCase.
1010
/// </summary>
11-
bool CamelCaseProperties { get; }
11+
bool? CamelCaseProperties { get; }
1212

1313
/// <summary>
1414
/// If true the serializer will format the JSON map keys camelCase.
1515
/// </summary>
16-
bool CamelCaseKeys { get; }
16+
bool? CamelCaseKeys { get; }
1717

1818
/// <summary>
1919
/// If true the serializer will omit map entries with null values.
2020
/// </summary>
21-
bool OmitNull { get; }
21+
bool? OmitNull { get; }
2222

2323
/// <summary>
2424
/// If true the serializer will format the JSON multi-line indented.
2525
/// </summary>
26-
bool Indent { get; }
26+
bool? Indent { get; }
2727
}
2828
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
namespace Open.Serialization.Json
2+
{
3+
/// <inheritdoc />
4+
public class JsonSerializationOptions : IJsonSerializationOptions
5+
{
6+
public bool? CamelCaseProperties { get; set; }
7+
8+
public bool? CamelCaseKeys { get; set; }
9+
10+
public bool? OmitNull { get; set; }
11+
12+
public bool? Indent { get; set; }
13+
}
14+
}

Open.Serialization.Json/JsonSerialzationOptions.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

Open.Serialization.Json/Open.Serialization.Json.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Part of the "Open" set of libraries.
1717
<RepositoryUrl>https://github.com/electricessence/Open.Serialization</RepositoryUrl>
1818
<RepositoryType>git</RepositoryType>
1919
<PackageTags>serialization json</PackageTags>
20-
<Version>1.2.1</Version>
20+
<Version>1.2.2</Version>
2121
</PropertyGroup>
2222

2323
<ItemGroup>

0 commit comments

Comments
 (0)