Skip to content

Commit 228d91f

Browse files
Merge pull request #33 from hiiater/fixes/object-type_wrong_serialization_(issue_#32)
🔨 IObject.Object converter set to StringEnumConverter
2 parents 63ef92a + 773d38b commit 228d91f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Src/Notion.Client/Models/IObject.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using JsonSubTypes;
22
using Newtonsoft.Json;
3+
using Newtonsoft.Json.Converters;
34

45
namespace Notion.Client
56
{
@@ -11,6 +12,8 @@ namespace Notion.Client
1112
public interface IObject
1213
{
1314
string Id { get; set; }
15+
16+
[JsonConverter(typeof(StringEnumConverter))]
1417
ObjectType Object { get; }
1518
}
1619
}

0 commit comments

Comments
 (0)