Skip to content

fix: bind a resource method that returns a WIT record - #271

Closed
moetemp wants to merge 2 commits into
mainfrom
moe/up/resource-method-record-result
Closed

moetemp wants to merge 2 commits into
mainfrom
moe/up/resource-method-record-result

Conversation

@moetemp

@moetemp moetemp commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What changed?

This PR binds a resource method to an operation that returns a WIT record.

The fix is in the second commit, e3a5c387. The first commit adds get-profile to user-service with the output on main.

Why?

The result check knew only resource and proto results, so the method became a stub that raises.

How did you test it?

The goldens show the bound call in place of the stub. The Python sample test calls user.get_profile().

@moetemp
moetemp force-pushed the moe/up/resource-method-record-result branch from 095326a to e3a5c38 Compare October 23, 2026 04:35
@moetemp

moetemp commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing this one. The stream-service sample in #273 is proto-backed now, so it no longer needs this fix, and #272 is based on main.

@moetemp moetemp closed this Oct 23, 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