Skip to content

feat: the meeting note page endpoints, named by operation, not by title - #24

Merged
MarkRosemaker merged 2 commits into
mainfrom
fix/meeting-notes
Nov 18, 2026
Merged

MarkRosemaker merged 2 commits into
mainfrom
fix/meeting-notes

Conversation

@MarkRosemaker

Copy link
Copy Markdown
Contributor

Generates the meeting-note endpoints from dbfcfee, and makes the generator robust to the kind of upstream change that broke it.

What broke: besides adding the two endpoints, upstream gave the POST /v1/oauth/token response the title "Authorization code or refresh token". flatten names a request or response body after its title. So that title renamed the response, and every schema nested in it follows its parent's name. Two exactNames entries (CreateATokenOkOwnerUser…) then pointed at names that no longer existed, and go generate failed.

Robustness

  • dropBodyTitles clears the title of every body and response schema before flatten runs. flatten then names each one after its operation, which upstream can't change without changing the API. Upstream's titles there were unreliable anyway: the users list is titled "User", the block-children lists "Block", and the body that creates a session "Update session request". Union alternatives were already named by nameBranches, not by title. With this, upstream adding or changing a title can't cascade into renames.
  • When a shortNames or exactNames entry does go stale, the error now suggests the current name it most likely became: the one sharing the most trailing words, if there's a single best match. For example: CreateATokenOkOwnerUserUserPersonPerson (now AuthorizationCodeOrRefreshTokenOwnerUserUserPersonPerson?). TestLikelyNow covers it.

New endpoints: Client.CreateMeetingNotePage and Client.UpdateMeetingNotePage, with the types CreateMeetingNotePage, CreateMeetingNotePageParent, CreateMeetingNotePageCalendarEvent, MeetingNotePageResult, UpdateMeetingNotePage and UpdateMeetingNotePageOk.

One type rename: UpdateSessionRequest becomes UpdateSession, the body of POST /v1/sessions, named after its operation like the other bodies (e.g. CreateAComment). Nothing in notion, worldweaver or atelier refers to it. Every other existing schema name is unchanged.

make ready passes. Coverage, measured with Go 1.27.4, is 83.7%.


Generated by Claude Code

claude and others added 2 commits November 18, 2026 00:33
Upstream added POST /v1/meeting_notes and PATCH
/v1/meeting_notes/{meeting_note_id}, and titled the token a refresh answers
with "Authorization code or refresh token". flatten names a body or response
after its title, so that title renamed it and every schema it holds, and the
names shortNames gave two of them no longer existed. Now the title of each
body and response is dropped before flatten, which names it after its
operation, which upstream cannot change without changing the API. The body
of POST /v1/sessions, titled "Update session request", is so UpdateSession,
as other bodies are named.

A name in shortNames or exactNames that flatten no longer gives now fails the
run with the name it most likely gives instead, where one is likely.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019QCb1AfnATvpBQCH3PrX7Y
@MarkRosemaker
MarkRosemaker merged commit 3f27d52 into main Nov 18, 2026
1 check passed
@MarkRosemaker
MarkRosemaker deleted the fix/meeting-notes branch November 18, 2026 00:40
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.

2 participants