Skip to content

chore(protocol): regenerate the OpenAPI document and check it in CI - #52483

Closed
nexxeln wants to merge 1 commit into
v2from
openapi-check
Closed

nexxeln wants to merge 1 commit into
v2from
openapi-check

Conversation

@nexxeln

@nexxeln nexxeln commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Why the change

The checked-in OpenAPI document had fallen behind the protocol source, so the published API docs were missing endpoints, and CI never checked it.

Special things to note

  • This is pure drift, with no source changes. The only removal moves the optional message query parameter from session.form.reply to session.form.cancel, which matches the source (feat(core): let form cancellation carry a message #52137).
  • The new CI step runs before the client and www checks, because both are generated from this document.

Change outline

Operations added to the document:

server.pair        POST /api/pair
server.connect     GET  /auth/connect/{code}
credential.list    GET  /api/credential
credential.create  POST /api/credential

Existing operations updated to match the source:

 session.create
+  body.parentID?   (creates a linked child session)
+  404 SessionNotFoundError
 session.form.cancel
+  query.message?
 session.form.reply
-  query.message?

CI step:

+      - name: Check generated OpenAPI document
+        if: runner.os == 'Linux'
+        working-directory: packages/protocol
+        run: bun run check:generated
+
       - name: Check generated client
         if: runner.os == 'Linux'
         working-directory: packages/client

@nexxeln nexxeln closed this Oct 1, 2026
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.

1 participant