Skip to content

Date mentions are not correctly serialized #413

Closed
@matkoch

Description

@matkoch

The original Mention object allows to set ta date as follows:

mention.Mention.Date.Date = new Date { Start = ... }

This results in a serialized JSON that has 1 additional date property in the middle. Notion validation returns the following:

.mention.date.start should be defined, instead was `undefined`

I introduced a hotfix that skips the additional Date property:

public class MentionPatch : Mention
{
    [JsonProperty("date")]
    public Date Date1 { get; set; }
}

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions