Skip to content

Commit 95ffdd3

Browse files
fix notion api error message parsing
1 parent cf1e4ee commit 95ffdd3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
Lines changed: 6 additions & 1 deletion
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)