Skip to content

Commit

Permalink
Update emitter to latest tcgc (#1472)
Browse files Browse the repository at this point in the history
This fixes an issue where query head/path/query params have different
wire names from the parameter names, causing the params to be omitted.
Added KV keys to test this scenario.
  • Loading branch information
jhendrixMSFT authored Dec 3, 2024
1 parent 7afad1d commit 81fdd1f
Show file tree
Hide file tree
Showing 22 changed files with 7,347 additions and 10 deletions.
14 changes: 7 additions & 7 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/typespec-go/.scripts/tspcompile.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ generate('armcontainerorchestratorruntime', armcontainerorchestratorruntime, 'te
const azmodelsonly = pkgRoot + 'test/tsp/ModelsOnlyWithBaseTypes';
generate('azmodelsonly', azmodelsonly, 'test/azmodelsonly');

const azkeys = pkgRoot + 'test/tsp/KeyVault.Keys';
generate('azkeys', azkeys, 'test/azkeys');

for (const module in cadlRanch) {
const values = cadlRanch[module];
let perTestOptions;
Expand Down
6 changes: 6 additions & 0 deletions packages/typespec-go/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 0.3.4 (2024-12-03)

### Other Fixes

* Updated dependencies (fixes missing parameters in some cases).

## 0.3.3 (2024-11-19)

### Other Fixes
Expand Down
6 changes: 3 additions & 3 deletions packages/typespec-go/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/typespec-go",
"version": "0.3.3",
"version": "0.3.4",
"description": "TypeSpec emitter for Go SDKs",
"type": "module",
"main": "dist/typespec-go/src/index.js",
Expand Down Expand Up @@ -52,7 +52,7 @@
"@azure-tools/typespec-autorest": ">=0.48.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.48.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.48.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.48.2 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.48.3 <1.0.0",
"@types/js-yaml": "~4.0.6",
"@types/node": "^18.16.3",
"@typescript-eslint/eslint-plugin": "~4.1.1",
Expand All @@ -70,7 +70,7 @@
"typescript": "~5.1.3"
},
"peerDependencies": {
"@azure-tools/typespec-client-generator-core": ">=0.48.2 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.48.3 <1.0.0",
"@typespec/compiler": ">=0.62.0 <1.0.0",
"@typespec/http": ">=0.62.0 <1.0.0"
},
Expand Down
76 changes: 76 additions & 0 deletions packages/typespec-go/test/azkeys/fake/zz_internal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 81fdd1f

Please sign in to comment.