Commit c298e30
Fix misleading Context.Bind documentation comment
Addresses issue #2382 by correcting the confusing comment on Context.Bind
that did not accurately describe the actual binding behavior.
**Problem:**
The previous comment said "Bind binds path params, query params and the
request body" which was incomplete and misleading because:
- It didn't explain the binding ORDER (path → query → body)
- It didn't mention that later steps can OVERRIDE earlier values
- It didn't specify that query params are only bound for GET/DELETE/HEAD
- It didn't reference single-source binding methods
**Solution:**
Updated the comment to clearly explain:
- The exact binding order (1) path params, 2) query params, 3) body)
- Override behavior between steps
- HTTP method-specific behavior for query params
- References to single-source binding methods
- Content-Type handling for body binding
This prevents confusion for developers who might expect different behavior
from Context.Bind() based on the previous misleading documentation.
Fixes #2382
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent f1ebc67 commit c298e30
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
0 commit comments