Skip to content

Commit 5fe7bfa

Browse files
docs(changelog): amend two released 18.5.0 entries (durable http fallback, OpenAPI connector parameters) (#33925)
<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCpddLFmKzR39wJWZpkRMCi)_ Fixes #33896 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:修正 18.5.0 已发布 CHANGELOG 里两条说明(3 个文件,+7/-1):持久化 http 节点无发件箱回退与发件箱的差异;OpenAPI 连接器用户如何声明被拒的参数。 - 为什么改:原句称回退路径与发件箱发送同样的正文和签名,只对对象正文成立;OpenAPI 连接器用户缺少修复路径。按 AGENTS.md 规则,已发布条目的事实错误在原条目上就地修正。 - 风险与回滚:纯文字,不发布代码;回滚即 revert 本 PR。 - 先看:`packages/services/service-automation/CHANGELOG.md`(两处改动都在其中)。 - 两分钟验证:`git grep -c "OpenAPI connector's action declares" -- '*CHANGELOG.md'` 预期 3 个文件各 1 处。 - 需要你做的:无,席位落地(本 PR 不带 changeset,由区域席位挂 `skip-changeset` 标签)。 ## What changes `packages/*/CHANGELOG.md` is release-owned; AGENTS.md (Documentation Guardrails) routes a factual error in a released entry to an amendment of that entry in a dedicated docs-only PR. This is that PR. Both corrections were taken out of PR #33886 because the changesets they corrected were consumed by the 18.5.0 release while it was open. - (a) `packages/services/service-automation/CHANGELOG.md`, 18.5.0 entry `b937b75` (durable `http` node, no `method`): the closing claim "both paths send it, with the same body and signature the outbox would deliver" now holds only for an object body, and the entry names the three places the no-outbox fallback still differs from the outbox: no body, a string body, and the `Content-Type` header. - (b) The 18.5.0 entry `89defde` (`connector_action` refuses an undeclared input key) gains one paragraph for OpenAPI connector users after the Slack paragraph, in each of the three CHANGELOGs that carry it: `packages/connectors/connector-openapi`, `packages/services/service-automation`, `packages/spec`. Text is the replacement given in the card, verbatim; every fact it states was checked against `origin/main` at `64807a9c` before editing (see Verification). No source, no changeset: the diff publishes nothing until the next release republishes the tarballs, so it takes `skip-changeset`, which the area seat applies. ## Acceptance notes 1. Other CHANGELOGs carrying the entry: `git grep` for the Slack paragraph's first sentence over every `CHANGELOG.md` at `64807a9c` finds exactly the three edited here (`ui/` and the root CHANGELOG included in the search). ## Verification <details><summary>Facts behind the wording, at origin/main 64807a9</summary> - `packages/apps/connector-stripe/openapi/stripe.openapi.json` (8 operations) and `packages/apps/connector-docusign/openapi/docusign-esignature.openapi.json` (3 operations): 0 header parameters (path-level, operation-level and `components.parameters`), 0 `$ref` parameters. Every operation declares path or query parameters, so each generated action's `inputSchema` lists `properties` and an undeclared `header` key is refused on every action. - `packages/connectors/connector-openapi/src/openapi-connector.ts`: `IGNORED_HEADER_PARAMETERS = new Set(['accept', 'content-type', 'authorization'])`, skipped by `buildInputSchema`; a declared header parameter lands in the `header` section with its `schema` and is sent by `serializeHeaders`; path-level parameters are merged into each operation. - `packages/services/service-automation/src/builtin/http-nodes.ts` fallback: `requestBody = body != null ? JSON.stringify(body) : undefined`, signed as `requestBody ?? ''`, headers are the authored ones only. Outbox: enqueued with `payload: body ?? {}`; `deliveryBody()` in `service-messaging/src/http-sender.ts` sends a string verbatim and JSON-serialises anything else, signed over the same bytes at enqueue; `sendOnce` sets `Content-Type: application/json`. </details> <details><summary>Gates</summary> Derived with `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at `1ba5091f`: 58 commands. 54 exited 0. 4 exited 3 (NOT MEASURED, prerequisite: they read package `dist/` and this docs-only worktree has no build): `check:dts-closure`, `check:dual-build-cjs-loads`, `check:lean-entry-closure`, `check:sourcemap-no-sources-content`; CI runs them on a built tree. `--ran` reconciliation: 58 derived, 58 run, 0 unrun. After merging `origin/main` (head `835919e9`) the gates that read CHANGELOG or release text were re-run, all exit 0: `check-release-section-coverage --strict`, `check:release-notes`, `check:release-page-status`, `check:nul-bytes`, `check-affected-docs`, `check:doc-authoring`. None refuses an amended released entry. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jUZKdq3PK2Sab53cT3)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent b36674d commit 5fe7bfa

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎packages/connectors/connector-openapi/CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
An action whose schema lists only some of the parameters its handler forwards refuses the others now. The Slack connector's `chat.postMessage` and `chat.update` list `channel`, `text`, `blocks` and `thread_ts` / `ts` and forward the whole input to the Slack Web API, so any other Slack parameter (`unfurl_links`, `mrkdwn`, `reply_broadcast`, …) on those two actions is refused. Migration, FROM → TO: `{ actionId: 'chat.postMessage', input: { channel: 'C1', text: 'hi', unfurl_links: false } }` → `{ actionId: 'call', input: { method: 'chat.postMessage', params: { channel: 'C1', text: 'hi', unfurl_links: false } } }`; the `call` action's `params` is an object with no `properties`, so it carries any Slack parameter.
1919

