Skip to content

Commit 3f80b30

Browse files
committed
Issue: 237 - Made Date Property Nullable
Updated c# from 7.3 to 8 for nullable reference type support
1 parent 3420df9 commit 3f80b30

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Src/Notion.Client/Models/PropertyValue/DatePropertyValue.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public class DatePropertyValue : PropertyValue
1313
/// <summary>
1414
/// Date
1515
/// </summary>
16-
[JsonProperty("date")]
17-
public Date Date { get; set; }
16+
[JsonProperty("date", NullValueHandling = NullValueHandling.Include)]
17+
public Date? Date { get; set; }
1818
}
1919

2020
/// <summary>

Src/Notion.Client/Notion.Client.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<VersionPrefix>2.2.3-preview</VersionPrefix>
55
<TargetFramework>netstandard2.0</TargetFramework>
6-
<LangVersion>7.3</LangVersion>
6+
<LangVersion>8.0</LangVersion>
77

88
<PackageId>Notion.Net</PackageId>
99
<Authors>Vedant Koditkar</Authors>

0 commit comments

Comments
 (0)