Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
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)

AltStyle によって変換されたページ (->オリジナル) /