20+
An OpenAPI connector's action declares the parameters its OpenAPI document declares for the operation, so a parameter the document leaves out is refused the same way. The fix is to declare it in the document the connector is built from (the operation's `parameters`, with its `in` and `schema`); the generated action then declares it, checks its type and sends it. The shipped Stripe and DocuSign documents declare no header parameter, so a per-call header (`Idempotency-Key`, for example) is refused on every action of theirs. `Accept`, `Content-Type` and `Authorization` cannot be declared as header parameters at all: OpenAPI 3.x ignores them there, and so does the generator.
21+
2022
`@objectstack/connector-openapi`: what the generator cannot read without de-referencing the document is now declared open instead of left out, so a flow over an OpenAPI 3.x document nobody normalized keeps dispatching. An unresolved `$ref` parameter has no readable `in`, so it opens every location the handler sends: `path`, `query` and `header` are each emitted with `additionalProperties: true`, also when they declare no parameter of their own, and the parameters declared beside them are still judged. An unresolved `$ref` request body, or one whose content carries no `schema`, is declared as `body: {}` (any value). Running `normalize-openapi` over the document still gives each such parameter its own declaration and type check.
2123

2224
Which schemas declare their keys: an object schema that lists `properties`, or says `additionalProperties: false`; the declared keys are the names in `properties` plus those in `required`. A schema that admits more keys declares open input and every key still dispatches: `additionalProperties` set to `true` or to a schema, `unevaluatedProperties` other than `false`, `patternProperties`, `$ref`, `$dynamicRef`, `$recursiveRef`, `allOf` / `anyOf` / `oneOf`, `if` / `then` / `else`, `dependentSchemas` or `dependencies`; so does a schema that lists no `properties`, and an action with no `inputSchema`. An undeclared key whose value is `undefined` is absent and not refused; any other value, `null` included, is.

‎packages/services/service-automation/CHANGELOG.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373

7474
An action whose schema lists only some of the parameters its handler forwards refuses the others now. The Slack connector's `chat.postMessage` and `chat.update` list `channel`, `text`, `blocks` and `thread_ts` / `ts` and forward the whole input to the Slack Web API, so any other Slack parameter (`unfurl_links`, `mrkdwn`, `reply_broadcast`, …) on those two actions is refused. Migration, FROM → TO: `{ actionId: 'chat.postMessage', input: { channel: 'C1', text: 'hi', unfurl_links: false } }` → `{ actionId: 'call', input: { method: 'chat.postMessage', params: { channel: 'C1', text: 'hi', unfurl_links: false } } }`; the `call` action's `params` is an object with no `properties`, so it carries any Slack parameter.
7575

76+
An OpenAPI connector's action declares the parameters its OpenAPI document declares for the operation, so a parameter the document leaves out is refused the same way. The fix is to declare it in the document the connector is built from (the operation's `parameters`, with its `in` and `schema`); the generated action then declares it, checks its type and sends it. The shipped Stripe and DocuSign documents declare no header parameter, so a per-call header (`Idempotency-Key`, for example) is refused on every action of theirs. `Accept`, `Content-Type` and `Authorization` cannot be declared as header parameters at all: OpenAPI 3.x ignores them there, and so does the generator.
77+
7678
`@objectstack/connector-openapi`: what the generator cannot read without de-referencing the document is now declared open instead of left out, so a flow over an OpenAPI 3.x document nobody normalized keeps dispatching. An unresolved `$ref` parameter has no readable `in`, so it opens every location the handler sends: `path`, `query` and `header` are each emitted with `additionalProperties: true`, also when they declare no parameter of their own, and the parameters declared beside them are still judged. An unresolved `$ref` request body, or one whose content carries no `schema`, is declared as `body: {}` (any value). Running `normalize-openapi` over the document still gives each such parameter its own declaration and type check.
7779

