Content-Length: 276910 | pFad | https://github.com/notion-dotnet/notion-sdk-net/pull/434

E8 413 fix date mention creation and deserialization by KoditkarVedant · Pull Request #434 · notion-dotnet/notion-sdk-net · GitHub
Skip to content

413 fix date mention creation and deserialization #434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

KoditkarVedant
Copy link
Contributor

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #413 and #414

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • Firmware version:
  • Hardware:
  • Toolchain:
  • SDK:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@KoditkarVedant KoditkarVedant requested a review from Copilot April 12, 2025 19:45
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

Src/Notion.Client/Models/Database/RichText/RichTextMention.cs:28

  • Verify that removing the [JsonProperty("date")] attribute is intentional and that the JSON serialization/deserialization still maps the 'date' field correctly to the new Date type.
public Date Date { get; set; }

Src/Notion.Client/Api/Databases/RequestParams/DatabasesCreateParameters/MentionInput.cs:20

  • Ensure that the removal of the [JsonProperty("date")] attribute is deliberate so that request payloads still correctly map the date field according to the desired JSON naming conventions.
public Date Date { get; set; }

@KoditkarVedant KoditkarVedant linked an issue Apr 12, 2025 that may be closed by this pull request
@KoditkarVedant KoditkarVedant force-pushed the 413-fix-date-mention-creation-and-deserialization branch from 1d12e3a to 3ea8bc4 Compare April 12, 2025 19:48
@KoditkarVedant KoditkarVedant merged commit 0c6c67a into main Apr 12, 2025
6 checks passed
@KoditkarVedant KoditkarVedant deleted the 413-fix-date-mention-creation-and-deserialization branch April 12, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using Date mentions doesn't allow to exclude Date mentions are not correctly serialized
1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/notion-dotnet/notion-sdk-net/pull/434

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy