Skip to content

Commit 79c1f63

Browse files
Merge pull request #315 from notion-dotnet/fix-notion-api-parsing
fix notion api error message parsing
2 parents 55e27a6 + 95ffdd3 commit 79c1f63

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
namespace Notion.Client
1+
using Newtonsoft.Json;
2+
3+
namespace Notion.Client
24
{
35
class NotionApiErrorResponse
46
{
7+
[JsonProperty("code")]
58
public NotionAPIErrorCode ErrorCode { get; set; }
9+
10+
[JsonProperty("message")]
611
public string Message { get; set; }
712
}
813
}

0 commit comments

Comments
 (0)