Commit 7005c50
feat(http-specs): add test for operation body params with reserved names (#10529)
## Summary
Add a Spector scenario to verify that operation parameters whose names
match Python Mapping protocol methods (e.g., `items`) are sent with the
original name on the wire, not mangled (e.g., to `items_property`).
Fixes #10247
## Changes
- **`main.tsp`**: Added `ReservedOperationBodyParams` namespace with
`withItems(items: string[]): void` operation
- **`mockapi.ts`**: Mock expects `POST
/special-words/operations/body-param-reserved` with body `{"items":
["item"]}`
- **`spec-summary.md`**: Auto-regenerated
## Labels
`lib:http-specs`
---------
Co-authored-by: iscai-msft <isabellavcai@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 930117b commit 7005c50
4 files changed
Lines changed: 56 additions & 0 deletions
File tree
- .chronus/changes
- packages/http-specs
- specs/special-words
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5166 | 5166 | | |
5167 | 5167 | | |
5168 | 5168 | | |
| 5169 | + | |
| 5170 | + | |
| 5171 | + | |
| 5172 | + | |
| 5173 | + | |
| 5174 | + | |
| 5175 | + | |
| 5176 | + | |
| 5177 | + | |
| 5178 | + | |
| 5179 | + | |
| 5180 | + | |
| 5181 | + | |
5169 | 5182 | | |
5170 | 5183 | | |
5171 | 5184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
293 | 315 | | |
294 | 316 | | |
295 | 317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
423 | 437 | | |
424 | 438 | | |
425 | 439 | | |
| |||
0 commit comments