From fedc7cd9592760915785b24fc1b1530b2b8bfaa5 Mon Sep 17 00:00:00 2001 From: Labby Date: Thu, 26 Mar 2026 20:35:11 +0300 Subject: [PATCH] Fix: Add type: object to parentRequest schema The parentRequest schema in scripts/notion-openapi.json was missing type: object, causing MCP clients to stringify object parameters instead of passing them as proper objects. This fixes the bug where creating a page with a parent object (e.g., {database_id: ...}) would fail with validation errors. --- scripts/notion-openapi.json | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/notion-openapi.json b/scripts/notion-openapi.json index 18669f22..583ba44e 100644 --- a/scripts/notion-openapi.json +++ b/scripts/notion-openapi.json @@ -108,6 +108,7 @@ ] }, "parentRequest": { + "type": "object", "oneOf": [ { "$ref": "#/components/schemas/pageIdParentRequest"