Skip to content
This repository was archived by the owner on Jun 30, 2026. It is now read-only.

Commit 39ebc04

Browse files
authored
Bump TypeSpec dependencies to latest stable and next pre-release versions (#4012)
* Initial plan * Bump TypeSpec versions to latest stable releases * Use next-tagged versions for http-specs, spector, spec-api, azure-http-specs * Regenerate usage baseline and add test for namespaceModelSerializable * Regenerate usage baseline and add test for namespaceModelSerializable (azure-rlc) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent ffd258b commit 39ebc04

7 files changed

Lines changed: 89 additions & 53 deletions

File tree

packages/typespec-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@azure-tools/typespec-autorest": "^0.68.0",
99
"@typespec/openapi3": "^1.12.0",
1010
"@azure-tools/typespec-azure-core": "^0.68.0",
11-
"@azure-tools/typespec-client-generator-core": "^0.68.2",
11+
"@azure-tools/typespec-client-generator-core": "^0.68.3",
1212
"@azure-tools/typespec-azure-resource-manager": "^0.68.0",
1313
"@azure-tools/typespec-azure-rulesets": "^0.68.0",
1414
"@typespec/compiler": "^1.12.0",

packages/typespec-ts/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@
6969
"@typespec/spector": "0.1.0-dev.4",
7070
"@typespec/spec-api": "0.1.0-dev.3",
7171
"@typespec/tspd": "0.74.2",
72-
"@azure-tools/azure-http-specs": "0.1.0-alpha.41-dev.1",
72+
"@azure-tools/azure-http-specs": "0.1.0-alpha.41-dev.2",
7373
"@azure-tools/typespec-autorest": "^0.68.0",
7474
"@azure-tools/typespec-azure-core": "^0.68.0",
7575
"@azure-tools/typespec-azure-resource-manager": "^0.68.0",
76-
"@azure-tools/typespec-client-generator-core": "^0.68.2",
76+
"@azure-tools/typespec-client-generator-core": "^0.68.3",
7777
"@azure/abort-controller": "^2.1.2",
7878
"@azure/core-auth": "^1.6.0",
7979
"@azure/core-lro": "^3.1.0",
@@ -112,7 +112,7 @@
112112
},
113113
"peerDependencies": {
114114
"@azure-tools/typespec-azure-core": "^0.68.0",
115-
"@azure-tools/typespec-client-generator-core": "^0.68.2",
115+
"@azure-tools/typespec-client-generator-core": "^0.68.3",
116116
"@typespec/compiler": "^1.12.0",
117117
"@typespec/http": "^1.12.0",
118118
"@typespec/rest": "^0.82.0",

packages/typespec-ts/test/azureIntegration/azureClientGeneratorCoreUsage.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,11 @@ describe("Usage Client", () => {
4545
.put({ body: { name: "name", desc: "desc" } });
4646
assert.strictEqual(result.status, "204");
4747
});
48+
49+
it("should put namespace model in operation", async () => {
50+
const result = await client
51+
.path("/azure/client-generator-core/usage/namespaceModelSerializable")
52+
.put({ body: { name: "test" } });
53+
assert.strictEqual(result.status, "204");
54+
});
4855
});

packages/typespec-ts/test/azureIntegration/generated/azure/client-generator-core/usage/src/index.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@ export declare interface ModelInReadOnlyPropertyBodyParam {
4444

4545
export declare type ModelInReadOnlyPropertyParameters = ModelInReadOnlyPropertyBodyParam & RequestParameters;
4646

47+
export declare interface NamespaceModelSerializable {
48+
put(options: NamespaceModelSerializableParameters): StreamableMethod<NamespaceModelSerializable204Response>;
49+
}
50+
51+
export declare interface NamespaceModelSerializable204Response extends HttpResponse {
52+
status: "204";
53+
}
54+
55+
export declare interface NamespaceModelSerializableBodyParam {
56+
body: unknown;
57+
}
58+
59+
export declare type NamespaceModelSerializableParameters = NamespaceModelSerializableBodyParam & RequestParameters;
60+
4761
export declare interface OrphanModelSerializable {
4862
put(options: OrphanModelSerializableParameters): StreamableMethod<OrphanModelSerializable204Response>;
4963
}
@@ -95,6 +109,7 @@ export declare interface Routes {
95109
(path: "/azure/client-generator-core/usage/outputToInputOutput"): OutputToInputOutput;
96110
(path: "/azure/client-generator-core/usage/modelInReadOnlyProperty"): ModelInReadOnlyProperty;
97111
(path: "/azure/client-generator-core/usage/orphanModelSerializable"): OrphanModelSerializable;
112+
(path: "/azure/client-generator-core/usage/namespaceModelSerializable"): NamespaceModelSerializable;
98113
}
99114

100115
export declare type UsageClient = Client & {

packages/typespec-ts/test/azureModularIntegration/azureClientGeneratorCoreUsage.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,11 @@ describe("Azure ClientGeneratorCore Usage Client", () => {
3838
});
3939
assert.isUndefined(result);
4040
});
41+
42+
it("should put namespace model in operation", async () => {
43+
const result = await client.namespaceModelSerializable({
44+
name: "test"
45+
});
46+
assert.isUndefined(result);
47+
});
4148
});

packages/typespec-ts/test/azureModularIntegration/generated/azure/client-generator-core/usage/src/index.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ export { isRestError }
1616
export declare interface ModelInReadOnlyPropertyOptionalParams extends OperationOptions {
1717
}
1818

19+
export declare interface NamespaceModel {
20+
name: string;
21+
}
22+
23+
export declare interface NamespaceModelSerializableOptionalParams extends OperationOptions {
24+
}
25+
26+
export declare interface NestedNamespaceModel {
27+
value: string;
28+
}
29+
1930
export declare interface OrphanModel {
2031
modelName: string;
2132
description: string;
@@ -45,6 +56,7 @@ export declare class UsageClient {
4556
private _client;
4657
readonly pipeline: Pipeline;
4758
constructor(options?: UsageClientOptionalParams);
59+
namespaceModelSerializable(body: any, options?: NamespaceModelSerializableOptionalParams): Promise<void>;
4860
orphanModelSerializable(body: any, options?: OrphanModelSerializableOptionalParams): Promise<void>;
4961
modelInReadOnlyProperty(body: RoundTripModel, options?: ModelInReadOnlyPropertyOptionalParams): Promise<RoundTripModel>;
5062
outputToInputOutput(options?: OutputToInputOutputOptionalParams): Promise<OutputModel>;

0 commit comments

Comments
 (0)