From 27a9398801386caaba2df7e1a4d1a8abd19e3789 Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Thu, 8 Aug 2024 12:42:24 -0700 Subject: [PATCH] Upgrade/typespec 0.59 (#30122) --- package-lock.json | 197 +++++++++--------- package.json | 24 +-- .../ai/DocumentIntelligence/routes.tsp | 12 +- specification/ai/Face/models.common.tsp | 5 +- specification/ai/Face/models.detect.tsp | 4 +- .../model.common.shared.tsp | 1 + specification/ai/ImageAnalysis/routes.tsp | 10 +- .../assistants_generated.yaml | 14 +- .../assistants_generated.yaml | 18 +- .../resources/EvidenceResource.tsp | 1 + .../resources/ReportResource.tsp | 1 + .../ScopingConfigurationResource.tsp | 1 + .../resources/SnapshotResource.tsp | 1 + .../resources/WebhookResource.tsp | 1 + .../AppConfiguration/routes.tsp | 83 ++------ specification/batch/Azure.Batch/common.tsp | 1 - specification/batch/Azure.Batch/routes.tsp | 96 +++------ .../OpenAI.Inference/models/images/common.tsp | 1 - .../devcenter/DevCenter/shared/templates.tsp | 1 - .../DeveloperSigning/main.tsp | 1 + .../DeviceRegistry.Management/main.tsp | 1 - .../LiftrBase.Storage/main.tsp | 1 - .../LoadTestService/models.tsp | 1 - .../oraclesubscription/oracleSubscription.tsp | 1 + .../apis/common.tsp | 1 + .../models.tsp | 1 + .../routes.tsp | 12 +- .../common/base-operations.tsp | 2 - specification/riskiq/Easm/models.tsp | 5 +- .../Azure.AI.DocumentTranslation/routes.tsp | 30 +-- .../models-translate.tsp | 6 +- .../Microsoft.AVS.Management/models.tsp | 1 + .../VoiceServices.Provisioning/main.tsp | 2 +- 33 files changed, 207 insertions(+), 330 deletions(-) diff --git a/package-lock.json b/package-lock.json index a7e06facebfb..a4a40bb9354a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,21 +7,21 @@ "name": "azure-rest-api-specs", "devDependencies": { "@azure-tools/typespec-apiview": "0.4.9", - "@azure-tools/typespec-autorest": "0.44.1", - "@azure-tools/typespec-azure-core": "0.44.0", - "@azure-tools/typespec-azure-portal-core": "0.44.0", - "@azure-tools/typespec-azure-resource-manager": "0.44.0", - "@azure-tools/typespec-azure-rulesets": "0.44.0", + "@azure-tools/typespec-autorest": "0.45.0", + "@azure-tools/typespec-azure-core": "0.45.0", + "@azure-tools/typespec-azure-portal-core": "0.45.0", + "@azure-tools/typespec-azure-resource-manager": "0.45.0", + "@azure-tools/typespec-azure-rulesets": "0.45.0", "@azure-tools/typespec-client-generator-cli": "0.9.4", - "@azure-tools/typespec-client-generator-core": "0.44.2", + "@azure-tools/typespec-client-generator-core": "0.45.0", "@azure-tools/typespec-liftr-base": "0.4.0", "@azure/avocado": "^0.8.4", - "@typespec/compiler": "0.58.1", - "@typespec/http": "0.58.0", - "@typespec/openapi": "0.58.0", - "@typespec/openapi3": "0.58.0", - "@typespec/rest": "0.58.0", - "@typespec/versioning": "0.58.0", + "@typespec/compiler": "0.59.0", + "@typespec/http": "0.59.0", + "@typespec/openapi": "0.59.0", + "@typespec/openapi3": "0.59.0", + "@typespec/rest": "0.59.0", + "@typespec/versioning": "0.59.0", "azure-rest-api-specs-eng-tools": "file:eng/tools", "oav": "^3.3.7", "prettier": "~3.2.5", @@ -993,55 +993,55 @@ } }, "node_modules/@azure-tools/typespec-autorest": { - "version": "0.44.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.44.1.tgz", - "integrity": "sha512-lw/iM659GuFgckDeRFFu0vx6wGBy814n+mjzbpi0Qwjvj8/hYULSjpty9P4WBDE30rYCUde1pWX5nK6TnwhOkQ==", + "version": "0.45.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.45.0.tgz", + "integrity": "sha512-6ycZ0bEfXC0U26FHHEt9smAhxh78SACIDY+u7zLAopRzmxjTuthDdGgYSShuRDu3J+vEBi1fOKpz4cYQkgRkBQ==", "dev": true, "license": "MIT", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@azure-tools/typespec-azure-resource-manager": "~0.44.0", - "@azure-tools/typespec-client-generator-core": "~0.44.2", - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/rest": "~0.58.0", - "@typespec/versioning": "~0.58.0" + "@azure-tools/typespec-azure-core": "~0.45.0", + "@azure-tools/typespec-azure-resource-manager": "~0.45.0", + "@azure-tools/typespec-client-generator-core": "~0.45.0", + "@typespec/compiler": "~0.59.0", + "@typespec/http": "~0.59.0", + "@typespec/openapi": "~0.59.0", + "@typespec/rest": "~0.59.0", + "@typespec/versioning": "~0.59.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.44.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.44.0.tgz", - "integrity": "sha512-d11QK2v5fOZH8YUqf42FsqHEirKCHzeKFq4Uo/51BXCXmJJahsTaFMAG2M0GoJe8tmTHeMijStnVMfzcGNqCAA==", + "version": "0.45.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.45.0.tgz", + "integrity": "sha512-GycGMCmaIVSN+TftPtlPJLyeOrglbLmH08ZiZaVMjSih/TQEJM21RGR6d8QdjlkQWN61ntNDRD+RP2uv9tHmqw==", "dev": true, "license": "MIT", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/rest": "~0.58.0" + "@typespec/compiler": "~0.59.0", + "@typespec/http": "~0.59.0", + "@typespec/rest": "~0.59.0" } }, "node_modules/@azure-tools/typespec-azure-portal-core": { - "version": "0.44.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-portal-core/-/typespec-azure-portal-core-0.44.0.tgz", - "integrity": "sha512-18Cy8RFhfDP5wy4J/noXZibXCxdBHEETOpk0q1xKe3qXgEKoE/MPKZgdEi5syLGP9HvMOEQ9Sy6iDYbhYdKQ1w==", + "version": "0.45.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-portal-core/-/typespec-azure-portal-core-0.45.0.tgz", + "integrity": "sha512-8ybUzUk+suUfogiKe7yaLO/wZCbm81lmn8M6yGuK2jZtQNKDDqCtN21HNoVpmYc5bfsXl3mlGi0C1uUQbUcmMQ==", "dev": true, "license": "MIT", "peerDependencies": { - "@azure-tools/typespec-azure-resource-manager": "~0.44.0", - "@typespec/compiler": "~0.58.0" + "@azure-tools/typespec-azure-resource-manager": "~0.45.0", + "@typespec/compiler": "~0.59.0" } }, "node_modules/@azure-tools/typespec-azure-resource-manager": { - "version": "0.44.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.44.0.tgz", - "integrity": "sha512-m4dG41at6En1swbxlvCDl1v4Mvrfp17acDnRxEcd4SdKP2R9eVS2mBy1tSuFtMcJlOnoBZ5CxQgk+Osg/Q9nmA==", + "version": "0.45.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.45.0.tgz", + "integrity": "sha512-PdhB03P8PoOlUoUWd+CF5WipGzu2Q3ZjT0EAzgQe878DmXvxMq+zYaPJQtvkq9R6jCxFauDSr5gG7Yd4NINAuA==", "dev": true, "license": "MIT", "dependencies": { @@ -1052,28 +1052,28 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/rest": "~0.58.0", - "@typespec/versioning": "~0.58.0" + "@azure-tools/typespec-azure-core": "~0.45.0", + "@typespec/compiler": "~0.59.0", + "@typespec/http": "~0.59.0", + "@typespec/openapi": "~0.59.0", + "@typespec/rest": "~0.59.0", + "@typespec/versioning": "~0.59.0" } }, "node_modules/@azure-tools/typespec-azure-rulesets": { - "version": "0.44.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.44.0.tgz", - "integrity": "sha512-ZFiT+rtLIq3uP4uSr85i7w+3r02BEqERePaCtTyjexo2IBz0lwQ5Nn/5ujfuDDSy+3daoC2bQy8hw/BGWg9/Ng==", + "version": "0.45.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.45.0.tgz", + "integrity": "sha512-OpMYYc0ElxnswABud22GSqE24ZoJCRGh9fwSA8SoqsJr0uXRX7D6D5pA1FHFT3b5uBVHy0l+FFHvjz9wxfsbUw==", "dev": true, "license": "MIT", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@azure-tools/typespec-azure-resource-manager": "~0.44.0", - "@azure-tools/typespec-client-generator-core": "~0.44.0", - "@typespec/compiler": "~0.58.0" + "@azure-tools/typespec-azure-core": "~0.45.0", + "@azure-tools/typespec-azure-resource-manager": "~0.45.0", + "@azure-tools/typespec-client-generator-core": "~0.45.0", + "@typespec/compiler": "~0.59.0" } }, "node_modules/@azure-tools/typespec-client-generator-cli": { @@ -1104,9 +1104,9 @@ } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.44.2", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.44.2.tgz", - "integrity": "sha512-eIClpMxjMYxNeyYpdnD3BfWbPiDP0e7waTvBc5V1JQmFGKvh8H9dNeO4IaBqJ/O7WSDtuxweDmSUviZdBvuYNA==", + "version": "0.45.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.45.0.tgz", + "integrity": "sha512-x8F/+xBeU3Y5BLH2tcCXBaI3w/XNkaifTadp2AVuYuifL43QInQRILBvZvTb5+1c4LmvDQOnLqIbZ3cdt+9fTA==", "dev": true, "license": "MIT", "dependencies": { @@ -1117,12 +1117,12 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/rest": "~0.58.0", - "@typespec/versioning": "~0.58.0" + "@azure-tools/typespec-azure-core": "~0.45.0", + "@typespec/compiler": "~0.59.0", + "@typespec/http": "~0.59.0", + "@typespec/openapi": "~0.59.0", + "@typespec/rest": "~0.59.0", + "@typespec/versioning": "~0.59.0" } }, "node_modules/@azure-tools/typespec-liftr-base": { @@ -3345,21 +3345,21 @@ } }, "node_modules/@typespec/compiler": { - "version": "0.58.1", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.58.1.tgz", - "integrity": "sha512-bVxxM35r40OtuL4+/9W/g1EevlnWnW6i151nsZAFOJj1xWHoE2G9zkx5/Feic8OlzArjhGGLJOLH3Ez1Wrw35A==", + "version": "0.59.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.59.0.tgz", + "integrity": "sha512-fqh2TeAWQyt70f7NkfwOvoQMqHAfGzIfvcUi+XW55+ms6opiqNXBIT822Jr+T4fNo1PgsnbKC34n6SSIMxnOqw==", "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "~7.24.7", - "ajv": "~8.16.0", + "ajv": "~8.17.1", "change-case": "~5.4.4", "globby": "~14.0.2", "mustache": "~4.2.0", "picocolors": "~1.0.1", - "prettier": "~3.3.2", + "prettier": "~3.3.3", "prompts": "~2.4.2", - "semver": "^7.6.2", + "semver": "^7.6.3", "temporal-polyfill": "^0.2.5", "vscode-languageserver": "~9.0.1", "vscode-languageserver-textdocument": "~1.0.11", @@ -3499,36 +3499,36 @@ } }, "node_modules/@typespec/http": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.58.0.tgz", - "integrity": "sha512-jQpkugg9AZVrNDMkDIgZRpIoRkkU2b0LtKWqMGg33MItYj9/DYSgDtY7xb7oCBppRtFFZ/h138HyhYl3zQxZRg==", + "version": "0.59.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.59.0.tgz", + "integrity": "sha512-P8kJBHmkqYHhojO97Tnj8FH+UInWzGBl2I9Z6ZX6sVUVW9/87hoovgCcVmvU1xMUD/xvKzX3m70fbRXhkocsGQ==", "dev": true, "license": "MIT", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0" + "@typespec/compiler": "~0.59.0" } }, "node_modules/@typespec/openapi": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.58.0.tgz", - "integrity": "sha512-gu6nXfmpfZrfq8Etpgl1dpMfsXii7EzQyhZgsPhIy7ZwV5bDmFk1/oyhTqIpWrnr4pD3r151T2BQjzJefjf15A==", + "version": "0.59.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.59.0.tgz", + "integrity": "sha512-do1Dm5w0MuK3994gYTBg6qMfgeIxmmsDqnz3zimYKMPpbnUBi4F6/o4iCfn0Fn9kaNl+H6UlOzZpsZW9xHui1Q==", "dev": true, "license": "MIT", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0" + "@typespec/compiler": "~0.59.0", + "@typespec/http": "~0.59.0" } }, "node_modules/@typespec/openapi3": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi3/-/openapi3-0.58.0.tgz", - "integrity": "sha512-G9t9CWT9cN6ip39dLZaE6JdEDxGsFyOUxA2s6a087rweoTH85XzsFiQL7uiUD8vHhXyEo6tF6sy3LMZVN0BsoQ==", + "version": "0.59.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi3/-/openapi3-0.59.0.tgz", + "integrity": "sha512-xwdWPPRtjsLxXjsebNppaHrFPF6rJiWkAEHCsK0elwvaPSruZvYfPhXpx1HnNkC2glb0NHgmxvXg7EmMwIYYcA==", "dev": true, "license": "MIT", "dependencies": { @@ -3542,10 +3542,10 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/versioning": "~0.58.0" + "@typespec/compiler": "~0.59.0", + "@typespec/http": "~0.59.0", + "@typespec/openapi": "~0.59.0", + "@typespec/versioning": "~0.59.0" } }, "node_modules/@typespec/openapi3/node_modules/yaml": { @@ -3572,30 +3572,30 @@ } }, "node_modules/@typespec/rest": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.58.0.tgz", - "integrity": "sha512-QBxkED0/KQKG22pwzis0n7BY+uLMSZZPSoVe/ESBFika9n5/yyeQ0l58xbFFwwfxAxe4xwuZ5PNwTdEXZbzr5g==", + "version": "0.59.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.59.0.tgz", + "integrity": "sha512-wGrmjRDUMgMn9fqusRhu36hC2GOvirz5O01VSrmAEOH6k1L2GX0Mq70gOdZa4kkkWyHYDKb7GdjfaLe8v+OH6w==", "dev": true, "license": "MIT", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0" + "@typespec/compiler": "~0.59.0", + "@typespec/http": "~0.59.0" } }, "node_modules/@typespec/versioning": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.58.0.tgz", - "integrity": "sha512-brnQQ3wKWh4AbgqmnVLj+8zyOaDk9VPWg4QBecdQxzz7PrSrlAzIzRfeIyr67+hwi/0SvkTAB6GNH7YYTypKGA==", + "version": "0.59.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.59.0.tgz", + "integrity": "sha512-aihO/ux0lLmsuYAdGVkiBflSudcZokYG42SELk1FtMFo609G3Pd7ep7hau6unBnMIceQZejB0ow5UGRupK4X5A==", "dev": true, "license": "MIT", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0" + "@typespec/compiler": "~0.59.0" } }, "node_modules/@ungap/structured-clone": { @@ -3758,16 +3758,16 @@ } }, "node_modules/ajv": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.16.0.tgz", - "integrity": "sha512-F0twR8U1ZU67JIEtekUcLkXkoO5mMMmgGD8sK/xUFzJ805jxHQl92hImFAqqXMyMYjSPOyUPAwHYhB72g5sTXw==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", "dev": true, "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.4.1" + "require-from-string": "^2.0.2" }, "funding": { "type": "github", @@ -5422,6 +5422,13 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-uri": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz", + "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==", + "dev": true, + "license": "MIT" + }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", diff --git a/package.json b/package.json index 3597413d38a2..17d6feb0f186 100644 --- a/package.json +++ b/package.json @@ -2,21 +2,21 @@ "name": "azure-rest-api-specs", "devDependencies": { "@azure-tools/typespec-apiview": "0.4.9", - "@azure-tools/typespec-autorest": "0.44.1", - "@azure-tools/typespec-azure-core": "0.44.0", - "@azure-tools/typespec-azure-portal-core": "0.44.0", - "@azure-tools/typespec-azure-resource-manager": "0.44.0", - "@azure-tools/typespec-azure-rulesets": "0.44.0", + "@azure-tools/typespec-autorest": "0.45.0", + "@azure-tools/typespec-azure-core": "0.45.0", + "@azure-tools/typespec-azure-portal-core": "0.45.0", + "@azure-tools/typespec-azure-resource-manager": "0.45.0", + "@azure-tools/typespec-azure-rulesets": "0.45.0", "@azure-tools/typespec-client-generator-cli": "0.9.4", - "@azure-tools/typespec-client-generator-core": "0.44.2", + "@azure-tools/typespec-client-generator-core": "0.45.0", "@azure-tools/typespec-liftr-base": "0.4.0", "@azure/avocado": "^0.8.4", - "@typespec/compiler": "0.58.1", - "@typespec/http": "0.58.0", - "@typespec/openapi": "0.58.0", - "@typespec/openapi3": "0.58.0", - "@typespec/rest": "0.58.0", - "@typespec/versioning": "0.58.0", + "@typespec/compiler": "0.59.0", + "@typespec/http": "0.59.0", + "@typespec/openapi": "0.59.0", + "@typespec/openapi3": "0.59.0", + "@typespec/rest": "0.59.0", + "@typespec/versioning": "0.59.0", "azure-rest-api-specs-eng-tools": "file:eng/tools", "oav": "^3.3.7", "prettier": "~3.2.5", diff --git a/specification/ai/DocumentIntelligence/routes.tsp b/specification/ai/DocumentIntelligence/routes.tsp index 75d110acd83f..1b5439c273f3 100644 --- a/specification/ai/DocumentIntelligence/routes.tsp +++ b/specification/ai/DocumentIntelligence/routes.tsp @@ -63,15 +63,11 @@ model DocumentModelAnalyzeRequestParams { stringIndexType?: StringIndexType = StringIndexType.textElements; @doc("List of optional analysis features.") - @query({ - format: "csv", - }) + @query features?: DocumentAnalysisFeature[]; @doc("List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\"") - @query({ - format: "csv", - }) + @query queryFields?: string[]; @doc("Format of the analyze result top-level content.") @@ -80,9 +76,7 @@ model DocumentModelAnalyzeRequestParams { @added(Versions.v2024_07_31_preview) @doc("Additional outputs to generate during analysis.") - @query({ - format: "csv", - }) + @query output?: AnalyzeOutputOption[]; } diff --git a/specification/ai/Face/models.common.tsp b/specification/ai/Face/models.common.tsp index e99fe295e601..1dfb571eb40b 100644 --- a/specification/ai/Face/models.common.tsp +++ b/specification/ai/Face/models.common.tsp @@ -120,9 +120,7 @@ model BaseFace { alias AddFaceOptions = { @doc("A face rectangle to specify the target face to be added to a person, in the format of 'targetFace=left,top,width,height'.") - @query({ - format: "csv", - }) + @query @maxItems(4) @minItems(4) targetFace?: int32[]; @@ -300,6 +298,7 @@ alias BodyParameter< TName extends valueof string = "body", TDoc extends valueof string = "Body parameter." > = { + #suppress "@azure-tools/typespec-azure-core/friendly-name" "Legacy" @doc(TDoc) @friendlyName(TName) @bodyRoot diff --git a/specification/ai/Face/models.detect.tsp b/specification/ai/Face/models.detect.tsp index 530ab48169a5..3bfc5556ea02 100644 --- a/specification/ai/Face/models.detect.tsp +++ b/specification/ai/Face/models.detect.tsp @@ -23,9 +23,7 @@ alias FaceDetectionOptions = { returnFaceId?: boolean = true; @doc("Analyze and return the one or more specified face attributes in the comma-separated string like 'returnFaceAttributes=headPose,glasses'. Face attribute analysis has additional computational and time cost.") - @query({ - format: "csv", - }) + @query returnFaceAttributes?: FaceAttributeType[]; @doc("Return face landmarks of the detected faces or not. The default value is false.") diff --git a/specification/ai/HealthInsights/HealthInsights.Common/model.common.shared.tsp b/specification/ai/HealthInsights/HealthInsights.Common/model.common.shared.tsp index e7829bde8c95..319b626d457c 100644 --- a/specification/ai/HealthInsights/HealthInsights.Common/model.common.shared.tsp +++ b/specification/ai/HealthInsights/HealthInsights.Common/model.common.shared.tsp @@ -235,6 +235,7 @@ alias BodyParameter< TName extends valueof string = "body", TDoc extends valueof string = "Body parameter." > = { + #suppress "@azure-tools/typespec-azure-core/friendly-name" "Legacy" @doc(TDoc) @friendlyName(TName) @bodyRoot diff --git a/specification/ai/ImageAnalysis/routes.tsp b/specification/ai/ImageAnalysis/routes.tsp index 5500500c4c34..99708c8f0b08 100644 --- a/specification/ai/ImageAnalysis/routes.tsp +++ b/specification/ai/ImageAnalysis/routes.tsp @@ -15,10 +15,7 @@ using Azure.Core; namespace ImageAnalysis; alias SharedAnalyzeQuery = { - @query({ - name: "features", - format: "csv", - }) + @query("features") @doc(""" A list of visual features to analyze. Seven visual features are supported: Caption, DenseCaptions, Read (OCR), Tags, Objects, SmartCrops, and People. @@ -44,10 +41,7 @@ alias SharedAnalyzeQuery = { """) genderNeutralCaption?: boolean = false; - @query({ - name: "smartcrops-aspect-ratios", - format: "csv", - }) + @query("smartcrops-aspect-ratios") @doc(""" A list of aspect ratios to use for smart cropping. Aspect ratios are calculated by dividing the target crop width in pixels by the height in pixels. diff --git a/specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-02-15-preview/assistants_generated.yaml b/specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-02-15-preview/assistants_generated.yaml index a60a83e089b4..c5d2a7c5a5f3 100644 --- a/specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-02-15-preview/assistants_generated.yaml +++ b/specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-02-15-preview/assistants_generated.yaml @@ -18,12 +18,12 @@ paths: schema: $ref: '#/components/schemas/Assistant' requestBody: - description: The request details to use when creating a new assistant. required: true content: application/json: schema: $ref: '#/components/schemas/AssistantCreationOptions' + description: The request details to use when creating a new assistant. get: operationId: listAssistants description: Gets a list of assistants that were previously created. @@ -125,12 +125,12 @@ paths: schema: $ref: '#/components/schemas/Assistant' requestBody: - description: The request details to use when modifying an existing assistant. required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAssistantOptions' + description: The request details to use when modifying an existing assistant. delete: operationId: deleteAssistant description: Deletes an assistant. @@ -264,12 +264,12 @@ paths: schema: $ref: '#/components/schemas/AssistantThread' requestBody: - description: The details used to create a new assistant thread. required: true content: application/json: schema: $ref: '#/components/schemas/AssistantThreadCreationOptions' + description: The details used to create a new assistant thread. /threads/runs: post: operationId: createThreadAndRun @@ -283,12 +283,12 @@ paths: schema: $ref: '#/components/schemas/ThreadRun' requestBody: - description: The details used when creating and immediately running a new assistant thread. required: true content: application/json: schema: $ref: '#/components/schemas/CreateAndRunThreadOptions' + description: The details used when creating and immediately running a new assistant thread. /threads/{threadId}: get: operationId: getThread @@ -325,12 +325,12 @@ paths: schema: $ref: '#/components/schemas/AssistantThread' requestBody: - description: The details used to update an existing assistant thread. required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAssistantThreadOptions' + description: The details used to update an existing assistant thread. delete: operationId: deleteThread description: Deletes an existing thread. @@ -367,12 +367,12 @@ paths: schema: $ref: '#/components/schemas/ThreadMessage' requestBody: - description: A single message within an assistant thread, as provided during that thread's creation for its initial state. required: true content: application/json: schema: $ref: '#/components/schemas/ThreadMessageOptions' + description: A single message within an assistant thread, as provided during that thread's creation for its initial state. get: operationId: listMessages description: Gets a list of messages that exist on a thread. @@ -523,12 +523,12 @@ paths: schema: $ref: '#/components/schemas/ThreadRun' requestBody: - description: The details used when creating a new run of an assistant thread. required: true content: application/json: schema: $ref: '#/components/schemas/CreateRunOptions' + description: The details used when creating a new run of an assistant thread. get: operationId: listRuns description: Gets a list of runs for a specified thread. diff --git a/specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-05-01-preview/assistants_generated.yaml b/specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-05-01-preview/assistants_generated.yaml index f763ef81895c..91699416cb09 100644 --- a/specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-05-01-preview/assistants_generated.yaml +++ b/specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-05-01-preview/assistants_generated.yaml @@ -18,12 +18,12 @@ paths: schema: $ref: '#/components/schemas/Assistant' requestBody: - description: The request details to use when creating a new assistant. required: true content: application/json: schema: $ref: '#/components/schemas/AssistantCreationOptions' + description: The request details to use when creating a new assistant. get: operationId: listAssistants description: Gets a list of assistants that were previously created. @@ -125,12 +125,12 @@ paths: schema: $ref: '#/components/schemas/Assistant' requestBody: - description: The request details to use when modifying an existing assistant. required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAssistantOptions' + description: The request details to use when modifying an existing assistant. delete: operationId: deleteAssistant description: Deletes an assistant. @@ -264,12 +264,12 @@ paths: schema: $ref: '#/components/schemas/AssistantThread' requestBody: - description: The details used to create a new assistant thread. required: true content: application/json: schema: $ref: '#/components/schemas/AssistantThreadCreationOptions' + description: The details used to create a new assistant thread. /threads/runs: post: operationId: createThreadAndRun @@ -283,12 +283,12 @@ paths: schema: $ref: '#/components/schemas/ThreadRun' requestBody: - description: The details used when creating and immediately running a new assistant thread. required: true content: application/json: schema: $ref: '#/components/schemas/CreateAndRunThreadOptions' + description: The details used when creating and immediately running a new assistant thread. /threads/{threadId}: get: operationId: getThread @@ -325,12 +325,12 @@ paths: schema: $ref: '#/components/schemas/AssistantThread' requestBody: - description: The details used to update an existing assistant thread. required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAssistantThreadOptions' + description: The details used to update an existing assistant thread. delete: operationId: deleteThread description: Deletes an existing thread. @@ -367,12 +367,12 @@ paths: schema: $ref: '#/components/schemas/ThreadMessage' requestBody: - description: A single message within an assistant thread, as provided during that thread's creation for its initial state. required: true content: application/json: schema: $ref: '#/components/schemas/ThreadMessageOptions' + description: A single message within an assistant thread, as provided during that thread's creation for its initial state. get: operationId: listMessages description: Gets a list of messages that exist on a thread. @@ -529,12 +529,12 @@ paths: schema: $ref: '#/components/schemas/ThreadRun' requestBody: - description: The details used when creating a new run of an assistant thread. required: true content: application/json: schema: $ref: '#/components/schemas/CreateRunOptions' + description: The details used when creating a new run of an assistant thread. get: operationId: listRuns description: Gets a list of runs for a specified thread. @@ -918,12 +918,12 @@ paths: schema: $ref: '#/components/schemas/VectorStore' requestBody: - description: Request object for creating a vector store. required: true content: application/json: schema: $ref: '#/components/schemas/VectorStoreOptions' + description: Request object for creating a vector store. /vector_stores/{vectorStoreId}: get: operationId: getVectorStore @@ -960,12 +960,12 @@ paths: schema: $ref: '#/components/schemas/VectorStore' requestBody: - description: Request object for updating a vector store. required: true content: application/json: schema: $ref: '#/components/schemas/VectorStoreUpdateOptions' + description: Request object for updating a vector store. delete: operationId: deleteVectorStore description: Deletes the vector store object matching the specified ID. diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/EvidenceResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/EvidenceResource.tsp index 059fafb96781..e01aee122698 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/EvidenceResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/EvidenceResource.tsp @@ -16,6 +16,7 @@ namespace Microsoft.AppComplianceAutomation; /** * A class represent an AppComplianceAutomation evidence resource. */ +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy DO NOT EVER COPY THIS" #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" @parentResource(ReportResource) diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp index ac782c51b4c6..4f6cc4ec9464 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp @@ -18,6 +18,7 @@ namespace Microsoft.AppComplianceAutomation; */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy DO NOT EVER COPY THIS" @tenantResource @includeInapplicableMetadataInPayload(false) @Azure.ResourceManager.Private.armResourceInternal(ReportProperties) diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ScopingConfigurationResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ScopingConfigurationResource.tsp index 518cd41308a5..a64a09ed8103 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ScopingConfigurationResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ScopingConfigurationResource.tsp @@ -22,6 +22,7 @@ namespace Microsoft.AppComplianceAutomation; */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy DO NOT EVER COPY THIS" @parentResource(ReportResource) @includeInapplicableMetadataInPayload(false) @Azure.ResourceManager.Private.armResourceInternal( diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/SnapshotResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/SnapshotResource.tsp index 9fafd95080e9..fbe07341ba02 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/SnapshotResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/SnapshotResource.tsp @@ -16,6 +16,7 @@ namespace Microsoft.AppComplianceAutomation; */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy DO NOT EVER COPY THIS" @parentResource(ReportResource) @includeInapplicableMetadataInPayload(false) @Azure.ResourceManager.Private.armResourceInternal(SnapshotProperties) diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp index 40e57c6edeaa..b5fb2eb16187 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp @@ -21,6 +21,7 @@ namespace Microsoft.AppComplianceAutomation; * A class represent an AppComplianceAutomation webhook resource. */ #suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy DO NOT EVER COPY THIS" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" @parentResource(ReportResource) @includeInapplicableMetadataInPayload(false) diff --git a/specification/appconfiguration/AppConfiguration/routes.tsp b/specification/appconfiguration/AppConfiguration/routes.tsp index 6c6e3239364c..0d2d7590c3ad 100644 --- a/specification/appconfiguration/AppConfiguration/routes.tsp +++ b/specification/appconfiguration/AppConfiguration/routes.tsp @@ -150,10 +150,7 @@ op getKeyValues is Foundations.ResourceList< acceptDatetime?: string; @doc("Used to select what fields are present in the returned resource(s).") - @query({ - name: "$Select", - format: "csv", - }) + @query("$Select") select?: KeyValueFields[]; @doc(""" @@ -177,15 +174,12 @@ op getKeyValues is Foundations.ResourceList< @header("If-None-Match") ifNoneMatch?: string; - #suppress "@azure-tools/typespec-azure-core/prefer-csv-collection-format" "Pre-existing API contract" + #suppress "@azure-tools/typespec-azure-core/no-query-explode" "Pre-existing API contract" @doc(""" A filter used to query by tags. Syntax reference: https://aka.ms/azconfig/docs/keyvaluefiltering """) - @query({ - name: "tags", - format: "multi", - }) + @query(#{ name: "tags", explode: true }) tags?: string[]; }, KeyValueListResult & @@ -233,10 +227,7 @@ op checkKeyValues is appConfigOperation< acceptDatetime?: string; @doc("Used to select what fields are present in the returned resource(s).") - @query({ - name: "$Select", - format: "csv", - }) + @query("$Select") select?: KeyValueFields[]; @doc("A filter used get key-values for a snapshot. Not valid when used with 'key' and 'label' filters.") @@ -257,15 +248,12 @@ op checkKeyValues is appConfigOperation< @header("If-None-Match") ifNoneMatch?: string; - #suppress "@azure-tools/typespec-azure-core/prefer-csv-collection-format" "Pre-existing API contract" + #suppress "@azure-tools/typespec-azure-core/no-query-explode" "Pre-existing API contract" @doc(""" A filter used to query by tags. Syntax reference: https://aka.ms/azconfig/docs/keyvaluefiltering """) - @query({ - name: "tags", - format: "multi", - }) + @query(#{ name: "tags", explode: true }) tags?: string[]; }, OkResponse & AppConfigResponseHeaders @@ -281,10 +269,7 @@ op getKeyValue is standardOps.ResourceRead< label?: string; @doc("Used to select what fields are present in the returned resource(s).") - @query({ - name: "$Select", - format: "csv", - }) + @query("$Select") select?: KeyValueFields[]; }> & RequestHeadersTrait<{ @@ -439,10 +424,7 @@ op checkKeyValue is appConfigOperation< ifNoneMatch?: string; @doc("Used to select what fields are present in the returned resource(s).") - @query({ - name: "$Select", - format: "csv", - }) + @query("$Select") select?: KeyValueFields[]; }, OkResponse & AppConfigResponseHeaders @@ -466,17 +448,11 @@ op getSnapshots is Foundations.ResourceList< after?: string; @doc("Used to select what fields are present in the returned resource(s).") - @query({ - name: "$Select", - format: "csv", - }) + @query("$Select") select?: SnapshotFields[]; @doc("Used to filter returned snapshots by their status property.") - @query({ - name: "status", - format: "csv", - }) + @query("status") status?: SnapshotStatus[]; ...syncTokenHeader; @@ -516,10 +492,7 @@ op getSnapshot is standardOps.ResourceRead< Snapshot, QueryParametersTrait<{ @doc("Used to select what fields are present in the returned resource(s).") - @query({ - name: "$Select", - format: "csv", - }) + @query("$Select") select?: SnapshotFields[]; }> & RequestHeadersTrait<{ @@ -696,10 +669,7 @@ op getLabels is appConfigOperation< acceptDatetime?: string; @doc("Used to select what fields are present in the returned resource(s).") - @query({ - name: "$Select", - format: "csv", - }) + @query("$Select") select?: LabelFields[]; }, LabelListResult & { @@ -736,10 +706,7 @@ op checkLabels is appConfigOperation< acceptDatetime?: string; @doc("Used to select what fields are present in the returned resource(s).") - @query({ - name: "$Select", - format: "csv", - }) + @query("$Select") select?: LabelFields[]; }, OkResponse & { @@ -857,21 +824,15 @@ op getRevisions is appConfigOperation< acceptDatetime?: string; @doc("Used to select what fields are present in the returned resource(s).") - @query({ - name: "$Select", - format: "csv", - }) + @query("$Select") select?: KeyValueFields[]; - #suppress "@azure-tools/typespec-azure-core/prefer-csv-collection-format" "Pre-existing API contract" + #suppress "@azure-tools/typespec-azure-core/no-query-explode" "Pre-existing API contract" @doc(""" A filter used to query by tags. Syntax reference: https://aka.ms/azconfig/docs/restapirevisions """) - @query({ - name: "tags", - format: "multi", - }) + @query(#{ name: "tags", explode: true }) tags?: string[]; }, KeyValueListResult & @@ -917,21 +878,15 @@ op checkRevisions is appConfigOperation< acceptDatetime?: string; @doc("Used to select what fields are present in the returned resource(s).") - @query({ - name: "$Select", - format: "csv", - }) + @query("$Select") select?: KeyValueFields[]; - #suppress "@azure-tools/typespec-azure-core/prefer-csv-collection-format" "Pre-existing API contract" + #suppress "@azure-tools/typespec-azure-core/no-query-explode" "Pre-existing API contract" @doc(""" A filter used to query by tags. Syntax reference: https://aka.ms/azconfig/docs/restapirevisions """) - @query({ - name: "tags", - format: "multi", - }) + @query(#{ name: "tags", explode: true }) tags?: string[]; }, OkResponse & AppConfigResponseHeaders diff --git a/specification/batch/Azure.Batch/common.tsp b/specification/batch/Azure.Batch/common.tsp index 49afc307a0e7..1e8580351f2b 100644 --- a/specification/batch/Azure.Batch/common.tsp +++ b/specification/batch/Azure.Batch/common.tsp @@ -102,7 +102,6 @@ op ReplaceOperation is RpcOperation< #suppress "@azure-tools/typespec-azure-core/no-error-status-codes" "Azure REST API guidelines recommend using 'default' error response for all error cases. Avoid defining custom 4xx or 5xx error cases." #suppress "@azure-tools/typespec-azure-core/no-response-body" "Legacy behavior" @doc("New rpc operation allowing multiple responses") -@Foundations.Private.needsRoute @head op ResourceInfoOperationWithAdditionalResponse< TParams extends TypeSpec.Reflection.Model, diff --git a/specification/batch/Azure.Batch/routes.tsp b/specification/batch/Azure.Batch/routes.tsp index 476d12647cce..ca471f2871c9 100644 --- a/specification/batch/Azure.Batch/routes.tsp +++ b/specification/batch/Azure.Batch/routes.tsp @@ -134,16 +134,12 @@ interface Pools { $filter?: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; @doc("An OData $expand clause.") - @query({ - format: "csv", - }) + @query @clientName("expand") $expand?: string[]; }, @@ -184,16 +180,12 @@ interface Pools { getPool is ReadOperation< BatchPoolHeaders & { @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; @doc("An OData $expand clause.") - @query({ - format: "csv", - }) + @query @clientName("expand") $expand?: string[]; }, @@ -425,16 +417,12 @@ interface Jobs { jobId: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; @doc("An OData $expand clause.") - @query({ - format: "csv", - }) + @query @clientName("expand") $expand?: string[]; }, @@ -593,16 +581,12 @@ interface Jobs { $filter?: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; @doc("An OData $expand clause.") - @query({ - format: "csv", - }) + @query @clientName("expand") $expand?: string[]; }, @@ -628,16 +612,12 @@ interface Jobs { $filter?: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; @doc("An OData $expand clause.") - @query({ - format: "csv", - }) + @query @clientName("expand") $expand?: string[]; }, @@ -673,9 +653,7 @@ interface Jobs { $filter?: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; }, @@ -751,16 +729,12 @@ interface JobSchedules { jobScheduleId: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; @doc("An OData $expand clause.") - @query({ - format: "csv", - }) + @query @clientName("expand") $expand?: string[]; }, @@ -880,16 +854,12 @@ interface JobSchedules { $filter?: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; @doc("An OData $expand clause.") - @query({ - format: "csv", - }) + @query @clientName("expand") $expand?: string[]; }, @@ -946,16 +916,12 @@ interface Tasks { $filter?: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; @doc("An OData $expand clause.") - @query({ - format: "csv", - }) + @query @clientName("expand") $expand?: string[]; }, @@ -1040,16 +1006,12 @@ interface Tasks { taskId: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; @doc("An OData $expand clause.") - @query({ - format: "csv", - }) + @query @clientName("expand") $expand?: string[]; }, @@ -1095,9 +1057,7 @@ interface Tasks { taskId: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; }, @@ -1345,9 +1305,7 @@ interface Nodes { nodeId: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; }, @@ -1491,9 +1449,7 @@ interface Nodes { $filter?: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; }, @@ -1521,9 +1477,7 @@ interface Nodes { extensionName: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; }, @@ -1545,9 +1499,7 @@ interface Nodes { nodeId: string; @doc("An OData $select clause.") - @query({ - format: "csv", - }) + @query @clientName("select") $select?: string[]; }, diff --git a/specification/cognitiveservices/OpenAI.Inference/models/images/common.tsp b/specification/cognitiveservices/OpenAI.Inference/models/images/common.tsp index 231287f36856..3d97da802d71 100644 --- a/specification/cognitiveservices/OpenAI.Inference/models/images/common.tsp +++ b/specification/cognitiveservices/OpenAI.Inference/models/images/common.tsp @@ -34,7 +34,6 @@ union AzureOpenAIOperationState { } #suppress "@azure-tools/typespec-azure-core/long-running-polling-operation-required" "template" -@Foundations.Private.needsRoute @post @doc("Long running operation template to match Azure OpenAI .") @removed(ServiceApiVersions.v2024_02_15_Preview) diff --git a/specification/devcenter/DevCenter/shared/templates.tsp b/specification/devcenter/DevCenter/shared/templates.tsp index 528e612030d2..9b376f19ed1e 100644 --- a/specification/devcenter/DevCenter/shared/templates.tsp +++ b/specification/devcenter/DevCenter/shared/templates.tsp @@ -31,7 +31,6 @@ interface DevCenterResourceOperations< #suppress "@azure-tools/typespec-azure-core/long-running-polling-operation-required" "Custom template" #suppress "@azure-tools/typespec-providerhub/no-inline-model" "This operation signature is not used in Azure Resource Manager operations (yet)" #suppress "@azure-tools/typespec-azure-resource-manager/no-response-body" "This operation must return a status monitor in its response." - @Foundations.Private.ensureVerb("LongRunningResourceAction", "POST") @action @actionSeparator(":") LongRunningResourceAction< diff --git a/specification/developersigning/DeveloperSigning/main.tsp b/specification/developersigning/DeveloperSigning/main.tsp index 167bd84ccdc7..a582b5cfcb50 100644 --- a/specification/developersigning/DeveloperSigning/main.tsp +++ b/specification/developersigning/DeveloperSigning/main.tsp @@ -193,6 +193,7 @@ alias BodyParameter< TName extends valueof string = "body", TDoc extends valueof string = "Body parameter." > = { + #suppress "@azure-tools/typespec-azure-core/friendly-name" "Legacy" @doc(TDoc) @friendlyName(TName) @bodyRoot diff --git a/specification/deviceregistry/DeviceRegistry.Management/main.tsp b/specification/deviceregistry/DeviceRegistry.Management/main.tsp index 5fb0dd46c348..62060b2d7ccc 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/main.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/main.tsp @@ -35,7 +35,6 @@ interface Operations extends Azure.ResourceManager.Operations {} interface OperationStatus { @doc("Returns the current status of an async operation.") @autoRoute - @armUpdateProviderNamespace get( ...ApiVersionParameter, ...SubscriptionIdParameter, diff --git a/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase.Storage/main.tsp b/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase.Storage/main.tsp index f651932a9915..6823303ff4b3 100644 --- a/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase.Storage/main.tsp +++ b/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase.Storage/main.tsp @@ -120,7 +120,6 @@ model FileSystemResourceUpdateProperties { delegatedSubnetId?: string; } -@Azure.ResourceManager.Private.armResourceInternal(FileSystemResourceProperties) model FileSystemResource is Azure.ResourceManager.TrackedResource { /** diff --git a/specification/loadtestservice/LoadTestService/models.tsp b/specification/loadtestservice/LoadTestService/models.tsp index 77317b553889..49b3c0727f44 100644 --- a/specification/loadtestservice/LoadTestService/models.tsp +++ b/specification/loadtestservice/LoadTestService/models.tsp @@ -993,7 +993,6 @@ model DimensionFilter { } @doc("The response to a metrics query.") -@friendlyName("Metrics") // using friendlyName to change the name of the model due to issue in using projectedName '@encodedName("application/json", "Metrics")' https://github.com/microsoft/typespec/issues/2276 model Metrics is Azure.Core.Page; diff --git a/specification/oracle/models/oraclesubscription/oracleSubscription.tsp b/specification/oracle/models/oraclesubscription/oracleSubscription.tsp index 1d21cb098e5a..3677f00cc155 100644 --- a/specification/oracle/models/oraclesubscription/oracleSubscription.tsp +++ b/specification/oracle/models/oraclesubscription/oracleSubscription.tsp @@ -11,6 +11,7 @@ union OracleSubscriptionProvisioningState { string, } +#suppress "@azure-tools/typespec-azure-core/friendly-name" "Legacy" @singleton @subscriptionResource @doc("OracleSubscription resource definition") diff --git a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/common.tsp b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/common.tsp index 3393e203af29..ffec5717dd45 100644 --- a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/common.tsp +++ b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/common.tsp @@ -110,6 +110,7 @@ alias BodyParameter< TName extends valueof string = "body", TDoc extends valueof string = "Body parameter." > = { + #suppress "@azure-tools/typespec-azure-core/friendly-name" "Legacy" @doc(TDoc) @friendlyName(TName) @bodyRoot diff --git a/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp b/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp index 854809ea17d1..da167237558c 100644 --- a/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp +++ b/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp @@ -1989,6 +1989,7 @@ alias BodyParameter< TName extends valueof string = "body", TDoc extends valueof string = "Body parameter." > = { + #suppress "@azure-tools/typespec-azure-core/friendly-name" "Legacy" @doc(TDoc) @friendlyName(TName) @bodyRoot diff --git a/specification/purview/Azure.Analytics.Purview.DataMap/routes.tsp b/specification/purview/Azure.Analytics.Purview.DataMap/routes.tsp index 3b6a8429d588..53a0004ec6e4 100644 --- a/specification/purview/Azure.Analytics.Purview.DataMap/routes.tsp +++ b/specification/purview/Azure.Analytics.Purview.DataMap/routes.tsp @@ -122,16 +122,14 @@ interface Entity { >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "This is Atlas API" - #suppress "@azure-tools/typespec-azure-core/prefer-csv-collection-format" "This is an existing Atlas API" @doc("List entities in bulk identified by its GUIDs.") @route("/atlas/v2/entity/bulk") @get listByGuids is AtlasOperation< { + #suppress "@azure-tools/typespec-azure-core/no-query-explode" "This is an existing Atlas API" @doc("An array of GUIDs of entities to list.") - @query({ - format: "multi", - }) + @query(#{ explode: true }) guid: string[]; @doc("Whether to return minimal information for referred entities.") @@ -179,7 +177,7 @@ interface Entity { AtlasApiVersionParameterTraits >; - #suppress "@azure-tools/typespec-azure-core/prefer-csv-collection-format" "This is an existing Atlas API" + #suppress "@azure-tools/typespec-azure-core/no-query-explode" "This is an existing Atlas API" #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "This is Atlas API" #suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "This is Atlas API, which does not require api version" @doc(""" @@ -191,9 +189,7 @@ interface Entity { bulkDelete is AtlasOperation< { @doc("An array of GUIDs of entities to delete.") - @query({ - format: "multi", - }) + @query(#{ explode: true }) guid: string[]; }, EntityMutationResult, diff --git a/specification/quantum/Quantum.Workspace/common/base-operations.tsp b/specification/quantum/Quantum.Workspace/common/base-operations.tsp index b1f9552cecdd..defd0fff39ef 100644 --- a/specification/quantum/Quantum.Workspace/common/base-operations.tsp +++ b/specification/quantum/Quantum.Workspace/common/base-operations.tsp @@ -23,7 +23,6 @@ namespace Quantum.Workspace.BaseOperations { alias ResourceOkOrNoContentResponse = Azure.Core.Foundations.ResourceOkResponse | TypeSpec.Http.NoContentResponse; /** Generic POST operation. */ - @Foundations.Private.ensureVerb("PostOperation", "POST") @post op PostOperation< TRequest extends TypeSpec.Reflection.Model, @@ -47,7 +46,6 @@ namespace Quantum.Workspace.BaseOperations { """ @updatesResource(Resource) @patch - @Azure.Core.Foundations.Private.ensureVerb("PatchOperation", "PATCH") op PatchOperation is Azure.Core.Foundations.ResourceOperation< Resource, { diff --git a/specification/riskiq/Easm/models.tsp b/specification/riskiq/Easm/models.tsp index 8550fb724269..b2bb3aae288f 100644 --- a/specification/riskiq/Easm/models.tsp +++ b/specification/riskiq/Easm/models.tsp @@ -2048,9 +2048,7 @@ model ResponseTypeParameter { @doc("The prameter of responseIncludes") @Versioning.added(Versions.v2024_03_01_preview) model ResponseIncludesParameter { - @query({ - format: "csv", - }) + @query @doc("The properties to include in the response.") responseIncludes?: string[]; } @@ -2161,6 +2159,7 @@ alias BodyParameter< TName extends valueof string = "body", TDoc extends valueof string = "Body parameter." > = { + #suppress "@azure-tools/typespec-azure-core/friendly-name" "Legacy" @doc(TDoc) @friendlyName(TName) @bodyRoot diff --git a/specification/translation/Azure.AI.DocumentTranslation/routes.tsp b/specification/translation/Azure.AI.DocumentTranslation/routes.tsp index 4b556b6496dc..8c8d3c8da894 100644 --- a/specification/translation/Azure.AI.DocumentTranslation/routes.tsp +++ b/specification/translation/Azure.AI.DocumentTranslation/routes.tsp @@ -180,17 +180,11 @@ interface DocumentTranslationOperations { maxpagesize?: int32 = 50; @doc("Ids to use in filtering") - @query({ - name: "ids", - format: "csv", - }) + @query("ids") ids?: uuid[]; @doc("Statuses to use in filtering") - @query({ - name: "statuses", - format: "csv", - }) + @query("statuses") statuses?: string[]; @doc("the start datetime to get items after") @@ -202,10 +196,7 @@ interface DocumentTranslationOperations { createdDateTimeUtcEnd?: utcDateTime; @doc("the sorting query for the collection (ex: 'CreatedDateTimeUtc asc','CreatedDateTimeUtc desc')") - @query({ - name: "orderby", - format: "csv", - }) + @query("orderby") orderby?: string[]; }, TranslationsStatus @@ -385,17 +376,11 @@ interface DocumentTranslationOperations { maxpagesize?: int32 = 50; @doc("Ids to use in filtering") - @query({ - name: "ids", - format: "csv", - }) + @query("ids") ids?: uuid[]; @doc("Statuses to use in filtering") - @query({ - name: "statuses", - format: "csv", - }) + @query("statuses") statuses?: string[]; @doc("the start datetime to get items after") @@ -407,10 +392,7 @@ interface DocumentTranslationOperations { createdDateTimeUtcEnd?: utcDateTime; @doc("the sorting query for the collection (ex: 'CreatedDateTimeUtc asc','CreatedDateTimeUtc desc')") - @query({ - name: "orderby", - format: "csv", - }) + @query("orderby") orderby?: string[]; }, DocumentsStatus diff --git a/specification/translation/Azure.AI.TextTranslation/models-translate.tsp b/specification/translation/Azure.AI.TextTranslation/models-translate.tsp index 669300202e73..f6ae8af63ae2 100644 --- a/specification/translation/Azure.AI.TextTranslation/models-translate.tsp +++ b/specification/translation/Azure.AI.TextTranslation/models-translate.tsp @@ -13,10 +13,8 @@ namespace TextTranslation; model TranslateParameters { ...CommonParameters; - #suppress "@azure-tools/typespec-azure-core/prefer-csv-collection-format" "Existing Spec" - @query({ - format: "multi", - }) + #suppress "@azure-tools/typespec-azure-core/no-query-explode" "Existing Spec" + @query(#{ explode: true }) @doc(""" Specifies the language of the output text. The target language must be one of the supported languages included in the translation scope. For example, use to=de to translate to German. diff --git a/specification/vmware/Microsoft.AVS.Management/models.tsp b/specification/vmware/Microsoft.AVS.Management/models.tsp index 260686539838..1a56845b5b82 100644 --- a/specification/vmware/Microsoft.AVS.Management/models.tsp +++ b/specification/vmware/Microsoft.AVS.Management/models.tsp @@ -595,6 +595,7 @@ model Quota { @doc("A location resource") @subscriptionResource model Location is ProxyResource { + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "Legacy DO NOT EVER COPY THIS" @doc("A location in a subscription") @pattern("^[-\\w\\._]+$") @key("location") diff --git a/specification/voiceservices/VoiceServices.Provisioning/main.tsp b/specification/voiceservices/VoiceServices.Provisioning/main.tsp index 02a41d6528cc..efc60718c9a6 100644 --- a/specification/voiceservices/VoiceServices.Provisioning/main.tsp +++ b/specification/voiceservices/VoiceServices.Provisioning/main.tsp @@ -633,7 +633,6 @@ model BatchNumbersDelete { numbers: NumberIdentifier[]; } -@friendlyName("PagedNumberList") model PagedNumberList is Azure.Core.Page; /* @@ -786,6 +785,7 @@ alias BodyParameter< TName extends valueof string = "body", TDoc extends valueof string = "Body parameter." > = { + #suppress "@azure-tools/typespec-azure-core/friendly-name" "Legacy" @doc(TDoc) @friendlyName(TName) @bodyRoot