Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
specs, fix mockapi for explode array in routes query (#750)
Browse files Browse the repository at this point in the history
specs, fix explode array in routes
  • Loading branch information
weidongxu-microsoft authored Oct 14, 2024
1 parent ecfd2f0 commit 86817b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-penguins-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@azure-tools/cadl-ranch-specs": patch
---

Fix explode array mockapi in routes.
4 changes: 2 additions & 2 deletions packages/cadl-ranch-specs/http/routes/mockapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Scenarios.Routes_QueryParameters_QueryExpansion_Explode_primitive = createTests(
"/routes/query/query-expansion/explode/primitive?param=a",
);
Scenarios.Routes_QueryParameters_QueryExpansion_Explode_array = createTests(
"/routes/query/query-expansion/explode/array?param=a,b",
"/routes/query/query-expansion/explode/array?param=a&param=b",
);
Scenarios.Routes_QueryParameters_QueryExpansion_Explode_record = createTests(
"/routes/query/query-expansion/explode/record?a=1&b=2",
Expand All @@ -129,7 +129,7 @@ Scenarios.Routes_QueryParameters_QueryContinuation_Explode_primitive = createTes
"/routes/query/query-continuation/explode/primitive?fixed=true&param=a",
);
Scenarios.Routes_QueryParameters_QueryContinuation_Explode_array = createTests(
"/routes/query/query-continuation/explode/array?fixed=true&param=a,b",
"/routes/query/query-continuation/explode/array?fixed=true&param=a&param=b",
);
Scenarios.Routes_QueryParameters_QueryContinuation_Explode_record = createTests(
"/routes/query/query-continuation/explode/record?fixed=true&a=1&b=2",
Expand Down

0 comments on commit 86817b9

Please sign in to comment.