Commit 3b2e6f4
committed
fix(cmc): readOffer must use
`readOffer` was calling `events.get` with `streamIds: [...]` which
the api-server schema rejects with OBJECT_ADDITIONAL_PROPERTIES.
`events.get` takes `streams` (recursive read filter); `streamIds` is
the `events.create` write target. The four other `events.get` callers
in this file (listInvites, waitForAccept, listAcceptedRelationships)
all already use `streams` correctly.
Reproduces 100% against any open-pryv.io running the CMC plugin —
any `cmc.readOffer(capabilityUrl)` call throws on the first await.
No new tests in this PR — existing cmc.test.js suite mocks the
Connection.apiOne layer and doesn't exercise the wire-shape; the
schema mismatch only surfaces against a real api-server. End-to-end
verification via an HDS-side scenario test runs green post-fix.streams not streamIds on events.get1 parent 128e3f0 commit 3b2e6f4
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
553 | 557 | | |
554 | | - | |
| 558 | + | |
555 | 559 | | |
556 | 560 | | |
557 | 561 | | |
| |||
0 commit comments