notion-dotnet / notion-sdk-net

A Notion SDK for .Net
MIT License
181 stars 46 forks source link

RetrievePagePropertyItem does not return any data for RichText properties (v4 preview) #317

Closed Scantheus closed 1 year ago

Scantheus commented 2 years ago

Adding JsonProperty attribute to RichTextPropertyItem.cs fixed it for me.

public class RichTextPropertyItem : SimplePropertyItem
{
    public override string Type => "rich_text";

    [JsonProperty("rich_text")]
    public RichTextBase RichText { get; set; }
}
KoditkarVedant commented 2 years ago

Fix is available as part of pre-release version - 4.0.0-preview-4.9.11.2022

KoditkarVedant commented 1 year ago

4.0.0 Released