7880
Which schemas declare their keys: an object schema that lists `properties`, or says `additionalProperties: false`; the declared keys are the names in `properties` plus those in `required`. A schema that admits more keys declares open input and every key still dispatches: `additionalProperties` set to `true` or to a schema, `unevaluatedProperties` other than `false`, `patternProperties`, `$ref`, `$dynamicRef`, `$recursiveRef`, `allOf` / `anyOf` / `oneOf`, `if` / `then` / `else`, `dependentSchemas` or `dependencies`; so does a schema that lists no `properties`, and an action with no `inputSchema`. An undeclared key whose value is `undefined` is absent and not refused; any other value, `null` included, is.
@@ -236,7 +238,7 @@
236238
Clause-②: no — no accepted input, export or served shape is added; the no-outbox fallback now sends the verb the node's descriptor and the outbox already send.
237239
Metadata-protocol: none
238240

239-
A flow `http` node with `durable: true` and no `method` was enqueued as a POST when the messaging HTTP outbox was wired, but sent as a GET when it was not (the awaited fallback, and the one background send on a record save's path). The GET carried no body and was counted as a read, so the run reported it changed nothing. The verb is now resolved once — the authored `method`, else POST for a durable node and GET for a request/response one — and both paths send it, with the same body and signature the outbox would deliver. To keep the old behaviour, author `method: 'GET'` on the node.
241+
A flow `http` node with `durable: true` and no `method` was enqueued as a POST when the messaging HTTP outbox was wired, but sent as a GET when it was not (the awaited fallback, and the one background send on a record save's path). The GET carried no body and was counted as a read, so the run reported it changed nothing. The verb is now resolved once — the authored `method`, else POST for a durable node and GET for a request/response one — and both paths send it. For an object body the fallback also sends and signs the bytes the outbox delivers; it still differs where it did before: with no body it sends none and signs the empty string (the outbox sends and signs `{}`), a string body is sent JSON-encoded (the outbox sends it verbatim), and it sets no `Content-Type: application/json` header (the outbox does). To keep the old behaviour, author `method: 'GET'` on the node.
240242
- Updated dependencies [f229dfd]
241243
- Updated dependencies [0b89b33]
242244
- Updated dependencies [322ded7]

‎packages/spec/CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@
387387

388388
An action whose schema lists only some of the parameters its handler forwards refuses the others now. The Slack connector's `chat.postMessage` and `chat.update` list `channel`, `text`, `blocks` and `thread_ts` / `ts` and forward the whole input to the Slack Web API, so any other Slack parameter (`unfurl_links`, `mrkdwn`, `reply_broadcast`, …) on those two actions is refused. Migration, FROM → TO: `{ actionId: 'chat.postMessage', input: { channel: 'C1', text: 'hi', unfurl_links: false } }` → `{ actionId: 'call', input: { method: 'chat.postMessage', params: { channel: 'C1', text: 'hi', unfurl_links: false } } }`; the `call` action's `params` is an object with no `properties`, so it carries any Slack parameter.
389389

390+
An OpenAPI connector's action declares the parameters its OpenAPI document declares for the operation, so a parameter the document leaves out is refused the same way. The fix is to declare it in the document the connector is built from (the operation's `parameters`, with its `in` and `schema`); the generated action then declares it, checks its type and sends it. The shipped Stripe and DocuSign documents declare no header parameter, so a per-call header (`Idempotency-Key`, for example) is refused on every action of theirs. `Accept`, `Content-Type` and `Authorization` cannot be declared as header parameters at all: OpenAPI 3.x ignores them there, and so does the generator.
391+
390392
`@objectstack/connector-openapi`: what the generator cannot read without de-referencing the document is now declared open instead of left out, so a flow over an OpenAPI 3.x document nobody normalized keeps dispatching. An unresolved `$ref` parameter has no readable `in`, so it opens every location the handler sends: `path`, `query` and `header` are each emitted with `additionalProperties: true`, also when they declare no parameter of their own, and the parameters declared beside them are still judged. An unresolved `$ref` request body, or one whose content carries no `schema`, is declared as `body: {}` (any value). Running `normalize-openapi` over the document still gives each such parameter its own declaration and type check.
391393

392394
Which schemas declare their keys: an object schema that lists `properties`, or says `additionalProperties: false`; the declared keys are the names in `properties` plus those in `required`. A schema that admits more keys declares open input and every key still dispatches: `additionalProperties` set to `true` or to a schema, `unevaluatedProperties` other than `false`, `patternProperties`, `$ref`, `$dynamicRef`, `$recursiveRef`, `allOf` / `anyOf` / `oneOf`, `if` / `then` / `else`, `dependentSchemas` or `dependencies`; so does a schema that lists no `properties`, and an action with no `inputSchema`. An undeclared key whose value is `undefined` is absent and not refused; any other value, `null` included, is.

0 commit comments

Comments
 (0)