Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/typespec-go/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

* Fixed missing propagation of parent client parameters to sub-clients created via client accessor methods.

### Other Changes

* Updated to the latest tsp toolset.

## 0.10.2 (2026-03-06)

### Bugs Fixed
Expand Down
44 changes: 22 additions & 22 deletions packages/typespec-go/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.10.3",
"description": "TypeSpec emitter for Go SDKs",
"type": "module",
"packageManager": "pnpm@10.30.3",
"packageManager": "pnpm@10.32.1",
"exports": {
".": {
"import": "./dist/typespec-go/src/index.js"
Expand Down Expand Up @@ -50,26 +50,26 @@
"homepage": "https://github.com/Azure/autorest.go#readme",
"readme": "https://github.com/Azure/autorest.go/blob/main/readme.md",
"devDependencies": {
"@azure-tools/azure-http-specs": "0.1.0-alpha.37",
"@azure-tools/typespec-autorest": "0.65.0",
"@azure-tools/typespec-azure-core": "0.65.0",
"@azure-tools/typespec-azure-resource-manager": "0.65.0",
"@azure-tools/typespec-azure-rulesets": "0.65.0",
"@azure-tools/typespec-client-generator-core": "0.65.4",
"@azure-tools/azure-http-specs": "0.1.0-alpha.38",
"@azure-tools/typespec-autorest": "0.66.0",
"@azure-tools/typespec-azure-core": "0.66.0",
"@azure-tools/typespec-azure-resource-manager": "0.66.0",
"@azure-tools/typespec-azure-rulesets": "0.66.0",
"@azure-tools/typespec-client-generator-core": "0.66.2",
"@types/node": "catalog:",
"@types/semver": "catalog:",
"@typespec/compiler": "1.9.0",
"@typespec/events": "0.79.0",
"@typespec/http": "1.9.1",
"@typespec/http-specs": "0.1.0-alpha.32",
"@typespec/openapi": "1.9.0",
"@typespec/rest": "0.79.0",
"@typespec/spector": "0.1.0-alpha.23",
"@typespec/sse": "0.79.0",
"@typespec/streams": "0.79.0",
"@typespec/tspd": "0.74.0",
"@typespec/versioning": "0.79.0",
"@typespec/xml": "0.79.0",
"@typespec/compiler": "1.10.0",
"@typespec/events": "0.80.0",
"@typespec/http": "1.10.0",
"@typespec/http-specs": "0.1.0-alpha.34",
"@typespec/openapi": "1.10.0",
"@typespec/rest": "0.80.0",
"@typespec/spector": "0.1.0-alpha.24",
"@typespec/sse": "0.80.0",
"@typespec/streams": "0.80.0",
"@typespec/tspd": "0.74.1",
"@typespec/versioning": "0.80.0",
"@typespec/xml": "0.80.0",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"eslint": "catalog:",
Expand All @@ -78,9 +78,9 @@
"vitest": "catalog:"
},
"peerDependencies": {
"@azure-tools/typespec-client-generator-core": "^0.65.4",
"@typespec/compiler": "^1.9.0",
"@typespec/http": "^1.9.1"
"@azure-tools/typespec-client-generator-core": "^0.66.2",
"@typespec/compiler": "^1.10.0",
"@typespec/http": "^1.10.0"
},
"dependencies": {
"semver": "catalog:",
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,31 @@ func TestFlattenPropertyClient_PutNestedFlattenModel(t *testing.T) {
},
}, resp.NestedFlattenModel)
}

func TestFlattenPropertyClient_PutFlattenUnknownModel(t *testing.T) {
client, err := flattengroup.NewFlattenPropertyClientWithNoCredential("http://localhost:3000", nil)
require.NoError(t, err)
resp, err := client.PutFlattenUnknownModel(context.Background(), flattengroup.FlattenUnknownModel{
Name: to.Ptr("foo"),
}, nil)
require.NoError(t, err)
require.Equal(t, to.Ptr("test"), resp.Name)
props, ok := resp.Properties.(map[string]any)
require.True(t, ok)
require.Equal(t, "value1", props["key1"])
require.Equal(t, "value2", props["key2"])
}

func TestFlattenPropertyClient_PutFlattenReadOnlyModel(t *testing.T) {
client, err := flattengroup.NewFlattenPropertyClientWithNoCredential("http://localhost:3000", nil)
require.NoError(t, err)
resp, err := client.PutFlattenReadOnlyModel(context.Background(), flattengroup.Solution{
Name: to.Ptr("foo"),
}, nil)
require.NoError(t, err)
require.Equal(t, to.Ptr("foo"), resp.Name)
require.NotNil(t, resp.Properties)
require.Equal(t, to.Ptr("solution1"), resp.Properties.SolutionID)
require.Equal(t, to.Ptr("Solution Title"), resp.Properties.Title)
require.Equal(t, to.Ptr("Solution Content"), resp.Properties.Content)
}

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

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

Loading