From 86817b9cc557a86ab818ac4a3e3110a2301661e1 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Mon, 14 Oct 2024 12:47:17 +0800 Subject: [PATCH 1/2] specs, fix mockapi for explode array in routes query (#750) specs, fix explode array in routes --- .changeset/serious-penguins-sniff.md | 5 +++++ packages/cadl-ranch-specs/http/routes/mockapi.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/serious-penguins-sniff.md diff --git a/.changeset/serious-penguins-sniff.md b/.changeset/serious-penguins-sniff.md new file mode 100644 index 000000000..8f5cce6dd --- /dev/null +++ b/.changeset/serious-penguins-sniff.md @@ -0,0 +1,5 @@ +--- +"@azure-tools/cadl-ranch-specs": patch +--- + +Fix explode array mockapi in routes. diff --git a/packages/cadl-ranch-specs/http/routes/mockapi.ts b/packages/cadl-ranch-specs/http/routes/mockapi.ts index 994bb5720..d1ae1682f 100644 --- a/packages/cadl-ranch-specs/http/routes/mockapi.ts +++ b/packages/cadl-ranch-specs/http/routes/mockapi.ts @@ -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¶m=b", ); Scenarios.Routes_QueryParameters_QueryExpansion_Explode_record = createTests( "/routes/query/query-expansion/explode/record?a=1&b=2", @@ -129,7 +129,7 @@ Scenarios.Routes_QueryParameters_QueryContinuation_Explode_primitive = createTes "/routes/query/query-continuation/explode/primitive?fixed=true¶m=a", ); Scenarios.Routes_QueryParameters_QueryContinuation_Explode_array = createTests( - "/routes/query/query-continuation/explode/array?fixed=true¶m=a,b", + "/routes/query/query-continuation/explode/array?fixed=true¶m=a¶m=b", ); Scenarios.Routes_QueryParameters_QueryContinuation_Explode_record = createTests( "/routes/query/query-continuation/explode/record?fixed=true&a=1&b=2", From 9df792d0cc451dd41ee3a4739c82c815ba3baea6 Mon Sep 17 00:00:00 2001 From: Mingzhe Huang Date: Mon, 14 Oct 2024 13:02:04 +0800 Subject: [PATCH 2/2] Bump versions (#753) Co-authored-by: Microsoft Auto Changeset Bot --- .changeset/perfect-balloons-obey.md | 5 ----- .changeset/serious-penguins-sniff.md | 5 ----- packages/cadl-ranch-specs/CHANGELOG.md | 7 +++++++ packages/cadl-ranch-specs/package.json | 2 +- 4 files changed, 8 insertions(+), 11 deletions(-) delete mode 100644 .changeset/perfect-balloons-obey.md delete mode 100644 .changeset/serious-penguins-sniff.md diff --git a/.changeset/perfect-balloons-obey.md b/.changeset/perfect-balloons-obey.md deleted file mode 100644 index 24a312f66..000000000 --- a/.changeset/perfect-balloons-obey.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@azure-tools/cadl-ranch-specs": patch ---- - -fix(test): adopt `coercedBodyEquals` diff --git a/.changeset/serious-penguins-sniff.md b/.changeset/serious-penguins-sniff.md deleted file mode 100644 index 8f5cce6dd..000000000 --- a/.changeset/serious-penguins-sniff.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@azure-tools/cadl-ranch-specs": patch ---- - -Fix explode array mockapi in routes. diff --git a/packages/cadl-ranch-specs/CHANGELOG.md b/packages/cadl-ranch-specs/CHANGELOG.md index 9d30dce41..7ef685da8 100644 --- a/packages/cadl-ranch-specs/CHANGELOG.md +++ b/packages/cadl-ranch-specs/CHANGELOG.md @@ -1,5 +1,12 @@ # @azure-tools/cadl-ranch-specs +## 0.37.7 + +### Patch Changes + +- ecfd2f0: fix(test): adopt `coercedBodyEquals` +- 86817b9: Fix explode array mockapi in routes. + ## 0.37.6 ### Patch Changes diff --git a/packages/cadl-ranch-specs/package.json b/packages/cadl-ranch-specs/package.json index 0195e43bf..61d227bfa 100644 --- a/packages/cadl-ranch-specs/package.json +++ b/packages/cadl-ranch-specs/package.json @@ -1,6 +1,6 @@ { "name": "@azure-tools/cadl-ranch-specs", - "version": "0.37.6", + "version": "0.37.7", "description": "Cadl scenarios and mock apis", "main": "dist/index.js", "type": "module",