Skip to content

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

Closed
moetemp wants to merge 1 commit into
moe/up/mainfrom
moe/up/resource-method-record-result
Closed

moetemp wants to merge 1 commit into
moe/up/mainfrom
moe/up/resource-method-record-result

Conversation

@moetemp

@moetemp moetemp commented Oct 22, 2026

Copy link
Copy Markdown
Owner

What changed?

This PR binds a resource method to an operation that returns a WIT record. The method's result must be the same record.

Why?

The result check only knew resource and proto results. So such a method became a stub that raises, and with @nexus.operation generation failed.

How did you test it?

The user-service sample gains get-profile: func() -> user-profile. The goldens show the bound call in place of the stub, and the Python sample test calls user.get_profile().

@moetemp moetemp changed the title [Upstream] fix: bind a resource method that returns a WIT record [UPSTREAM-2] fix: bind a resource method that returns a WIT record Oct 22, 2026
@moetemp moetemp changed the title [UPSTREAM-2] fix: bind a resource method that returns a WIT record [UPSTREAM-1] fix: bind a resource method that returns a WIT record Oct 22, 2026
@moetemp moetemp changed the title [UPSTREAM-1] fix: bind a resource method that returns a WIT record fix: bind a resource method that returns a WIT record Oct 23, 2026
@moetemp

moetemp commented Oct 23, 2026

Copy link
Copy Markdown
Owner Author

Opened upstream as temporalio#271.

@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