Skip to content

Commit 8494a66

Browse files
fix(http-specs): align route to "/dollar-sign" in main and mockapi (#10962)
The changelog entry for the dollar-sign query route fix was marked as `internal` but should be `fix` — the change corrects a bug where the TypeSpec `@route` path didn't match the mock API URI, causing SDK test 404s. ## Changes - Updated `.chronus/changes/http-specs-fix-dollar-sign-route-*.md`: `changeKind: internal` → `changeKind: fix` --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
1 parent 3a86d4e commit 8494a66

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: fix
3+
packages:
4+
- "@typespec/http-specs"
5+
---
6+
7+
Fix the dollar-sign query scenario route to match the mock API.

packages/http-specs/spec-summary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ Expect to handle a constant value for query and mock api returns nothing
15521552

15531553
### Parameters_Query_SpecialChar_dollarSign
15541554

1555-
- Endpoint: `get /parameters/query/special-char/dollarSign`
1555+
- Endpoint: `get /parameters/query/special-char/dollar-sign`
15561556

15571557
Send a request with a dollar-sign prefixed`$filter` query parameter.
15581558

packages/http-specs/specs/parameters/query/main.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface SpecialChar {
3333
3434
Expected response status code: 204
3535
""")
36-
@route("/dollarSign")
36+
@route("/dollar-sign")
3737
@get
3838
dollarSign(
3939
@query("$filter")

0 commit comments

Comments
 (0)