diff --git a/package-lock.json b/package-lock.json index 7808fa7661ad..4a63dcba2c98 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,17 +7,17 @@ "name": "azure-rest-api-specs", "devDependencies": { "@azure-tools/typespec-apiview": "0.4.4", - "@azure-tools/typespec-autorest": "0.33.0", - "@azure-tools/typespec-azure-core": "0.33.0", - "@azure-tools/typespec-azure-resource-manager": "0.33.0", - "@azure-tools/typespec-client-generator-core": "0.33.0", - "@azure-tools/typespec-providerhub": "0.33.0", + "@azure-tools/typespec-autorest": "0.34.0", + "@azure-tools/typespec-azure-core": "0.34.0", + "@azure-tools/typespec-azure-resource-manager": "0.34.0", + "@azure-tools/typespec-client-generator-core": "0.34.0", + "@azure-tools/typespec-providerhub": "0.34.0", "@azure/avocado": "^0.8.4", - "@typespec/compiler": "0.47.0", - "@typespec/http": "0.47.0", - "@typespec/openapi": "0.47.0", - "@typespec/rest": "0.47.0", - "@typespec/versioning": "0.47.0", + "@typespec/compiler": "0.48.0", + "@typespec/http": "0.48.0", + "@typespec/openapi": "0.48.0", + "@typespec/rest": "0.48.0", + "@typespec/versioning": "0.48.0", "azure-rest-api-specs-eng-tools": "file:eng/tools", "prettier": "~3.0.3", "typescript": "~5.1.3" @@ -72,95 +72,89 @@ } }, "node_modules/@azure-tools/typespec-autorest": { - "version": "0.33.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.33.0.tgz", - "integrity": "sha512-xA29JJt6Dnb8402xYJrR1dAwzEuhen/gcYeUk4KZrfn/3FsLpfiGQCwTAfcCd6iyLDRx7yQ34ysJmLt5ebcOdw==", + "version": "0.34.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.34.0.tgz", + "integrity": "sha512-Fr5obMJzBgVzeK7pKblUKx1o7+p+KT84C1n+yRqqMP1Rqkq7y09iW3Mj3GO0xgs9DR8yMalBgHhvWWvB9l4yDA==", "dev": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.33.0", - "@typespec/compiler": "~0.47.0", - "@typespec/http": "~0.47.0", - "@typespec/openapi": "~0.47.0", - "@typespec/rest": "~0.47.0", - "@typespec/versioning": "~0.47.0" + "@azure-tools/typespec-azure-core": "~0.34.0", + "@typespec/compiler": "~0.48.0", + "@typespec/http": "~0.48.0", + "@typespec/openapi": "~0.48.0", + "@typespec/rest": "~0.48.0", + "@typespec/versioning": "~0.48.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.33.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.33.0.tgz", - "integrity": "sha512-DHa2WU21cuJ961OBXBjDYgFODsNwR77tAWxq7aRagLn/b1Y1xI+I455o99GU/N1T4k/jXGi382qvSkTF6xmsMQ==", + "version": "0.34.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.34.0.tgz", + "integrity": "sha512-n3WrIx8bAHsknYXivbhl8WO+uzdB6RZMtx27/vnD+Jpo2krxLm0mMJK6pz2m/npTV4qlbY05OIeokhWQrneypw==", "dev": true, - "dependencies": { - "@typespec/lint": "~0.47.0" - }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.47.0", - "@typespec/http": "~0.47.0", - "@typespec/rest": "~0.47.0" + "@typespec/compiler": "~0.48.0", + "@typespec/http": "~0.48.0", + "@typespec/rest": "~0.48.0" } }, "node_modules/@azure-tools/typespec-azure-resource-manager": { - "version": "0.33.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.33.0.tgz", - "integrity": "sha512-8jkOae2Yf5fsYVh7ZgdC+a06Ghlfnk6DvLIQPouwOIftsmnUXScJdDIPodqxjdHuR5AWr053+OiKtVrJDWYgjw==", + "version": "0.34.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.34.0.tgz", + "integrity": "sha512-zWaZD/oB010JGybS6qWkEX3Ot1TBGFvHZ0tbTyUdSTUmL1dwznYqCqWvexjdbRTCgdGUwf/PmVJ24vA0if/ehg==", "dev": true, - "dependencies": { - "@typespec/lint": "~0.47.0" - }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@azure-tools/typespec-autorest": "~0.33.0", - "@azure-tools/typespec-azure-core": "~0.33.0", - "@typespec/compiler": "~0.47.0", - "@typespec/http": "~0.47.0", - "@typespec/openapi": "~0.47.0", - "@typespec/rest": "~0.47.0", - "@typespec/versioning": "~0.47.0" + "@azure-tools/typespec-autorest": "~0.34.0", + "@azure-tools/typespec-azure-core": "~0.34.0", + "@typespec/compiler": "~0.48.0", + "@typespec/http": "~0.48.0", + "@typespec/openapi": "~0.48.0", + "@typespec/rest": "~0.48.0", + "@typespec/versioning": "~0.48.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.33.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.33.0.tgz", - "integrity": "sha512-Cm6hxL7oEUfK5pyPHM0gbtlLVPQSE3qJbSVQDiTqGJaU/660GSLEjp9i+NfZ1nl+cDUBCaCKaFqongin+sbKuw==", + "version": "0.34.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.34.0.tgz", + "integrity": "sha512-FG+Ja6gEnjLjpwh/L7QzQATF6DFSm1XBzBX2AbpmsPoAC93HIj+9IBjEUc4+4l+APCwia1Ukj5mTUKS2CEbuYg==", "dev": true, "dependencies": { - "@typespec/lint": "~0.47.0" + "@typespec/lint": "~0.48.0" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.47.0", - "@typespec/http": "~0.47.0", - "@typespec/rest": "~0.47.0", - "@typespec/versioning": "~0.47.0" + "@typespec/compiler": "~0.48.0", + "@typespec/http": "~0.48.0", + "@typespec/rest": "~0.48.0", + "@typespec/versioning": "~0.48.0" } }, "node_modules/@azure-tools/typespec-providerhub": { - "version": "0.33.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-providerhub/-/typespec-providerhub-0.33.0.tgz", - "integrity": "sha512-18HRdQUwSrzcyDxP95REu4qIOL8SMjUhifZAJjGThwhkqczTxoeqPI3ek3ISFj9C7SsSvvlLAsL09kiy+GKYZA==", + "version": "0.34.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-providerhub/-/typespec-providerhub-0.34.0.tgz", + "integrity": "sha512-Mhm7l5Q3u+a3ozbh3Qn2xvhEwzIi2a1JYg6gOIbAlzGumx6DOo2aSXfp1ls5aYPvZoLVqq16l5DOmQqc1WRBSw==", "dev": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@azure-tools/typespec-autorest": "~0.33.0", - "@azure-tools/typespec-azure-core": "~0.33.0", - "@azure-tools/typespec-azure-resource-manager": "~0.33.0", - "@typespec/compiler": "~0.47.0", - "@typespec/http": "~0.47.0", - "@typespec/openapi": "~0.47.0", - "@typespec/rest": "~0.47.0", - "@typespec/versioning": "~0.47.0" + "@azure-tools/typespec-autorest": "~0.34.0", + "@azure-tools/typespec-azure-core": "~0.34.0", + "@azure-tools/typespec-azure-resource-manager": "~0.34.0", + "@typespec/compiler": "~0.48.0", + "@typespec/http": "~0.48.0", + "@typespec/openapi": "~0.48.0", + "@typespec/rest": "~0.48.0", + "@typespec/versioning": "~0.48.0" } }, "node_modules/@azure-tools/typespec-validation": { @@ -611,16 +605,15 @@ "dev": true }, "node_modules/@typespec/compiler": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.47.0.tgz", - "integrity": "sha512-4Y1WhTs4AScPkEsax14jW1QZMoqZl40OMgGiFB8MGDlTpcZV3zdWp1Wj13Q5rcAFYDc/Zl/wnDRgASRKQcqxoQ==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.48.0.tgz", + "integrity": "sha512-+BEeSLl7unxtRpC1L8sbTu5A94WIVQaYSFf0egkJ0panN0wWzcFbk4SJiSa9wxjDTr9fh2elSrRVk2t1XTk2nQ==", "dev": true, "dependencies": { "@babel/code-frame": "~7.22.5", "ajv": "~8.12.0", "change-case": "~4.1.2", "globby": "~13.1.1", - "js-yaml": "~4.1.0", "mustache": "~4.2.0", "picocolors": "~1.0.0", "prettier": "~3.0.1", @@ -628,6 +621,7 @@ "semver": "^7.3.8", "vscode-languageserver": "~8.1.0", "vscode-languageserver-textdocument": "~1.0.1", + "yaml": "~2.3.1", "yargs": "~17.7.1" }, "bin": { @@ -653,12 +647,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@typespec/compiler/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, "node_modules/@typespec/compiler/node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", @@ -691,18 +679,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/@typespec/compiler/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/@typespec/compiler/node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -757,65 +733,65 @@ } }, "node_modules/@typespec/http": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.47.0.tgz", - "integrity": "sha512-HrVu5mGV+p3KGPtcNFHB5gXm9pU4rYRG3hJWZdLcN8fy+OuwbhmOgjOGN4AB7HLllnISmcFn6LtlqGnr0LpyfA==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.48.0.tgz", + "integrity": "sha512-e+0Y0Ky71flUNZSRzCfoOm8XvXsSYGmQgB9VZFDbLl8mQlXwuTfib4tWrU531TCtZHMnylbXx2wAk5+3uC6b9g==", "dev": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.47.0" + "@typespec/compiler": "~0.48.0" } }, "node_modules/@typespec/lint": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@typespec/lint/-/lint-0.47.0.tgz", - "integrity": "sha512-+CZ8OC8ABHU+HljjWvkVfLDZzyj2kc8VqEOHoXYdomt7PTo2GdVubyOXZMAYFiXWJr/k4YWHD2moPcvu+e2yTQ==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@typespec/lint/-/lint-0.48.0.tgz", + "integrity": "sha512-hu08yLr8ORbdljqU+qf25+EqVQBDonpFiAWU9qaJ/2yTnKfdkXRbGSRuBYC17oMvJesLzyxVRwarpWPdBIMycw==", "dev": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.47.0" + "@typespec/compiler": "~0.48.0" } }, "node_modules/@typespec/openapi": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.47.0.tgz", - "integrity": "sha512-p10NA5MQ1/z/yltTmK9g/RHgRQa+UPJg7ntcix8I9DIwX6u3yJReYwWBrKLeRNExd8ylNHNqjXTwiHJfptmR3w==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.48.0.tgz", + "integrity": "sha512-KptMNQd/+olEetmNGend6jhMjnFa+Lrhw/M+HCP46HcKH/NDVA/RWtX/KcT4KjxJYrmTlRF9sz19/Efg7u02CA==", "dev": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.47.0", - "@typespec/http": "~0.47.0", - "@typespec/rest": "~0.47.0" + "@typespec/compiler": "~0.48.0", + "@typespec/http": "~0.48.0", + "@typespec/rest": "~0.48.0" } }, "node_modules/@typespec/rest": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.47.0.tgz", - "integrity": "sha512-sjxCY2dQ6Wc51W7NYDLgcZdeTI35vFJR0aK+tuYHMTwjhZJK20ezwb/c+RZQ8xyGIyX+vUj9yhTc7lBZGw4n1A==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.48.0.tgz", + "integrity": "sha512-PM41o2a7qsTi6OIiCE53OB5uh+GTas8YObJjV5Z9JHYtHhQKVQaRHE72qoZQp3919vJNStXTdDEbIjzMIVt3Ow==", "dev": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.47.0" + "@typespec/compiler": "~0.48.0" } }, "node_modules/@typespec/versioning": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.47.0.tgz", - "integrity": "sha512-j3NUBm61k40ZI5aljgqfVFvduoR+q7ijLpwt+lzXw/DecOgNWZX7R/GGzwCmUVyfJUZpMA/8zhuxmx4fB36P7g==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.48.0.tgz", + "integrity": "sha512-WF26vmMPwizhSnjX0ox23nbp7hthtB4cN/J5w1tlryXyp/BXySHoYsJEMK7fviSpj4WdreVXdM6wmRIG33zqig==", "dev": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.47.0" + "@typespec/compiler": "~0.48.0" } }, "node_modules/ajv": { @@ -2291,6 +2267,15 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, + "node_modules/yaml": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.2.tgz", + "integrity": "sha512-N/lyzTPaJasoDmfV7YTrYCI0G/3ivm/9wdG0aHuheKowWQwGTsK0Eoiw6utmzAnI6pkJa0DUVygvp3spqqEKXg==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, "node_modules/yargs": { "version": "15.4.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", diff --git a/package.json b/package.json index 4a881b09d9bc..3104eee436c1 100644 --- a/package.json +++ b/package.json @@ -2,16 +2,16 @@ "name": "azure-rest-api-specs", "devDependencies": { "@azure-tools/typespec-apiview": "0.4.4", - "@azure-tools/typespec-autorest": "0.33.0", - "@azure-tools/typespec-azure-core": "0.33.0", - "@azure-tools/typespec-azure-resource-manager": "0.33.0", - "@azure-tools/typespec-client-generator-core": "0.33.0", - "@azure-tools/typespec-providerhub": "0.33.0", - "@typespec/compiler": "0.47.0", - "@typespec/http": "0.47.0", - "@typespec/openapi": "0.47.0", - "@typespec/rest": "0.47.0", - "@typespec/versioning": "0.47.0", + "@azure-tools/typespec-autorest": "0.34.0", + "@azure-tools/typespec-azure-core": "0.34.0", + "@azure-tools/typespec-azure-resource-manager": "0.34.0", + "@azure-tools/typespec-client-generator-core": "0.34.0", + "@azure-tools/typespec-providerhub": "0.34.0", + "@typespec/compiler": "0.48.0", + "@typespec/http": "0.48.0", + "@typespec/openapi": "0.48.0", + "@typespec/rest": "0.48.0", + "@typespec/versioning": "0.48.0", "@azure/avocado": "^0.8.4", "azure-rest-api-specs-eng-tools": "file:eng/tools", "prettier": "~3.0.3", diff --git a/specification/codesigning/CodeSigning/tspconfig.yaml b/specification/codesigning/CodeSigning/tspconfig.yaml index d7f494408eec..f945e56e7d86 100644 --- a/specification/codesigning/CodeSigning/tspconfig.yaml +++ b/specification/codesigning/CodeSigning/tspconfig.yaml @@ -3,6 +3,9 @@ parameters: default: "sdk/codesigning" emit: - "@azure-tools/typespec-autorest" +linter: + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-autorest": azure-resource-provider-folder: "data-plane" diff --git a/specification/codesigning/data-plane/Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json b/specification/codesigning/data-plane/Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json index 37f5606f538c..493dd4b0ae3e 100644 --- a/specification/codesigning/data-plane/Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json +++ b/specification/codesigning/data-plane/Azure.CodeSigning/preview/2023-06-15-preview/azure.codesigning.json @@ -20,8 +20,8 @@ { "name": "region", "in": "path", - "required": true, "description": "The Azure region wherein requests for signing will be sent.", + "required": true, "type": "string" } ] @@ -127,8 +127,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -201,8 +201,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -252,8 +252,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -302,8 +302,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } diff --git a/specification/cognitiveservices/AnomalyDetector/main.tsp b/specification/cognitiveservices/AnomalyDetector/main.tsp index bb7f65c777af..98b8c9f21d4c 100644 --- a/specification/cognitiveservices/AnomalyDetector/main.tsp +++ b/specification/cognitiveservices/AnomalyDetector/main.tsp @@ -54,5 +54,6 @@ model AnomalyDetectorApiKeyAuth #suppress "@azure-tools/typespec-azure-core/documentation-required" "https://github.com/Azure/typespec-azure/issues/3107" enum APIVersion { + @TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_2) v1_1: "v1.1", } diff --git a/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp b/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp index cf46311a6b6c..8a488cea2ffb 100644 --- a/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp +++ b/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp @@ -62,8 +62,7 @@ model MultivariateDetectionResult { #suppress "@azure-tools/typespec-azure-core/key-visibility-required" "Properties in response-only schemas should not be marked readOnly" @doc("Result identifier that's used to fetch the results of an inference call.") @key - @format("uuid") - resultId: string; + resultId: uuid; @doc("Multivariate anomaly detection status.") summary: MultivariateBatchDetectionResultSummary; @@ -327,8 +326,7 @@ model AnomalyDetectionModel { #suppress "@azure-tools/typespec-azure-core/key-visibility-required" "Properties in response-only schemas should not be marked readOnly" @doc("Model identifier.") @key - @format("uuid") - modelId: string; + modelId: uuid; @doc("Date and time (UTC) when the model was created.") createdTime: utcDateTime; diff --git a/specification/cognitiveservices/AnomalyDetector/multivariate/routes.tsp b/specification/cognitiveservices/AnomalyDetector/multivariate/routes.tsp index ec75d7e48398..a04d415149fa 100644 --- a/specification/cognitiveservices/AnomalyDetector/multivariate/routes.tsp +++ b/specification/cognitiveservices/AnomalyDetector/multivariate/routes.tsp @@ -32,10 +32,9 @@ For asynchronous inference, get a multivariate anomaly detection result based on resultId value that the BatchDetectAnomaly API returns. """) op getMultivariateBatchDetectionResult( - @format("uuid") @doc("ID of a batch detection result.") @path - resultId: string, + resultId: uuid, ): MultivariateDetectionResult | ResponseError; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Azure core RpcOperation does not support custom error response" diff --git a/specification/cognitiveservices/AnomalyDetector/tspconfig.yaml b/specification/cognitiveservices/AnomalyDetector/tspconfig.yaml index 235f8c866c5d..f6269035ffb7 100644 --- a/specification/cognitiveservices/AnomalyDetector/tspconfig.yaml +++ b/specification/cognitiveservices/AnomalyDetector/tspconfig.yaml @@ -12,6 +12,9 @@ parameters: emit: [ "@azure-tools/typespec-autorest", ] +linter: + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-autorest": azure-resource-provider-folder: "data-plane" diff --git a/specification/cognitiveservices/ContentSafety/tspconfig.yaml b/specification/cognitiveservices/ContentSafety/tspconfig.yaml index 3f6caa8a702b..fa542d7b36c9 100644 --- a/specification/cognitiveservices/ContentSafety/tspconfig.yaml +++ b/specification/cognitiveservices/ContentSafety/tspconfig.yaml @@ -3,6 +3,9 @@ parameters: default: "sdk/contentsafety" emit: - "@azure-tools/typespec-autorest" +linter: + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-autorest": emitter-output-dir: "{project-root}/../" diff --git a/specification/cognitiveservices/HealthInsights/healthinsights.common/model.common.response.tsp b/specification/cognitiveservices/HealthInsights/healthinsights.common/model.common.response.tsp index bb3d0dcde428..a7d04f15ce02 100644 --- a/specification/cognitiveservices/HealthInsights/healthinsights.common/model.common.response.tsp +++ b/specification/cognitiveservices/HealthInsights/healthinsights.common/model.common.response.tsp @@ -9,8 +9,7 @@ alias Response = { @doc("A processing job identifier.") @visibility("read") @key - @format("uuid") - jobId: string; + jobId: Azure.Core.uuid; @doc("The date and time when the processing job was created.") @visibility("read") diff --git a/specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/tspconfig.yaml b/specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/tspconfig.yaml index 9d0c469a6356..19b66dc629d3 100644 --- a/specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/tspconfig.yaml +++ b/specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/tspconfig.yaml @@ -1,4 +1,7 @@ emit: [] +linter: + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-csharp": namespace : "Azure.Health.Insights.CancerProfiling" diff --git a/specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml b/specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml index 8a389c666e3c..f3a0b6a11722 100644 --- a/specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml +++ b/specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml @@ -1,6 +1,9 @@ emit: [ "@azure-tools/typespec-autorest", ] +linter: + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-autorest": azure-resource-provider-folder: "data-plane" diff --git a/specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/tspconfig.yaml b/specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/tspconfig.yaml index f046baf5964d..8a65d4ddb150 100644 --- a/specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/tspconfig.yaml +++ b/specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/tspconfig.yaml @@ -1,4 +1,7 @@ emit: [] +linter: + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-csharp": namespace : "Azure.Health.Insights.ClinicalMatching" diff --git a/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml b/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml index 3721299dd7c6..4e2b82d3e928 100644 --- a/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml +++ b/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml @@ -5,6 +5,9 @@ parameters: default: "" emit: - "@azure-tools/typespec-autorest" +linter: + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-autorest": emitter-output-dir: "{project-root}/../" diff --git a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json index 74a0e78f73c0..7b2b3dc75b47 100644 --- a/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json +++ b/specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json @@ -20,15 +20,15 @@ { "name": "Endpoint", "in": "path", - "required": true, "description": "Supported Azure Cognitive Services endpoints (protocol and host name, such as\nhttps://westus2.api.cognitive.microsoft.com).", + "required": true, "type": "string" }, { "name": "ApiVersion", "in": "path", - "required": true, "description": "Api Version", + "required": true, "type": "string", "enum": [ "v1.1" @@ -96,8 +96,8 @@ }, "headers": { "x-ms-error-code": { - "description": "Error code.", - "type": "string" + "type": "string", + "description": "Error code." } } } @@ -136,8 +136,8 @@ }, "headers": { "x-ms-error-code": { - "description": "Error code.", - "type": "string" + "type": "string", + "description": "Error code." } } } @@ -186,8 +186,8 @@ }, "headers": { "x-ms-error-code": { - "description": "Error code.", - "type": "string" + "type": "string", + "description": "Error code." } } } @@ -227,8 +227,8 @@ }, "headers": { "x-ms-error-code": { - "description": "Error code.", - "type": "string" + "type": "string", + "description": "Error code." } } } @@ -263,8 +263,8 @@ }, "headers": { "x-ms-error-code": { - "description": "Error code.", - "type": "string" + "type": "string", + "description": "Error code." } } } @@ -323,8 +323,8 @@ }, "headers": { "x-ms-error-code": { - "description": "Error code.", - "type": "string" + "type": "string", + "description": "Error code." } } } @@ -373,8 +373,8 @@ }, "headers": { "x-ms-error-code": { - "description": "Error code.", - "type": "string" + "type": "string", + "description": "Error code." } } } @@ -416,8 +416,8 @@ }, "headers": { "x-ms-error-code": { - "description": "Error code.", - "type": "string" + "type": "string", + "description": "Error code." } } } @@ -459,8 +459,8 @@ }, "headers": { "x-ms-error-code": { - "description": "Error code.", - "type": "string" + "type": "string", + "description": "Error code." } } } @@ -502,8 +502,8 @@ }, "headers": { "x-ms-error-code": { - "description": "Error code.", - "type": "string" + "type": "string", + "description": "Error code." } } } @@ -517,6 +517,11 @@ } }, "definitions": { + "Azure.Core.uuid": { + "type": "string", + "format": "uuid", + "description": "Universally Unique Identifier" + }, "Multivariate.AlignMode": { "type": "string", "enum": [ @@ -552,8 +557,7 @@ "description": "Response of getting a model.", "properties": { "modelId": { - "type": "string", - "format": "uuid", + "$ref": "#/definitions/Azure.Core.uuid", "description": "Model identifier." }, "createdTime": { @@ -1018,8 +1022,7 @@ "description": "Detection results for the resultId value.", "properties": { "resultId": { - "type": "string", - "format": "uuid", + "$ref": "#/definitions/Azure.Core.uuid", "description": "Result identifier that's used to fetch the results of an inference call." }, "summary": { diff --git a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-06-01-preview/generated.json b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-06-01-preview/generated.json index 7ba7f37d6ba5..9712efb477dc 100644 --- a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-06-01-preview/generated.json +++ b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-06-01-preview/generated.json @@ -20,8 +20,8 @@ { "name": "endpoint", "in": "path", - "required": true, "description": "Supported Cognitive Services endpoints (protocol and hostname, for example:\nhttps://westus.api.cognitive.microsoft.com).", + "required": true, "type": "string" } ] @@ -97,8 +97,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -148,8 +148,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -199,8 +199,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -250,8 +250,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -294,8 +294,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -792,7 +792,12 @@ "type": "array", "description": "A mapping of tokens to maximum log probability values in this completions data.", "items": { - "type": "object" + "type": "object", + "additionalProperties": { + "format": "float", + "type": "number", + "x-nullable": true + } }, "x-ms-client-name": "topLogprobs", "x-ms-identifiers": [] diff --git a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-07-01-preview/generated.json b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-07-01-preview/generated.json index 5052d4b71457..598bce8d1083 100644 --- a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-07-01-preview/generated.json +++ b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-07-01-preview/generated.json @@ -20,8 +20,8 @@ { "name": "endpoint", "in": "path", - "required": true, "description": "Supported Cognitive Services endpoints (protocol and hostname, for example:\nhttps://westus.api.cognitive.microsoft.com).", + "required": true, "type": "string" } ] @@ -97,8 +97,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -148,8 +148,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -199,8 +199,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -250,8 +250,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -294,8 +294,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -825,7 +825,12 @@ "type": "array", "description": "A mapping of tokens to maximum log probability values in this completions data.", "items": { - "type": "object" + "type": "object", + "additionalProperties": { + "format": "float", + "type": "number", + "x-nullable": true + } }, "x-ms-client-name": "topLogprobs", "x-ms-identifiers": [] diff --git a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-08-01-preview/generated.json b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-08-01-preview/generated.json index 2cb36941c078..c40ef497d1dc 100644 --- a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-08-01-preview/generated.json +++ b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-08-01-preview/generated.json @@ -20,8 +20,8 @@ { "name": "endpoint", "in": "path", - "required": true, "description": "Supported Cognitive Services endpoints (protocol and hostname, for example:\nhttps://westus.api.cognitive.microsoft.com).", + "required": true, "type": "string" } ] @@ -97,8 +97,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -148,8 +148,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -199,8 +199,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -250,8 +250,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -301,8 +301,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -345,8 +345,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -943,7 +943,12 @@ "type": "array", "description": "A mapping of tokens to maximum log probability values in this completions data.", "items": { - "type": "object" + "type": "object", + "additionalProperties": { + "format": "float", + "type": "number", + "x-nullable": true + } }, "x-ms-client-name": "topLogprobs", "x-ms-identifiers": [] diff --git a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2022-12-01/generated.json b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2022-12-01/generated.json index 4817ba7a5ee3..5524d13f42eb 100644 --- a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2022-12-01/generated.json +++ b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2022-12-01/generated.json @@ -20,8 +20,8 @@ { "name": "endpoint", "in": "path", - "required": true, "description": "Supported Cognitive Services endpoints (protocol and hostname, for example:\nhttps://westus.api.cognitive.microsoft.com).", + "required": true, "type": "string" } ] @@ -97,8 +97,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -148,8 +148,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -349,7 +349,12 @@ "type": "array", "description": "A mapping of tokens to maximum log probability values in this completions data.", "items": { - "type": "object" + "type": "object", + "additionalProperties": { + "format": "float", + "type": "number", + "x-nullable": true + } }, "x-ms-client-name": "topLogprobs", "x-ms-identifiers": [] diff --git a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2023-05-15/generated.json b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2023-05-15/generated.json index b7c515db0245..1a96674b2566 100644 --- a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2023-05-15/generated.json +++ b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2023-05-15/generated.json @@ -20,8 +20,8 @@ { "name": "endpoint", "in": "path", - "required": true, "description": "Supported Cognitive Services endpoints (protocol and hostname, for example:\nhttps://westus.api.cognitive.microsoft.com).", + "required": true, "type": "string" } ] @@ -97,8 +97,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -148,8 +148,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -199,8 +199,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -590,7 +590,12 @@ "type": "array", "description": "A mapping of tokens to maximum log probability values in this completions data.", "items": { - "type": "object" + "type": "object", + "additionalProperties": { + "format": "float", + "type": "number", + "x-nullable": true + } }, "x-ms-client-name": "topLogprobs", "x-ms-identifiers": [] diff --git a/specification/cognitiveservices/data-plane/ContentSafety/preview/2023-04-30-preview/contentsafety.json b/specification/cognitiveservices/data-plane/ContentSafety/preview/2023-04-30-preview/contentsafety.json index 095e19424bb6..7f2606fa5167 100644 --- a/specification/cognitiveservices/data-plane/ContentSafety/preview/2023-04-30-preview/contentsafety.json +++ b/specification/cognitiveservices/data-plane/ContentSafety/preview/2023-04-30-preview/contentsafety.json @@ -20,8 +20,8 @@ { "name": "endpoint", "in": "path", - "required": true, "description": "Supported Cognitive Services endpoints (protocol and hostname, for example:\nhttps://.cognitiveservices.azure.com).", + "required": true, "type": "string" } ] @@ -79,8 +79,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -116,8 +116,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -165,8 +165,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -203,7 +203,7 @@ "description": "The resource instance.", "required": true, "schema": { - "$ref": "#/definitions/TextBlocklistUpdate" + "$ref": "#/definitions/TextBlocklistCreateOrUpdate" } } ], @@ -227,8 +227,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -268,8 +268,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -322,8 +322,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -373,8 +373,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -428,8 +428,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -485,8 +485,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -531,8 +531,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -942,6 +942,27 @@ "blocklistName" ] }, + "TextBlocklistCreateOrUpdate": { + "type": "object", + "description": "Text Blocklist.", + "properties": { + "blocklistName": { + "type": "string", + "description": "Text blocklist name.", + "maxLength": 64, + "pattern": "^[0-9A-Za-z._~-]+$", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "description": { + "type": "string", + "description": "Text blocklist description.", + "maxLength": 1024 + } + } + }, "TextBlocklistMatchResult": { "type": "object", "description": "The result of blocklist match.", @@ -980,17 +1001,6 @@ "length" ] }, - "TextBlocklistUpdate": { - "type": "object", - "description": "Text Blocklist.", - "properties": { - "description": { - "type": "string", - "description": "Text blocklist description.", - "maxLength": 1024 - } - } - }, "TextCategory": { "type": "string", "description": "Text analyze category", diff --git a/specification/cognitiveservices/data-plane/HealthInsights/preview/2023-03-01-preview/openapi.json b/specification/cognitiveservices/data-plane/HealthInsights/preview/2023-03-01-preview/openapi.json index f843cc3e4725..8d7f349049ad 100644 --- a/specification/cognitiveservices/data-plane/HealthInsights/preview/2023-03-01-preview/openapi.json +++ b/specification/cognitiveservices/data-plane/HealthInsights/preview/2023-03-01-preview/openapi.json @@ -20,8 +20,8 @@ { "name": "endpoint", "in": "path", - "required": true, "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).", + "required": true, "type": "string", "format": "uri", "x-ms-skip-url-encoding": true @@ -119,8 +119,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -168,8 +168,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -245,8 +245,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -294,8 +294,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -489,6 +489,11 @@ } } }, + "Azure.Core.uuid": { + "type": "string", + "format": "uuid", + "description": "Universally Unique Identifier" + }, "ClinicalCodedElement": { "type": "object", "description": "A piece of clinical information, expressed as a code in a clinical coding system.", @@ -1526,8 +1531,7 @@ "description": "The response for the Onco Phenotype request.", "properties": { "jobId": { - "type": "string", - "format": "uuid", + "$ref": "#/definitions/Azure.Core.uuid", "description": "A processing job identifier.", "readOnly": true }, @@ -1875,8 +1879,7 @@ "description": "The response for the Trial Matcher request.", "properties": { "jobId": { - "type": "string", - "format": "uuid", + "$ref": "#/definitions/Azure.Core.uuid", "description": "A processing job identifier.", "readOnly": true }, diff --git a/specification/confidentialledger/Microsoft.ManagedCcf/proposals.tsp b/specification/confidentialledger/Microsoft.ManagedCcf/proposals.tsp index f72944c36b49..19b0d098e72c 100644 --- a/specification/confidentialledger/Microsoft.ManagedCcf/proposals.tsp +++ b/specification/confidentialledger/Microsoft.ManagedCcf/proposals.tsp @@ -14,6 +14,7 @@ model Action { @doc("The name of the action to perform. This should match an action defined in the service's constitution, so that it can be invoked by the `apply` function of the constitution if the proposal is accepted.") name: string; + #suppress "@azure-tools/typespec-azure-core/no-unknown" "Type can be anything." @doc("Arguments to modify the behavior of this action. The schema is determined by the action implementation, and should be validated by a `validate` call in the constitution.") args?: unknown; } diff --git a/specification/confidentialledger/Microsoft.ManagedCcf/tspconfig.yaml b/specification/confidentialledger/Microsoft.ManagedCcf/tspconfig.yaml index b4061d0ce56a..b7a6551a18f0 100644 --- a/specification/confidentialledger/Microsoft.ManagedCcf/tspconfig.yaml +++ b/specification/confidentialledger/Microsoft.ManagedCcf/tspconfig.yaml @@ -1,6 +1,10 @@ emit: - "@azure-tools/typespec-autorest" +linter: + extends: + - "@azure-tools/typespec-azure-core/all" + options: "@azure-tools/typespec-autorest": azure-resource-provider-folder: "./data-plane" diff --git a/specification/confidentialledger/data-plane/Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json b/specification/confidentialledger/data-plane/Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json index 3ddab8760664..cafabab8cd9d 100644 --- a/specification/confidentialledger/data-plane/Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json +++ b/specification/confidentialledger/data-plane/Microsoft.ManagedCcf/preview/2023-06-01-preview/mccfgov.json @@ -37,8 +37,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -50,8 +50,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -97,8 +97,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction where this request produced a write on the service. This uniquely identifies the submitted request, and can be used to confirm that the request becomes committed.", "type": "string", + "description": "Identifier for transaction where this request produced a write on the service. This uniquely identifies the submitted request, and can be used to confirm that the request becomes committed.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -110,8 +110,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -148,8 +148,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -161,8 +161,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -199,8 +199,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -212,8 +212,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -264,8 +264,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction where this request produced a write on the service. This uniquely identifies the submitted request, and can be used to confirm that the request becomes committed.", "type": "string", + "description": "Identifier for transaction where this request produced a write on the service. This uniquely identifies the submitted request, and can be used to confirm that the request becomes committed.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -277,8 +277,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -327,8 +327,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -340,8 +340,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -376,8 +376,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction where this request produced a write on the service. This uniquely identifies the submitted request, and can be used to confirm that the request becomes committed.", "type": "string", + "description": "Identifier for transaction where this request produced a write on the service. This uniquely identifies the submitted request, and can be used to confirm that the request becomes committed.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -389,8 +389,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -433,8 +433,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction where this request produced a write on the service. This uniquely identifies the submitted request, and can be used to confirm that the request becomes committed.", "type": "string", + "description": "Identifier for transaction where this request produced a write on the service. This uniquely identifies the submitted request, and can be used to confirm that the request becomes committed.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -446,8 +446,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -487,8 +487,8 @@ "description": "There is no content to send for this request, but the headers may be useful. ", "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction where this request produced a write on the service. This uniquely identifies the submitted request, and can be used to confirm that the request becomes committed.", "type": "string", + "description": "Identifier for transaction where this request produced a write on the service. This uniquely identifies the submitted request, and can be used to confirm that the request becomes committed.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -500,8 +500,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -538,8 +538,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -551,8 +551,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -595,8 +595,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -639,8 +639,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -652,8 +652,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -686,8 +686,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -699,8 +699,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -729,8 +729,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -742,8 +742,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -772,8 +772,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -785,8 +785,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -815,8 +815,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -828,8 +828,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -858,8 +858,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -871,8 +871,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -901,8 +901,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -914,8 +914,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -955,8 +955,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -968,8 +968,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -998,8 +998,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -1011,8 +1011,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -1052,8 +1052,8 @@ }, "headers": { "x-ms-ccf-transaction-id": { - "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "type": "string", + "description": "Identifier for transaction this response was read from. The service state may be altered by other write requests. Reads at the same transactionId describe a consistent single point in the service history.", "pattern": "^[0-9]+\\.[0-9]+$" } } @@ -1065,8 +1065,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -1109,8 +1109,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -1145,8 +1145,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -1482,8 +1482,7 @@ }, "Recovery.Member": { "type": "object", - "description": "Recovery-specific details for a given member.", - "properties": {} + "description": "Recovery-specific details for a given member." }, "Recovery.RecoveryResponse": { "type": "object", @@ -1646,7 +1645,7 @@ "openApi": { "type": "object", "description": "An OpenAPI Operation object (https://swagger.io/specification/#operation-object) describing this operation. This is merged into the auto-generated OpenAPI to describe the current application's API.", - "additionalProperties": true + "additionalProperties": {} } }, "required": [ diff --git a/specification/containerservice/Fleet.Management/helpers.tsp b/specification/containerservice/Fleet.Management/helpers.tsp index 6c42eab412bf..2147f0d37da4 100644 --- a/specification/containerservice/Fleet.Management/helpers.tsp +++ b/specification/containerservice/Fleet.Management/helpers.tsp @@ -34,7 +34,7 @@ alias ArmAcceptedResponseWithLocationHeader = ArmAcceptedResponse & LocationHeader; #suppress "@azure-tools/typespec-azure-core/documentation-required" "this is a template" -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation-outside-interface" "this is a template" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "this is a template" @armResourceAction(TResource) @post op ArmResourceNoRequestBodyActionSync< @@ -46,7 +46,7 @@ op ArmResourceNoRequestBodyActionSync< ): ArmResponse | ErrorResponse; #suppress "@azure-tools/typespec-azure-core/documentation-required" "this is a template" -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation-outside-interface" "this is a template" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "this is a template" @armResourceAction(TResource) @extension("x-ms-long-running-operation", true) @extension( @@ -105,7 +105,7 @@ op FleetArmResourceCreateOrUpdateAsync< ): ArmResponse | ArmCreatedResponse | ErrorResponse; // this is a copy of ArmResourceDeleteAsync that adds the location header to comply with arm linter. -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation-outside-interface" "this is a template" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "this is a template" #suppress "@azure-tools/typespec-providerhub/no-inline-model" "inlining the response with a header does not present a risk" @autoRoute @doc("Delete a {name}", TResource) diff --git a/specification/containerservice/Fleet.Management/tspconfig.yaml b/specification/containerservice/Fleet.Management/tspconfig.yaml index 9557c291df03..00b680e4135d 100644 --- a/specification/containerservice/Fleet.Management/tspconfig.yaml +++ b/specification/containerservice/Fleet.Management/tspconfig.yaml @@ -1,5 +1,8 @@ emit: - '@azure-tools/typespec-autorest' +linter: + extends: + - "@azure-tools/typespec-azure-resource-manager/all" options: '@azure-tools/typespec-autorest': azure-resource-provider-folder: "resource-manager" diff --git a/specification/containerstorage/ContainerStorage.Management/main.tsp b/specification/containerstorage/ContainerStorage.Management/main.tsp index cc9b7f285169..39c6ef725ca7 100644 --- a/specification/containerstorage/ContainerStorage.Management/main.tsp +++ b/specification/containerstorage/ContainerStorage.Management/main.tsp @@ -438,7 +438,7 @@ interface Snapshots { * @template TResource the resource being patched * @template TBaseParameters Optional. Allows overriding the operation parameters */ -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation-outside-interface" "This is a valid template" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "This is a valid template" @autoRoute @doc("Create a {name}", TResource) @extension("x-ms-long-running-operation", true) @@ -472,7 +472,7 @@ model ArmUpdatedResponse diff --git a/specification/containerstorage/ContainerStorage.Management/tspconfig.yaml b/specification/containerstorage/ContainerStorage.Management/tspconfig.yaml index 22aacfc2a9c7..e81dd7d63eca 100644 --- a/specification/containerstorage/ContainerStorage.Management/tspconfig.yaml +++ b/specification/containerstorage/ContainerStorage.Management/tspconfig.yaml @@ -1,5 +1,8 @@ emit: - '@azure-tools/typespec-autorest' +linter: + extends: + - "@azure-tools/typespec-azure-resource-manager/all" options: '@azure-tools/typespec-autorest': azure-resource-provider-folder: "resource-manager" diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/containerstorage.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/containerstorage.json index 9c95de1b7e94..4ce50e99d351 100644 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/containerstorage.json +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/containerstorage.json @@ -1348,8 +1348,7 @@ }, "ElasticSanUpdate": { "type": "object", - "description": "Elastic San Pool Properties", - "properties": {} + "description": "Elastic San Pool Properties" }, "ElasticSanVolumeProperties": { "type": "object", diff --git a/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml b/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml index 40b6e2c8b124..65c35522ba61 100644 --- a/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml +++ b/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml @@ -7,6 +7,9 @@ parameters: default: "" emit: - "@azure-tools/typespec-autorest" +linter: + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-autorest": azure-resource-provider-folder: "data-plane" diff --git a/specification/contosowidgetmanager/data-plane/Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json b/specification/contosowidgetmanager/data-plane/Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json index aca1698b9abb..65d37b6ed740 100644 --- a/specification/contosowidgetmanager/data-plane/Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json +++ b/specification/contosowidgetmanager/data-plane/Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json @@ -62,8 +62,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -108,8 +108,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -143,7 +143,7 @@ "description": "The resource instance.", "required": true, "schema": { - "$ref": "#/definitions/WidgetSuiteUpdate" + "$ref": "#/definitions/WidgetSuiteCreateOrUpdate" } } ], @@ -181,8 +181,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -249,8 +249,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -323,8 +323,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -454,7 +454,7 @@ "createdAt" ] }, - "FakedSharedModelUpdate": { + "FakedSharedModelCreateOrUpdate": { "type": "object", "description": "Faked shared model", "properties": { @@ -532,7 +532,7 @@ "manufacturerId" ] }, - "WidgetSuiteUpdate": { + "WidgetSuiteCreateOrUpdate": { "type": "object", "description": "A widget.", "properties": { @@ -541,7 +541,7 @@ "description": "The ID of the widget's manufacturer." }, "sharedModel": { - "$ref": "#/definitions/FakedSharedModelUpdate", + "$ref": "#/definitions/FakedSharedModelCreateOrUpdate", "description": "The faked shared model." } } diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml b/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml index 4f941ecfc87a..53bab578e322 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml +++ b/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml @@ -6,6 +6,9 @@ parameters: emit: [ "@azure-tools/typespec-autorest", ] +linter: + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-autorest": examples-directory: examples diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json index b378a3e5b0a6..63d78ee345ce 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/preview/2023-06-01-preview/EventGrid.json @@ -20,8 +20,8 @@ { "name": "endpoint", "in": "path", - "required": true, "description": "The host name of the namespace, e.g. namespaceName1.westus-1.eventgrid.azure.net", + "required": true, "type": "string", "format": "uri", "x-ms-skip-url-encoding": true @@ -93,8 +93,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -162,8 +162,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -221,8 +221,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -280,8 +280,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -339,8 +339,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -553,8 +553,7 @@ }, "PublishResult": { "type": "object", - "description": "The result of the Publish operation.", - "properties": {} + "description": "The result of the Publish operation." }, "ReceiveDetails": { "type": "object", diff --git a/specification/mpcnetworkfunction/mpcnetworkfunction.Management/networkfunction.tsp b/specification/mpcnetworkfunction/mpcnetworkfunction.Management/networkfunction.tsp index ac4aa5088c20..6f60e646240b 100644 --- a/specification/mpcnetworkfunction/mpcnetworkfunction.Management/networkfunction.tsp +++ b/specification/mpcnetworkfunction/mpcnetworkfunction.Management/networkfunction.tsp @@ -71,7 +71,7 @@ model NetworkFunctionResourceProperties { * @template TResource the resource being patched * @template TBaseParameters Optional. Allows overriding the operation parameters */ -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation-outside-interface" "This is a valid template" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "This is a valid template" @autoRoute @doc("Create a {name}", TResource) @OpenAPI.extension("x-ms-long-running-operation", true) diff --git a/specification/mpcnetworkfunction/mpcnetworkfunction.Management/tspconfig.yaml b/specification/mpcnetworkfunction/mpcnetworkfunction.Management/tspconfig.yaml index 8910415dd0b0..5f2aef42dc7a 100644 --- a/specification/mpcnetworkfunction/mpcnetworkfunction.Management/tspconfig.yaml +++ b/specification/mpcnetworkfunction/mpcnetworkfunction.Management/tspconfig.yaml @@ -1,5 +1,8 @@ emit: - "@azure-tools/typespec-autorest" +linter: + extends: + - "@azure-tools/typespec-azure-resource-manager/all" options: "@azure-tools/typespec-autorest": azure-resource-provider-folder: "resource-manager" diff --git a/specification/playwrighttesting/PlaywrightTesting/tspconfig.yaml b/specification/playwrighttesting/PlaywrightTesting/tspconfig.yaml index f847176538f0..5c1e4b30cbc5 100644 --- a/specification/playwrighttesting/PlaywrightTesting/tspconfig.yaml +++ b/specification/playwrighttesting/PlaywrightTesting/tspconfig.yaml @@ -1,5 +1,8 @@ emit: - "@azure-tools/typespec-autorest" +linter: + extends: + - "@azure-tools/typespec-azure-core/all" parameters: "service-directory-name": default: "playwrighttesting" diff --git a/specification/playwrighttesting/data-plane/Microsoft.PlaywrightTesting.AuthManager/preview/2023-10-01-preview/playwrighttesting.json b/specification/playwrighttesting/data-plane/Microsoft.PlaywrightTesting.AuthManager/preview/2023-10-01-preview/playwrighttesting.json index 4b46add3a439..4771a7f761a2 100644 --- a/specification/playwrighttesting/data-plane/Microsoft.PlaywrightTesting.AuthManager/preview/2023-10-01-preview/playwrighttesting.json +++ b/specification/playwrighttesting/data-plane/Microsoft.PlaywrightTesting.AuthManager/preview/2023-10-01-preview/playwrighttesting.json @@ -65,9 +65,9 @@ }, "headers": { "x-ms-client-request-id": { - "description": "An opaque, globally-unique, client-generated string identifier for the request.", "type": "string", - "format": "uuid" + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." } } }, @@ -78,8 +78,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -118,9 +118,9 @@ }, "headers": { "x-ms-client-request-id": { - "description": "An opaque, globally-unique, client-generated string identifier for the request.", "type": "string", - "format": "uuid" + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." } } }, @@ -131,8 +131,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -182,9 +182,9 @@ }, "headers": { "x-ms-client-request-id": { - "description": "An opaque, globally-unique, client-generated string identifier for the request.", "type": "string", - "format": "uuid" + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." } } }, @@ -195,8 +195,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -250,9 +250,9 @@ }, "headers": { "x-ms-client-request-id": { - "description": "An opaque, globally-unique, client-generated string identifier for the request.", "type": "string", - "format": "uuid" + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." } } }, @@ -263,9 +263,9 @@ }, "headers": { "x-ms-client-request-id": { - "description": "An opaque, globally-unique, client-generated string identifier for the request.", "type": "string", - "format": "uuid" + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." } } }, @@ -276,8 +276,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } @@ -319,9 +319,9 @@ "description": "There is no content to send for this request, but the headers may be useful. ", "headers": { "x-ms-client-request-id": { - "description": "An opaque, globally-unique, client-generated string identifier for the request.", "type": "string", - "format": "uuid" + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." } } }, @@ -332,8 +332,8 @@ }, "headers": { "x-ms-error-code": { - "description": "String error code indicating what went wrong.", - "type": "string" + "type": "string", + "description": "String error code indicating what went wrong." } } } diff --git a/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml index 5c0f61b06969..cdeb5ac976c7 100644 --- a/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml +++ b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml @@ -1,5 +1,8 @@ emit: - "@azure-tools/typespec-autorest" +linter: + extends: + - "@azure-tools/typespec-azure-resource-manager/all" options: "@azure-tools/typespec-autorest": azure-resource-provider-folder: "resource-manager" diff --git a/specification/sphere/Sphere.Management/tspconfig.yaml b/specification/sphere/Sphere.Management/tspconfig.yaml index dc225dbf530f..62b3cb7614c9 100644 --- a/specification/sphere/Sphere.Management/tspconfig.yaml +++ b/specification/sphere/Sphere.Management/tspconfig.yaml @@ -1,5 +1,8 @@ emit: - '@azure-tools/typespec-autorest' +linter: + extends: + - "@azure-tools/typespec-azure-resource-manager/all" options: '@azure-tools/typespec-autorest': emitter-output-dir: "{project-root}/.." diff --git a/specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json b/specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json index 216a568ba9a5..077b2b100494 100644 --- a/specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json +++ b/specification/sphere/resource-manager/Microsoft.AzureSphere/preview/2022-09-01-preview/azuresphere.json @@ -3294,7 +3294,6 @@ "CountDeviceResponse": { "type": "object", "description": "Response to the action call for count devices in a catalog.", - "properties": {}, "allOf": [ { "$ref": "#/definitions/CountElementsResponse" @@ -4113,7 +4112,6 @@ "ProofOfPossessionNonceResponse": { "type": "object", "description": "Result of the action to generate a proof of possession nonce", - "properties": {}, "allOf": [ { "$ref": "#/definitions/CertificateProperties" diff --git a/specification/translation/Azure.AI.TextTranslation/tspconfig.yaml b/specification/translation/Azure.AI.TextTranslation/tspconfig.yaml index e1a4d78e19f2..9521468fe5cc 100644 --- a/specification/translation/Azure.AI.TextTranslation/tspconfig.yaml +++ b/specification/translation/Azure.AI.TextTranslation/tspconfig.yaml @@ -11,6 +11,9 @@ parameters: default: "translation" emit: - "@azure-tools/typespec-autorest" +linter: + extends: + - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-autorest": azure-resource-provider-folder: "data-plane" diff --git a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/openapi.json b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/openapi.json index 8aa0404fcb70..03e0371b770e 100644 --- a/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/openapi.json +++ b/specification/translation/data-plane/Azure.AI.TextTranslation/stable/v3.0/openapi.json @@ -20,8 +20,8 @@ { "name": "Endpoint", "in": "path", - "required": true, "description": "Supported Text Translation endpoints (protocol and hostname, for example:\n https://api.cognitive.microsofttranslator.com).", + "required": true, "type": "string", "format": "uri", "x-ms-skip-url-encoding": true @@ -361,11 +361,11 @@ } }, "x-ms-examples": { - "Gets the set of languages currently supported by other operations of the Translator.": { - "$ref": "./examples/GetLanguages_MaximumSet_Gen.json" - }, "Gets the set of languages currently supported by other operations of the Translator with minimum properties.": { "$ref": "./examples/GetLanguages_MinimumSet_Gen.json" + }, + "Gets the set of languages currently supported by other operations of the Translator.": { + "$ref": "./examples/GetLanguages_MaximumSet_Gen.json" } } } @@ -458,13 +458,13 @@ "description": "Value generated by the service to identify the request. It is used for troubleshooting purposes." }, "x-mt-system": { - "description": "Specifies the system type that was used for translation for each 'to' language requested for translation. \nThe value is a comma-separated list of strings. Each string indicates a type:\n\n* Custom - Request includes a custom system and at least one custom system was used during translation.\n* Team - All other requests", - "type": "string" + "type": "string", + "description": "Specifies the system type that was used for translation for each 'to' language requested for translation. \nThe value is a comma-separated list of strings. Each string indicates a type:\n\n* Custom - Request includes a custom system and at least one custom system was used during translation.\n* Team - All other requests" }, "x-metered-usage": { - "description": "Specifies consumption (the number of characters for which the user will be charged) for the translation \njob request. For example, if the word \"Hello\" is translated from English (en) to French (fr), \nthis field will return the value '5'.", "type": "integer", - "format": "int32" + "format": "int32", + "description": "Specifies consumption (the number of characters for which the user will be charged) for the translation \njob request. For example, if the word \"Hello\" is translated from English (en) to French (fr), \nthis field will return the value '5'." } } },