Skip to content

Comments

Fix endpoints with multiple [Document] args (GH-2205)#2206

Merged
jeremydmiller merged 1 commit intomainfrom
GH2205
Feb 17, 2026
Merged

Fix endpoints with multiple [Document] args (GH-2205)#2206
jeremydmiller merged 1 commit intomainfrom
GH2205

Conversation

@jeremydmiller
Copy link
Member

Summary

  • LoadDocumentFrame.FindVariables() was not yielding _sagaId, so MartenBatchFrame didn't propagate the route value dependency. This caused batch query code to be emitted before route values were extracted for the 2nd+ [Document] parameters, producing invalid generated code.
  • Added yield return _sagaId; to match the pattern already used by LoadAggregateFrame
  • Added integration tests covering multiple [Document] params and mixed [Document] + [Aggregate] params, including 404 cases

Test plan

  • 4 new integration tests pass (multiple documents, document+aggregate, 404 for missing docs)
  • Full Wolverine.Http.Tests suite: 497 passed, 1 failed (pre-existing Bug_2182), 10 skipped — no regressions

Closes #2205

🤖 Generated with Claude Code

…H-2205)

LoadDocumentFrame.FindVariables() was not yielding _sagaId, so MartenBatchFrame
didn't know about the route value dependency. This caused batch query code to be
emitted before route values were extracted for the 2nd+ document parameters.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

Endpoints with multiple [Aggregage/Document] args don't generate valid code

1 participant