From abb4e8253662398a44c437865a16006d4237d501 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Jun 2026 09:23:12 +0000 Subject: [PATCH 1/2] fix(http-specs): correct dollarSign query mock API path to match route Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- .../fix-query-dollar-sign-mockapi-path-2026-6-11.md | 7 +++++++ packages/http-specs/specs/parameters/query/mockapi.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .chronus/changes/fix-query-dollar-sign-mockapi-path-2026-6-11.md diff --git a/.chronus/changes/fix-query-dollar-sign-mockapi-path-2026-6-11.md b/.chronus/changes/fix-query-dollar-sign-mockapi-path-2026-6-11.md new file mode 100644 index 00000000000..c1e3e5f206c --- /dev/null +++ b/.chronus/changes/fix-query-dollar-sign-mockapi-path-2026-6-11.md @@ -0,0 +1,7 @@ +--- +changeKind: internal +packages: + - "@typespec/http-specs" +--- + +Fix the mock API path for the `Parameters_Query_SpecialChar_dollarSign` scenario to match the route defined in the TypeSpec spec (`/parameters/query/special-char/dollarSign`). diff --git a/packages/http-specs/specs/parameters/query/mockapi.ts b/packages/http-specs/specs/parameters/query/mockapi.ts index 5d46d8c0673..918fa132124 100644 --- a/packages/http-specs/specs/parameters/query/mockapi.ts +++ b/packages/http-specs/specs/parameters/query/mockapi.ts @@ -15,7 +15,7 @@ Scenarios.Parameters_Query_Constant_post = passOnSuccess({ }); Scenarios.Parameters_Query_SpecialChar_dollarSign = passOnSuccess({ - uri: "/parameters/query/special-char/dollar-sign", + uri: "/parameters/query/special-char/dollarSign", method: "get", request: { query: { $filter: "status eq 'active'" }, From 2e9f988b8d5dfc630c5ece63927ae93b7923d552 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Jun 2026 09:41:02 +0000 Subject: [PATCH 2/2] fix(http-specs): change dollarSign query route to match mock API path Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- .../changes/fix-query-dollar-sign-mockapi-path-2026-6-11.md | 2 +- packages/http-specs/spec-summary.md | 2 +- packages/http-specs/specs/parameters/query/main.tsp | 2 +- packages/http-specs/specs/parameters/query/mockapi.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.chronus/changes/fix-query-dollar-sign-mockapi-path-2026-6-11.md b/.chronus/changes/fix-query-dollar-sign-mockapi-path-2026-6-11.md index c1e3e5f206c..0a07bba2d3e 100644 --- a/.chronus/changes/fix-query-dollar-sign-mockapi-path-2026-6-11.md +++ b/.chronus/changes/fix-query-dollar-sign-mockapi-path-2026-6-11.md @@ -4,4 +4,4 @@ packages: - "@typespec/http-specs" --- -Fix the mock API path for the `Parameters_Query_SpecialChar_dollarSign` scenario to match the route defined in the TypeSpec spec (`/parameters/query/special-char/dollarSign`). +Fix the `Parameters_Query_SpecialChar_dollarSign` scenario route to match the mock API path (`/parameters/query/special-char/dollar-sign`). diff --git a/packages/http-specs/spec-summary.md b/packages/http-specs/spec-summary.md index 55bb3c68231..a6713ac4f5d 100644 --- a/packages/http-specs/spec-summary.md +++ b/packages/http-specs/spec-summary.md @@ -1552,7 +1552,7 @@ Expect to handle a constant value for query and mock api returns nothing ### Parameters_Query_SpecialChar_dollarSign -- Endpoint: `get /parameters/query/special-char/dollarSign` +- Endpoint: `get /parameters/query/special-char/dollar-sign` Send a request with a dollar-sign prefixed`$filter` query parameter. diff --git a/packages/http-specs/specs/parameters/query/main.tsp b/packages/http-specs/specs/parameters/query/main.tsp index 1dfd581d2e6..1d05beca6fd 100644 --- a/packages/http-specs/specs/parameters/query/main.tsp +++ b/packages/http-specs/specs/parameters/query/main.tsp @@ -33,7 +33,7 @@ interface SpecialChar { Expected response status code: 204 """) - @route("/dollarSign") + @route("/dollar-sign") @get dollarSign( @query("$filter") diff --git a/packages/http-specs/specs/parameters/query/mockapi.ts b/packages/http-specs/specs/parameters/query/mockapi.ts index 918fa132124..5d46d8c0673 100644 --- a/packages/http-specs/specs/parameters/query/mockapi.ts +++ b/packages/http-specs/specs/parameters/query/mockapi.ts @@ -15,7 +15,7 @@ Scenarios.Parameters_Query_Constant_post = passOnSuccess({ }); Scenarios.Parameters_Query_SpecialChar_dollarSign = passOnSuccess({ - uri: "/parameters/query/special-char/dollarSign", + uri: "/parameters/query/special-char/dollar-sign", method: "get", request: { query: { $filter: "status eq 'active'" },