Skip to content

Generate missing fulfillment.change notification event#298

Open
markmur wants to merge 1 commit into
mainfrom
protocol-fulfillment-notification
Open

Generate missing fulfillment.change notification event#298
markmur wants to merge 1 commit into
mainfrom
protocol-fulfillment-notification

Conversation

@markmur

@markmur markmur commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

The TypeScript notification generator matched schema $refs by hard-coded relative-path strings, which had two consequences: ec.fulfillment.change was never emitted into ProtocolNotifications.ts, and the generator threw outright once error_response.json moved to schemas/common/types/, so the committed output had silently drifted from the schema. This switches ref handling to path-based resolution — every $ref (method-level and param-schema) is resolved relative to its referring file to an absolute path, keyed against the schema locations — which generates the missing fulfillment decoder and makes codegen resilient to future schema reorganization. The generator body was also split into pure collectNotifications/renderModule functions so the resolver can be unit-tested without writing files.

@markmur markmur self-assigned this Jun 18, 2026
@markmur markmur changed the title Generate fulfillment event Generate missing fulfillment.change notification event Jun 18, 2026
@markmur markmur force-pushed the protocol-fulfillment-notification branch 2 times, most recently from 971b869 to 192919f Compare June 18, 2026 13:29
@markmur markmur marked this pull request as ready for review June 18, 2026 13:32
@markmur markmur requested a review from a team as a code owner June 18, 2026 13:32
@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown

React Native — Coverage Report

Lines Statements Branches Functions
Coverage: 92%
91.66% (319/348) 87.86% (181/206) 100% (82/82)

@markmur markmur force-pushed the protocol-fulfillment-notification branch from 192919f to f6129dc Compare June 18, 2026 13:43
Comment thread dev.yml
cd protocol/languages/swift
echo "Running tests for Swift..."
swift test
cd $root/protocol

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the description still accurate? Seems like we're testing a bit more than swift

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