Skip to content

Conversation

@xiaoye-hua
Copy link

Resolves issue where expanded date properties like "date:PropertyName:start"
were silently dropped during OpenAPI-to-MCP conversion, causing empty date
columns in Notion UI.

Changes:

  • Modified OpenAPIToMCPConverter to allow additionalProperties for "properties" field in post-page and patch-page operations
  • Added validation and debug logging in HttpClient for date property tracking
  • Added comprehensive unit tests to prevent regression

Before: { "date:Date:is_datetime": 0 } - start field dropped
After: { "date:Date:start": "2025-10-10", "date:Date:is_datetime": 0 } - preserved

Fixes #121

  Resolves issue where expanded date properties like "date:PropertyName:start"
  were silently dropped during OpenAPI-to-MCP conversion, causing empty date
  columns in Notion UI.

  Changes:
  - Modified OpenAPIToMCPConverter to allow additionalProperties for "properties"
    field in post-page and patch-page operations
  - Added validation and debug logging in HttpClient for date property tracking
  - Added comprehensive unit tests to prevent regression

  Before: { "date:Date:is_datetime": 0 } - start field dropped
  After:  { "date:Date:start": "2025-10-10", "date:Date:is_datetime": 0 } - preserved

  Fixes makenotion#121
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.

notion-create-pages silently drops date:PropertyName:start fields, causing empty date columns

1 participant