Skip to content

fix: flatten update-a-block request schema - #348

Open
ayyYoSam wants to merge 1 commit into
makenotion:mainfrom
ayyYoSam:fix/issue-271-update-block-schema
Open

fix: flatten update-a-block request schema#348
ayyYoSam wants to merge 1 commit into
makenotion:mainfrom
ayyYoSam:fix/issue-271-update-block-schema

Conversation

@ayyYoSam

@ayyYoSam ayyYoSam commented Sep 2, 2026

Copy link
Copy Markdown

Description

Fixes the update-a-block OpenAPI schema so block updates use the block-type field at the top level instead of a nested type object. The request body now composes blockObjectRequest with the existing archived field using allOf, matching the Notion API request shape.

Fixes #271

Fixes makenotion/claude-code-notion-plugin#14

How was this change tested?

  • Manual test (provide reproducible testing steps below)

Manual validation

  1. Updated scripts/notion-openapi.json to compose blockObjectRequest with archived.
  2. Ran:
    node -e "JSON.parse(require('fs').readFileSync('scripts/notion-openapi.json','utf8')); console.log('OK')"
  3. Confirmed the spec remained valid (OK).

Screenshots

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant