Skip to content

Commit 2ae8c7a

Browse files
Uprade to typespec 0.67.0 (#33296)
* Uprade to typespec 0.67.0 * Disable remaining tsp-client test - Azure/autorest#5089 --------- Co-authored-by: Mike Harder <[email protected]>
1 parent d0c47fe commit 2ae8c7a

File tree

164 files changed

+1421
-1183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+1421
-1183
lines changed

eng/tools/tsp-client-tests/test/tsp-client.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ test.skip.concurrent("Convert contosowidgetmanager/data-plane", async ({ expect
7676
await convert(expect, "specification/contosowidgetmanager/data-plane/readme.md");
7777
});
7878

79-
test.concurrent("Convert contosowidgetmanager/resource-manager", async ({ expect }) => {
79+
// Disabled due to https://github.com/Azure/autorest/issues/5089
80+
test.skip.concurrent("Convert contosowidgetmanager/resource-manager", async ({ expect }) => {
8081
await convert(expect, "specification/contosowidgetmanager/resource-manager/readme.md");
8182
});

package-lock.json

Lines changed: 362 additions & 157 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,28 @@
22
"name": "azure-rest-api-specs",
33
"devDependencies": {
44
"@azure-tools/typespec-apiview": "0.5.1",
5-
"@azure-tools/typespec-autorest": "0.52.0",
6-
"@azure-tools/typespec-azure-core": "0.52.0",
7-
"@azure-tools/typespec-azure-portal-core": "0.52.0",
8-
"@azure-tools/typespec-azure-resource-manager": "0.52.0",
9-
"@azure-tools/typespec-azure-rulesets": "0.52.0",
5+
"@azure-tools/typespec-autorest": "0.53.0",
6+
"@azure-tools/typespec-azure-core": "0.53.0",
7+
"@azure-tools/typespec-azure-portal-core": "0.53.0",
8+
"@azure-tools/typespec-azure-resource-manager": "0.53.0",
9+
"@azure-tools/typespec-azure-rulesets": "0.53.0",
1010
"@azure-tools/typespec-client-generator-cli": "0.15.3",
11-
"@azure-tools/typespec-client-generator-core": "0.52.0",
11+
"@azure-tools/typespec-client-generator-core": "0.53.0",
1212
"@azure-tools/typespec-liftr-base": "0.8.0",
1313
"@azure-tools/spec-gen-sdk": "0.2.2",
1414
"@azure/avocado": "^0.9.1",
1515
"@autorest/openapi-to-typespec": "0.10.12",
16-
"@typespec/compiler": "0.66.0",
17-
"@typespec/http": "0.66.0",
18-
"@typespec/openapi": "0.66.0",
19-
"@typespec/openapi3": "0.66.0",
20-
"@typespec/prettier-plugin-typespec": "0.66.0",
21-
"@typespec/rest": "0.66.0",
22-
"@typespec/streams": "0.66.0",
23-
"@typespec/versioning": "0.66.0",
24-
"@typespec/xml": "0.66.0",
16+
"@typespec/compiler": "0.67.1",
17+
"@typespec/http": "0.67.1",
18+
"@typespec/sse": "0.67.1",
19+
"@typespec/events": "0.67.1",
20+
"@typespec/openapi": "0.67.1",
21+
"@typespec/openapi3": "0.67.1",
22+
"@typespec/prettier-plugin-typespec": "0.67.1",
23+
"@typespec/rest": "0.67.1",
24+
"@typespec/streams": "0.67.1",
25+
"@typespec/versioning": "0.67.1",
26+
"@typespec/xml": "0.67.1",
2527
"azure-rest-api-specs-eng-tools": "file:eng/tools",
2628
"oav": "^3.5.1",
2729
"prettier": "~3.5.3",

specification/ai/DocumentIntelligence/models.tsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,6 @@ model DocumentIntelligenceError {
428428
innererror?: DocumentIntelligenceInnerError;
429429
}
430430

431-
#suppress "@azure-tools/typespec-azure-core/property-name-conflict" "https://github.com/Azure/typespec-azure/issues/417"
432431
@doc("An object containing more specific information about the error.")
433432
model DocumentIntelligenceInnerError {
434433
@doc("One of a server-defined set of error codes.")

specification/ai/Face/models.session.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ model CreateLivenessWithVerifySessionRequestBeforeV1_2 {
329329
@header("content-type")
330330
contentType: "multipart/form-data";
331331

332+
#suppress "deprecated" "Legacy multipart TO MIGRATE NEXT SPRINT"
332333
@doc("Request content of liveness with verify session creation.")
333334
@body
334335
body: CreateLivenessWithVerifySessionMultipartContent;
@@ -504,6 +505,7 @@ model CreateLivenessWithVerifySessionRequest {
504505
@header("content-type")
505506
contentType: "multipart/form-data";
506507

508+
#suppress "deprecated" "Legacy multipart TO MIGRATE NEXT SPRINT"
507509
@doc("Request content of liveness with verify session creation.")
508510
@body
509511
body: CreateLivenessWithVerifySessionContent;

specification/ai/HealthInsights/HealthInsights.Common/model.common.fhir.elements.tsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ model Element {
7878
@doc("Unique id for inter-element referencing")
7979
id?: string;
8080

81-
#suppress "@azure-tools/typespec-azure-core/property-name-conflict" "must keep the name 'extension' for compatibility with FHIR"
81+
#suppress "@azure-tools/typespec-client-generator-core/property-name-conflict" "must keep the name 'extension' for compatibility with FHIR"
8282
@doc("Additional Content defined by implementations")
8383
extension?: Extension[];
8484
}
@@ -161,7 +161,7 @@ model Narrative extends Element {
161161
Based on [FHIR Reference](https://www.hl7.org/fhir/R4/references.html)
162162
""")
163163
model Reference extends Element {
164-
#suppress "@azure-tools/typespec-azure-core/property-name-conflict" "must keep the name 'reference' for compatibility with FHIR"
164+
#suppress "@azure-tools/typespec-client-generator-core/property-name-conflict" "must keep the name 'reference' for compatibility with FHIR"
165165
@doc("Literal reference, Relative, internal or absolute URL")
166166
reference?: string;
167167

specification/ai/OpenAI.Assistants/files/routes.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ op listFiles(@query purpose?: FilePurpose): FileListResponse;
3939
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
4040
#suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "not yet versioned"
4141
#suppress "@azure-tools/typespec-azure-core/byos" "mirrored API"
42+
#suppress "deprecated" "Legacy multipart TO MIGRATE NEXT SPRINT"
4243
@post
4344
@added(ServiceApiVersions.v2024_02_15_preview)
4445
@route("/files")

specification/ai/data-plane/ModelInference/preview/2024-05-01-preview/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ components:
13531353
name: api-key
13541354
BearerAuth:
13551355
type: http
1356-
scheme: bearer
1356+
scheme: Bearer
13571357
OAuth2Auth:
13581358
type: oauth2
13591359
flows:

specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-02-15-preview/assistants_generated.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@
483483
"get": {
484484
"operationId": "GetFileContent",
485485
"description": "Returns information about a specific file. Does not retrieve file content.",
486+
"produces": [
487+
"application/octet-stream"
488+
],
486489
"parameters": [
487490
{
488491
"name": "fileId",
@@ -496,8 +499,7 @@
496499
"200": {
497500
"description": "The request has succeeded.",
498501
"schema": {
499-
"type": "string",
500-
"format": "byte"
502+
"type": "file"
501503
}
502504
}
503505
},

specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-05-01-preview/assistants_generated.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@
519519
"get": {
520520
"operationId": "GetFileContent",
521521
"description": "Returns information about a specific file. Does not retrieve file content.",
522+
"produces": [
523+
"application/octet-stream"
524+
],
522525
"parameters": [
523526
{
524527
"name": "fileId",
@@ -532,8 +535,7 @@
532535
"200": {
533536
"description": "The request has succeeded.",
534537
"schema": {
535-
"type": "string",
536-
"format": "byte"
538+
"type": "file"
537539
}
538540
}
539541
},

specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-07-01-preview/assistants_generated.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@
519519
"get": {
520520
"operationId": "GetFileContent",
521521
"description": "Returns information about a specific file. Does not retrieve file content.",
522+
"produces": [
523+
"application/octet-stream"
524+
],
522525
"parameters": [
523526
{
524527
"name": "fileId",
@@ -532,8 +535,7 @@
532535
"200": {
533536
"description": "The request has succeeded.",
534537
"schema": {
535-
"type": "string",
536-
"format": "byte"
538+
"type": "file"
537539
}
538540
}
539541
},

specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-09-01-preview/assistants_generated.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@
519519
"get": {
520520
"operationId": "GetFileContent",
521521
"description": "Returns information about a specific file. Does not retrieve file content.",
522+
"produces": [
523+
"application/octet-stream"
524+
],
522525
"parameters": [
523526
{
524527
"name": "fileId",
@@ -532,8 +535,7 @@
532535
"200": {
533536
"description": "The request has succeeded.",
534537
"schema": {
535-
"type": "string",
536-
"format": "byte"
538+
"type": "file"
537539
}
538540
}
539541
},

specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-10-01-preview/assistants_generated.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@
519519
"get": {
520520
"operationId": "GetFileContent",
521521
"description": "Returns information about a specific file. Does not retrieve file content.",
522+
"produces": [
523+
"application/octet-stream"
524+
],
522525
"parameters": [
523526
{
524527
"name": "fileId",
@@ -532,8 +535,7 @@
532535
"200": {
533536
"description": "The request has succeeded.",
534537
"schema": {
535-
"type": "string",
536-
"format": "byte"
538+
"type": "file"
537539
}
538540
}
539541
},

specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2025-01-01-preview/assistants_generated.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@
519519
"get": {
520520
"operationId": "GetFileContent",
521521
"description": "Returns information about a specific file. Does not retrieve file content.",
522+
"produces": [
523+
"application/octet-stream"
524+
],
522525
"parameters": [
523526
{
524527
"name": "fileId",
@@ -532,8 +535,7 @@
532535
"200": {
533536
"description": "The request has succeeded.",
534537
"schema": {
535-
"type": "string",
536-
"format": "byte"
538+
"type": "file"
537539
}
538540
}
539541
},

specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-02-15-preview/assistants_generated.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ paths:
252252
'200':
253253
description: The request has succeeded.
254254
content:
255-
application/json:
255+
application/octet-stream:
256256
schema:
257257
type: string
258-
format: byte
258+
format: binary
259259
/threads:
260260
post:
261261
operationId: createThread

specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-05-01-preview/assistants_generated.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ paths:
252252
'200':
253253
description: The request has succeeded.
254254
content:
255-
application/json:
255+
application/octet-stream:
256256
schema:
257257
type: string
258-
format: byte
258+
format: binary
259259
/threads:
260260
post:
261261
operationId: createThread

specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-07-01-preview/assistants_generated.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ paths:
252252
'200':
253253
description: The request has succeeded.
254254
content:
255-
application/json:
255+
application/octet-stream:
256256
schema:
257257
type: string
258-
format: byte
258+
format: binary
259259
/threads:
260260
post:
261261
operationId: createThread

specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-09-01-preview/assistants_generated.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ paths:
252252
'200':
253253
description: The request has succeeded.
254254
content:
255-
application/json:
255+
application/octet-stream:
256256
schema:
257257
type: string
258-
format: byte
258+
format: binary
259259
/threads:
260260
post:
261261
operationId: createThread

specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-10-01-preview/assistants_generated.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ paths:
252252
'200':
253253
description: The request has succeeded.
254254
content:
255-
application/json:
255+
application/octet-stream:
256256
schema:
257257
type: string
258-
format: byte
258+
format: binary
259259
/threads:
260260
post:
261261
operationId: createThread

specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2025-01-01-preview/assistants_generated.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ paths:
252252
'200':
253253
description: The request has succeeded.
254254
content:
255-
application/json:
255+
application/octet-stream:
256256
schema:
257257
type: string
258-
format: byte
258+
format: binary
259259
/threads:
260260
post:
261261
operationId: createThread

specification/apicenter/ApiCenter.DataApi/models/api.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ model PagedApiAll {
1313
@parentResource(Workspace)
1414
@resource("apis")
1515
model Api {
16+
#suppress "@azure-tools/typespec-azure-core/key-visibility-required" "FIXME: misused @visibility to get around this warning"
1617
@doc("Api identifier.")
1718
@maxLength(50)
1819
@key("apiName")
19-
@visibility
2020
name: string;
2121

2222
@doc("The name of the API.")

specification/apicenter/ApiCenter.DataApi/models/apiDefinition.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ using TypeSpec.Rest;
66
@resource("definitions")
77
@parentResource(ApiVersion)
88
model ApiDefinition {
9+
#suppress "@azure-tools/typespec-azure-core/key-visibility-required" "FIXME: misused @visibility to get around this warning"
910
@doc("Definition identifier.")
1011
@key("definitionName")
11-
@visibility
1212
@maxLength(50)
1313
name: string;
1414

specification/apicenter/ApiCenter.DataApi/models/apiVersion.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ using TypeSpec.Rest;
88
@resource("versions")
99
@parentResource(Api)
1010
model ApiVersion {
11+
#suppress "@azure-tools/typespec-azure-core/key-visibility-required" "FIXME: misused @visibility to get around this warning"
1112
@doc("Version identifier.")
1213
@key("versionName")
13-
@visibility
1414
@maxLength(50)
1515
name: string;
1616

specification/apicenter/ApiCenter.DataApi/models/deployment.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ using TypeSpec.Rest;
66
@resource("deployments")
77
@parentResource(Api)
88
model ApiDeployment {
9+
#suppress "@azure-tools/typespec-azure-core/key-visibility-required" "FIXME: misused @visibility to get around this warning"
910
@doc("Deployment identifier.")
1011
@key("deploymentName")
11-
@visibility
1212
@maxLength(50)
1313
name: string;
1414

specification/apicenter/ApiCenter.DataApi/models/environment.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ model PagedEnvironmentAll {
1313
@resource("environments")
1414
@parentResource(Workspace)
1515
model Environment {
16+
#suppress "@azure-tools/typespec-azure-core/key-visibility-required" "FIXME: misused @visibility to get around this warning"
1617
@doc("Environment identifier.")
1718
@key("environmentName")
18-
@visibility
1919
@maxLength(50)
2020
name: string;
2121

specification/apicenter/ApiCenter.DataApi/models/workspace.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ using TypeSpec.Rest;
77
@doc("Workspace resource model.")
88
@resource("workspaces")
99
model Workspace {
10+
#suppress "@azure-tools/typespec-azure-core/key-visibility-required" "FIXME: misused @visibility to get around this warning"
1011
@doc("Workspace identifier.")
1112
@maxLength(50)
1213
@key("workspaceName")
13-
@visibility
1414
name: string;
1515

1616
@doc("Workspace title, e.g. 'My workspace'.")

specification/app/Microsoft.App.DynamicSessions/routes.tsp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ interface SessionResourceFiles {
7272
@header("content-type")
7373
contentType: "multipart/form-data";
7474

75-
@doc("The file to upload.")
76-
file: bytes;
75+
/** Multipart body */
76+
@multipartBody body: {
77+
@doc("The file to upload.")
78+
file: HttpPart<bytes>;
79+
};
7780
},
7881
SessionResourceFile,
7982
SessionResourceFilesTraits

0 commit comments

Comments
 (0)