From d5f9e6dcf9b638bdc81f7edcfecafd4863b059ac Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 23:27:03 +0000 Subject: [PATCH 01/10] Initial plan From d12ddc87315e5933e9e67d95e85174a686230771 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 23:35:07 +0000 Subject: [PATCH 02/10] Bump C# emitter dependencies to TypeSpec 1.9.0 Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> --- .../emitter/src/type/input-type.ts | 4 +- packages/http-client-csharp/package-lock.json | 1532 ++++++++--------- packages/http-client-csharp/package.json | 43 +- 3 files changed, 700 insertions(+), 879 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/type/input-type.ts b/packages/http-client-csharp/emitter/src/type/input-type.ts index e21af3e4b86..cf433c911cc 100644 --- a/packages/http-client-csharp/emitter/src/type/input-type.ts +++ b/packages/http-client-csharp/emitter/src/type/input-type.ts @@ -107,7 +107,7 @@ export type InputDateTimeType = InputUtcDateTimeType | InputOffsetDateTimeType; interface InputDateTimeTypeBase extends InputTypeBase { name: string; - encode: DateTimeKnownEncoding; + encode: DateTimeKnownEncoding | string; wireType: InputPrimitiveType; crossLanguageDefinitionId: string; baseType?: InputDateTimeType; @@ -124,7 +124,7 @@ export interface InputOffsetDateTimeType extends InputDateTimeTypeBase { export interface InputDurationType extends InputTypeBase { kind: "duration"; name: string; - encode: DurationKnownEncoding; + encode: DurationKnownEncoding | string; wireType: InputPrimitiveType; crossLanguageDefinitionId: string; baseType?: InputDurationType; diff --git a/packages/http-client-csharp/package-lock.json b/packages/http-client-csharp/package-lock.json index 9cae75a57f2..7e7afa0417e 100644 --- a/packages/http-client-csharp/package-lock.json +++ b/packages/http-client-csharp/package-lock.json @@ -9,22 +9,24 @@ "version": "1.0.0", "license": "MIT", "devDependencies": { - "@azure-tools/azure-http-specs": "0.1.0-alpha.35", - "@azure-tools/typespec-client-generator-core": "0.64.4", + "@azure-tools/azure-http-specs": "0.1.0-alpha.37", + "@azure-tools/typespec-azure-core": "0.65.0", + "@azure-tools/typespec-client-generator-core": "0.65.0", "@microsoft/api-extractor": "^7.52.2", "@types/node": "~22.12.0", - "@typespec/compiler": "1.8.0", - "@typespec/http": "1.8.0", - "@typespec/http-specs": "0.1.0-alpha.30", - "@typespec/json-schema": "1.8.0", - "@typespec/library-linter": "0.78.0", - "@typespec/openapi": "1.8.0", - "@typespec/rest": "0.78.0", - "@typespec/spector": "0.1.0-alpha.20", - "@typespec/streams": "0.78.0", + "@typespec/compiler": "1.9.0", + "@typespec/http": "1.9.0", + "@typespec/http-specs": "0.1.0-alpha.32", + "@typespec/json-schema": "1.9.0", + "@typespec/library-linter": "0.79.0", + "@typespec/openapi": "1.9.0", + "@typespec/rest": "0.79.0", + "@typespec/spector": "0.1.0-alpha.23", + "@typespec/sse": "0.79.0", + "@typespec/streams": "0.79.0", "@typespec/tspd": "0.73.1", - "@typespec/versioning": "0.78.0", - "@typespec/xml": "0.78.0", + "@typespec/versioning": "0.79.0", + "@typespec/xml": "0.79.0", "@vitest/coverage-v8": "^3.0.5", "@vitest/ui": "^3.0.5", "c8": "^10.1.2", @@ -33,13 +35,14 @@ "vitest": "^3.0.5" }, "peerDependencies": { - "@azure-tools/typespec-client-generator-core": ">=0.64.3 < 0.65.0 || ~0.65.0-0", - "@typespec/compiler": "^1.8.0", - "@typespec/http": "^1.8.0", - "@typespec/openapi": "^1.8.0", - "@typespec/rest": ">=0.78.0 <0.79.0 || ~0.79.0-0", - "@typespec/streams": ">=0.78.0 <0.79.0 || ~0.79.0-0", - "@typespec/versioning": ">=0.78.0 <0.79.0 || ~0.79.0-0" + "@azure-tools/typespec-client-generator-core": ">=0.65.0 < 0.66.0 || ~0.66.0-0", + "@typespec/compiler": "^1.9.0", + "@typespec/http": "^1.9.0", + "@typespec/openapi": "^1.9.0", + "@typespec/rest": ">=0.79.0 <0.80.0 || ~0.80.0-0", + "@typespec/sse": ">=0.79.0 <0.80.0 || ~0.80.0-0", + "@typespec/streams": ">=0.79.0 <0.80.0 || ~0.80.0-0", + "@typespec/versioning": ">=0.79.0 <0.80.0 || ~0.80.0-0" } }, "node_modules/@alloy-js/core": { @@ -94,83 +97,31 @@ } }, "node_modules/@azure-tools/azure-http-specs": { - "version": "0.1.0-alpha.35", - "resolved": "https://registry.npmjs.org/@azure-tools/azure-http-specs/-/azure-http-specs-0.1.0-alpha.35.tgz", - "integrity": "sha512-ECvGts/kO4+5vpDVwZayk3RGhzsX5Ouwctjhv16Gd/jmKY6S9voGWqR23IfD9QjrsLCyoUVwljIZQrOfqv4HwQ==", + "version": "0.1.0-alpha.37", + "resolved": "https://registry.npmjs.org/@azure-tools/azure-http-specs/-/azure-http-specs-0.1.0-alpha.37.tgz", + "integrity": "sha512-oMo0f14FGn2pg4epJQM7W86W6PNTIgtFUCmBGNUXUcffaZIMnzreR9M488ynyuAP4lbsOiu0uFcE2skDXip2Eg==", "dev": true, "license": "MIT", "dependencies": { "@typespec/spec-api": "^0.1.0-alpha.12", - "@typespec/spector": "^0.1.0-alpha.22" + "@typespec/spector": "^0.1.0-alpha.23" }, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.64.0", - "@typespec/compiler": "^1.8.0", - "@typespec/http": "^1.8.0", - "@typespec/rest": "^0.78.0", - "@typespec/versioning": "^0.78.0", - "@typespec/xml": "^0.78.0" - } - }, - "node_modules/@azure-tools/azure-http-specs/node_modules/@typespec/spector": { - "version": "0.1.0-alpha.22", - "resolved": "https://registry.npmjs.org/@typespec/spector/-/spector-0.1.0-alpha.22.tgz", - "integrity": "sha512-oxdJjoHcYdsschi1DYr8jOxFKHoiuI4Y2CX1tfCikSzijFg6iTd4GRr2qusGoVfgaTduHKrXOfsdSWc8ukFE/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@azure/identity": "~4.13.0", - "@typespec/compiler": "^1.8.0", - "@typespec/http": "^1.8.0", - "@typespec/rest": "^0.78.0", - "@typespec/spec-api": "^0.1.0-alpha.12", - "@typespec/spec-coverage-sdk": "^0.1.0-alpha.14", - "@typespec/versioning": "^0.78.0", - "ajv": "~8.17.1", - "body-parser": "^2.2.0", - "deep-equal": "^2.2.0", - "express": "^5.2.1", - "globby": "~16.0.0", - "micromatch": "^4.0.8", - "morgan": "^1.10.0", - "multer": "^2.0.1", - "picocolors": "~1.1.1", - "source-map-support": "~0.5.21", - "xml2js": "^0.6.2", - "yaml": "~2.8.2", - "yargs": "~18.0.0" - }, - "bin": { - "tsp-spector": "cmd/cli.mjs" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@azure-tools/azure-http-specs/node_modules/ajv": { - "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" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "@azure-tools/typespec-azure-core": "^0.65.0", + "@typespec/compiler": "^1.9.0", + "@typespec/http": "^1.9.0", + "@typespec/rest": "^0.79.0", + "@typespec/versioning": "^0.79.0", + "@typespec/xml": "^0.79.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.64.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.64.0.tgz", - "integrity": "sha512-BXiHc5oayhMsG1dHFU1aFK/ZQX2Gl0dKB0FAFceapaFV9093J2obbsdhIDR3Tl0qei9g3Ha+iWKZ4KgnLdhv4w==", + "version": "0.65.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.65.0.tgz", + "integrity": "sha512-dYgHtt0CY0Q9AimdIsMV41jHKLmAT4r++TLwyxAHRbxdiRG+Sll1UKJzOIIoq45Bq64wCfEltu5OOnyPA01/sQ==", "dev": true, "license": "MIT", "peer": true, @@ -178,15 +129,15 @@ "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0", - "@typespec/http": "^1.8.0", - "@typespec/rest": "^0.78.0" + "@typespec/compiler": "^1.9.0", + "@typespec/http": "^1.9.0", + "@typespec/rest": "^0.79.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.64.4", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.64.4.tgz", - "integrity": "sha512-ZAYdbTe47VVff3MarJTXXiu/xg4iIilipJbjbqROIYbNkXcnIyZSC1IYDkzKHU3qgYrEyHuBjoVZc7rkxAtOLA==", + "version": "0.65.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.65.0.tgz", + "integrity": "sha512-+g6+xB967chLQlukt2nKSCNUagg99MySrdFkY6Izu0z32Wq6ba/FI9IbqBDRTBGFveX+fxS39Xn/xCbtU3nTRg==", "dev": true, "license": "MIT", "dependencies": { @@ -198,16 +149,16 @@ "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.64.0", - "@typespec/compiler": "^1.8.0", - "@typespec/events": "^0.78.0", - "@typespec/http": "^1.8.0", - "@typespec/openapi": "^1.8.0", - "@typespec/rest": "^0.78.0", - "@typespec/sse": "^0.78.0", - "@typespec/streams": "^0.78.0", - "@typespec/versioning": "^0.78.0", - "@typespec/xml": "^0.78.0" + "@azure-tools/typespec-azure-core": "^0.65.0", + "@typespec/compiler": "^1.9.0", + "@typespec/events": "^0.79.0", + "@typespec/http": "^1.9.0", + "@typespec/openapi": "^1.9.0", + "@typespec/rest": "^0.79.0", + "@typespec/sse": "^0.79.0", + "@typespec/streams": "^0.79.0", + "@typespec/versioning": "^0.79.0", + "@typespec/xml": "^0.79.0" } }, "node_modules/@azure/abort-controller": { @@ -244,6 +195,7 @@ "integrity": "sha512-Nh5PhEOeY6PrnxNPsEHRr9eimxLwgLlpmguQaHKBinFYA/RU9+kOYVOQqOrTsCL+KSxrLLl1gD8Dk5BFW/7l/w==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.10.0", @@ -258,18 +210,20 @@ } }, "node_modules/@azure/core-http-compat": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@azure/core-http-compat/-/core-http-compat-2.3.1.tgz", - "integrity": "sha512-az9BkXND3/d5VgdRRQVkiJb2gOmDU8Qcq4GvjtBmDICNiQ9udFmDk4ZpSB5Qq1OmtDJGlQAfBaS4palFsazQ5g==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@azure/core-http-compat/-/core-http-compat-2.3.2.tgz", + "integrity": "sha512-Tf6ltdKzOJEgxZeWLCjMxrxbodB/ZeCbzzA1A2qHbhzAjzjHoBVSUeSl/baT/oHAxhc4qdqVaDKnc2+iE932gw==", "dev": true, "license": "MIT", "dependencies": { - "@azure/abort-controller": "^2.1.2", - "@azure/core-client": "^1.10.0", - "@azure/core-rest-pipeline": "^1.22.0" + "@azure/abort-controller": "^2.1.2" }, "engines": { "node": ">=20.0.0" + }, + "peerDependencies": { + "@azure/core-client": "^1.10.0", + "@azure/core-rest-pipeline": "^1.22.0" } }, "node_modules/@azure/core-lro": { @@ -307,6 +261,7 @@ "integrity": "sha512-MzHym+wOi8CLUlKCQu12de0nwcq9k9Kuv43j4Wa++CsCpJwps2eeBQwD2Bu8snkxTtDKDx4GwjuR9E8yC8LNrg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.10.0", @@ -400,22 +355,22 @@ } }, "node_modules/@azure/msal-browser": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-4.27.0.tgz", - "integrity": "sha512-bZ8Pta6YAbdd0o0PEaL1/geBsPrLEnyY/RDWqvF1PP9RUH8EMLvUMGoZFYS6jSlUan6KZ9IMTLCnwpWWpQRK/w==", + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-4.28.2.tgz", + "integrity": "sha512-6vYUMvs6kJxJgxaCmHn/F8VxjLHNh7i9wzfwPGf8kyBJ8Gg2yvBXx175Uev8LdrD1F5C4o7qHa2CC4IrhGE1XQ==", "dev": true, "license": "MIT", "dependencies": { - "@azure/msal-common": "15.13.3" + "@azure/msal-common": "15.14.2" }, "engines": { "node": ">=0.8.0" } }, "node_modules/@azure/msal-common": { - "version": "15.13.3", - "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.13.3.tgz", - "integrity": "sha512-shSDU7Ioecya+Aob5xliW9IGq1Ui8y4EVSdWGyI1Gbm4Vg61WpP95LuzcY214/wEjSn6w4PZYD4/iVldErHayQ==", + "version": "15.14.2", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.14.2.tgz", + "integrity": "sha512-n8RBJEUmd5QotoqbZfd+eGBkzuFI1KX6jw2b3WcpSyGjwmzoeI/Jb99opIBPHpb8y312NB+B6+FGi2ZVSR8yfA==", "dev": true, "license": "MIT", "engines": { @@ -423,13 +378,13 @@ } }, "node_modules/@azure/msal-node": { - "version": "3.8.4", - "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.8.4.tgz", - "integrity": "sha512-lvuAwsDpPDE/jSuVQOBMpLbXuVuLsPNRwWCyK3/6bPlBk0fGWegqoZ0qjZclMWyQ2JNvIY3vHY7hoFmFmFQcOw==", + "version": "3.8.7", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.8.7.tgz", + "integrity": "sha512-a+Xnrae+uwLnlw68bplS1X4kuJ9F/7K6afuMFyRkNIskhjgDezl5Fhrx+1pmAlDmC0VaaAxjRQMp1OmcqVwkIg==", "dev": true, "license": "MIT", "dependencies": { - "@azure/msal-common": "15.13.3", + "@azure/msal-common": "15.14.2", "jsonwebtoken": "^9.0.0", "uuid": "^8.3.0" }, @@ -438,9 +393,9 @@ } }, "node_modules/@azure/storage-blob": { - "version": "12.29.1", - "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-12.29.1.tgz", - "integrity": "sha512-7ktyY0rfTM0vo7HvtK6E3UvYnI9qfd6Oz6z/+92VhGRveWng3kJwMKeUpqmW/NmwcDNbxHpSlldG+vsUnRFnBg==", + "version": "12.30.0", + "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-12.30.0.tgz", + "integrity": "sha512-peDCR8blSqhsAKDbpSP/o55S4sheNwSrblvCaHUZ5xUI73XA7ieUGGwrONgD/Fng0EoDe1VOa3fAQ7+WGB3Ocg==", "dev": true, "license": "MIT", "dependencies": { @@ -455,7 +410,7 @@ "@azure/core-util": "^1.11.0", "@azure/core-xml": "^1.4.5", "@azure/logger": "^1.1.4", - "@azure/storage-common": "^12.1.1", + "@azure/storage-common": "^12.2.0", "events": "^3.0.0", "tslib": "^2.8.1" }, @@ -464,9 +419,9 @@ } }, "node_modules/@azure/storage-common": { - "version": "12.1.1", - "resolved": "https://registry.npmjs.org/@azure/storage-common/-/storage-common-12.1.1.tgz", - "integrity": "sha512-eIOH1pqFwI6UmVNnDQvmFeSg0XppuzDLFeUNO/Xht7ODAzRLgGDh7h550pSxoA+lPDxBl1+D2m/KG3jWzCUjTg==", + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/@azure/storage-common/-/storage-common-12.3.0.tgz", + "integrity": "sha512-/OFHhy86aG5Pe8dP5tsp+BuJ25JOAl9yaMU3WZbkeoiFMHFtJ7tu5ili7qEdBXNW9G5lDB19trwyI6V49F/8iQ==", "dev": true, "license": "MIT", "dependencies": { @@ -485,13 +440,13 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", - "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.28.6.tgz", + "integrity": "sha512-JYgintcMjRiCvS8mMECzaEn+m3PfoQiyqukOMCCVQtoJGYJw8j/8LBJEiqkHLkfwCcs74E3pbAUFNg7d9VNJ+Q==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" }, @@ -520,13 +475,13 @@ } }, "node_modules/@babel/parser": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.6.tgz", - "integrity": "sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", + "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.28.6" + "@babel/types": "^7.29.0" }, "bin": { "parser": "bin/babel-parser.js" @@ -536,9 +491,9 @@ } }, "node_modules/@babel/types": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.6.tgz", - "integrity": "sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", "dev": true, "license": "MIT", "dependencies": { @@ -571,9 +526,9 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz", - "integrity": "sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz", + "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==", "cpu": [ "ppc64" ], @@ -588,9 +543,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.2.tgz", - "integrity": "sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz", + "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==", "cpu": [ "arm" ], @@ -605,9 +560,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.2.tgz", - "integrity": "sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz", + "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==", "cpu": [ "arm64" ], @@ -622,9 +577,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.2.tgz", - "integrity": "sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz", + "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==", "cpu": [ "x64" ], @@ -639,9 +594,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.2.tgz", - "integrity": "sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz", + "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==", "cpu": [ "arm64" ], @@ -656,9 +611,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.2.tgz", - "integrity": "sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz", + "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==", "cpu": [ "x64" ], @@ -673,9 +628,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.2.tgz", - "integrity": "sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz", + "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==", "cpu": [ "arm64" ], @@ -690,9 +645,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.2.tgz", - "integrity": "sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz", + "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==", "cpu": [ "x64" ], @@ -707,9 +662,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.2.tgz", - "integrity": "sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz", + "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==", "cpu": [ "arm" ], @@ -724,9 +679,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.2.tgz", - "integrity": "sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz", + "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==", "cpu": [ "arm64" ], @@ -741,9 +696,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.2.tgz", - "integrity": "sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz", + "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==", "cpu": [ "ia32" ], @@ -758,9 +713,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.2.tgz", - "integrity": "sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz", + "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==", "cpu": [ "loong64" ], @@ -775,9 +730,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.2.tgz", - "integrity": "sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz", + "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==", "cpu": [ "mips64el" ], @@ -792,9 +747,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.2.tgz", - "integrity": "sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz", + "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==", "cpu": [ "ppc64" ], @@ -809,9 +764,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.2.tgz", - "integrity": "sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz", + "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==", "cpu": [ "riscv64" ], @@ -826,9 +781,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.2.tgz", - "integrity": "sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz", + "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==", "cpu": [ "s390x" ], @@ -843,9 +798,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.2.tgz", - "integrity": "sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz", + "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==", "cpu": [ "x64" ], @@ -860,9 +815,9 @@ } }, "node_modules/@esbuild/netbsd-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.2.tgz", - "integrity": "sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz", + "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==", "cpu": [ "arm64" ], @@ -877,9 +832,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.2.tgz", - "integrity": "sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz", + "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==", "cpu": [ "x64" ], @@ -894,9 +849,9 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.2.tgz", - "integrity": "sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz", + "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==", "cpu": [ "arm64" ], @@ -911,9 +866,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.2.tgz", - "integrity": "sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz", + "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==", "cpu": [ "x64" ], @@ -928,9 +883,9 @@ } }, "node_modules/@esbuild/openharmony-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.2.tgz", - "integrity": "sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz", + "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==", "cpu": [ "arm64" ], @@ -945,9 +900,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.2.tgz", - "integrity": "sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz", + "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==", "cpu": [ "x64" ], @@ -962,9 +917,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.2.tgz", - "integrity": "sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz", + "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==", "cpu": [ "arm64" ], @@ -979,9 +934,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.2.tgz", - "integrity": "sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz", + "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==", "cpu": [ "ia32" ], @@ -996,9 +951,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.2.tgz", - "integrity": "sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz", + "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==", "cpu": [ "x64" ], @@ -1013,16 +968,16 @@ } }, "node_modules/@gerrit0/mini-shiki": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.21.0.tgz", - "integrity": "sha512-9PrsT5DjZA+w3lur/aOIx3FlDeHdyCEFlv9U+fmsVyjPZh61G5SYURQ/1ebe2U63KbDmI2V8IhIUegWb8hjOyg==", + "version": "3.22.0", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.22.0.tgz", + "integrity": "sha512-jMpciqEVUBKE1QwU64S4saNMzpsSza6diNCk4MWAeCxO2+LFi2FIFmL2S0VDLzEJCxuvCbU783xi8Hp/gkM5CQ==", "dev": true, "license": "MIT", "dependencies": { - "@shikijs/engine-oniguruma": "^3.21.0", - "@shikijs/langs": "^3.21.0", - "@shikijs/themes": "^3.21.0", - "@shikijs/types": "^3.21.0", + "@shikijs/engine-oniguruma": "^3.22.0", + "@shikijs/langs": "^3.22.0", + "@shikijs/themes": "^3.22.0", + "@shikijs/types": "^3.22.0", "@shikijs/vscode-textmate": "^10.0.2" } }, @@ -1381,9 +1336,9 @@ } }, "node_modules/@isaacs/brace-expansion": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", - "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.1.tgz", + "integrity": "sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1394,64 +1349,13 @@ } }, "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-9.0.0.tgz", + "integrity": "sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg==", "dev": true, - "license": "MIT", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, + "license": "BlueOak-1.0.0", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "node": ">=18" } }, "node_modules/@isaacs/fs-minipass": { @@ -1517,9 +1421,9 @@ } }, "node_modules/@microsoft/api-extractor": { - "version": "7.55.2", - "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.55.2.tgz", - "integrity": "sha512-1jlWO4qmgqYoVUcyh+oXYRztZde/pAi7cSVzBz/rc+S7CoVzDasy8QE13dx6sLG4VRo8SfkkLbFORR6tBw4uGQ==", + "version": "7.56.3", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.56.3.tgz", + "integrity": "sha512-fRqok4aRNq5GpgGBv2fKlSSKbirPKTJ75vQefthB5x9dwt4Zz+AezUzdc1p/AG4wUBIgmhjcEwn/Rj+N4Wh4Mw==", "dev": true, "license": "MIT", "dependencies": { @@ -1528,11 +1432,11 @@ "@microsoft/tsdoc-config": "~0.18.0", "@rushstack/node-core-library": "5.19.1", "@rushstack/rig-package": "0.6.0", - "@rushstack/terminal": "0.19.5", - "@rushstack/ts-command-line": "5.1.5", + "@rushstack/terminal": "0.21.0", + "@rushstack/ts-command-line": "5.2.0", "diff": "~8.0.2", - "lodash": "~4.17.15", - "minimatch": "10.0.3", + "lodash": "~4.17.23", + "minimatch": "10.1.2", "resolve": "~1.22.1", "semver": "~7.5.4", "source-map": "~0.6.1", @@ -1645,9 +1549,9 @@ "license": "MIT" }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.55.1.tgz", - "integrity": "sha512-9R0DM/ykwfGIlNu6+2U09ga0WXeZ9MRC2Ter8jnz8415VbuIykVuc6bhdrbORFZANDmTDvq26mJrEVTl8TdnDg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.57.1.tgz", + "integrity": "sha512-A6ehUVSiSaaliTxai040ZpZ2zTevHYbvu/lDoeAteHI8QnaosIzm4qwtezfRg1jOYaUmnzLX1AOD6Z+UJjtifg==", "cpu": [ "arm" ], @@ -1659,9 +1563,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.55.1.tgz", - "integrity": "sha512-eFZCb1YUqhTysgW3sj/55du5cG57S7UTNtdMjCW7LwVcj3dTTcowCsC8p7uBdzKsZYa8J7IDE8lhMI+HX1vQvg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.57.1.tgz", + "integrity": "sha512-dQaAddCY9YgkFHZcFNS/606Exo8vcLHwArFZ7vxXq4rigo2bb494/xKMMwRRQW6ug7Js6yXmBZhSBRuBvCCQ3w==", "cpu": [ "arm64" ], @@ -1673,9 +1577,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.55.1.tgz", - "integrity": "sha512-p3grE2PHcQm2e8PSGZdzIhCKbMCw/xi9XvMPErPhwO17vxtvCN5FEA2mSLgmKlCjHGMQTP6phuQTYWUnKewwGg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.57.1.tgz", + "integrity": "sha512-crNPrwJOrRxagUYeMn/DZwqN88SDmwaJ8Cvi/TN1HnWBU7GwknckyosC2gd0IqYRsHDEnXf328o9/HC6OkPgOg==", "cpu": [ "arm64" ], @@ -1687,9 +1591,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.55.1.tgz", - "integrity": "sha512-rDUjG25C9qoTm+e02Esi+aqTKSBYwVTaoS1wxcN47/Luqef57Vgp96xNANwt5npq9GDxsH7kXxNkJVEsWEOEaQ==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.57.1.tgz", + "integrity": "sha512-Ji8g8ChVbKrhFtig5QBV7iMaJrGtpHelkB3lsaKzadFBe58gmjfGXAOfI5FV0lYMH8wiqsxKQ1C9B0YTRXVy4w==", "cpu": [ "x64" ], @@ -1701,9 +1605,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.55.1.tgz", - "integrity": "sha512-+JiU7Jbp5cdxekIgdte0jfcu5oqw4GCKr6i3PJTlXTCU5H5Fvtkpbs4XJHRmWNXF+hKmn4v7ogI5OQPaupJgOg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.57.1.tgz", + "integrity": "sha512-R+/WwhsjmwodAcz65guCGFRkMb4gKWTcIeLy60JJQbXrJ97BOXHxnkPFrP+YwFlaS0m+uWJTstrUA9o+UchFug==", "cpu": [ "arm64" ], @@ -1715,9 +1619,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.55.1.tgz", - "integrity": "sha512-V5xC1tOVWtLLmr3YUk2f6EJK4qksksOYiz/TCsFHu/R+woubcLWdC9nZQmwjOAbmExBIVKsm1/wKmEy4z4u4Bw==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.57.1.tgz", + "integrity": "sha512-IEQTCHeiTOnAUC3IDQdzRAGj3jOAYNr9kBguI7MQAAZK3caezRrg0GxAb6Hchg4lxdZEI5Oq3iov/w/hnFWY9Q==", "cpu": [ "x64" ], @@ -1729,9 +1633,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.55.1.tgz", - "integrity": "sha512-Rn3n+FUk2J5VWx+ywrG/HGPTD9jXNbicRtTM11e/uorplArnXZYsVifnPPqNNP5BsO3roI4n8332ukpY/zN7rQ==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.57.1.tgz", + "integrity": "sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw==", "cpu": [ "arm" ], @@ -1743,9 +1647,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.55.1.tgz", - "integrity": "sha512-grPNWydeKtc1aEdrJDWk4opD7nFtQbMmV7769hiAaYyUKCT1faPRm2av8CX1YJsZ4TLAZcg9gTR1KvEzoLjXkg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.57.1.tgz", + "integrity": "sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw==", "cpu": [ "arm" ], @@ -1757,9 +1661,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.55.1.tgz", - "integrity": "sha512-a59mwd1k6x8tXKcUxSyISiquLwB5pX+fJW9TkWU46lCqD/GRDe9uDN31jrMmVP3feI3mhAdvcCClhV8V5MhJFQ==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.57.1.tgz", + "integrity": "sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g==", "cpu": [ "arm64" ], @@ -1771,9 +1675,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.55.1.tgz", - "integrity": "sha512-puS1MEgWX5GsHSoiAsF0TYrpomdvkaXm0CofIMG5uVkP6IBV+ZO9xhC5YEN49nsgYo1DuuMquF9+7EDBVYu4uA==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.57.1.tgz", + "integrity": "sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q==", "cpu": [ "arm64" ], @@ -1785,9 +1689,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.55.1.tgz", - "integrity": "sha512-r3Wv40in+lTsULSb6nnoudVbARdOwb2u5fpeoOAZjFLznp6tDU8kd+GTHmJoqZ9lt6/Sys33KdIHUaQihFcu7g==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.57.1.tgz", + "integrity": "sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA==", "cpu": [ "loong64" ], @@ -1799,9 +1703,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.55.1.tgz", - "integrity": "sha512-MR8c0+UxAlB22Fq4R+aQSPBayvYa3+9DrwG/i1TKQXFYEaoW3B5b/rkSRIypcZDdWjWnpcvxbNaAJDcSbJU3Lw==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.57.1.tgz", + "integrity": "sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw==", "cpu": [ "loong64" ], @@ -1813,9 +1717,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.55.1.tgz", - "integrity": "sha512-3KhoECe1BRlSYpMTeVrD4sh2Pw2xgt4jzNSZIIPLFEsnQn9gAnZagW9+VqDqAHgm1Xc77LzJOo2LdigS5qZ+gw==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.57.1.tgz", + "integrity": "sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w==", "cpu": [ "ppc64" ], @@ -1827,9 +1731,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.55.1.tgz", - "integrity": "sha512-ziR1OuZx0vdYZZ30vueNZTg73alF59DicYrPViG0NEgDVN8/Jl87zkAPu4u6VjZST2llgEUjaiNl9JM6HH1Vdw==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.57.1.tgz", + "integrity": "sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw==", "cpu": [ "ppc64" ], @@ -1841,9 +1745,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.55.1.tgz", - "integrity": "sha512-uW0Y12ih2XJRERZ4jAfKamTyIHVMPQnTZcQjme2HMVDAHY4amf5u414OqNYC+x+LzRdRcnIG1YodLrrtA8xsxw==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.57.1.tgz", + "integrity": "sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A==", "cpu": [ "riscv64" ], @@ -1855,9 +1759,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.55.1.tgz", - "integrity": "sha512-u9yZ0jUkOED1BFrqu3BwMQoixvGHGZ+JhJNkNKY/hyoEgOwlqKb62qu+7UjbPSHYjiVy8kKJHvXKv5coH4wDeg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.57.1.tgz", + "integrity": "sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw==", "cpu": [ "riscv64" ], @@ -1869,9 +1773,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.55.1.tgz", - "integrity": "sha512-/0PenBCmqM4ZUd0190j7J0UsQ/1nsi735iPRakO8iPciE7BQ495Y6msPzaOmvx0/pn+eJVVlZrNrSh4WSYLxNg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.57.1.tgz", + "integrity": "sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg==", "cpu": [ "s390x" ], @@ -1883,9 +1787,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.55.1.tgz", - "integrity": "sha512-a8G4wiQxQG2BAvo+gU6XrReRRqj+pLS2NGXKm8io19goR+K8lw269eTrPkSdDTALwMmJp4th2Uh0D8J9bEV1vg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.57.1.tgz", + "integrity": "sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==", "cpu": [ "x64" ], @@ -1897,9 +1801,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.55.1.tgz", - "integrity": "sha512-bD+zjpFrMpP/hqkfEcnjXWHMw5BIghGisOKPj+2NaNDuVT+8Ds4mPf3XcPHuat1tz89WRL+1wbcxKY3WSbiT7w==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.57.1.tgz", + "integrity": "sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw==", "cpu": [ "x64" ], @@ -1911,9 +1815,9 @@ ] }, "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.55.1.tgz", - "integrity": "sha512-eLXw0dOiqE4QmvikfQ6yjgkg/xDM+MdU9YJuP4ySTibXU0oAvnEWXt7UDJmD4UkYialMfOGFPJnIHSe/kdzPxg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.57.1.tgz", + "integrity": "sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw==", "cpu": [ "x64" ], @@ -1925,9 +1829,9 @@ ] }, "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.55.1.tgz", - "integrity": "sha512-xzm44KgEP11te3S2HCSyYf5zIzWmx3n8HDCc7EE59+lTcswEWNpvMLfd9uJvVX8LCg9QWG67Xt75AuHn4vgsXw==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.57.1.tgz", + "integrity": "sha512-4wYoDpNg6o/oPximyc/NG+mYUejZrCU2q+2w6YZqrAs2UcNUChIZXjtafAiiZSUc7On8v5NyNj34Kzj/Ltk6dQ==", "cpu": [ "arm64" ], @@ -1939,9 +1843,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.55.1.tgz", - "integrity": "sha512-yR6Bl3tMC/gBok5cz/Qi0xYnVbIxGx5Fcf/ca0eB6/6JwOY+SRUcJfI0OpeTpPls7f194as62thCt/2BjxYN8g==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.57.1.tgz", + "integrity": "sha512-O54mtsV/6LW3P8qdTcamQmuC990HDfR71lo44oZMZlXU4tzLrbvTii87Ni9opq60ds0YzuAlEr/GNwuNluZyMQ==", "cpu": [ "arm64" ], @@ -1953,9 +1857,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.55.1.tgz", - "integrity": "sha512-3fZBidchE0eY0oFZBnekYCfg+5wAB0mbpCBuofh5mZuzIU/4jIVkbESmd2dOsFNS78b53CYv3OAtwqkZZmU5nA==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.57.1.tgz", + "integrity": "sha512-P3dLS+IerxCT/7D2q2FYcRdWRl22dNbrbBEtxdWhXrfIMPP9lQhb5h4Du04mdl5Woq05jVCDPCMF7Ub0NAjIew==", "cpu": [ "ia32" ], @@ -1967,9 +1871,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.55.1.tgz", - "integrity": "sha512-xGGY5pXj69IxKb4yv/POoocPy/qmEGhimy/FoTpTSVju3FYXUQQMFCaZZXJVidsmGxRioZAwpThl/4zX41gRKg==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.57.1.tgz", + "integrity": "sha512-VMBH2eOOaKGtIJYleXsi2B8CPVADrh+TyNxJ4mWPnKfLB/DBUmzW+5m1xUrcwWoMfSLagIRpjUFeW5CO5hyciQ==", "cpu": [ "x64" ], @@ -1981,9 +1885,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.55.1.tgz", - "integrity": "sha512-SPEpaL6DX4rmcXtnhdrQYgzQ5W2uW3SCJch88lB2zImhJRhIIK44fkUrgIV/Q8yUNfw5oyZ5vkeQsZLhCb06lw==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.57.1.tgz", + "integrity": "sha512-mxRFDdHIWRxg3UfIIAwCm6NzvxG0jDX/wBN6KsQFTvKFqqg9vTrWUE68qEjHt19A5wwx5X5aUi2zuZT7YR0jrA==", "cpu": [ "x64" ], @@ -2063,9 +1967,9 @@ } }, "node_modules/@rushstack/terminal": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.19.5.tgz", - "integrity": "sha512-6k5tpdB88G0K7QrH/3yfKO84HK9ggftfUZ51p7fePyCE7+RLLHkWZbID9OFWbXuna+eeCFE7AkKnRMHMxNbz7Q==", + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.21.0.tgz", + "integrity": "sha512-cLaI4HwCNYmknM5ns4G+drqdEB6q3dCPV423+d3TZeBusYSSm09+nR7CnhzJMjJqeRcdMAaLnrA4M/3xDz4R3w==", "dev": true, "license": "MIT", "dependencies": { @@ -2083,53 +1987,53 @@ } }, "node_modules/@rushstack/ts-command-line": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-5.1.5.tgz", - "integrity": "sha512-YmrFTFUdHXblYSa+Xc9OO9FsL/XFcckZy0ycQ6q7VSBsVs5P0uD9vcges5Q9vctGlVdu27w+Ct6IuJ458V0cTQ==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-5.2.0.tgz", + "integrity": "sha512-lYxCX0nDdkDtCkVpvF0m25ymf66SaMWuppbD6b7MdkIzvGXKBXNIVZlwBH/C0YfkanrupnICWf2n4z3AKSfaHw==", "dev": true, "license": "MIT", "dependencies": { - "@rushstack/terminal": "0.19.5", + "@rushstack/terminal": "0.21.0", "@types/argparse": "1.0.38", "argparse": "~1.0.9", "string-argv": "~0.3.1" } }, "node_modules/@shikijs/engine-oniguruma": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.21.0.tgz", - "integrity": "sha512-OYknTCct6qiwpQDqDdf3iedRdzj6hFlOPv5hMvI+hkWfCKs5mlJ4TXziBG9nyabLwGulrUjHiCq3xCspSzErYQ==", + "version": "3.22.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.22.0.tgz", + "integrity": "sha512-DyXsOG0vGtNtl7ygvabHd7Mt5EY8gCNqR9Y7Lpbbd/PbJvgWrqaKzH1JW6H6qFkuUa8aCxoiYVv8/YfFljiQxA==", "dev": true, "license": "MIT", "dependencies": { - "@shikijs/types": "3.21.0", + "@shikijs/types": "3.22.0", "@shikijs/vscode-textmate": "^10.0.2" } }, "node_modules/@shikijs/langs": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.21.0.tgz", - "integrity": "sha512-g6mn5m+Y6GBJ4wxmBYqalK9Sp0CFkUqfNzUy2pJglUginz6ZpWbaWjDB4fbQ/8SHzFjYbtU6Ddlp1pc+PPNDVA==", + "version": "3.22.0", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.22.0.tgz", + "integrity": "sha512-x/42TfhWmp6H00T6uwVrdTJGKgNdFbrEdhaDwSR5fd5zhQ1Q46bHq9EO61SCEWJR0HY7z2HNDMaBZp8JRmKiIA==", "dev": true, "license": "MIT", "dependencies": { - "@shikijs/types": "3.21.0" + "@shikijs/types": "3.22.0" } }, "node_modules/@shikijs/themes": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.21.0.tgz", - "integrity": "sha512-BAE4cr9EDiZyYzwIHEk7JTBJ9CzlPuM4PchfcA5ao1dWXb25nv6hYsoDiBq2aZK9E3dlt3WB78uI96UESD+8Mw==", + "version": "3.22.0", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.22.0.tgz", + "integrity": "sha512-o+tlOKqsr6FE4+mYJG08tfCFDS+3CG20HbldXeVoyP+cYSUxDhrFf3GPjE60U55iOkkjbpY2uC3It/eeja35/g==", "dev": true, "license": "MIT", "dependencies": { - "@shikijs/types": "3.21.0" + "@shikijs/types": "3.22.0" } }, "node_modules/@shikijs/types": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.21.0.tgz", - "integrity": "sha512-zGrWOxZ0/+0ovPY7PvBU2gIS9tmhSUUt30jAcNV0Bq0gb2S98gwfjIs1vxlmH5zM7/4YxLamT6ChlqqAJmPPjA==", + "version": "3.22.0", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.22.0.tgz", + "integrity": "sha512-491iAekgKDBFE67z70Ok5a8KBMsQ2IJwOWw3us/7ffQkIBCyOQfm/aNwVMBUriP02QshIfgHCBSIYAl3u2eWjg==", "dev": true, "license": "MIT", "dependencies": { @@ -2206,19 +2110,13 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/js-yaml": { - "version": "4.0.9", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz", - "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/node": { "version": "22.12.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.12.0.tgz", "integrity": "sha512-Fll2FZ1riMjNmlmJOdAyY5pUbkftXslB5DgEzlIuNaiWhXd00FhWxVC/r4yV/4wBb9JfImTu+jiSvXTkJ7F/gA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "undici-types": "~6.20.0" } @@ -2231,35 +2129,36 @@ "license": "MIT" }, "node_modules/@typespec/asset-emitter": { - "version": "0.78.0", - "resolved": "https://registry.npmjs.org/@typespec/asset-emitter/-/asset-emitter-0.78.0.tgz", - "integrity": "sha512-TA9MzNI+SJEYKNWdbSsWXhjnVOL+2VvsBqzExXKQmoN6zxu3dAImqrMG/oTA6FS4pbCU4vmWgLUiOmikvjm22Q==", + "version": "0.79.0", + "resolved": "https://registry.npmjs.org/@typespec/asset-emitter/-/asset-emitter-0.79.0.tgz", + "integrity": "sha512-pNMtfSSwgmTQ2ex6bd1l6BUW2RLjSFnWQO5C5bNSleV62YEH5jMLn3THWDU9oUB0JoiBjgomV8cPqNRTJ+iV9w==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0" + "@typespec/compiler": "^1.9.0" } }, "node_modules/@typespec/compiler": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.8.0.tgz", - "integrity": "sha512-FeLb7Q0z6Bh5dDpqtnU2RlWiIWWWF7rujx2xGMta5dcTuIOZ4jbdyz1hVdxk4iM4qadvaSV4ey/qrSuffNoh3w==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.9.0.tgz", + "integrity": "sha512-Rz9fFWQSTJSnhBfZvtA/bDIuO82fknYdtyMsL9lZNJE82rquC6JByHPFsnbGH1VXA0HhMj9L7Oqyp3f0m/BTOA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "@babel/code-frame": "~7.27.1", + "@babel/code-frame": "~7.28.6", "@inquirer/prompts": "^8.0.1", "ajv": "~8.17.1", "change-case": "~5.4.4", "env-paths": "^3.0.0", - "globby": "~16.0.0", + "globby": "~16.1.0", "is-unicode-supported": "^2.1.0", "mustache": "~4.2.0", "picocolors": "~1.1.1", - "prettier": "~3.7.4", + "prettier": "~3.8.0", "semver": "^7.7.1", "tar": "^7.5.2", "temporal-polyfill": "^0.3.0", @@ -2294,9 +2193,9 @@ } }, "node_modules/@typespec/compiler/node_modules/semver": { - "version": "7.7.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", - "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", "dev": true, "license": "ISC", "bin": { @@ -2307,9 +2206,9 @@ } }, "node_modules/@typespec/events": { - "version": "0.78.0", - "resolved": "https://registry.npmjs.org/@typespec/events/-/events-0.78.0.tgz", - "integrity": "sha512-gSI4rAexxfYyZX0ZqYNRWQyuMb1UeakjAjOeh/2ntmxWCdYc+wSbJjxrxIArsZC+LwzTxq5WpdtD7+7OWzG4yw==", + "version": "0.79.0", + "resolved": "https://registry.npmjs.org/@typespec/events/-/events-0.79.0.tgz", + "integrity": "sha512-41R2jA7k21uMArjyUdvnqYzVnPPaSEcGi40dLMiRVP79m6XgnD3INuTdlMblaS1i+5jJ1BtS1o4QhBBuS/5/qg==", "dev": true, "license": "MIT", "peer": true, @@ -2317,21 +2216,22 @@ "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0" + "@typespec/compiler": "^1.9.0" } }, "node_modules/@typespec/http": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.8.0.tgz", - "integrity": "sha512-ZKa4RISabwL8cUAmE3BkoNmtCYRjerO0+1Ba6XdDJKG+vJC5EGM2hkDf+ZmYsYZgrX0cvbhPXUKKh28zBV60hw==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.9.0.tgz", + "integrity": "sha512-JzlZZsgCo71f2KhWbf4BLOz5e+dVLj7gJJ4kvXvrmuG9QHoT41VaGPpCQamYgpZLMz2LQbsOtw34AmpovhuJSw==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0", - "@typespec/streams": "^0.78.0" + "@typespec/compiler": "^1.9.0", + "@typespec/streams": "^0.79.0" }, "peerDependenciesMeta": { "@typespec/streams": { @@ -2340,135 +2240,85 @@ } }, "node_modules/@typespec/http-specs": { - "version": "0.1.0-alpha.30", - "resolved": "https://registry.npmjs.org/@typespec/http-specs/-/http-specs-0.1.0-alpha.30.tgz", - "integrity": "sha512-9c/npRHmX+IL4iAuXcDw5Jyy/exTu7IEp4i+JxYj43e+/g8gzFKFRMtJhcrH2xaABMFtrDW5oxXz0mh8PJaIjg==", + "version": "0.1.0-alpha.32", + "resolved": "https://registry.npmjs.org/@typespec/http-specs/-/http-specs-0.1.0-alpha.32.tgz", + "integrity": "sha512-a5kOR6M6H23+w4cmYyprh/2Oa5bmPmz6wOQKc9cKfXH8f2sFJ4ViIHBMovyAl5HsSaDAY4VvVz1vmEWA+OWj8g==", "dev": true, "license": "MIT", "dependencies": { "@typespec/spec-api": "^0.1.0-alpha.12", - "@typespec/spector": "^0.1.0-alpha.22", + "@typespec/spector": "^0.1.0-alpha.23", "deep-equal": "^2.2.0" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0", - "@typespec/http": "^1.8.0", - "@typespec/rest": "^0.78.0", - "@typespec/versioning": "^0.78.0", - "@typespec/xml": "^0.78.0" - } - }, - "node_modules/@typespec/http-specs/node_modules/@typespec/spector": { - "version": "0.1.0-alpha.22", - "resolved": "https://registry.npmjs.org/@typespec/spector/-/spector-0.1.0-alpha.22.tgz", - "integrity": "sha512-oxdJjoHcYdsschi1DYr8jOxFKHoiuI4Y2CX1tfCikSzijFg6iTd4GRr2qusGoVfgaTduHKrXOfsdSWc8ukFE/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@azure/identity": "~4.13.0", - "@typespec/compiler": "^1.8.0", - "@typespec/http": "^1.8.0", - "@typespec/rest": "^0.78.0", - "@typespec/spec-api": "^0.1.0-alpha.12", - "@typespec/spec-coverage-sdk": "^0.1.0-alpha.14", - "@typespec/versioning": "^0.78.0", - "ajv": "~8.17.1", - "body-parser": "^2.2.0", - "deep-equal": "^2.2.0", - "express": "^5.2.1", - "globby": "~16.0.0", - "micromatch": "^4.0.8", - "morgan": "^1.10.0", - "multer": "^2.0.1", - "picocolors": "~1.1.1", - "source-map-support": "~0.5.21", - "xml2js": "^0.6.2", - "yaml": "~2.8.2", - "yargs": "~18.0.0" - }, - "bin": { - "tsp-spector": "cmd/cli.mjs" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@typespec/http-specs/node_modules/ajv": { - "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" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "@typespec/compiler": "^1.9.0", + "@typespec/http": "^1.9.0", + "@typespec/rest": "^0.79.0", + "@typespec/versioning": "^0.79.0", + "@typespec/xml": "^0.79.0" } }, "node_modules/@typespec/json-schema": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@typespec/json-schema/-/json-schema-1.8.0.tgz", - "integrity": "sha512-FEcU2A/POu+cMuJE0mZrzGL/6ONUlbuOWbZZK2NSUfcMCpN0kHtKwEwui3fw3KaSIUqOaAJX9vE8vE47CT3bAA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@typespec/json-schema/-/json-schema-1.9.0.tgz", + "integrity": "sha512-splP6YL1CWPtBDenOeaVEs058TBqSzMDZyX4h9A39Q5qwmhyQ00DPXdnmJWRP96IWVAlHnN806GJWc/yttzSVg==", "dev": true, "license": "MIT", "dependencies": { - "@typespec/asset-emitter": "^0.78.0", + "@typespec/asset-emitter": "^0.79.0", "yaml": "~2.8.2" }, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0" + "@typespec/compiler": "^1.9.0" } }, "node_modules/@typespec/library-linter": { - "version": "0.78.0", - "resolved": "https://registry.npmjs.org/@typespec/library-linter/-/library-linter-0.78.0.tgz", - "integrity": "sha512-fpiQDM7pDtE6TZVEz1Y3Pk5RMI0LW0sXFA9GaNXwdiYivWJVp/bYB/hc3OIG47T68tJ651FdgF3HV2FJ4MkLFA==", + "version": "0.79.0", + "resolved": "https://registry.npmjs.org/@typespec/library-linter/-/library-linter-0.79.0.tgz", + "integrity": "sha512-TIqag9XoBwuKMjs3ZGTpbt9QGUxaHaKp8jswzsvEW4J85APCX5UGrPZYdOCjyjdSigieu7/YoBXCVm6i8EWioQ==", "dev": true, "license": "MIT", "engines": { "node": ">=14.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0" + "@typespec/compiler": "^1.9.0" } }, "node_modules/@typespec/openapi": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.8.0.tgz", - "integrity": "sha512-v+RIJpx7vALBSGQmnUWemvXjnrk50HAVqJeg0RbaF3VUnh66Z4itsoNJJmIIc+HmBJng8Ie0V7xv3l02ek6HWA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.9.0.tgz", + "integrity": "sha512-5ieXCWRLcyFLv3IFk26ena/RW/NxvT5KiHaoNVFRd79J0XZjFcE0Od6Lxxqj4dWmCo3C8oKtOwFoQuie18G3lQ==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0", - "@typespec/http": "^1.8.0" + "@typespec/compiler": "^1.9.0", + "@typespec/http": "^1.9.0" } }, "node_modules/@typespec/rest": { - "version": "0.78.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.78.0.tgz", - "integrity": "sha512-1clnDw1JbBvjLcfFvEvHdIrnsQuQI5/Cl6mRIrzWWX0pKJ+R89rCdZD1KpidEXw4B4qscD48LsssyrEIFLtuPg==", + "version": "0.79.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.79.0.tgz", + "integrity": "sha512-6QIX7oaUGy/z4rseUrC86LjHxZn8rAAY4fXvGnlPRce6GhEdTb9S9OQPmlPeWngXwCx/07P2+FCR915APqmZxg==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0", - "@typespec/http": "^1.8.0" + "@typespec/compiler": "^1.9.0", + "@typespec/http": "^1.9.0" } }, "node_modules/@typespec/spec-api": { @@ -2487,14 +2337,14 @@ } }, "node_modules/@typespec/spec-coverage-sdk": { - "version": "0.1.0-alpha.14", - "resolved": "https://registry.npmjs.org/@typespec/spec-coverage-sdk/-/spec-coverage-sdk-0.1.0-alpha.14.tgz", - "integrity": "sha512-e3DiPyccHwDf7Nhccu3pnP93hR5ggtmsTsIA54KzwmdDucqHS7rPjPi0vZnvsy3ufB2B8PpyNAHBB7vVSM+tpg==", + "version": "0.1.0-alpha.15", + "resolved": "https://registry.npmjs.org/@typespec/spec-coverage-sdk/-/spec-coverage-sdk-0.1.0-alpha.15.tgz", + "integrity": "sha512-Y7SxNBEouGBlMIw5nD+skCYX8FkM2v1CxW79VjqX+iigJQsh2ML0F/G1Zh551l2Dr7zuMv+0qiPrmOC5v3yEgQ==", "dev": true, "license": "MIT", "dependencies": { "@azure/identity": "~4.13.0", - "@azure/storage-blob": "~12.29.1", + "@azure/storage-blob": "~12.30.0", "@types/node": "~25.0.2" }, "engines": { @@ -2502,9 +2352,9 @@ } }, "node_modules/@typespec/spec-coverage-sdk/node_modules/@types/node": { - "version": "25.0.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.8.tgz", - "integrity": "sha512-powIePYMmC3ibL0UJ2i2s0WIbq6cg6UyVFQxSCpaPxxzAaziRfimGivjdF943sSGV6RADVbk0Nvlm5P/FB44Zg==", + "version": "25.0.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.10.tgz", + "integrity": "sha512-zWW5KPngR/yvakJgGOmZ5vTBemDoSqF3AcV/LrO5u5wTWyEAVVh+IT39G4gtyAkh3CtTZs8aX/yRM82OfzHJRg==", "dev": true, "license": "MIT", "dependencies": { @@ -2519,32 +2369,31 @@ "license": "MIT" }, "node_modules/@typespec/spector": { - "version": "0.1.0-alpha.20", - "resolved": "https://registry.npmjs.org/@typespec/spector/-/spector-0.1.0-alpha.20.tgz", - "integrity": "sha512-qnR3NizzYu8e7TNcXY+CFp/FkXk8DJCtk3lpWPC3bNaNjxtuUjZ6Miix0gCPjDBCGOv8iquT7mLux103kMKLWQ==", + "version": "0.1.0-alpha.23", + "resolved": "https://registry.npmjs.org/@typespec/spector/-/spector-0.1.0-alpha.23.tgz", + "integrity": "sha512-z5ORR/HnaLKYcTL2a73sUfC4LmuOqlCRmSPF8h5NtUNDpER3s4aLlFu4DgcaVYTgHruiBLMkLyHpfNPxKDzY7g==", "dev": true, "license": "MIT", "dependencies": { "@azure/identity": "~4.13.0", - "@types/js-yaml": "^4.0.5", - "@typespec/compiler": "^1.6.0", - "@typespec/http": "^1.6.0", - "@typespec/rest": "^0.76.0", - "@typespec/spec-api": "^0.1.0-alpha.10", - "@typespec/spec-coverage-sdk": "^0.1.0-alpha.12", - "@typespec/versioning": "^0.76.0", + "@typespec/compiler": "^1.9.0", + "@typespec/http": "^1.9.0", + "@typespec/rest": "^0.79.0", + "@typespec/spec-api": "^0.1.0-alpha.12", + "@typespec/spec-coverage-sdk": "^0.1.0-alpha.15", + "@typespec/versioning": "^0.79.0", "ajv": "~8.17.1", "body-parser": "^2.2.0", "deep-equal": "^2.2.0", - "express": "^5.1.0", - "globby": "~15.0.0", - "js-yaml": "^4.1.0", + "express": "^5.2.1", + "globby": "~16.1.0", "micromatch": "^4.0.8", "morgan": "^1.10.0", "multer": "^2.0.1", "picocolors": "~1.1.1", "source-map-support": "~0.5.21", "xml2js": "^0.6.2", + "yaml": "~2.8.2", "yargs": "~18.0.0" }, "bin": { @@ -2554,33 +2403,6 @@ "node": ">=16.0.0" } }, - "node_modules/@typespec/spector/node_modules/@typespec/rest": { - "version": "0.76.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.76.0.tgz", - "integrity": "sha512-6jtQWdcmuKyG9cmqWsJjaq64f6N5B/1DS4X3ZoTNgYhHA27Hnsxo1HZWXcpv7Wl+MxLAZM6kgpML0ugDEZcrYQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=20.0.0" - }, - "peerDependencies": { - "@typespec/compiler": "^1.6.0", - "@typespec/http": "^1.6.0" - } - }, - "node_modules/@typespec/spector/node_modules/@typespec/versioning": { - "version": "0.76.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.76.0.tgz", - "integrity": "sha512-dguO/B+mwlCyenWGG+M+16cMQuGHSTJbU5Z0pyUou1uyWrB1px//s4pW7PKD14S+fPutJE0wTMQm+CctOq6quA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=20.0.0" - }, - "peerDependencies": { - "@typespec/compiler": "^1.6.0" - } - }, "node_modules/@typespec/spector/node_modules/ajv": { "version": "8.17.1", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", @@ -2598,44 +2420,10 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/@typespec/spector/node_modules/globby": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-15.0.0.tgz", - "integrity": "sha512-oB4vkQGqlMl682wL1IlWd02tXCbquGWM4voPEI85QmNKCaw8zGTm1f1rubFgkg3Eli2PtKlFgrnmUqasbQWlkw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@sindresorhus/merge-streams": "^4.0.0", - "fast-glob": "^3.3.3", - "ignore": "^7.0.5", - "path-type": "^6.0.0", - "slash": "^5.1.0", - "unicorn-magic": "^0.3.0" - }, - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@typespec/spector/node_modules/unicorn-magic": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz", - "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@typespec/sse": { - "version": "0.78.0", - "resolved": "https://registry.npmjs.org/@typespec/sse/-/sse-0.78.0.tgz", - "integrity": "sha512-jPARl+e1e/nsDW/1uVsGTzvKmjqezVMyUa13igXxk5nV2ScMdFpH1HhBwTmAhUeaZgY3J81dFHNUnIY67HCrmw==", + "version": "0.79.0", + "resolved": "https://registry.npmjs.org/@typespec/sse/-/sse-0.79.0.tgz", + "integrity": "sha512-YQYlDWCNBza75S360jc51emwntWXMZfkvqXKng+etKP4iCuogJfTX1J8h1yd8tZwkuUNBcklEPCuz3O/+psopg==", "dev": true, "license": "MIT", "peer": true, @@ -2643,29 +2431,30 @@ "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0", - "@typespec/events": "^0.78.0", - "@typespec/http": "^1.8.0", - "@typespec/streams": "^0.78.0" + "@typespec/compiler": "^1.9.0", + "@typespec/events": "^0.79.0", + "@typespec/http": "^1.9.0", + "@typespec/streams": "^0.79.0" } }, "node_modules/@typespec/streams": { - "version": "0.78.0", - "resolved": "https://registry.npmjs.org/@typespec/streams/-/streams-0.78.0.tgz", - "integrity": "sha512-wzh5bVdzh+K+pFQFs/EZkVsTH5TQGi12XwhjxJS0UKRwaW2UwSZeY1HqX07oMMPdYESTbjgMrXcxtn89AlzjvQ==", + "version": "0.79.0", + "resolved": "https://registry.npmjs.org/@typespec/streams/-/streams-0.79.0.tgz", + "integrity": "sha512-nOXpLcEYNdWvLY/6WJ16rD6hGs7bKSmkH+WwgyVwdRON5KJ559quw56pns2DSANw+NaV0lJxJq/8ek5xKCGD6g==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0" + "@typespec/compiler": "^1.9.0" } }, "node_modules/@typespec/ts-http-runtime": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.2.tgz", - "integrity": "sha512-IlqQ/Gv22xUC1r/WQm4StLkYQmaaTsXAhUVsNE0+xiyf0yRFiH5++q78U3bw6bLKDCTmh0uqKB9eG9+Bt75Dkg==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.3.tgz", + "integrity": "sha512-91fp6CAAJSRtH5ja95T1FHSKa8aPW9/Zw6cta81jlZTUw/+Vq8jM/AfF/14h2b71wwR84JUTW/3Y8QPhDAawFA==", "dev": true, "license": "MIT", "dependencies": { @@ -2743,29 +2532,31 @@ } }, "node_modules/@typespec/versioning": { - "version": "0.78.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.78.0.tgz", - "integrity": "sha512-I14X6+IMd0wFMNI8oMFSeFBi2nD4idub+geSO34vuCs4rwuEj3FNzy+rkNkDDvf0+gIUGxeyg7s+YDUcNyiqOA==", + "version": "0.79.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.79.0.tgz", + "integrity": "sha512-mk65zpKNm+ARyHASnre/lp3o3FKzb0P8Nj96ji182JUy7ShrVCCF0u+bC+ZXQ8ZTRza1d0xBjRC/Xr4iM+Uwag==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0" + "@typespec/compiler": "^1.9.0" } }, "node_modules/@typespec/xml": { - "version": "0.78.0", - "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.78.0.tgz", - "integrity": "sha512-KSDhJX6A/Onsu9FKVZtR/xSy5va3k0y9/U4eiZUn91V/LQyMZNwmResPDHEVYk6JqaIH8bbd6ANWPu3nMd7mmw==", + "version": "0.79.0", + "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.79.0.tgz", + "integrity": "sha512-BqbbtkL9xuiAhehHKKUCMtRg0a1vjSvoiAOanvTIuoFq3N8PbKVV3dKTcyI/oS3iCCkJErdu11HQcAoD/VsIsA==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.8.0" + "@typespec/compiler": "^1.9.0" } }, "node_modules/@vitest/coverage-v8": { @@ -2908,6 +2699,7 @@ "integrity": "sha512-hGISOaP18plkzbWEcP/QvtRW1xDXF2+96HbEX6byqQhAUbiS5oH6/9JwW+QsQCIYON2bI6QZBF+2PvOmrRZ9wA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@vitest/utils": "3.2.4", "fflate": "^0.8.2", @@ -2940,19 +2732,19 @@ } }, "node_modules/@vue/reactivity": { - "version": "3.5.26", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.26.tgz", - "integrity": "sha512-9EnYB1/DIiUYYnzlnUBgwU32NNvLp/nhxLXeWRhHUEeWNTn1ECxX8aGO7RTXeX6PPcxe3LLuNBFoJbV4QZ+CFQ==", + "version": "3.5.28", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.28.tgz", + "integrity": "sha512-gr5hEsxvn+RNyu9/9o1WtdYdwDjg5FgjUSBEkZWqgTKlo/fvwZ2+8W6AfKsc9YN2k/+iHYdS9vZYAhpi10kNaw==", "dev": true, "license": "MIT", "dependencies": { - "@vue/shared": "3.5.26" + "@vue/shared": "3.5.28" } }, "node_modules/@vue/shared": { - "version": "3.5.26", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.26.tgz", - "integrity": "sha512-7Z6/y3uFI5PRoKeorTOSXKcDj0MSasfNNltcslbFrPpcw6aXRUALq4IfJlaTRspiWIUOEZbrpM+iQGmCOiWe4A==", + "version": "3.5.28", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.28.tgz", + "integrity": "sha512-cfWa1fCGBxrvaHRhvV3Is0MgmrbSCxYTXCSCau2I0a1Xw1N1pHAvkWCiXPRAqjvToILvguNyEwjevUqAuBQWvQ==", "dev": true, "license": "MIT" }, @@ -3031,16 +2823,13 @@ } }, "node_modules/ansi-regex": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", - "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "node": ">=8" } }, "node_modules/ansi-styles": { @@ -3101,21 +2890,21 @@ } }, "node_modules/ast-v8-to-istanbul": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/ast-v8-to-istanbul/-/ast-v8-to-istanbul-0.3.10.tgz", - "integrity": "sha512-p4K7vMz2ZSk3wN8l5o3y2bJAoZXT3VuJI5OLTATY/01CYWumWvwkUw0SqDBnNq6IiTO3qDa1eSQDibAV8g7XOQ==", + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/ast-v8-to-istanbul/-/ast-v8-to-istanbul-0.3.11.tgz", + "integrity": "sha512-Qya9fkoofMjCBNVdWINMjB5KZvkYfaO9/anwkWnjxibpWUxo5iHl2sOdP7/uAqaRuUYuoo8rDwnbaaKVFxoUvw==", "dev": true, "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "^0.3.31", "estree-walker": "^3.0.3", - "js-tokens": "^9.0.1" + "js-tokens": "^10.0.0" } }, "node_modules/ast-v8-to-istanbul/node_modules/js-tokens": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz", - "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz", + "integrity": "sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==", "dev": true, "license": "MIT" }, @@ -3296,16 +3085,6 @@ } } }, - "node_modules/c8/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/c8/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -3337,19 +3116,6 @@ "node": ">=12" } }, - "node_modules/c8/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/c8/node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -3539,6 +3305,19 @@ "node": ">=20" } }, + "node_modules/cliui/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, "node_modules/cliui/node_modules/emoji-regex": { "version": "10.6.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", @@ -3558,10 +3337,26 @@ "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=18" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, "node_modules/color-convert": { @@ -3728,9 +3523,9 @@ } }, "node_modules/default-browser": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.4.0.tgz", - "integrity": "sha512-XDuvSq38Hr1MdN47EDvYtx3U0MTqpCEn+F6ft8z2vYDzMrvQhVp0ui9oQdqW3MvK3vqUETglt1tVGgjLuJ5izg==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.0.tgz", + "integrity": "sha512-H9LMLr5zwIbSxrmvikGuI/5KGhZ8E2zH3stkMgM5LpOWDutGM2JZaj460Udnf1a+946zc7YBgrqEWwbk7zHvGw==", "dev": true, "license": "MIT", "dependencies": { @@ -3970,9 +3765,9 @@ } }, "node_modules/esbuild": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.2.tgz", - "integrity": "sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==", + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz", + "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -3983,32 +3778,32 @@ "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.27.2", - "@esbuild/android-arm": "0.27.2", - "@esbuild/android-arm64": "0.27.2", - "@esbuild/android-x64": "0.27.2", - "@esbuild/darwin-arm64": "0.27.2", - "@esbuild/darwin-x64": "0.27.2", - "@esbuild/freebsd-arm64": "0.27.2", - "@esbuild/freebsd-x64": "0.27.2", - "@esbuild/linux-arm": "0.27.2", - "@esbuild/linux-arm64": "0.27.2", - "@esbuild/linux-ia32": "0.27.2", - "@esbuild/linux-loong64": "0.27.2", - "@esbuild/linux-mips64el": "0.27.2", - "@esbuild/linux-ppc64": "0.27.2", - "@esbuild/linux-riscv64": "0.27.2", - "@esbuild/linux-s390x": "0.27.2", - "@esbuild/linux-x64": "0.27.2", - "@esbuild/netbsd-arm64": "0.27.2", - "@esbuild/netbsd-x64": "0.27.2", - "@esbuild/openbsd-arm64": "0.27.2", - "@esbuild/openbsd-x64": "0.27.2", - "@esbuild/openharmony-arm64": "0.27.2", - "@esbuild/sunos-x64": "0.27.2", - "@esbuild/win32-arm64": "0.27.2", - "@esbuild/win32-ia32": "0.27.2", - "@esbuild/win32-x64": "0.27.2" + "@esbuild/aix-ppc64": "0.27.3", + "@esbuild/android-arm": "0.27.3", + "@esbuild/android-arm64": "0.27.3", + "@esbuild/android-x64": "0.27.3", + "@esbuild/darwin-arm64": "0.27.3", + "@esbuild/darwin-x64": "0.27.3", + "@esbuild/freebsd-arm64": "0.27.3", + "@esbuild/freebsd-x64": "0.27.3", + "@esbuild/linux-arm": "0.27.3", + "@esbuild/linux-arm64": "0.27.3", + "@esbuild/linux-ia32": "0.27.3", + "@esbuild/linux-loong64": "0.27.3", + "@esbuild/linux-mips64el": "0.27.3", + "@esbuild/linux-ppc64": "0.27.3", + "@esbuild/linux-riscv64": "0.27.3", + "@esbuild/linux-s390x": "0.27.3", + "@esbuild/linux-x64": "0.27.3", + "@esbuild/netbsd-arm64": "0.27.3", + "@esbuild/netbsd-x64": "0.27.3", + "@esbuild/openbsd-arm64": "0.27.3", + "@esbuild/openbsd-x64": "0.27.3", + "@esbuild/openharmony-arm64": "0.27.3", + "@esbuild/sunos-x64": "0.27.3", + "@esbuild/win32-arm64": "0.27.3", + "@esbuild/win32-ia32": "0.27.3", + "@esbuild/win32-x64": "0.27.3" } }, "node_modules/escalade": { @@ -4154,9 +3949,9 @@ "license": "BSD-3-Clause" }, "node_modules/fast-xml-parser": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.3.3.tgz", - "integrity": "sha512-2O3dkPAAC6JavuMm8+4+pgTk+5hoAs+CjZ+sWcQLkX9+/tHRuTkQh/Oaifr8qDmZ8iEHb771Ea6G8CdwkrgvYA==", + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.3.5.tgz", + "integrity": "sha512-JeaA2Vm9ffQKp9VjvfzObuMCjUYAp5WDYhRYL5LrBPY/jUDlUtOvDfot0vKSkB9tuX885BDHjtw4fZadD95wnA==", "dev": true, "funding": [ { @@ -4166,7 +3961,7 @@ ], "license": "MIT", "dependencies": { - "strnum": "^2.1.0" + "strnum": "^2.1.2" }, "bin": { "fxparser": "src/cli/cli.js" @@ -4417,6 +4212,7 @@ "version": "11.1.0", "resolved": "https://registry.npmjs.org/glob/-/glob-11.1.0.tgz", "integrity": "sha512-vuNwKSaKiqm7g0THUBu2x7ckSs3XJLXE+2ssL7/MfTGPLLcrJQ/4Uq1CjPTtO5cCIiRxqvN6Twy1qOwhL0Xjcw==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { @@ -4450,26 +4246,10 @@ "node": ">= 6" } }, - "node_modules/glob/node_modules/minimatch": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", - "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/brace-expansion": "^5.0.0" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/globby": { - "version": "16.0.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-16.0.0.tgz", - "integrity": "sha512-ejy4TJFga99yW6Q0uhM3pFawKWZmtZzZD/v/GwI5+9bCV5Ew+D2pSND6W7fUes5UykqSsJkUfxFVdRh7Q1+P3Q==", + "version": "16.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-16.1.0.tgz", + "integrity": "sha512-+A4Hq7m7Ze592k9gZRy4gJ27DrXRNnC1vPjxTt1qQxEY8RxagBkBxivkCwg7FxSTG0iLLEMaUx13oOr0R2/qcQ==", "dev": true, "license": "MIT", "dependencies": { @@ -5176,13 +4956,13 @@ } }, "node_modules/jackspeak": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.1.tgz", - "integrity": "sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.2.3.tgz", + "integrity": "sha512-ykkVRwrYvFm1nb2AJfKKYPr0emF6IiXDYUaFx4Zn9ZuIH7MrzEZ3sD5RlqGXNRpHtvUHJyOnCEFxOlNDtGo7wg==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "@isaacs/cliui": "^8.0.2" + "@isaacs/cliui": "^9.0.0" }, "engines": { "node": "20 || >=22" @@ -5205,26 +4985,6 @@ "dev": true, "license": "MIT" }, - "node_modules/js-yaml": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", - "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/js-yaml/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, - "license": "Python-2.0" - }, "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -5381,9 +5141,9 @@ "license": "MIT" }, "node_modules/lru-cache": { - "version": "11.2.4", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.4.tgz", - "integrity": "sha512-B5Y16Jr9LB9dHVkh6ZevG+vAbOsNOYCX+sXvFWFu7B3Iz5mijW3zdbMyhsh8ANd2mSWBYdJgnqi+mL7/LrOPYg==", + "version": "11.2.6", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz", + "integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==", "dev": true, "license": "BlueOak-1.0.0", "engines": { @@ -5552,13 +5312,13 @@ } }, "node_modules/minimatch": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", - "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.2.tgz", + "integrity": "sha512-fu656aJ0n2kcXwsnwnv9g24tkU5uSmOlTjd6WyyaKm2Z+h1qmY6bAjrcaIxF/BslFqbZ8UBtbJi7KgQOZD2PTw==", "dev": true, - "license": "ISC", + "license": "BlueOak-1.0.0", "dependencies": { - "@isaacs/brace-expansion": "^5.0.0" + "@isaacs/brace-expansion": "^5.0.1" }, "engines": { "node": "20 || >=22" @@ -6019,19 +5779,6 @@ "url": "https://opencollective.com/express" } }, - "node_modules/path-type": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-6.0.0.tgz", - "integrity": "sha512-Vj7sf++t5pBD637NSfkxpHSMfWaeig5+DKWLhcqIYx6mWQz5hdJTGDVMQiJcw1ZYkhs7AazKDGpRVji1LJCZUQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/pathe": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", @@ -6119,9 +5866,9 @@ } }, "node_modules/prettier": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.7.4.tgz", - "integrity": "sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA==", + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz", + "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", "dev": true, "license": "MIT", "bin": { @@ -6340,9 +6087,9 @@ } }, "node_modules/rollup": { - "version": "4.55.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.55.1.tgz", - "integrity": "sha512-wDv/Ht1BNHB4upNbK74s9usvl7hObDnvVzknxqY/E/O3X6rW1U1rV1aENEfJ54eFZDTNo7zv1f5N4edCluH7+A==", + "version": "4.57.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.57.1.tgz", + "integrity": "sha512-oQL6lgK3e2QZeQ7gcgIkS2YZPg5slw37hYufJ3edKlfQSGGm8ICoxswK15ntSzF/a8+h7ekRy7k7oWc3BQ7y8A==", "dev": true, "license": "MIT", "dependencies": { @@ -6356,31 +6103,31 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.55.1", - "@rollup/rollup-android-arm64": "4.55.1", - "@rollup/rollup-darwin-arm64": "4.55.1", - "@rollup/rollup-darwin-x64": "4.55.1", - "@rollup/rollup-freebsd-arm64": "4.55.1", - "@rollup/rollup-freebsd-x64": "4.55.1", - "@rollup/rollup-linux-arm-gnueabihf": "4.55.1", - "@rollup/rollup-linux-arm-musleabihf": "4.55.1", - "@rollup/rollup-linux-arm64-gnu": "4.55.1", - "@rollup/rollup-linux-arm64-musl": "4.55.1", - "@rollup/rollup-linux-loong64-gnu": "4.55.1", - "@rollup/rollup-linux-loong64-musl": "4.55.1", - "@rollup/rollup-linux-ppc64-gnu": "4.55.1", - "@rollup/rollup-linux-ppc64-musl": "4.55.1", - "@rollup/rollup-linux-riscv64-gnu": "4.55.1", - "@rollup/rollup-linux-riscv64-musl": "4.55.1", - "@rollup/rollup-linux-s390x-gnu": "4.55.1", - "@rollup/rollup-linux-x64-gnu": "4.55.1", - "@rollup/rollup-linux-x64-musl": "4.55.1", - "@rollup/rollup-openbsd-x64": "4.55.1", - "@rollup/rollup-openharmony-arm64": "4.55.1", - "@rollup/rollup-win32-arm64-msvc": "4.55.1", - "@rollup/rollup-win32-ia32-msvc": "4.55.1", - "@rollup/rollup-win32-x64-gnu": "4.55.1", - "@rollup/rollup-win32-x64-msvc": "4.55.1", + "@rollup/rollup-android-arm-eabi": "4.57.1", + "@rollup/rollup-android-arm64": "4.57.1", + "@rollup/rollup-darwin-arm64": "4.57.1", + "@rollup/rollup-darwin-x64": "4.57.1", + "@rollup/rollup-freebsd-arm64": "4.57.1", + "@rollup/rollup-freebsd-x64": "4.57.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.57.1", + "@rollup/rollup-linux-arm-musleabihf": "4.57.1", + "@rollup/rollup-linux-arm64-gnu": "4.57.1", + "@rollup/rollup-linux-arm64-musl": "4.57.1", + "@rollup/rollup-linux-loong64-gnu": "4.57.1", + "@rollup/rollup-linux-loong64-musl": "4.57.1", + "@rollup/rollup-linux-ppc64-gnu": "4.57.1", + "@rollup/rollup-linux-ppc64-musl": "4.57.1", + "@rollup/rollup-linux-riscv64-gnu": "4.57.1", + "@rollup/rollup-linux-riscv64-musl": "4.57.1", + "@rollup/rollup-linux-s390x-gnu": "4.57.1", + "@rollup/rollup-linux-x64-gnu": "4.57.1", + "@rollup/rollup-linux-x64-musl": "4.57.1", + "@rollup/rollup-openbsd-x64": "4.57.1", + "@rollup/rollup-openharmony-arm64": "4.57.1", + "@rollup/rollup-win32-arm64-msvc": "4.57.1", + "@rollup/rollup-win32-ia32-msvc": "4.57.1", + "@rollup/rollup-win32-x64-gnu": "4.57.1", + "@rollup/rollup-win32-x64-msvc": "4.57.1", "fsevents": "~2.3.2" } }, @@ -6901,40 +6648,7 @@ "node": ">=8" } }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width/node_modules/strip-ansi": { + "node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", @@ -6947,22 +6661,6 @@ "node": ">=8" } }, - "node_modules/strip-ansi": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", - "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, "node_modules/strip-ansi-cjs": { "name": "strip-ansi", "version": "6.0.1", @@ -6977,16 +6675,6 @@ "node": ">=8" } }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -7111,10 +6799,49 @@ "node": ">=18" } }, + "node_modules/test-exclude/node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/test-exclude/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/test-exclude/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, "node_modules/test-exclude/node_modules/glob": { "version": "10.5.0", "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", "dev": true, "license": "ISC", "dependencies": { @@ -7188,6 +6915,58 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/test-exclude/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/test-exclude/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/test-exclude/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/tinybench": { "version": "2.9.0", "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", @@ -7243,6 +7022,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -7367,9 +7147,9 @@ } }, "node_modules/typedoc-plugin-markdown": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-4.9.0.tgz", - "integrity": "sha512-9Uu4WR9L7ZBgAl60N/h+jqmPxxvnC9nQAlnnO/OujtG2ubjnKTVUFY1XDhcMY+pCqlX3N2HsQM2QTYZIU9tJuw==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-4.10.0.tgz", + "integrity": "sha512-psrg8Rtnv4HPWCsoxId+MzEN8TVK5jeKCnTbnGAbTBqcDapR9hM41bJT/9eAyKn9C2MDG9Qjh3MkltAYuLDoXg==", "dev": true, "license": "MIT", "engines": { @@ -7401,6 +7181,7 @@ "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "dev": true, "license": "Apache-2.0", + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -7630,6 +7411,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -7643,6 +7425,7 @@ "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/chai": "^5.2.2", "@vitest/expect": "3.2.4", @@ -7827,9 +7610,9 @@ } }, "node_modules/which-typed-array": { - "version": "1.1.19", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", - "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", + "version": "1.1.20", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.20.tgz", + "integrity": "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==", "dev": true, "license": "MIT", "dependencies": { @@ -7902,16 +7685,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -7928,17 +7701,17 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", "dev": true, "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, "node_modules/wrap-ansi/node_modules/emoji-regex": { @@ -7966,6 +7739,22 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -8087,6 +7876,19 @@ "node": ">=12" } }, + "node_modules/yargs/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, "node_modules/yargs/node_modules/emoji-regex": { "version": "10.6.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", @@ -8112,6 +7914,22 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/yargs/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, "node_modules/yargs/node_modules/yargs-parser": { "version": "22.0.0", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", diff --git a/packages/http-client-csharp/package.json b/packages/http-client-csharp/package.json index c234336a297..53ff38eff97 100644 --- a/packages/http-client-csharp/package.json +++ b/packages/http-client-csharp/package.json @@ -52,31 +52,34 @@ "emitter/lib/*.tsp" ], "peerDependencies": { - "@azure-tools/typespec-client-generator-core": ">=0.64.3 < 0.65.0 || ~0.65.0-0", - "@typespec/compiler": "^1.8.0", - "@typespec/http": "^1.8.0", - "@typespec/openapi": "^1.8.0", - "@typespec/rest": ">=0.78.0 <0.79.0 || ~0.79.0-0", - "@typespec/streams": ">=0.78.0 <0.79.0 || ~0.79.0-0", - "@typespec/versioning": ">=0.78.0 <0.79.0 || ~0.79.0-0" + "@azure-tools/typespec-client-generator-core": ">=0.65.0 < 0.66.0 || ~0.66.0-0", + "@typespec/compiler": "^1.9.0", + "@typespec/http": "^1.9.0", + "@typespec/openapi": "^1.9.0", + "@typespec/rest": ">=0.79.0 <0.80.0 || ~0.80.0-0", + "@typespec/sse": ">=0.79.0 <0.80.0 || ~0.80.0-0", + "@typespec/streams": ">=0.79.0 <0.80.0 || ~0.80.0-0", + "@typespec/versioning": ">=0.79.0 <0.80.0 || ~0.80.0-0" }, "devDependencies": { - "@azure-tools/azure-http-specs": "0.1.0-alpha.35", - "@azure-tools/typespec-client-generator-core": "0.64.4", + "@azure-tools/azure-http-specs": "0.1.0-alpha.37", + "@azure-tools/typespec-azure-core": "0.65.0", + "@azure-tools/typespec-client-generator-core": "0.65.0", "@microsoft/api-extractor": "^7.52.2", "@types/node": "~22.12.0", - "@typespec/compiler": "1.8.0", - "@typespec/http": "1.8.0", - "@typespec/http-specs": "0.1.0-alpha.30", - "@typespec/json-schema": "1.8.0", - "@typespec/library-linter": "0.78.0", - "@typespec/openapi": "1.8.0", - "@typespec/rest": "0.78.0", - "@typespec/spector": "0.1.0-alpha.20", - "@typespec/streams": "0.78.0", + "@typespec/compiler": "1.9.0", + "@typespec/http": "1.9.0", + "@typespec/http-specs": "0.1.0-alpha.32", + "@typespec/json-schema": "1.9.0", + "@typespec/library-linter": "0.79.0", + "@typespec/openapi": "1.9.0", + "@typespec/rest": "0.79.0", + "@typespec/spector": "0.1.0-alpha.23", + "@typespec/sse": "0.79.0", + "@typespec/streams": "0.79.0", "@typespec/tspd": "0.73.1", - "@typespec/versioning": "0.78.0", - "@typespec/xml": "0.78.0", + "@typespec/versioning": "0.79.0", + "@typespec/xml": "0.79.0", "@vitest/coverage-v8": "^3.0.5", "@vitest/ui": "^3.0.5", "c8": "^10.1.2", From 7d755521c458d08c7d9bc946946d0be57e4a6c05 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 23:43:10 +0000 Subject: [PATCH 03/10] Fix enum array encoding issue for TypeSpec 1.9.0 compatibility Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> --- .../src/Generated/AnimalOperations.cs | 21 ++++++++++++++++++ .../src/Generated/DogOperations.cs | 21 ++++++++++++++++++ .../src/Generated/PetOperations.cs | 21 ++++++++++++++++++ .../src/Generated/PlantOperations.cs | 21 ++++++++++++++++++ .../SampleTypeSpecClient.RestClient.cs | 5 ++++- .../MrwSerializationTypeDefinition.cs | 4 +--- .../src/Generated/AnimalOperations.cs | 21 ++++++++++++++++++ .../src/Generated/DogOperations.cs | 21 ++++++++++++++++++ .../src/Generated/PetOperations.cs | 21 ++++++++++++++++++ .../src/Generated/PlantOperations.cs | 21 ++++++++++++++++++ .../SampleTypeSpecClient.RestClient.cs | 5 ++++- .../Local/Sample-TypeSpec/tspCodeModel.json | 22 +++++++++++-------- 12 files changed, 190 insertions(+), 14 deletions(-) diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/AnimalOperations.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/AnimalOperations.cs index 8fa8739984f..b5fc44d67a0 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/AnimalOperations.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/AnimalOperations.cs @@ -29,6 +29,27 @@ internal AnimalOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } + /// Initializes a new instance of AnimalOperations. + /// Service endpoint. + /// is null. + public AnimalOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) + { + } + + /// Initializes a new instance of AnimalOperations. + /// Service endpoint. + /// The options for configuring the client. + /// is null. + public AnimalOperations(Uri endpoint, SampleTypeSpecClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + + options ??= new SampleTypeSpecClientOptions(); + + _endpoint = endpoint; + Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(AnimalOperations).Assembly) }, Array.Empty()); + } + /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/DogOperations.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/DogOperations.cs index c80c36367aa..d27a6941191 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/DogOperations.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/DogOperations.cs @@ -29,6 +29,27 @@ internal DogOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } + /// Initializes a new instance of DogOperations. + /// Service endpoint. + /// is null. + public DogOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) + { + } + + /// Initializes a new instance of DogOperations. + /// Service endpoint. + /// The options for configuring the client. + /// is null. + public DogOperations(Uri endpoint, SampleTypeSpecClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + + options ??= new SampleTypeSpecClientOptions(); + + _endpoint = endpoint; + Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(DogOperations).Assembly) }, Array.Empty()); + } + /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PetOperations.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PetOperations.cs index 395ff6b18d9..e71c16d9be8 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PetOperations.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PetOperations.cs @@ -29,6 +29,27 @@ internal PetOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } + /// Initializes a new instance of PetOperations. + /// Service endpoint. + /// is null. + public PetOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) + { + } + + /// Initializes a new instance of PetOperations. + /// Service endpoint. + /// The options for configuring the client. + /// is null. + public PetOperations(Uri endpoint, SampleTypeSpecClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + + options ??= new SampleTypeSpecClientOptions(); + + _endpoint = endpoint; + Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(PetOperations).Assembly) }, Array.Empty()); + } + /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PlantOperations.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PlantOperations.cs index 1119879cbad..79d7263296e 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PlantOperations.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PlantOperations.cs @@ -29,6 +29,27 @@ internal PlantOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } + /// Initializes a new instance of PlantOperations. + /// Service endpoint. + /// is null. + public PlantOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) + { + } + + /// Initializes a new instance of PlantOperations. + /// Service endpoint. + /// The options for configuring the client. + /// is null. + public PlantOperations(Uri endpoint, SampleTypeSpecClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + + options ??= new SampleTypeSpecClientOptions(); + + _endpoint = endpoint; + Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(PlantOperations).Assembly) }, Array.Empty()); + } + /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/SampleTypeSpecClient.RestClient.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/SampleTypeSpecClient.RestClient.cs index 6502b035953..36648a475bc 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/SampleTypeSpecClient.RestClient.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/SampleTypeSpecClient.RestClient.cs @@ -270,7 +270,10 @@ internal PipelineMessage CreateWithApiVersionRequest(string p1, RequestOptions o ClientUriBuilder uri = new ClientUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/WithApiVersion", false); - uri.AppendQuery("apiVersion", _apiVersion, true); + if (_apiVersion != null) + { + uri.AppendQuery("apiVersion", _apiVersion, true); + } PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier204); PipelineRequest request = message.Request; request.Headers.Set("p1", p1); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.cs index 763fd38870f..53d31ce7956 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.cs @@ -2023,9 +2023,7 @@ private MethodBodyStatement[] CreateEncodedArrayDeserializationStatements( var finalExpression = propertyType.IsArray ? selectExpression.Invoke(nameof(Enumerable.ToArray)) - : propertyType.IsList - ? New.Instance(typeof(List<>).MakeGenericType(elementType.FrameworkType), selectExpression) - : New.Instance(propertyType.PropertyInitializationType, selectExpression); + : New.Instance(propertyType.PropertyInitializationType, selectExpression); createArrayStatement = variableExpression.Assign(finalExpression).Terminate(); } else diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/AnimalOperations.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/AnimalOperations.cs index 10d3b31fe97..00956e11741 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/AnimalOperations.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/AnimalOperations.cs @@ -32,6 +32,27 @@ internal AnimalOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } + /// Initializes a new instance of AnimalOperations. + /// Service endpoint. + /// is null. + public AnimalOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) + { + } + + /// Initializes a new instance of AnimalOperations. + /// Service endpoint. + /// The options for configuring the client. + /// is null. + public AnimalOperations(Uri endpoint, SampleTypeSpecClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + + options ??= new SampleTypeSpecClientOptions(); + + _endpoint = endpoint; + Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(AnimalOperations).Assembly) }, Array.Empty()); + } + /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/DogOperations.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/DogOperations.cs index a45d14cb50f..f2c37b9acdd 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/DogOperations.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/DogOperations.cs @@ -32,6 +32,27 @@ internal DogOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } + /// Initializes a new instance of DogOperations. + /// Service endpoint. + /// is null. + public DogOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) + { + } + + /// Initializes a new instance of DogOperations. + /// Service endpoint. + /// The options for configuring the client. + /// is null. + public DogOperations(Uri endpoint, SampleTypeSpecClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + + options ??= new SampleTypeSpecClientOptions(); + + _endpoint = endpoint; + Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(DogOperations).Assembly) }, Array.Empty()); + } + /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PetOperations.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PetOperations.cs index 7f7531baa9d..5c038750306 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PetOperations.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PetOperations.cs @@ -32,6 +32,27 @@ internal PetOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } + /// Initializes a new instance of PetOperations. + /// Service endpoint. + /// is null. + public PetOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) + { + } + + /// Initializes a new instance of PetOperations. + /// Service endpoint. + /// The options for configuring the client. + /// is null. + public PetOperations(Uri endpoint, SampleTypeSpecClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + + options ??= new SampleTypeSpecClientOptions(); + + _endpoint = endpoint; + Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(PetOperations).Assembly) }, Array.Empty()); + } + /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PlantOperations.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PlantOperations.cs index 184684e4ba6..f8e1d0345ed 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PlantOperations.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PlantOperations.cs @@ -32,6 +32,27 @@ internal PlantOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } + /// Initializes a new instance of PlantOperations. + /// Service endpoint. + /// is null. + public PlantOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) + { + } + + /// Initializes a new instance of PlantOperations. + /// Service endpoint. + /// The options for configuring the client. + /// is null. + public PlantOperations(Uri endpoint, SampleTypeSpecClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + + options ??= new SampleTypeSpecClientOptions(); + + _endpoint = endpoint; + Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(PlantOperations).Assembly) }, Array.Empty()); + } + /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecClient.RestClient.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecClient.RestClient.cs index 4e01f74b7c1..501a6a5c44d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecClient.RestClient.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecClient.RestClient.cs @@ -273,7 +273,10 @@ internal PipelineMessage CreateWithApiVersionRequest(string p1, RequestOptions o ClientUriBuilder uri = new ClientUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/WithApiVersion", false); - uri.AppendQuery("apiVersion", _apiVersion, true); + if (_apiVersion != null) + { + uri.AppendQuery("apiVersion", _apiVersion, true); + } PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier204); PipelineRequest request = message.Request; request.Headers.Set("p1", p1); diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json index a7e1519244a..f7d2119ab34 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json @@ -5314,7 +5314,8 @@ }, "valueType": { "$ref": "437" - } + }, + "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns1" }, { "$id": "439", @@ -5327,7 +5328,8 @@ }, "valueType": { "$ref": "437" - } + }, + "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns2" } ], "isFixed": true, @@ -5344,7 +5346,8 @@ }, "valueType": { "$ref": "437" - } + }, + "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns1" } } }, @@ -5398,7 +5401,8 @@ }, "valueType": { "$ref": "437" - } + }, + "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns2" } } } @@ -9570,7 +9574,7 @@ }, "value": "2024-08-16-preview" }, - "optional": false, + "optional": true, "scope": "Method", "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion.apiVersion", "readOnly": false, @@ -11206,7 +11210,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.sampleTypeSpecUrl" } ], - "initializedBy": 0, + "initializedBy": -1, "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations", "apiVersions": [ @@ -11601,7 +11605,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.sampleTypeSpecUrl" } ], - "initializedBy": 0, + "initializedBy": -1, "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations", "apiVersions": [ @@ -11819,7 +11823,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.sampleTypeSpecUrl" } ], - "initializedBy": 0, + "initializedBy": -1, "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations", "apiVersions": [ @@ -11961,7 +11965,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.sampleTypeSpecUrl" } ], - "initializedBy": 0, + "initializedBy": -1, "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations", "apiVersions": [ From ac66f068e556217bfe42d1934dbdcd00339f12ab Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 15:54:55 +0000 Subject: [PATCH 04/10] Bump TCGC to 0.65.1 and regenerate test projects Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com> --- .../src/Generated/AnimalOperations.cs | 21 - .../src/Generated/DogOperations.cs | 21 - .../src/Generated/PetOperations.cs | 21 - .../src/Generated/PlantOperations.cs | 21 - .../src/Generated/AnimalOperations.cs | 21 - .../src/Generated/DogOperations.cs | 21 - .../src/Generated/PetOperations.cs | 21 - .../src/Generated/PlantOperations.cs | 21 - .../Local/Sample-TypeSpec/tspCodeModel.json | 8 +- .../http/documentation/tspCodeModel.json | 2 +- .../src/Generated/EncodeArrayModelFactory.cs | 16 + .../array/src/Generated/Models/Colors.cs | 16 + .../Generated/Models/ColorsExtensibleEnum.cs | 38 + ...elimitedEnumArrayProperty.Serialization.cs | 38 + .../Models/CommaDelimitedEnumArrayProperty.cs | 15 + ...tensibleEnumArrayProperty.Serialization.cs | 38 + ...mmaDelimitedExtensibleEnumArrayProperty.cs | 15 + .../Generated/Models/Encode_ArrayContext.cs | 8 + ...elimitedEnumArrayProperty.Serialization.cs | 38 + .../NewlineDelimitedEnumArrayProperty.cs | 15 + ...tensibleEnumArrayProperty.Serialization.cs | 38 + ...ineDelimitedExtensibleEnumArrayProperty.cs | 15 + ...elimitedEnumArrayProperty.Serialization.cs | 38 + .../Models/PipeDelimitedEnumArrayProperty.cs | 15 + ...tensibleEnumArrayProperty.Serialization.cs | 38 + ...ipeDelimitedExtensibleEnumArrayProperty.cs | 15 + ...elimitedEnumArrayProperty.Serialization.cs | 38 + .../Models/SpaceDelimitedEnumArrayProperty.cs | 15 + ...tensibleEnumArrayProperty.Serialization.cs | 38 + ...aceDelimitedExtensibleEnumArrayProperty.cs | 15 + .../encode/array/src/Generated/Property.cs | 64 + .../http/encode/array/tspCodeModel.json | 2751 +- .../multipart/src/Generated/FormData.cs | 3 + .../multipart/src/Generated/FormDataFile.cs | 29 + .../Models/PayloadMultiPartContext.cs | 1 + .../http/payload/multipart/tspCodeModel.json | 1808 +- .../Models/PayloadPageableContext.cs | 1 + .../Generated/Models/XmlPet.Serialization.cs | 16 + .../pageable/src/Generated/Models/XmlPet.cs | 13 + .../pageable/src/Generated/PageableClient.cs | 3 + .../Generated/PayloadPageableModelFactory.cs | 2 + .../pageable/src/Generated/XmlPagination.cs | 34 + .../http/payload/pageable/tspCodeModel.json | 1206 +- .../versions/versioned/tspCodeModel.json | 2 +- .../src/Generated/ModelProperties.cs | 8 + .../Models/ModelWithList.Serialization.cs | 36 + .../src/Generated/Models/ModelWithList.cs | 13 + .../Generated/Models/SpecialWordsContext.cs | 1 + .../src/Generated/SpecialWordsModelFactory.cs | 2 + .../http/special-words/tspCodeModel.json | 1785 +- .../Spector/http/type/file/Configuration.json | 3 + .../Spector/http/type/file/tspCodeModel.json | 51127 ++++++++++++++++ packages/http-client-csharp/package-lock.json | 11 +- packages/http-client-csharp/package.json | 4 +- 54 files changed, 57555 insertions(+), 2048 deletions(-) create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/Colors.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/ColorsExtensibleEnum.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedEnumArrayProperty.Serialization.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedEnumArrayProperty.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedExtensibleEnumArrayProperty.Serialization.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedExtensibleEnumArrayProperty.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedEnumArrayProperty.Serialization.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedEnumArrayProperty.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedExtensibleEnumArrayProperty.Serialization.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedExtensibleEnumArrayProperty.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedEnumArrayProperty.Serialization.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedEnumArrayProperty.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedExtensibleEnumArrayProperty.Serialization.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedExtensibleEnumArrayProperty.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedEnumArrayProperty.Serialization.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedEnumArrayProperty.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedExtensibleEnumArrayProperty.Serialization.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedExtensibleEnumArrayProperty.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataFile.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/XmlPet.Serialization.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/XmlPet.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/XmlPagination.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ModelWithList.Serialization.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ModelWithList.cs create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/type/file/Configuration.json create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/type/file/tspCodeModel.json diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/AnimalOperations.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/AnimalOperations.cs index b5fc44d67a0..8fa8739984f 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/AnimalOperations.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/AnimalOperations.cs @@ -29,27 +29,6 @@ internal AnimalOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } - /// Initializes a new instance of AnimalOperations. - /// Service endpoint. - /// is null. - public AnimalOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) - { - } - - /// Initializes a new instance of AnimalOperations. - /// Service endpoint. - /// The options for configuring the client. - /// is null. - public AnimalOperations(Uri endpoint, SampleTypeSpecClientOptions options) - { - Argument.AssertNotNull(endpoint, nameof(endpoint)); - - options ??= new SampleTypeSpecClientOptions(); - - _endpoint = endpoint; - Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(AnimalOperations).Assembly) }, Array.Empty()); - } - /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/DogOperations.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/DogOperations.cs index d27a6941191..c80c36367aa 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/DogOperations.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/DogOperations.cs @@ -29,27 +29,6 @@ internal DogOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } - /// Initializes a new instance of DogOperations. - /// Service endpoint. - /// is null. - public DogOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) - { - } - - /// Initializes a new instance of DogOperations. - /// Service endpoint. - /// The options for configuring the client. - /// is null. - public DogOperations(Uri endpoint, SampleTypeSpecClientOptions options) - { - Argument.AssertNotNull(endpoint, nameof(endpoint)); - - options ??= new SampleTypeSpecClientOptions(); - - _endpoint = endpoint; - Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(DogOperations).Assembly) }, Array.Empty()); - } - /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PetOperations.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PetOperations.cs index e71c16d9be8..395ff6b18d9 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PetOperations.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PetOperations.cs @@ -29,27 +29,6 @@ internal PetOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } - /// Initializes a new instance of PetOperations. - /// Service endpoint. - /// is null. - public PetOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) - { - } - - /// Initializes a new instance of PetOperations. - /// Service endpoint. - /// The options for configuring the client. - /// is null. - public PetOperations(Uri endpoint, SampleTypeSpecClientOptions options) - { - Argument.AssertNotNull(endpoint, nameof(endpoint)); - - options ??= new SampleTypeSpecClientOptions(); - - _endpoint = endpoint; - Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(PetOperations).Assembly) }, Array.Empty()); - } - /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PlantOperations.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PlantOperations.cs index 79d7263296e..1119879cbad 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PlantOperations.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PlantOperations.cs @@ -29,27 +29,6 @@ internal PlantOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } - /// Initializes a new instance of PlantOperations. - /// Service endpoint. - /// is null. - public PlantOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) - { - } - - /// Initializes a new instance of PlantOperations. - /// Service endpoint. - /// The options for configuring the client. - /// is null. - public PlantOperations(Uri endpoint, SampleTypeSpecClientOptions options) - { - Argument.AssertNotNull(endpoint, nameof(endpoint)); - - options ??= new SampleTypeSpecClientOptions(); - - _endpoint = endpoint; - Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(PlantOperations).Assembly) }, Array.Empty()); - } - /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/AnimalOperations.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/AnimalOperations.cs index 00956e11741..10d3b31fe97 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/AnimalOperations.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/AnimalOperations.cs @@ -32,27 +32,6 @@ internal AnimalOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } - /// Initializes a new instance of AnimalOperations. - /// Service endpoint. - /// is null. - public AnimalOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) - { - } - - /// Initializes a new instance of AnimalOperations. - /// Service endpoint. - /// The options for configuring the client. - /// is null. - public AnimalOperations(Uri endpoint, SampleTypeSpecClientOptions options) - { - Argument.AssertNotNull(endpoint, nameof(endpoint)); - - options ??= new SampleTypeSpecClientOptions(); - - _endpoint = endpoint; - Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(AnimalOperations).Assembly) }, Array.Empty()); - } - /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/DogOperations.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/DogOperations.cs index f2c37b9acdd..a45d14cb50f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/DogOperations.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/DogOperations.cs @@ -32,27 +32,6 @@ internal DogOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } - /// Initializes a new instance of DogOperations. - /// Service endpoint. - /// is null. - public DogOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) - { - } - - /// Initializes a new instance of DogOperations. - /// Service endpoint. - /// The options for configuring the client. - /// is null. - public DogOperations(Uri endpoint, SampleTypeSpecClientOptions options) - { - Argument.AssertNotNull(endpoint, nameof(endpoint)); - - options ??= new SampleTypeSpecClientOptions(); - - _endpoint = endpoint; - Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(DogOperations).Assembly) }, Array.Empty()); - } - /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PetOperations.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PetOperations.cs index 5c038750306..7f7531baa9d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PetOperations.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PetOperations.cs @@ -32,27 +32,6 @@ internal PetOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } - /// Initializes a new instance of PetOperations. - /// Service endpoint. - /// is null. - public PetOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) - { - } - - /// Initializes a new instance of PetOperations. - /// Service endpoint. - /// The options for configuring the client. - /// is null. - public PetOperations(Uri endpoint, SampleTypeSpecClientOptions options) - { - Argument.AssertNotNull(endpoint, nameof(endpoint)); - - options ??= new SampleTypeSpecClientOptions(); - - _endpoint = endpoint; - Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(PetOperations).Assembly) }, Array.Empty()); - } - /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PlantOperations.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PlantOperations.cs index f8e1d0345ed..184684e4ba6 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PlantOperations.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/PlantOperations.cs @@ -32,27 +32,6 @@ internal PlantOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } - /// Initializes a new instance of PlantOperations. - /// Service endpoint. - /// is null. - public PlantOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) - { - } - - /// Initializes a new instance of PlantOperations. - /// Service endpoint. - /// The options for configuring the client. - /// is null. - public PlantOperations(Uri endpoint, SampleTypeSpecClientOptions options) - { - Argument.AssertNotNull(endpoint, nameof(endpoint)); - - options ??= new SampleTypeSpecClientOptions(); - - _endpoint = endpoint; - Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(PlantOperations).Assembly) }, Array.Empty()); - } - /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json index f7d2119ab34..a4b8c055c07 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json @@ -11210,7 +11210,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.sampleTypeSpecUrl" } ], - "initializedBy": -1, + "initializedBy": 0, "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations", "apiVersions": [ @@ -11605,7 +11605,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.sampleTypeSpecUrl" } ], - "initializedBy": -1, + "initializedBy": 0, "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations", "apiVersions": [ @@ -11823,7 +11823,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.sampleTypeSpecUrl" } ], - "initializedBy": -1, + "initializedBy": 0, "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations", "apiVersions": [ @@ -11965,7 +11965,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.sampleTypeSpecUrl" } ], - "initializedBy": -1, + "initializedBy": 0, "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations", "apiVersions": [ diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/documentation/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/documentation/tspCodeModel.json index 5a5591dcf0b..8954a325268 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/documentation/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/documentation/tspCodeModel.json @@ -344,7 +344,7 @@ "responses": [ { "statusCodes": [ - 204 + 200 ], "headers": [], "isErrorResponse": false diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/EncodeArrayModelFactory.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/EncodeArrayModelFactory.cs index f1b065009ce..9c9a8a45b56 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/EncodeArrayModelFactory.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/EncodeArrayModelFactory.cs @@ -15,5 +15,21 @@ public static partial class EncodeArrayModelFactory public static PipeDelimitedArrayProperty PipeDelimitedArrayProperty(IEnumerable value = default) => throw null; public static NewlineDelimitedArrayProperty NewlineDelimitedArrayProperty(IEnumerable value = default) => throw null; + + public static CommaDelimitedEnumArrayProperty CommaDelimitedEnumArrayProperty(IEnumerable value = default) => throw null; + + public static SpaceDelimitedEnumArrayProperty SpaceDelimitedEnumArrayProperty(IEnumerable value = default) => throw null; + + public static PipeDelimitedEnumArrayProperty PipeDelimitedEnumArrayProperty(IEnumerable value = default) => throw null; + + public static NewlineDelimitedEnumArrayProperty NewlineDelimitedEnumArrayProperty(IEnumerable value = default) => throw null; + + public static CommaDelimitedExtensibleEnumArrayProperty CommaDelimitedExtensibleEnumArrayProperty(IEnumerable value = default) => throw null; + + public static SpaceDelimitedExtensibleEnumArrayProperty SpaceDelimitedExtensibleEnumArrayProperty(IEnumerable value = default) => throw null; + + public static PipeDelimitedExtensibleEnumArrayProperty PipeDelimitedExtensibleEnumArrayProperty(IEnumerable value = default) => throw null; + + public static NewlineDelimitedExtensibleEnumArrayProperty NewlineDelimitedExtensibleEnumArrayProperty(IEnumerable value = default) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/Colors.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/Colors.cs new file mode 100644 index 00000000000..e3b0dba273d --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/Colors.cs @@ -0,0 +1,16 @@ +// + +#nullable disable + +namespace Encode._Array +{ + public enum Colors + { + /// Blue. + Blue, + /// Red. + Red, + /// Green. + Green + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/ColorsExtensibleEnum.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/ColorsExtensibleEnum.cs new file mode 100644 index 00000000000..72d5493e135 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/ColorsExtensibleEnum.cs @@ -0,0 +1,38 @@ +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Encode._Array +{ + public readonly partial struct ColorsExtensibleEnum : IEquatable + { + public ColorsExtensibleEnum(string value) => throw null; + + public static ColorsExtensibleEnum Blue => throw null; + + public static ColorsExtensibleEnum Red => throw null; + + public static ColorsExtensibleEnum Green => throw null; + + public static bool operator ==(ColorsExtensibleEnum left, ColorsExtensibleEnum right) => throw null; + + public static bool operator !=(ColorsExtensibleEnum left, ColorsExtensibleEnum right) => throw null; + + public static implicit operator ColorsExtensibleEnum(string value) => throw null; + + public static implicit operator ColorsExtensibleEnum?(string value) => throw null; + + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => throw null; + + public bool Equals(ColorsExtensibleEnum other) => throw null; + + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => throw null; + + public override string ToString() => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedEnumArrayProperty.Serialization.cs new file mode 100644 index 00000000000..a87698582cb --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedEnumArrayProperty.Serialization.cs @@ -0,0 +1,38 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Encode._Array +{ + public partial class CommaDelimitedEnumArrayProperty : IJsonModel + { + internal CommaDelimitedEnumArrayProperty() => throw null; + + protected virtual CommaDelimitedEnumArrayProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + public static explicit operator CommaDelimitedEnumArrayProperty(ClientResult result) => throw null; + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + CommaDelimitedEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + protected virtual CommaDelimitedEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + CommaDelimitedEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(CommaDelimitedEnumArrayProperty commaDelimitedEnumArrayProperty) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedEnumArrayProperty.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedEnumArrayProperty.cs new file mode 100644 index 00000000000..a2bf5aa9700 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedEnumArrayProperty.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Encode._Array +{ + public partial class CommaDelimitedEnumArrayProperty + { + public CommaDelimitedEnumArrayProperty(IEnumerable value) => throw null; + + public IList Value => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedExtensibleEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedExtensibleEnumArrayProperty.Serialization.cs new file mode 100644 index 00000000000..a5927a8837e --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedExtensibleEnumArrayProperty.Serialization.cs @@ -0,0 +1,38 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Encode._Array +{ + public partial class CommaDelimitedExtensibleEnumArrayProperty : IJsonModel + { + internal CommaDelimitedExtensibleEnumArrayProperty() => throw null; + + protected virtual CommaDelimitedExtensibleEnumArrayProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + public static explicit operator CommaDelimitedExtensibleEnumArrayProperty(ClientResult result) => throw null; + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + CommaDelimitedExtensibleEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + protected virtual CommaDelimitedExtensibleEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + CommaDelimitedExtensibleEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(CommaDelimitedExtensibleEnumArrayProperty commaDelimitedExtensibleEnumArrayProperty) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedExtensibleEnumArrayProperty.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedExtensibleEnumArrayProperty.cs new file mode 100644 index 00000000000..10ebefbe14d --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedExtensibleEnumArrayProperty.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Encode._Array +{ + public partial class CommaDelimitedExtensibleEnumArrayProperty + { + public CommaDelimitedExtensibleEnumArrayProperty(IEnumerable value) => throw null; + + public IList Value => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/Encode_ArrayContext.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/Encode_ArrayContext.cs index f3ab669d97b..4b8aeb35b97 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/Encode_ArrayContext.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/Encode_ArrayContext.cs @@ -7,9 +7,17 @@ namespace Encode._Array { [ModelReaderWriterBuildable(typeof(CommaDelimitedArrayProperty))] + [ModelReaderWriterBuildable(typeof(CommaDelimitedEnumArrayProperty))] + [ModelReaderWriterBuildable(typeof(CommaDelimitedExtensibleEnumArrayProperty))] [ModelReaderWriterBuildable(typeof(NewlineDelimitedArrayProperty))] + [ModelReaderWriterBuildable(typeof(NewlineDelimitedEnumArrayProperty))] + [ModelReaderWriterBuildable(typeof(NewlineDelimitedExtensibleEnumArrayProperty))] [ModelReaderWriterBuildable(typeof(PipeDelimitedArrayProperty))] + [ModelReaderWriterBuildable(typeof(PipeDelimitedEnumArrayProperty))] + [ModelReaderWriterBuildable(typeof(PipeDelimitedExtensibleEnumArrayProperty))] [ModelReaderWriterBuildable(typeof(SpaceDelimitedArrayProperty))] + [ModelReaderWriterBuildable(typeof(SpaceDelimitedEnumArrayProperty))] + [ModelReaderWriterBuildable(typeof(SpaceDelimitedExtensibleEnumArrayProperty))] public partial class Encode_ArrayContext : ModelReaderWriterContext { } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedEnumArrayProperty.Serialization.cs new file mode 100644 index 00000000000..1a6dce53cb5 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedEnumArrayProperty.Serialization.cs @@ -0,0 +1,38 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Encode._Array +{ + public partial class NewlineDelimitedEnumArrayProperty : IJsonModel + { + internal NewlineDelimitedEnumArrayProperty() => throw null; + + protected virtual NewlineDelimitedEnumArrayProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + public static explicit operator NewlineDelimitedEnumArrayProperty(ClientResult result) => throw null; + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + NewlineDelimitedEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + protected virtual NewlineDelimitedEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + NewlineDelimitedEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(NewlineDelimitedEnumArrayProperty newlineDelimitedEnumArrayProperty) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedEnumArrayProperty.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedEnumArrayProperty.cs new file mode 100644 index 00000000000..cfcf8bb6912 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedEnumArrayProperty.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Encode._Array +{ + public partial class NewlineDelimitedEnumArrayProperty + { + public NewlineDelimitedEnumArrayProperty(IEnumerable value) => throw null; + + public IList Value => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedExtensibleEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedExtensibleEnumArrayProperty.Serialization.cs new file mode 100644 index 00000000000..11f3cbb5bc3 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedExtensibleEnumArrayProperty.Serialization.cs @@ -0,0 +1,38 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Encode._Array +{ + public partial class NewlineDelimitedExtensibleEnumArrayProperty : IJsonModel + { + internal NewlineDelimitedExtensibleEnumArrayProperty() => throw null; + + protected virtual NewlineDelimitedExtensibleEnumArrayProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + public static explicit operator NewlineDelimitedExtensibleEnumArrayProperty(ClientResult result) => throw null; + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + NewlineDelimitedExtensibleEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + protected virtual NewlineDelimitedExtensibleEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + NewlineDelimitedExtensibleEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(NewlineDelimitedExtensibleEnumArrayProperty newlineDelimitedExtensibleEnumArrayProperty) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedExtensibleEnumArrayProperty.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedExtensibleEnumArrayProperty.cs new file mode 100644 index 00000000000..9a48539c395 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedExtensibleEnumArrayProperty.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Encode._Array +{ + public partial class NewlineDelimitedExtensibleEnumArrayProperty + { + public NewlineDelimitedExtensibleEnumArrayProperty(IEnumerable value) => throw null; + + public IList Value => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedEnumArrayProperty.Serialization.cs new file mode 100644 index 00000000000..b3a5cfb5230 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedEnumArrayProperty.Serialization.cs @@ -0,0 +1,38 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Encode._Array +{ + public partial class PipeDelimitedEnumArrayProperty : IJsonModel + { + internal PipeDelimitedEnumArrayProperty() => throw null; + + protected virtual PipeDelimitedEnumArrayProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + public static explicit operator PipeDelimitedEnumArrayProperty(ClientResult result) => throw null; + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + PipeDelimitedEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + protected virtual PipeDelimitedEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + PipeDelimitedEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(PipeDelimitedEnumArrayProperty pipeDelimitedEnumArrayProperty) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedEnumArrayProperty.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedEnumArrayProperty.cs new file mode 100644 index 00000000000..6ba5f1acaed --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedEnumArrayProperty.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Encode._Array +{ + public partial class PipeDelimitedEnumArrayProperty + { + public PipeDelimitedEnumArrayProperty(IEnumerable value) => throw null; + + public IList Value => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedExtensibleEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedExtensibleEnumArrayProperty.Serialization.cs new file mode 100644 index 00000000000..97d29af0378 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedExtensibleEnumArrayProperty.Serialization.cs @@ -0,0 +1,38 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Encode._Array +{ + public partial class PipeDelimitedExtensibleEnumArrayProperty : IJsonModel + { + internal PipeDelimitedExtensibleEnumArrayProperty() => throw null; + + protected virtual PipeDelimitedExtensibleEnumArrayProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + public static explicit operator PipeDelimitedExtensibleEnumArrayProperty(ClientResult result) => throw null; + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + PipeDelimitedExtensibleEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + protected virtual PipeDelimitedExtensibleEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + PipeDelimitedExtensibleEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(PipeDelimitedExtensibleEnumArrayProperty pipeDelimitedExtensibleEnumArrayProperty) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedExtensibleEnumArrayProperty.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedExtensibleEnumArrayProperty.cs new file mode 100644 index 00000000000..eb8179b1bd2 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedExtensibleEnumArrayProperty.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Encode._Array +{ + public partial class PipeDelimitedExtensibleEnumArrayProperty + { + public PipeDelimitedExtensibleEnumArrayProperty(IEnumerable value) => throw null; + + public IList Value => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedEnumArrayProperty.Serialization.cs new file mode 100644 index 00000000000..18a698831b6 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedEnumArrayProperty.Serialization.cs @@ -0,0 +1,38 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Encode._Array +{ + public partial class SpaceDelimitedEnumArrayProperty : IJsonModel + { + internal SpaceDelimitedEnumArrayProperty() => throw null; + + protected virtual SpaceDelimitedEnumArrayProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + public static explicit operator SpaceDelimitedEnumArrayProperty(ClientResult result) => throw null; + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + SpaceDelimitedEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + protected virtual SpaceDelimitedEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + SpaceDelimitedEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(SpaceDelimitedEnumArrayProperty spaceDelimitedEnumArrayProperty) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedEnumArrayProperty.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedEnumArrayProperty.cs new file mode 100644 index 00000000000..520bfd7e402 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedEnumArrayProperty.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Encode._Array +{ + public partial class SpaceDelimitedEnumArrayProperty + { + public SpaceDelimitedEnumArrayProperty(IEnumerable value) => throw null; + + public IList Value => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedExtensibleEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedExtensibleEnumArrayProperty.Serialization.cs new file mode 100644 index 00000000000..b0655f9133e --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedExtensibleEnumArrayProperty.Serialization.cs @@ -0,0 +1,38 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Encode._Array +{ + public partial class SpaceDelimitedExtensibleEnumArrayProperty : IJsonModel + { + internal SpaceDelimitedExtensibleEnumArrayProperty() => throw null; + + protected virtual SpaceDelimitedExtensibleEnumArrayProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + public static explicit operator SpaceDelimitedExtensibleEnumArrayProperty(ClientResult result) => throw null; + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + SpaceDelimitedExtensibleEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + protected virtual SpaceDelimitedExtensibleEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + SpaceDelimitedExtensibleEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(SpaceDelimitedExtensibleEnumArrayProperty spaceDelimitedExtensibleEnumArrayProperty) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedExtensibleEnumArrayProperty.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedExtensibleEnumArrayProperty.cs new file mode 100644 index 00000000000..d3caeafb5e1 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedExtensibleEnumArrayProperty.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Encode._Array +{ + public partial class SpaceDelimitedExtensibleEnumArrayProperty + { + public SpaceDelimitedExtensibleEnumArrayProperty(IEnumerable value) => throw null; + + public IList Value => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Property.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Property.cs index e50400b6ee6..11ac1e8bde6 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Property.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Property.cs @@ -47,5 +47,69 @@ public partial class Property public virtual ClientResult NewlineDelimited(NewlineDelimitedArrayProperty body, CancellationToken cancellationToken = default) => throw null; public virtual Task> NewlineDelimitedAsync(NewlineDelimitedArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual ClientResult EnumCommaDelimited(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual Task EnumCommaDelimitedAsync(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual ClientResult EnumCommaDelimited(CommaDelimitedEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual Task> EnumCommaDelimitedAsync(CommaDelimitedEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual ClientResult EnumSpaceDelimited(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual Task EnumSpaceDelimitedAsync(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual ClientResult EnumSpaceDelimited(SpaceDelimitedEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual Task> EnumSpaceDelimitedAsync(SpaceDelimitedEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual ClientResult EnumPipeDelimited(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual Task EnumPipeDelimitedAsync(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual ClientResult EnumPipeDelimited(PipeDelimitedEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual Task> EnumPipeDelimitedAsync(PipeDelimitedEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual ClientResult EnumNewlineDelimited(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual Task EnumNewlineDelimitedAsync(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual ClientResult EnumNewlineDelimited(NewlineDelimitedEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual Task> EnumNewlineDelimitedAsync(NewlineDelimitedEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual ClientResult ExtensibleEnumCommaDelimited(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual Task ExtensibleEnumCommaDelimitedAsync(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual ClientResult ExtensibleEnumCommaDelimited(CommaDelimitedExtensibleEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual Task> ExtensibleEnumCommaDelimitedAsync(CommaDelimitedExtensibleEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual ClientResult ExtensibleEnumSpaceDelimited(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual Task ExtensibleEnumSpaceDelimitedAsync(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual ClientResult ExtensibleEnumSpaceDelimited(SpaceDelimitedExtensibleEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual Task> ExtensibleEnumSpaceDelimitedAsync(SpaceDelimitedExtensibleEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual ClientResult ExtensibleEnumPipeDelimited(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual Task ExtensibleEnumPipeDelimitedAsync(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual ClientResult ExtensibleEnumPipeDelimited(PipeDelimitedExtensibleEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual Task> ExtensibleEnumPipeDelimitedAsync(PipeDelimitedExtensibleEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual ClientResult ExtensibleEnumNewlineDelimited(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual Task ExtensibleEnumNewlineDelimitedAsync(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual ClientResult ExtensibleEnumNewlineDelimited(NewlineDelimitedExtensibleEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; + + public virtual Task> ExtensibleEnumNewlineDelimitedAsync(NewlineDelimitedExtensibleEnumArrayProperty body, CancellationToken cancellationToken = default) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/tspCodeModel.json index fbbab42cea0..858cc8f026f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/tspCodeModel.json @@ -1,16 +1,135 @@ { "name": "Encode.Array", "apiVersions": [], - "enums": [], - "constants": [ + "enums": [ { "$id": "1", + "kind": "enum", + "name": "Colors", + "crossLanguageDefinitionId": "Encode.Array.Colors", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "Blue", + "value": "blue", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "4", + "kind": "enumvalue", + "name": "Red", + "value": "red", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + }, + { + "$id": "5", + "kind": "enumvalue", + "name": "Green", + "value": "green", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "Encode.Array", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "6", + "kind": "enum", + "name": "ColorsExtensibleEnum", + "crossLanguageDefinitionId": "Encode.Array.ColorsExtensibleEnum", + "valueType": { + "$id": "7", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "8", + "kind": "enumvalue", + "name": "Blue", + "value": "blue", + "valueType": { + "$ref": "7" + }, + "enumType": { + "$ref": "6" + }, + "decorators": [] + }, + { + "$id": "9", + "kind": "enumvalue", + "name": "Red", + "value": "red", + "valueType": { + "$ref": "7" + }, + "enumType": { + "$ref": "6" + }, + "decorators": [] + }, + { + "$id": "10", + "kind": "enumvalue", + "name": "Green", + "value": "green", + "valueType": { + "$ref": "7" + }, + "enumType": { + "$ref": "6" + }, + "decorators": [] + } + ], + "namespace": "Encode.Array", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + } + ], + "constants": [ + { + "$id": "11", "kind": "constant", "name": "commaDelimitedContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "2", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -20,13 +139,13 @@ "decorators": [] }, { - "$id": "3", + "$id": "13", "kind": "constant", "name": "commaDelimitedContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "4", + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -36,13 +155,13 @@ "decorators": [] }, { - "$id": "5", + "$id": "15", "kind": "constant", "name": "spaceDelimitedContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "6", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -52,13 +171,13 @@ "decorators": [] }, { - "$id": "7", + "$id": "17", "kind": "constant", "name": "spaceDelimitedContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "8", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -68,13 +187,13 @@ "decorators": [] }, { - "$id": "9", + "$id": "19", "kind": "constant", "name": "pipeDelimitedContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "10", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -84,13 +203,13 @@ "decorators": [] }, { - "$id": "11", + "$id": "21", "kind": "constant", "name": "pipeDelimitedContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "12", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -100,13 +219,13 @@ "decorators": [] }, { - "$id": "13", + "$id": "23", "kind": "constant", "name": "newlineDelimitedContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "14", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -116,13 +235,13 @@ "decorators": [] }, { - "$id": "15", + "$id": "25", "kind": "constant", "name": "newlineDelimitedContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "16", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -130,244 +249,2022 @@ }, "value": "application/json", "decorators": [] - } - ], - "models": [ + }, { - "$id": "17", - "kind": "model", - "name": "CommaDelimitedArrayProperty", - "namespace": "Encode.Array", - "crossLanguageDefinitionId": "Encode.Array.CommaDelimitedArrayProperty", - "usage": "Input,Output,Json", - "decorators": [], - "serializationOptions": { - "json": { - "name": "CommaDelimitedArrayProperty" - } + "$id": "27", + "kind": "constant", + "name": "enumCommaDelimitedContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "18", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "19", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "20", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.CommaDelimitedArrayProperty.value", - "serializationOptions": { - "json": { - "name": "value" - } - }, - "isHttpMetadata": false, - "encode": "commaDelimited" - } - ] + "value": "application/json", + "decorators": [] }, { - "$id": "21", - "kind": "model", - "name": "SpaceDelimitedArrayProperty", - "namespace": "Encode.Array", - "crossLanguageDefinitionId": "Encode.Array.SpaceDelimitedArrayProperty", - "usage": "Input,Output,Json", - "decorators": [], - "serializationOptions": { - "json": { - "name": "SpaceDelimitedArrayProperty" - } + "$id": "29", + "kind": "constant", + "name": "enumCommaDelimitedContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "22", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$ref": "19" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.SpaceDelimitedArrayProperty.value", - "serializationOptions": { - "json": { - "name": "value" - } - }, - "isHttpMetadata": false, - "encode": "spaceDelimited" - } - ] + "value": "application/json", + "decorators": [] }, { - "$id": "23", - "kind": "model", - "name": "PipeDelimitedArrayProperty", - "namespace": "Encode.Array", - "crossLanguageDefinitionId": "Encode.Array.PipeDelimitedArrayProperty", - "usage": "Input,Output,Json", - "decorators": [], - "serializationOptions": { - "json": { - "name": "PipeDelimitedArrayProperty" - } + "$id": "31", + "kind": "constant", + "name": "enumSpaceDelimitedContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "24", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$ref": "19" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.PipeDelimitedArrayProperty.value", - "serializationOptions": { - "json": { - "name": "value" - } - }, - "isHttpMetadata": false, - "encode": "pipeDelimited" - } - ] + "value": "application/json", + "decorators": [] }, { - "$id": "25", - "kind": "model", - "name": "NewlineDelimitedArrayProperty", - "namespace": "Encode.Array", - "crossLanguageDefinitionId": "Encode.Array.NewlineDelimitedArrayProperty", - "usage": "Input,Output,Json", - "decorators": [], - "serializationOptions": { - "json": { - "name": "NewlineDelimitedArrayProperty" - } + "$id": "33", + "kind": "constant", + "name": "enumSpaceDelimitedContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "26", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$ref": "19" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.NewlineDelimitedArrayProperty.value", - "serializationOptions": { - "json": { - "name": "value" - } - }, - "isHttpMetadata": false, - "encode": "newlineDelimited" - } - ] - } - ], - "clients": [ + "value": "application/json", + "decorators": [] + }, { - "$id": "27", - "kind": "client", - "name": "ArrayClient", + "$id": "35", + "kind": "constant", + "name": "enumPipeDelimitedContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "37", + "kind": "constant", + "name": "enumPipeDelimitedContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "39", + "kind": "constant", + "name": "enumNewlineDelimitedContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "41", + "kind": "constant", + "name": "enumNewlineDelimitedContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "43", + "kind": "constant", + "name": "extensibleEnumCommaDelimitedContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "45", + "kind": "constant", + "name": "extensibleEnumCommaDelimitedContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "47", + "kind": "constant", + "name": "extensibleEnumSpaceDelimitedContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "49", + "kind": "constant", + "name": "extensibleEnumSpaceDelimitedContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "51", + "kind": "constant", + "name": "extensibleEnumPipeDelimitedContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "53", + "kind": "constant", + "name": "extensibleEnumPipeDelimitedContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "55", + "kind": "constant", + "name": "extensibleEnumNewlineDelimitedContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "57", + "kind": "constant", + "name": "extensibleEnumNewlineDelimitedContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "58", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + ], + "models": [ + { + "$id": "59", + "kind": "model", + "name": "CommaDelimitedArrayProperty", "namespace": "Encode.Array", - "doc": "Test for encode decorator on array.", - "methods": [], - "parameters": [ + "crossLanguageDefinitionId": "Encode.Array.CommaDelimitedArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "CommaDelimitedArrayProperty" + } + }, + "properties": [ { - "$id": "28", - "kind": "endpoint", - "name": "endpoint", - "serializedName": "endpoint", - "doc": "Service host", + "$id": "60", + "kind": "property", + "name": "value", + "serializedName": "value", "type": { - "$id": "29", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "isApiVersion": false, - "optional": false, - "scope": "Client", - "isEndpoint": true, - "defaultValue": { - "type": { - "$id": "30", + "$id": "61", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "62", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.CommaDelimitedArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false, + "encode": "commaDelimited" + } + ] + }, + { + "$id": "63", + "kind": "model", + "name": "SpaceDelimitedArrayProperty", + "namespace": "Encode.Array", + "crossLanguageDefinitionId": "Encode.Array.SpaceDelimitedArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "SpaceDelimitedArrayProperty" + } + }, + "properties": [ + { + "$id": "64", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "61" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.SpaceDelimitedArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false, + "encode": "spaceDelimited" + } + ] + }, + { + "$id": "65", + "kind": "model", + "name": "PipeDelimitedArrayProperty", + "namespace": "Encode.Array", + "crossLanguageDefinitionId": "Encode.Array.PipeDelimitedArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "PipeDelimitedArrayProperty" + } + }, + "properties": [ + { + "$id": "66", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "61" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.PipeDelimitedArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false, + "encode": "pipeDelimited" + } + ] + }, + { + "$id": "67", + "kind": "model", + "name": "NewlineDelimitedArrayProperty", + "namespace": "Encode.Array", + "crossLanguageDefinitionId": "Encode.Array.NewlineDelimitedArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "NewlineDelimitedArrayProperty" + } + }, + "properties": [ + { + "$id": "68", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "61" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.NewlineDelimitedArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false, + "encode": "newlineDelimited" + } + ] + }, + { + "$id": "69", + "kind": "model", + "name": "CommaDelimitedEnumArrayProperty", + "namespace": "Encode.Array", + "crossLanguageDefinitionId": "Encode.Array.CommaDelimitedEnumArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "CommaDelimitedEnumArrayProperty" + } + }, + "properties": [ + { + "$id": "70", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$id": "71", + "kind": "array", + "name": "ArrayColors", + "valueType": { + "$ref": "1" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.CommaDelimitedEnumArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false, + "encode": "commaDelimited" + } + ] + }, + { + "$id": "72", + "kind": "model", + "name": "SpaceDelimitedEnumArrayProperty", + "namespace": "Encode.Array", + "crossLanguageDefinitionId": "Encode.Array.SpaceDelimitedEnumArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "SpaceDelimitedEnumArrayProperty" + } + }, + "properties": [ + { + "$id": "73", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "71" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.SpaceDelimitedEnumArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false, + "encode": "spaceDelimited" + } + ] + }, + { + "$id": "74", + "kind": "model", + "name": "PipeDelimitedEnumArrayProperty", + "namespace": "Encode.Array", + "crossLanguageDefinitionId": "Encode.Array.PipeDelimitedEnumArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "PipeDelimitedEnumArrayProperty" + } + }, + "properties": [ + { + "$id": "75", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "71" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.PipeDelimitedEnumArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false, + "encode": "pipeDelimited" + } + ] + }, + { + "$id": "76", + "kind": "model", + "name": "NewlineDelimitedEnumArrayProperty", + "namespace": "Encode.Array", + "crossLanguageDefinitionId": "Encode.Array.NewlineDelimitedEnumArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "NewlineDelimitedEnumArrayProperty" + } + }, + "properties": [ + { + "$id": "77", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "71" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.NewlineDelimitedEnumArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false, + "encode": "newlineDelimited" + } + ] + }, + { + "$id": "78", + "kind": "model", + "name": "CommaDelimitedExtensibleEnumArrayProperty", + "namespace": "Encode.Array", + "crossLanguageDefinitionId": "Encode.Array.CommaDelimitedExtensibleEnumArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "CommaDelimitedExtensibleEnumArrayProperty" + } + }, + "properties": [ + { + "$id": "79", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$id": "80", + "kind": "array", + "name": "ArrayColorsExtensibleEnum", + "valueType": { + "$ref": "6" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.CommaDelimitedExtensibleEnumArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false, + "encode": "commaDelimited" + } + ] + }, + { + "$id": "81", + "kind": "model", + "name": "SpaceDelimitedExtensibleEnumArrayProperty", + "namespace": "Encode.Array", + "crossLanguageDefinitionId": "Encode.Array.SpaceDelimitedExtensibleEnumArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "SpaceDelimitedExtensibleEnumArrayProperty" + } + }, + "properties": [ + { + "$id": "82", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "80" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.SpaceDelimitedExtensibleEnumArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false, + "encode": "spaceDelimited" + } + ] + }, + { + "$id": "83", + "kind": "model", + "name": "PipeDelimitedExtensibleEnumArrayProperty", + "namespace": "Encode.Array", + "crossLanguageDefinitionId": "Encode.Array.PipeDelimitedExtensibleEnumArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "PipeDelimitedExtensibleEnumArrayProperty" + } + }, + "properties": [ + { + "$id": "84", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "80" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.PipeDelimitedExtensibleEnumArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false, + "encode": "pipeDelimited" + } + ] + }, + { + "$id": "85", + "kind": "model", + "name": "NewlineDelimitedExtensibleEnumArrayProperty", + "namespace": "Encode.Array", + "crossLanguageDefinitionId": "Encode.Array.NewlineDelimitedExtensibleEnumArrayProperty", + "usage": "Input,Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "NewlineDelimitedExtensibleEnumArrayProperty" + } + }, + "properties": [ + { + "$id": "86", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "80" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.NewlineDelimitedExtensibleEnumArrayProperty.value", + "serializationOptions": { + "json": { + "name": "value" + } + }, + "isHttpMetadata": false, + "encode": "newlineDelimited" + } + ] + } + ], + "clients": [ + { + "$id": "87", + "kind": "client", + "name": "ArrayClient", + "namespace": "Encode.Array", + "doc": "Test for encode decorator on array.", + "methods": [], + "parameters": [ + { + "$id": "88", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "89", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Encode.Array.endpoint" + } + ], + "initializedBy": 1, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array", + "apiVersions": [], + "children": [ + { + "$id": "91", + "kind": "client", + "name": "Property", + "namespace": "Encode.Array.Property", + "methods": [ + { + "$id": "92", + "kind": "basic", + "name": "commaDelimited", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "93", + "name": "commaDelimited", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "94", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.contentType", + "methodParameterSegments": [ + { + "$id": "95", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "96", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "13" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.accept", + "methodParameterSegments": [ + { + "$id": "97", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "98", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "59" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.body", + "methodParameterSegments": [ + { + "$id": "99", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "59" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "59" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/array/property/comma-delimited", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited", + "decorators": [], + "namespace": "Encode.Array.Property" + }, + "parameters": [ + { + "$ref": "99" + }, + { + "$ref": "95" + }, + { + "$ref": "97" + } + ], + "response": { + "type": { + "$ref": "59" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited" + }, + { + "$id": "100", + "kind": "basic", + "name": "spaceDelimited", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "101", + "name": "spaceDelimited", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "102", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.contentType", + "methodParameterSegments": [ + { + "$id": "103", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "104", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "17" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.accept", + "methodParameterSegments": [ + { + "$id": "105", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "106", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "63" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.body", + "methodParameterSegments": [ + { + "$id": "107", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "63" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "63" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/array/property/space-delimited", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited", + "decorators": [], + "namespace": "Encode.Array.Property" + }, + "parameters": [ + { + "$ref": "107" + }, + { + "$ref": "103" + }, + { + "$ref": "105" + } + ], + "response": { + "type": { + "$ref": "63" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited" + }, + { + "$id": "108", + "kind": "basic", + "name": "pipeDelimited", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "109", + "name": "pipeDelimited", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "110", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.contentType", + "methodParameterSegments": [ + { + "$id": "111", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "112", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "21" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.accept", + "methodParameterSegments": [ + { + "$id": "113", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "114", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "65" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.body", + "methodParameterSegments": [ + { + "$id": "115", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "65" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "65" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/array/property/pipe-delimited", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited", + "decorators": [], + "namespace": "Encode.Array.Property" + }, + "parameters": [ + { + "$ref": "115" + }, + { + "$ref": "111" + }, + { + "$ref": "113" + } + ], + "response": { + "type": { + "$ref": "65" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited" + }, + { + "$id": "116", + "kind": "basic", + "name": "newlineDelimited", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "117", + "name": "newlineDelimited", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "118", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "23" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.contentType", + "methodParameterSegments": [ + { + "$id": "119", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "120", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "25" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.accept", + "methodParameterSegments": [ + { + "$id": "121", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "122", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "67" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.body", + "methodParameterSegments": [ + { + "$id": "123", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "67" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "67" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/array/property/newline-delimited", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited", + "decorators": [], + "namespace": "Encode.Array.Property" + }, + "parameters": [ + { + "$ref": "123" + }, + { + "$ref": "119" + }, + { + "$ref": "121" + } + ], + "response": { + "type": { + "$ref": "67" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited" + }, + { + "$id": "124", + "kind": "basic", + "name": "enumCommaDelimited", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "125", + "name": "enumCommaDelimited", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "126", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.enumCommaDelimited.contentType", + "methodParameterSegments": [ + { + "$id": "127", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.enumCommaDelimited.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "128", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "29" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.enumCommaDelimited.accept", + "methodParameterSegments": [ + { + "$id": "129", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.enumCommaDelimited.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "130", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "69" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Encode.Array.Property.enumCommaDelimited.body", + "methodParameterSegments": [ + { + "$id": "131", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "69" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Array.Property.enumCommaDelimited.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "69" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/array/property/enum/comma-delimited", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Array.Property.enumCommaDelimited", + "decorators": [], + "namespace": "Encode.Array.Property" + }, + "parameters": [ + { + "$ref": "131" + }, + { + "$ref": "127" + }, + { + "$ref": "129" + } + ], + "response": { + "type": { + "$ref": "69" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Array.Property.enumCommaDelimited" + }, + { + "$id": "132", + "kind": "basic", + "name": "enumSpaceDelimited", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "133", + "name": "enumSpaceDelimited", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "134", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "31" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.enumSpaceDelimited.contentType", + "methodParameterSegments": [ + { + "$id": "135", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.enumSpaceDelimited.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "136", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "33" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.enumSpaceDelimited.accept", + "methodParameterSegments": [ + { + "$id": "137", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.enumSpaceDelimited.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "138", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "72" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Encode.Array.Property.enumSpaceDelimited.body", + "methodParameterSegments": [ + { + "$id": "139", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "72" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Array.Property.enumSpaceDelimited.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "72" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/array/property/enum/space-delimited", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Array.Property.enumSpaceDelimited", + "decorators": [], + "namespace": "Encode.Array.Property" + }, + "parameters": [ + { + "$ref": "139" + }, + { + "$ref": "135" + }, + { + "$ref": "137" + } + ], + "response": { + "type": { + "$ref": "72" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Array.Property.enumSpaceDelimited" + }, + { + "$id": "140", + "kind": "basic", + "name": "enumPipeDelimited", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "141", + "name": "enumPipeDelimited", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "142", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.enumPipeDelimited.contentType", + "methodParameterSegments": [ + { + "$id": "143", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.enumPipeDelimited.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "144", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "37" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.enumPipeDelimited.accept", + "methodParameterSegments": [ + { + "$id": "145", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.enumPipeDelimited.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "146", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "74" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Encode.Array.Property.enumPipeDelimited.body", + "methodParameterSegments": [ + { + "$id": "147", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "74" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Array.Property.enumPipeDelimited.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "74" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/array/property/enum/pipe-delimited", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Array.Property.enumPipeDelimited", + "decorators": [], + "namespace": "Encode.Array.Property" + }, + "parameters": [ + { + "$ref": "147" + }, + { + "$ref": "143" + }, + { + "$ref": "145" + } + ], + "response": { + "type": { + "$ref": "74" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Array.Property.enumPipeDelimited" }, - "value": "http://localhost:3000" - }, - "serverUrlTemplate": "{endpoint}", - "skipUrlEncoding": false, - "readOnly": false, - "crossLanguageDefinitionId": "Encode.Array.endpoint" - } - ], - "initializedBy": 1, - "decorators": [], - "crossLanguageDefinitionId": "Encode.Array", - "apiVersions": [], - "children": [ - { - "$id": "31", - "kind": "client", - "name": "Property", - "namespace": "Encode.Array.Property", - "methods": [ { - "$id": "32", + "$id": "148", "kind": "basic", - "name": "commaDelimited", + "name": "enumNewlineDelimited", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "33", - "name": "commaDelimited", + "$id": "149", + "name": "enumNewlineDelimited", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "34", + "$id": "150", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "1" + "$ref": "39" }, "isApiVersion": false, "optional": false, @@ -375,22 +2272,22 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.contentType", + "crossLanguageDefinitionId": "Encode.Array.Property.enumNewlineDelimited.contentType", "methodParameterSegments": [ { - "$id": "35", + "$id": "151", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "1" + "$ref": "39" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.contentType", + "crossLanguageDefinitionId": "Encode.Array.Property.enumNewlineDelimited.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -398,12 +2295,12 @@ ] }, { - "$id": "36", + "$id": "152", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "3" + "$ref": "41" }, "isApiVersion": false, "optional": false, @@ -411,21 +2308,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.accept", + "crossLanguageDefinitionId": "Encode.Array.Property.enumNewlineDelimited.accept", "methodParameterSegments": [ { - "$id": "37", + "$id": "153", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "3" + "$ref": "41" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.accept", + "crossLanguageDefinitionId": "Encode.Array.Property.enumNewlineDelimited.accept", "readOnly": false, "access": "public", "decorators": [] @@ -433,12 +2330,12 @@ ] }, { - "$id": "38", + "$id": "154", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "17" + "$ref": "76" }, "isApiVersion": false, "contentTypes": [ @@ -449,21 +2346,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.body", + "crossLanguageDefinitionId": "Encode.Array.Property.enumNewlineDelimited.body", "methodParameterSegments": [ { - "$id": "39", + "$id": "155", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "17" + "$ref": "76" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.body", + "crossLanguageDefinitionId": "Encode.Array.Property.enumNewlineDelimited.body", "readOnly": false, "access": "public", "decorators": [] @@ -477,7 +2374,7 @@ 200 ], "bodyType": { - "$ref": "17" + "$ref": "76" }, "headers": [], "isErrorResponse": false, @@ -488,58 +2385,58 @@ ], "httpMethod": "POST", "uri": "{endpoint}", - "path": "/encode/array/property/comma-delimited", + "path": "/encode/array/property/enum/newline-delimited", "requestMediaTypes": [ "application/json" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited", + "crossLanguageDefinitionId": "Encode.Array.Property.enumNewlineDelimited", "decorators": [], "namespace": "Encode.Array.Property" }, "parameters": [ { - "$ref": "39" + "$ref": "155" }, { - "$ref": "35" + "$ref": "151" }, { - "$ref": "37" + "$ref": "153" } ], "response": { "type": { - "$ref": "17" + "$ref": "76" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited" + "crossLanguageDefinitionId": "Encode.Array.Property.enumNewlineDelimited" }, { - "$id": "40", + "$id": "156", "kind": "basic", - "name": "spaceDelimited", + "name": "extensibleEnumCommaDelimited", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "41", - "name": "spaceDelimited", + "$id": "157", + "name": "extensibleEnumCommaDelimited", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "42", + "$id": "158", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "5" + "$ref": "43" }, "isApiVersion": false, "optional": false, @@ -547,22 +2444,22 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.contentType", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumCommaDelimited.contentType", "methodParameterSegments": [ { - "$id": "43", + "$id": "159", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "5" + "$ref": "43" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.contentType", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumCommaDelimited.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -570,12 +2467,12 @@ ] }, { - "$id": "44", + "$id": "160", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "7" + "$ref": "45" }, "isApiVersion": false, "optional": false, @@ -583,21 +2480,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.accept", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumCommaDelimited.accept", "methodParameterSegments": [ { - "$id": "45", + "$id": "161", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "7" + "$ref": "45" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.accept", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumCommaDelimited.accept", "readOnly": false, "access": "public", "decorators": [] @@ -605,12 +2502,12 @@ ] }, { - "$id": "46", + "$id": "162", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "21" + "$ref": "78" }, "isApiVersion": false, "contentTypes": [ @@ -621,21 +2518,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.body", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumCommaDelimited.body", "methodParameterSegments": [ { - "$id": "47", + "$id": "163", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "21" + "$ref": "78" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.body", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumCommaDelimited.body", "readOnly": false, "access": "public", "decorators": [] @@ -649,7 +2546,7 @@ 200 ], "bodyType": { - "$ref": "21" + "$ref": "78" }, "headers": [], "isErrorResponse": false, @@ -660,58 +2557,58 @@ ], "httpMethod": "POST", "uri": "{endpoint}", - "path": "/encode/array/property/space-delimited", + "path": "/encode/array/property/extensible-enum/comma-delimited", "requestMediaTypes": [ "application/json" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumCommaDelimited", "decorators": [], "namespace": "Encode.Array.Property" }, "parameters": [ { - "$ref": "47" + "$ref": "163" }, { - "$ref": "43" + "$ref": "159" }, { - "$ref": "45" + "$ref": "161" } ], "response": { "type": { - "$ref": "21" + "$ref": "78" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited" + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumCommaDelimited" }, { - "$id": "48", + "$id": "164", "kind": "basic", - "name": "pipeDelimited", + "name": "extensibleEnumSpaceDelimited", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "49", - "name": "pipeDelimited", + "$id": "165", + "name": "extensibleEnumSpaceDelimited", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "50", + "$id": "166", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "9" + "$ref": "47" }, "isApiVersion": false, "optional": false, @@ -719,22 +2616,22 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.contentType", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumSpaceDelimited.contentType", "methodParameterSegments": [ { - "$id": "51", + "$id": "167", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "9" + "$ref": "47" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.contentType", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumSpaceDelimited.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -742,12 +2639,12 @@ ] }, { - "$id": "52", + "$id": "168", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "11" + "$ref": "49" }, "isApiVersion": false, "optional": false, @@ -755,21 +2652,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.accept", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumSpaceDelimited.accept", "methodParameterSegments": [ { - "$id": "53", + "$id": "169", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "11" + "$ref": "49" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.accept", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumSpaceDelimited.accept", "readOnly": false, "access": "public", "decorators": [] @@ -777,12 +2674,12 @@ ] }, { - "$id": "54", + "$id": "170", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "23" + "$ref": "81" }, "isApiVersion": false, "contentTypes": [ @@ -793,21 +2690,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.body", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumSpaceDelimited.body", "methodParameterSegments": [ { - "$id": "55", + "$id": "171", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "23" + "$ref": "81" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.body", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumSpaceDelimited.body", "readOnly": false, "access": "public", "decorators": [] @@ -821,7 +2718,7 @@ 200 ], "bodyType": { - "$ref": "23" + "$ref": "81" }, "headers": [], "isErrorResponse": false, @@ -832,58 +2729,58 @@ ], "httpMethod": "POST", "uri": "{endpoint}", - "path": "/encode/array/property/pipe-delimited", + "path": "/encode/array/property/extensible-enum/space-delimited", "requestMediaTypes": [ "application/json" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumSpaceDelimited", "decorators": [], "namespace": "Encode.Array.Property" }, "parameters": [ { - "$ref": "55" + "$ref": "171" }, { - "$ref": "51" + "$ref": "167" }, { - "$ref": "53" + "$ref": "169" } ], "response": { "type": { - "$ref": "23" + "$ref": "81" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited" + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumSpaceDelimited" }, { - "$id": "56", + "$id": "172", "kind": "basic", - "name": "newlineDelimited", + "name": "extensibleEnumPipeDelimited", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "57", - "name": "newlineDelimited", + "$id": "173", + "name": "extensibleEnumPipeDelimited", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "58", + "$id": "174", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "13" + "$ref": "51" }, "isApiVersion": false, "optional": false, @@ -891,22 +2788,22 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.contentType", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumPipeDelimited.contentType", "methodParameterSegments": [ { - "$id": "59", + "$id": "175", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "13" + "$ref": "51" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.contentType", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumPipeDelimited.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -914,12 +2811,12 @@ ] }, { - "$id": "60", + "$id": "176", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "53" }, "isApiVersion": false, "optional": false, @@ -927,21 +2824,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.accept", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumPipeDelimited.accept", "methodParameterSegments": [ { - "$id": "61", + "$id": "177", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "53" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.accept", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumPipeDelimited.accept", "readOnly": false, "access": "public", "decorators": [] @@ -949,12 +2846,12 @@ ] }, { - "$id": "62", + "$id": "178", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "25" + "$ref": "83" }, "isApiVersion": false, "contentTypes": [ @@ -965,21 +2862,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.body", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumPipeDelimited.body", "methodParameterSegments": [ { - "$id": "63", + "$id": "179", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "25" + "$ref": "83" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.body", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumPipeDelimited.body", "readOnly": false, "access": "public", "decorators": [] @@ -993,7 +2890,7 @@ 200 ], "bodyType": { - "$ref": "25" + "$ref": "83" }, "headers": [], "isErrorResponse": false, @@ -1004,48 +2901,220 @@ ], "httpMethod": "POST", "uri": "{endpoint}", - "path": "/encode/array/property/newline-delimited", + "path": "/encode/array/property/extensible-enum/pipe-delimited", "requestMediaTypes": [ "application/json" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumPipeDelimited", "decorators": [], "namespace": "Encode.Array.Property" }, "parameters": [ { - "$ref": "63" + "$ref": "179" }, { - "$ref": "59" + "$ref": "175" }, { - "$ref": "61" + "$ref": "177" } ], "response": { "type": { - "$ref": "25" + "$ref": "83" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited" + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumPipeDelimited" + }, + { + "$id": "180", + "kind": "basic", + "name": "extensibleEnumNewlineDelimited", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "181", + "name": "extensibleEnumNewlineDelimited", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "182", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "55" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumNewlineDelimited.contentType", + "methodParameterSegments": [ + { + "$id": "183", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumNewlineDelimited.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "184", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "57" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumNewlineDelimited.accept", + "methodParameterSegments": [ + { + "$id": "185", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "57" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumNewlineDelimited.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "186", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "85" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumNewlineDelimited.body", + "methodParameterSegments": [ + { + "$id": "187", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "85" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumNewlineDelimited.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "85" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/array/property/extensible-enum/newline-delimited", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumNewlineDelimited", + "decorators": [], + "namespace": "Encode.Array.Property" + }, + "parameters": [ + { + "$ref": "187" + }, + { + "$ref": "183" + }, + { + "$ref": "185" + } + ], + "response": { + "type": { + "$ref": "85" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Encode.Array.Property.extensibleEnumNewlineDelimited" } ], "parameters": [ { - "$id": "64", + "$id": "188", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "65", + "$id": "189", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1056,7 +3125,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "66", + "$id": "190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1074,7 +3143,7 @@ "crossLanguageDefinitionId": "Encode.Array.Property", "apiVersions": [], "parent": { - "$ref": "27" + "$ref": "87" }, "isMultiServiceClient": false } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormData.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormData.cs index d543051acc1..c6e02e93832 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormData.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormData.cs @@ -5,6 +5,7 @@ using System.ClientModel; using System.ClientModel.Primitives; using System.Threading.Tasks; +using Payload.MultiPart._FormData.File; using Payload.MultiPart._FormData.HttpParts; namespace Payload.MultiPart._FormData @@ -52,5 +53,7 @@ public partial class FormData public virtual Task AnonymousModelAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; public virtual FormDataHttpParts GetFormDataHttpPartsClient() => throw null; + + public virtual FormDataFile GetFormDataFileClient() => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataFile.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataFile.cs new file mode 100644 index 00000000000..055f8f20cb7 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataFile.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading.Tasks; + +namespace Payload.MultiPart._FormData.File +{ + public partial class FormDataFile + { + protected FormDataFile() => throw null; + + public ClientPipeline Pipeline => throw null; + + public virtual ClientResult UploadFileSpecificContentType(BinaryContent content, string contentType, RequestOptions options = null) => throw null; + + public virtual Task UploadFileSpecificContentTypeAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; + + public virtual ClientResult UploadFileRequiredFilename(BinaryContent content, string contentType, RequestOptions options = null) => throw null; + + public virtual Task UploadFileRequiredFilenameAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; + + public virtual ClientResult UploadFileArray(BinaryContent content, string contentType, RequestOptions options = null) => throw null; + + public virtual Task UploadFileArrayAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/Models/PayloadMultiPartContext.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/Models/PayloadMultiPartContext.cs index 390c801869d..860a01ecc93 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/Models/PayloadMultiPartContext.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/Models/PayloadMultiPartContext.cs @@ -4,6 +4,7 @@ using System.ClientModel.Primitives; using Payload.MultiPart._FormData; +using Payload.MultiPart._FormData.File; using Payload.MultiPart._FormData.HttpParts.NonString; namespace Payload.MultiPart diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json index 8e85d21ccae..cef69d74b7f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json @@ -1,14 +1,12 @@ { "name": "Payload.MultiPart", "apiVersions": [], - "enums": [], - "constants": [ + "enums": [ { "$id": "1", - "kind": "constant", - "name": "FileSpecificContentTypeContentType", - "namespace": "Payload.MultiPart", - "usage": "Input", + "kind": "enum", + "name": "File1ContentType", + "crossLanguageDefinitionId": "", "valueType": { "$id": "2", "kind": "string", @@ -16,31 +14,40 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "image/jpg", - "decorators": [] - }, - { - "$id": "3", - "kind": "constant", - "name": "BasicRequestContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "4", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "image/png", + "value": "image/png", + "valueType": { + "$id": "4", + "kind": "string", + "decorators": [], + "doc": "A sequence of textual characters.", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "TypeSpec.Http", + "isFixed": false, + "isFlags": false, + "usage": "Input", "decorators": [] - }, + } + ], + "constants": [ { "$id": "5", "kind": "constant", - "name": "BasicRequestContentType1", - "namespace": "", - "usage": "None", + "name": "FileSpecificContentTypeContentType", + "namespace": "Payload.MultiPart", + "usage": "Input", "valueType": { "$id": "6", "kind": "string", @@ -48,13 +55,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "multipart/form-data", + "value": "image/jpg", "decorators": [] }, { "$id": "7", "kind": "constant", - "name": "BasicRequestContentType2", + "name": "BasicRequestContentType", "namespace": "", "usage": "None", "valueType": { @@ -70,7 +77,7 @@ { "$id": "9", "kind": "constant", - "name": "BasicRequestContentType3", + "name": "BasicRequestContentType1", "namespace": "", "usage": "None", "valueType": { @@ -86,7 +93,7 @@ { "$id": "11", "kind": "constant", - "name": "BasicRequestContentType4", + "name": "BasicRequestContentType2", "namespace": "", "usage": "None", "valueType": { @@ -102,7 +109,7 @@ { "$id": "13", "kind": "constant", - "name": "BasicRequestContentType5", + "name": "BasicRequestContentType3", "namespace": "", "usage": "None", "valueType": { @@ -118,7 +125,7 @@ { "$id": "15", "kind": "constant", - "name": "BasicRequestContentType6", + "name": "BasicRequestContentType4", "namespace": "", "usage": "None", "valueType": { @@ -134,7 +141,7 @@ { "$id": "17", "kind": "constant", - "name": "BasicRequestContentType7", + "name": "BasicRequestContentType5", "namespace": "", "usage": "None", "valueType": { @@ -150,7 +157,7 @@ { "$id": "19", "kind": "constant", - "name": "BasicRequestContentType8", + "name": "BasicRequestContentType6", "namespace": "", "usage": "None", "valueType": { @@ -166,7 +173,7 @@ { "$id": "21", "kind": "constant", - "name": "BasicRequestContentType9", + "name": "BasicRequestContentType7", "namespace": "", "usage": "None", "valueType": { @@ -182,7 +189,7 @@ { "$id": "23", "kind": "constant", - "name": "BasicRequestContentType10", + "name": "BasicRequestContentType8", "namespace": "", "usage": "None", "valueType": { @@ -198,7 +205,7 @@ { "$id": "25", "kind": "constant", - "name": "BasicRequestContentType11", + "name": "BasicRequestContentType9", "namespace": "", "usage": "None", "valueType": { @@ -214,7 +221,7 @@ { "$id": "27", "kind": "constant", - "name": "BasicRequestContentType12", + "name": "BasicRequestContentType10", "namespace": "", "usage": "None", "valueType": { @@ -230,7 +237,7 @@ { "$id": "29", "kind": "constant", - "name": "BasicRequestContentType13", + "name": "BasicRequestContentType11", "namespace": "", "usage": "None", "valueType": { @@ -246,7 +253,7 @@ { "$id": "31", "kind": "constant", - "name": "BasicRequestContentType14", + "name": "BasicRequestContentType12", "namespace": "", "usage": "None", "valueType": { @@ -262,7 +269,7 @@ { "$id": "33", "kind": "constant", - "name": "BasicRequestContentType15", + "name": "BasicRequestContentType13", "namespace": "", "usage": "None", "valueType": { @@ -278,7 +285,7 @@ { "$id": "35", "kind": "constant", - "name": "BasicRequestContentType16", + "name": "BasicRequestContentType14", "namespace": "", "usage": "None", "valueType": { @@ -294,7 +301,7 @@ { "$id": "37", "kind": "constant", - "name": "BasicRequestContentType17", + "name": "BasicRequestContentType15", "namespace": "", "usage": "None", "valueType": { @@ -310,7 +317,7 @@ { "$id": "39", "kind": "constant", - "name": "BasicRequestContentType18", + "name": "BasicRequestContentType16", "namespace": "", "usage": "None", "valueType": { @@ -326,7 +333,7 @@ { "$id": "41", "kind": "constant", - "name": "BasicRequestContentType19", + "name": "BasicRequestContentType17", "namespace": "", "usage": "None", "valueType": { @@ -342,7 +349,7 @@ { "$id": "43", "kind": "constant", - "name": "BasicRequestContentType20", + "name": "BasicRequestContentType18", "namespace": "", "usage": "None", "valueType": { @@ -358,7 +365,7 @@ { "$id": "45", "kind": "constant", - "name": "BasicRequestContentType21", + "name": "BasicRequestContentType19", "namespace": "", "usage": "None", "valueType": { @@ -374,7 +381,7 @@ { "$id": "47", "kind": "constant", - "name": "BasicRequestContentType22", + "name": "BasicRequestContentType20", "namespace": "", "usage": "None", "valueType": { @@ -390,7 +397,7 @@ { "$id": "49", "kind": "constant", - "name": "BasicRequestContentType23", + "name": "BasicRequestContentType21", "namespace": "", "usage": "None", "valueType": { @@ -406,7 +413,7 @@ { "$id": "51", "kind": "constant", - "name": "BasicRequestContentType24", + "name": "BasicRequestContentType22", "namespace": "", "usage": "None", "valueType": { @@ -422,7 +429,7 @@ { "$id": "53", "kind": "constant", - "name": "BasicRequestContentType25", + "name": "BasicRequestContentType23", "namespace": "", "usage": "None", "valueType": { @@ -438,7 +445,7 @@ { "$id": "55", "kind": "constant", - "name": "BasicRequestContentType26", + "name": "BasicRequestContentType24", "namespace": "", "usage": "None", "valueType": { @@ -454,7 +461,7 @@ { "$id": "57", "kind": "constant", - "name": "BasicRequestContentType27", + "name": "BasicRequestContentType25", "namespace": "", "usage": "None", "valueType": { @@ -466,11 +473,139 @@ }, "value": "multipart/form-data", "decorators": [] + }, + { + "$id": "59", + "kind": "constant", + "name": "BasicRequestContentType26", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "61", + "kind": "constant", + "name": "BasicRequestContentType27", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "62", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "63", + "kind": "constant", + "name": "BasicRequestContentType28", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "65", + "kind": "constant", + "name": "BasicRequestContentType29", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "67", + "kind": "constant", + "name": "BasicRequestContentType30", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "69", + "kind": "constant", + "name": "BasicRequestContentType31", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "70", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "71", + "kind": "constant", + "name": "BasicRequestContentType32", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + { + "$id": "73", + "kind": "constant", + "name": "BasicRequestContentType33", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] } ], "models": [ { - "$id": "59", + "$id": "75", "kind": "model", "name": "MultiPartRequest", "namespace": "Payload.MultiPart", @@ -480,12 +615,12 @@ "serializationOptions": {}, "properties": [ { - "$id": "60", + "$id": "76", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "61", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -511,12 +646,12 @@ "isHttpMetadata": false }, { - "$id": "62", + "$id": "78", "kind": "property", "name": "profileImage", "serializedName": "profileImage", "type": { - "$id": "63", + "$id": "79", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -545,7 +680,7 @@ ] }, { - "$id": "64", + "$id": "80", "kind": "model", "name": "MultiPartRequestWithWireName", "namespace": "Payload.MultiPart", @@ -555,12 +690,12 @@ "serializationOptions": {}, "properties": [ { - "$id": "65", + "$id": "81", "kind": "property", "name": "identifier", "serializedName": "id", "type": { - "$id": "66", + "$id": "82", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -586,12 +721,12 @@ "isHttpMetadata": false }, { - "$id": "67", + "$id": "83", "kind": "property", "name": "image", "serializedName": "profileImage", "type": { - "$id": "68", + "$id": "84", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -620,7 +755,7 @@ ] }, { - "$id": "69", + "$id": "85", "kind": "model", "name": "MultiPartOptionalRequest", "namespace": "Payload.MultiPart", @@ -630,12 +765,12 @@ "serializationOptions": {}, "properties": [ { - "$id": "70", + "$id": "86", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "71", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -661,12 +796,12 @@ "isHttpMetadata": false }, { - "$id": "72", + "$id": "88", "kind": "property", "name": "profileImage", "serializedName": "profileImage", "type": { - "$id": "73", + "$id": "89", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -695,7 +830,7 @@ ] }, { - "$id": "74", + "$id": "90", "kind": "model", "name": "ComplexPartsRequest", "namespace": "Payload.MultiPart", @@ -705,12 +840,12 @@ "serializationOptions": {}, "properties": [ { - "$id": "75", + "$id": "91", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "76", + "$id": "92", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -736,12 +871,12 @@ "isHttpMetadata": false }, { - "$id": "77", + "$id": "93", "kind": "property", "name": "address", "serializedName": "address", "type": { - "$id": "78", + "$id": "94", "kind": "model", "name": "Address", "namespace": "Payload.MultiPart", @@ -751,12 +886,12 @@ "serializationOptions": {}, "properties": [ { - "$id": "79", + "$id": "95", "kind": "property", "name": "city", "serializedName": "city", "type": { - "$id": "80", + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -797,12 +932,12 @@ "isHttpMetadata": false }, { - "$id": "81", + "$id": "97", "kind": "property", "name": "profileImage", "serializedName": "profileImage", "type": { - "$id": "82", + "$id": "98", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -829,16 +964,16 @@ "isHttpMetadata": false }, { - "$id": "83", + "$id": "99", "kind": "property", "name": "pictures", "serializedName": "pictures", "type": { - "$id": "84", + "$id": "100", "kind": "array", "name": "ArrayHttpPart", "valueType": { - "$id": "85", + "$id": "101", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -870,10 +1005,10 @@ ] }, { - "$ref": "78" + "$ref": "94" }, { - "$id": "86", + "$id": "102", "kind": "model", "name": "JsonPartRequest", "namespace": "Payload.MultiPart", @@ -883,12 +1018,12 @@ "serializationOptions": {}, "properties": [ { - "$id": "87", + "$id": "103", "kind": "property", "name": "address", "serializedName": "address", "type": { - "$ref": "78" + "$ref": "94" }, "optional": false, "readOnly": false, @@ -910,12 +1045,12 @@ "isHttpMetadata": false }, { - "$id": "88", + "$id": "104", "kind": "property", "name": "profileImage", "serializedName": "profileImage", "type": { - "$id": "89", + "$id": "105", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -944,7 +1079,7 @@ ] }, { - "$id": "90", + "$id": "106", "kind": "model", "name": "BinaryArrayPartsRequest", "namespace": "Payload.MultiPart", @@ -954,12 +1089,12 @@ "serializationOptions": {}, "properties": [ { - "$id": "91", + "$id": "107", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "92", + "$id": "108", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -985,16 +1120,16 @@ "isHttpMetadata": false }, { - "$id": "93", + "$id": "109", "kind": "property", "name": "pictures", "serializedName": "pictures", "type": { - "$id": "94", + "$id": "110", "kind": "array", "name": "ArrayHttpPart1", "valueType": { - "$id": "95", + "$id": "111", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1026,7 +1161,7 @@ ] }, { - "$id": "96", + "$id": "112", "kind": "model", "name": "MultiBinaryPartsRequest", "namespace": "Payload.MultiPart", @@ -1036,12 +1171,12 @@ "serializationOptions": {}, "properties": [ { - "$id": "97", + "$id": "113", "kind": "property", "name": "profileImage", "serializedName": "profileImage", "type": { - "$id": "98", + "$id": "114", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1068,12 +1203,12 @@ "isHttpMetadata": false }, { - "$id": "99", + "$id": "115", "kind": "property", "name": "picture", "serializedName": "picture", "type": { - "$id": "100", + "$id": "116", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1102,7 +1237,7 @@ ] }, { - "$id": "101", + "$id": "117", "kind": "model", "name": "AnonymousModelRequest", "namespace": "Payload.MultiPart.FormData", @@ -1112,12 +1247,12 @@ "serializationOptions": {}, "properties": [ { - "$id": "102", + "$id": "118", "kind": "property", "name": "profileImage", "serializedName": "profileImage", "type": { - "$id": "103", + "$id": "119", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1146,7 +1281,7 @@ ] }, { - "$id": "104", + "$id": "120", "kind": "model", "name": "ComplexHttpPartsModelRequest", "namespace": "Payload.MultiPart", @@ -1156,12 +1291,12 @@ "serializationOptions": {}, "properties": [ { - "$id": "105", + "$id": "121", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "106", + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1187,12 +1322,12 @@ "isHttpMetadata": false }, { - "$id": "107", + "$id": "123", "kind": "property", "name": "address", "serializedName": "address", "type": { - "$ref": "78" + "$ref": "94" }, "optional": false, "readOnly": false, @@ -1214,12 +1349,12 @@ "isHttpMetadata": false }, { - "$id": "108", + "$id": "124", "kind": "property", "name": "profileImage", "serializedName": "profileImage", "type": { - "$id": "109", + "$id": "125", "kind": "model", "name": "FileRequiredMetaData", "namespace": "Payload.MultiPart", @@ -1228,7 +1363,7 @@ "decorators": [], "serializationOptions": {}, "baseModel": { - "$id": "110", + "$id": "126", "kind": "model", "name": "File", "namespace": "TypeSpec.Http", @@ -1240,13 +1375,13 @@ "serializationOptions": {}, "properties": [ { - "$id": "111", + "$id": "127", "kind": "property", "name": "contentType", "summary": "The allowed media (MIME) types of the file contents.", "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", "type": { - "$id": "112", + "$id": "128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1262,13 +1397,13 @@ "isHttpMetadata": false }, { - "$id": "113", + "$id": "129", "kind": "property", "name": "filename", "summary": "The name of the file, if any.", "doc": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.", "type": { - "$id": "114", + "$id": "130", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1284,13 +1419,13 @@ "isHttpMetadata": false }, { - "$id": "115", + "$id": "131", "kind": "property", "name": "contents", "summary": "The contents of the file.", "doc": "The contents of the file.\n\nIn file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,\nthis value is serialized as a field in the response.", "type": { - "$id": "116", + "$id": "132", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1310,11 +1445,11 @@ }, "properties": [ { - "$id": "117", + "$id": "133", "kind": "property", "name": "filename", "type": { - "$id": "118", + "$id": "134", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1330,11 +1465,11 @@ "isHttpMetadata": false }, { - "$id": "119", + "$id": "135", "kind": "property", "name": "contentType", "type": { - "$id": "120", + "$id": "136", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1362,10 +1497,10 @@ "isFilePart": true, "isMulti": false, "filename": { - "$id": "121", + "$id": "137", "apiVersions": [], "type": { - "$id": "122", + "$id": "138", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -1395,10 +1530,10 @@ "serializationOptions": {} }, "contentType": { - "$id": "123", + "$id": "139", "apiVersions": [], "type": { - "$id": "124", + "$id": "140", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -1437,16 +1572,16 @@ "isHttpMetadata": false }, { - "$id": "125", + "$id": "141", "kind": "property", "name": "previousAddresses", "serializedName": "previousAddresses", "type": { - "$id": "126", + "$id": "142", "kind": "array", "name": "ArrayAddress", "valueType": { - "$ref": "78" + "$ref": "94" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -1471,16 +1606,16 @@ "isHttpMetadata": false }, { - "$id": "127", + "$id": "143", "kind": "property", "name": "pictures", "serializedName": "pictures", "type": { - "$id": "128", + "$id": "144", "kind": "array", "name": "ArrayHttpPart2", "valueType": { - "$ref": "109" + "$ref": "125" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -1496,10 +1631,10 @@ "isFilePart": true, "isMulti": true, "filename": { - "$ref": "121" + "$ref": "137" }, "contentType": { - "$ref": "123" + "$ref": "139" }, "defaultContentTypes": [ "*/*" @@ -1513,72 +1648,98 @@ ] }, { - "$ref": "109" + "$ref": "125" }, { - "$ref": "110" + "$ref": "126" }, { - "$id": "129", + "$id": "145", "kind": "model", - "name": "FileWithHttpPartSpecificContentTypeRequest", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartSpecificContentTypeRequest", + "name": "UploadFileSpecificContentTypeRequest", + "namespace": "Payload.MultiPart.FormData.File", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileSpecificContentType.Request.anonymous", "usage": "Input,MultipartFormData", "decorators": [], "serializationOptions": {}, "properties": [ { - "$id": "130", + "$id": "146", "kind": "property", - "name": "profileImage", - "serializedName": "profileImage", + "name": "file", + "serializedName": "file", "type": { - "$id": "131", + "$id": "147", "kind": "model", - "name": "FileSpecificContentType", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType", + "name": "File1", + "namespace": "TypeSpec.Http", + "crossLanguageDefinitionId": "TypeSpec.Http.File", "usage": "Input", + "doc": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below.", + "summary": "A file in an HTTP request, response, or multipart payload.", "decorators": [], "serializationOptions": {}, - "baseModel": { - "$ref": "110" - }, "properties": [ { - "$id": "132", + "$id": "148", "kind": "property", - "name": "filename", + "name": "contentType", + "summary": "The allowed media (MIME) types of the file contents.", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", "type": { - "$id": "133", + "$ref": "1" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "149", + "kind": "property", + "name": "filename", + "summary": "The name of the file, if any.", + "doc": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.", + "type": { + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "optional": false, + "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.filename", + "crossLanguageDefinitionId": "TypeSpec.Http.File.filename", "serializationOptions": {}, "isHttpMetadata": false }, { - "$id": "134", + "$id": "151", "kind": "property", - "name": "contentType", + "name": "contents", + "summary": "The contents of the file.", + "doc": "The contents of the file.\n\nIn file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,\nthis value is serialized as a field in the response.", "type": { - "$ref": "1" + "$id": "152", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.contentType", + "crossLanguageDefinitionId": "TypeSpec.Http.File.contents", "serializationOptions": {}, "isHttpMetadata": false } @@ -1589,16 +1750,18 @@ "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartSpecificContentTypeRequest.profileImage", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileSpecificContentType.Request.anonymous.file", "serializationOptions": { "multipart": { "isFilePart": true, "isMulti": false, "filename": { - "$id": "135", + "$id": "153", + "doc": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.", + "summary": "The name of the file, if any.", "apiVersions": [], "type": { - "$id": "136", + "$id": "154", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -1607,10 +1770,10 @@ }, "name": "filename", "isGeneratedName": false, - "optional": false, + "optional": true, "isApiVersionParam": false, "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.filename", + "crossLanguageDefinitionId": "TypeSpec.Http.File.filename", "decorators": [], "visibility": [ 1, @@ -1628,30 +1791,27 @@ "serializationOptions": {} }, "contentType": { - "$id": "137", + "$id": "155", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "summary": "The allowed media (MIME) types of the file contents.", "apiVersions": [], "type": { - "$id": "138", + "$id": "156", "kind": "constant", "decorators": [], - "value": "image/jpg", + "value": "image/png", "valueType": { - "$id": "139", - "kind": "string", - "decorators": [], - "doc": "A sequence of textual characters.", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$ref": "4" }, - "name": "FileSpecificContentTypeContentType", + "name": "FileContentType", "isGeneratedName": true }, "name": "contentType", "isGeneratedName": false, - "optional": false, + "optional": true, "isApiVersionParam": false, "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.contentType", + "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", "decorators": [], "visibility": [ 1, @@ -1669,9 +1829,9 @@ "serializationOptions": {} }, "defaultContentTypes": [ - "image/jpg" + "image/png" ], - "name": "profileImage", + "name": "file", "headers": [] } }, @@ -1680,46 +1840,108 @@ ] }, { - "$ref": "131" + "$ref": "147" }, { - "$id": "140", + "$id": "157", "kind": "model", - "name": "FileWithHttpPartRequiredContentTypeRequest", - "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartRequiredContentTypeRequest", + "name": "UploadFileRequiredFilenameRequest", + "namespace": "Payload.MultiPart.FormData.File", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileRequiredFilename.Request.anonymous", "usage": "Input,MultipartFormData", "decorators": [], "serializationOptions": {}, "properties": [ { - "$id": "141", + "$id": "158", "kind": "property", - "name": "profileImage", - "serializedName": "profileImage", + "name": "file", + "serializedName": "file", "type": { - "$ref": "109" + "$id": "159", + "kind": "model", + "name": "FileWithRequiredFilename", + "namespace": "Payload.MultiPart.FormData.File", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.FileWithRequiredFilename", + "usage": "Input", + "decorators": [], + "serializationOptions": {}, + "baseModel": { + "$ref": "147" + }, + "properties": [ + { + "$id": "160", + "kind": "property", + "name": "filename", + "type": { + "$id": "161", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.FileWithRequiredFilename.filename", + "serializationOptions": {}, + "isHttpMetadata": false + } + ] }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartRequiredContentTypeRequest.profileImage", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileRequiredFilename.Request.anonymous.file", "serializationOptions": { "multipart": { "isFilePart": true, "isMulti": false, "filename": { - "$ref": "121" + "$id": "162", + "apiVersions": [], + "type": { + "$id": "163", + "kind": "string", + "decorators": [], + "doc": "A sequence of textual characters.", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "filename", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.FileWithRequiredFilename.filename", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "flatten": false, + "kind": "property", + "discriminator": false, + "serializedName": "filename", + "isMultipartFileInput": false, + "serializationOptions": {} }, "contentType": { - "$ref": "123" + "$ref": "155" }, "defaultContentTypes": [ - "*/*" + "image/png" ], - "name": "profileImage", + "name": "file", "headers": [] } }, @@ -1728,39 +1950,94 @@ ] }, { - "$id": "142", + "$ref": "159" + }, + { + "$id": "164", "kind": "model", - "name": "FileWithHttpPartOptionalContentTypeRequest", + "name": "UploadFileArrayRequest", + "namespace": "Payload.MultiPart.FormData.File", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileArray.Request.anonymous", + "usage": "Input,MultipartFormData", + "decorators": [], + "serializationOptions": {}, + "properties": [ + { + "$id": "165", + "kind": "property", + "name": "files", + "serializedName": "files", + "type": { + "$id": "166", + "kind": "array", + "name": "ArrayHttpPart3", + "valueType": { + "$ref": "147" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileArray.Request.anonymous.files", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": true, + "filename": { + "$ref": "153" + }, + "contentType": { + "$ref": "155" + }, + "defaultContentTypes": [ + "image/png" + ], + "name": "files", + "headers": [] + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "167", + "kind": "model", + "name": "FileWithHttpPartSpecificContentTypeRequest", "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartOptionalContentTypeRequest", + "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartSpecificContentTypeRequest", "usage": "Input,MultipartFormData", "decorators": [], "serializationOptions": {}, "properties": [ { - "$id": "143", + "$id": "168", "kind": "property", "name": "profileImage", "serializedName": "profileImage", "type": { - "$id": "144", + "$id": "169", "kind": "model", - "name": "FileOptionalContentType", + "name": "FileSpecificContentType", "namespace": "Payload.MultiPart", - "crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType", + "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType", "usage": "Input", "decorators": [], "serializationOptions": {}, "baseModel": { - "$ref": "110" + "$ref": "126" }, "properties": [ { - "$id": "145", + "$id": "170", "kind": "property", "name": "filename", "type": { - "$id": "146", + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1771,7 +2048,23 @@ "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType.filename", + "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.filename", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "172", + "kind": "property", + "name": "contentType", + "type": { + "$ref": "5" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.contentType", "serializationOptions": {}, "isHttpMetadata": false } @@ -1782,16 +2075,16 @@ "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartOptionalContentTypeRequest.profileImage", + "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartSpecificContentTypeRequest.profileImage", "serializationOptions": { "multipart": { "isFilePart": true, "isMulti": false, "filename": { - "$id": "147", + "$id": "173", "apiVersions": [], "type": { - "$id": "148", + "$id": "174", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -1803,7 +2096,7 @@ "optional": false, "isApiVersionParam": false, "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType.filename", + "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.filename", "decorators": [], "visibility": [ 1, @@ -1821,24 +2114,30 @@ "serializationOptions": {} }, "contentType": { - "$id": "149", - "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", - "summary": "The allowed media (MIME) types of the file contents.", + "$id": "175", "apiVersions": [], "type": { - "$id": "150", - "kind": "string", + "$id": "176", + "kind": "constant", "decorators": [], - "doc": "A sequence of textual characters.", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "value": "image/jpg", + "valueType": { + "$id": "177", + "kind": "string", + "decorators": [], + "doc": "A sequence of textual characters.", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "FileSpecificContentTypeContentType", + "isGeneratedName": true }, "name": "contentType", "isGeneratedName": false, - "optional": true, + "optional": false, "isApiVersionParam": false, "onClient": false, - "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", + "crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.contentType", "decorators": [], "visibility": [ 1, @@ -1856,7 +2155,7 @@ "serializationOptions": {} }, "defaultContentTypes": [ - "*/*" + "image/jpg" ], "name": "profileImage", "headers": [] @@ -1867,73 +2166,260 @@ ] }, { - "$ref": "144" + "$ref": "169" }, { - "$id": "151", + "$id": "178", "kind": "model", - "name": "FloatRequest", - "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.anonymous", + "name": "FileWithHttpPartRequiredContentTypeRequest", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartRequiredContentTypeRequest", "usage": "Input,MultipartFormData", "decorators": [], "serializationOptions": {}, "properties": [ { - "$id": "152", + "$id": "179", "kind": "property", - "name": "temperature", - "serializedName": "temperature", + "name": "profileImage", + "serializedName": "profileImage", "type": { - "$id": "153", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] + "$ref": "125" }, "optional": false, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.anonymous.temperature", + "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartRequiredContentTypeRequest.profileImage", "serializationOptions": { "multipart": { - "isFilePart": false, + "isFilePart": true, "isMulti": false, + "filename": { + "$ref": "137" + }, "contentType": { - "$id": "154", - "apiVersions": [], - "type": { - "$id": "155", - "kind": "constant", - "decorators": [], - "value": "text/plain", - "valueType": { - "$id": "156", - "kind": "string", - "decorators": [], - "doc": "A sequence of textual characters.", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "name": "FloatRequestTemperatureContentType", - "isGeneratedName": true - }, - "name": "contentType", - "isGeneratedName": false, - "optional": false, - "isApiVersionParam": false, - "onClient": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.temperature.anonymous.contentType", - "decorators": [], - "visibility": [ - 1, - 2, - 4, - 8, - 16 - ], + "$ref": "139" + }, + "defaultContentTypes": [ + "*/*" + ], + "name": "profileImage", + "headers": [] + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "180", + "kind": "model", + "name": "FileWithHttpPartOptionalContentTypeRequest", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartOptionalContentTypeRequest", + "usage": "Input,MultipartFormData", + "decorators": [], + "serializationOptions": {}, + "properties": [ + { + "$id": "181", + "kind": "property", + "name": "profileImage", + "serializedName": "profileImage", + "type": { + "$id": "182", + "kind": "model", + "name": "FileOptionalContentType", + "namespace": "Payload.MultiPart", + "crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType", + "usage": "Input", + "decorators": [], + "serializationOptions": {}, + "baseModel": { + "$ref": "126" + }, + "properties": [ + { + "$id": "183", + "kind": "property", + "name": "filename", + "type": { + "$id": "184", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType.filename", + "serializationOptions": {}, + "isHttpMetadata": false + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartOptionalContentTypeRequest.profileImage", + "serializationOptions": { + "multipart": { + "isFilePart": true, + "isMulti": false, + "filename": { + "$id": "185", + "apiVersions": [], + "type": { + "$id": "186", + "kind": "string", + "decorators": [], + "doc": "A sequence of textual characters.", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "filename", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType.filename", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "flatten": false, + "kind": "property", + "discriminator": false, + "serializedName": "filename", + "isMultipartFileInput": false, + "serializationOptions": {} + }, + "contentType": { + "$id": "187", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "summary": "The allowed media (MIME) types of the file contents.", + "apiVersions": [], + "type": { + "$id": "188", + "kind": "string", + "decorators": [], + "doc": "A sequence of textual characters.", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "contentType", + "isGeneratedName": false, + "optional": true, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], + "access": "public", + "flatten": false, + "kind": "property", + "discriminator": false, + "serializedName": "contentType", + "isMultipartFileInput": false, + "serializationOptions": {} + }, + "defaultContentTypes": [ + "*/*" + ], + "name": "profileImage", + "headers": [] + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "182" + }, + { + "$id": "189", + "kind": "model", + "name": "FloatRequest", + "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.anonymous", + "usage": "Input,MultipartFormData", + "decorators": [], + "serializationOptions": {}, + "properties": [ + { + "$id": "190", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "type": { + "$id": "191", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.anonymous.temperature", + "serializationOptions": { + "multipart": { + "isFilePart": false, + "isMulti": false, + "contentType": { + "$id": "192", + "apiVersions": [], + "type": { + "$id": "193", + "kind": "constant", + "decorators": [], + "value": "text/plain", + "valueType": { + "$id": "194", + "kind": "string", + "decorators": [], + "doc": "A sequence of textual characters.", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "name": "FloatRequestTemperatureContentType", + "isGeneratedName": true + }, + "name": "contentType", + "isGeneratedName": false, + "optional": false, + "isApiVersionParam": false, + "onClient": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.temperature.anonymous.contentType", + "decorators": [], + "visibility": [ + 1, + 2, + 4, + 8, + 16 + ], "access": "public", "flatten": false, "kind": "property", @@ -1956,7 +2442,7 @@ ], "clients": [ { - "$id": "157", + "$id": "195", "kind": "client", "name": "MultiPartClient", "namespace": "Payload.MultiPart", @@ -1964,13 +2450,13 @@ "methods": [], "parameters": [ { - "$id": "158", + "$id": "196", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "159", + "$id": "197", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1981,7 +2467,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "160", + "$id": "198", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2000,32 +2486,32 @@ "apiVersions": [], "children": [ { - "$id": "161", + "$id": "199", "kind": "client", "name": "FormData", "namespace": "Payload.MultiPart.FormData", "methods": [ { - "$id": "162", + "$id": "200", "kind": "basic", "name": "basic", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data", "operation": { - "$id": "163", + "$id": "201", "name": "basic", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "164", + "$id": "202", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "3" + "$ref": "7" }, "isApiVersion": false, "optional": false, @@ -2036,12 +2522,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic.contentType", "methodParameterSegments": [ { - "$id": "165", + "$id": "203", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "3" + "$ref": "7" }, "location": "Header", "isApiVersion": false, @@ -2055,12 +2541,12 @@ ] }, { - "$id": "166", + "$id": "204", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "59" + "$ref": "75" }, "isApiVersion": false, "contentTypes": [ @@ -2074,12 +2560,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic.body", "methodParameterSegments": [ { - "$id": "167", + "$id": "205", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "59" + "$ref": "75" }, "location": "Body", "isApiVersion": false, @@ -2117,10 +2603,10 @@ }, "parameters": [ { - "$ref": "165" + "$ref": "203" }, { - "$ref": "167" + "$ref": "205" } ], "response": {}, @@ -2130,26 +2616,26 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic" }, { - "$id": "168", + "$id": "206", "kind": "basic", "name": "withWireName", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data with wire names", "operation": { - "$id": "169", + "$id": "207", "name": "withWireName", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data with wire names", "accessibility": "public", "parameters": [ { - "$id": "170", + "$id": "208", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "7" + "$ref": "11" }, "isApiVersion": false, "optional": false, @@ -2160,12 +2646,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.withWireName.contentType", "methodParameterSegments": [ { - "$id": "171", + "$id": "209", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "7" + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -2179,12 +2665,12 @@ ] }, { - "$id": "172", + "$id": "210", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "64" + "$ref": "80" }, "isApiVersion": false, "contentTypes": [ @@ -2198,12 +2684,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.withWireName.body", "methodParameterSegments": [ { - "$id": "173", + "$id": "211", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "64" + "$ref": "80" }, "location": "Body", "isApiVersion": false, @@ -2241,10 +2727,10 @@ }, "parameters": [ { - "$ref": "171" + "$ref": "209" }, { - "$ref": "173" + "$ref": "211" } ], "response": {}, @@ -2254,26 +2740,26 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.withWireName" }, { - "$id": "174", + "$id": "212", "kind": "basic", "name": "optionalParts", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data with optional parts", "operation": { - "$id": "175", + "$id": "213", "name": "optionalParts", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data with optional parts", "accessibility": "public", "parameters": [ { - "$id": "176", + "$id": "214", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "11" + "$ref": "15" }, "isApiVersion": false, "optional": false, @@ -2284,12 +2770,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.optionalParts.contentType", "methodParameterSegments": [ { - "$id": "177", + "$id": "215", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "11" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -2303,12 +2789,12 @@ ] }, { - "$id": "178", + "$id": "216", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "69" + "$ref": "85" }, "isApiVersion": false, "contentTypes": [ @@ -2322,12 +2808,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.optionalParts.body", "methodParameterSegments": [ { - "$id": "179", + "$id": "217", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "69" + "$ref": "85" }, "location": "Body", "isApiVersion": false, @@ -2365,10 +2851,10 @@ }, "parameters": [ { - "$ref": "177" + "$ref": "215" }, { - "$ref": "179" + "$ref": "217" } ], "response": {}, @@ -2378,26 +2864,26 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.optionalParts" }, { - "$id": "180", + "$id": "218", "kind": "basic", "name": "fileArrayAndBasic", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for mixed scenarios", "operation": { - "$id": "181", + "$id": "219", "name": "fileArrayAndBasic", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data for mixed scenarios", "accessibility": "public", "parameters": [ { - "$id": "182", + "$id": "220", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "15" + "$ref": "19" }, "isApiVersion": false, "optional": false, @@ -2408,12 +2894,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic.contentType", "methodParameterSegments": [ { - "$id": "183", + "$id": "221", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "15" + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -2427,12 +2913,12 @@ ] }, { - "$id": "184", + "$id": "222", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "74" + "$ref": "90" }, "isApiVersion": false, "contentTypes": [ @@ -2446,12 +2932,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic.body", "methodParameterSegments": [ { - "$id": "185", + "$id": "223", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "74" + "$ref": "90" }, "location": "Body", "isApiVersion": false, @@ -2489,10 +2975,10 @@ }, "parameters": [ { - "$ref": "183" + "$ref": "221" }, { - "$ref": "185" + "$ref": "223" } ], "response": {}, @@ -2502,26 +2988,26 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic" }, { - "$id": "186", + "$id": "224", "kind": "basic", "name": "jsonPart", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", "operation": { - "$id": "187", + "$id": "225", "name": "jsonPart", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", "accessibility": "public", "parameters": [ { - "$id": "188", + "$id": "226", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "19" + "$ref": "23" }, "isApiVersion": false, "optional": false, @@ -2532,12 +3018,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart.contentType", "methodParameterSegments": [ { - "$id": "189", + "$id": "227", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "19" + "$ref": "23" }, "location": "Header", "isApiVersion": false, @@ -2551,12 +3037,12 @@ ] }, { - "$id": "190", + "$id": "228", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "86" + "$ref": "102" }, "isApiVersion": false, "contentTypes": [ @@ -2570,12 +3056,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart.body", "methodParameterSegments": [ { - "$id": "191", + "$id": "229", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "86" + "$ref": "102" }, "location": "Body", "isApiVersion": false, @@ -2613,10 +3099,10 @@ }, "parameters": [ { - "$ref": "189" + "$ref": "227" }, { - "$ref": "191" + "$ref": "229" } ], "response": {}, @@ -2626,26 +3112,26 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart" }, { - "$id": "192", + "$id": "230", "kind": "basic", "name": "binaryArrayParts", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", "operation": { - "$id": "193", + "$id": "231", "name": "binaryArrayParts", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", "accessibility": "public", "parameters": [ { - "$id": "194", + "$id": "232", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "23" + "$ref": "27" }, "isApiVersion": false, "optional": false, @@ -2656,12 +3142,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts.contentType", "methodParameterSegments": [ { - "$id": "195", + "$id": "233", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "23" + "$ref": "27" }, "location": "Header", "isApiVersion": false, @@ -2675,12 +3161,12 @@ ] }, { - "$id": "196", + "$id": "234", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "90" + "$ref": "106" }, "isApiVersion": false, "contentTypes": [ @@ -2694,12 +3180,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts.body", "methodParameterSegments": [ { - "$id": "197", + "$id": "235", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "90" + "$ref": "106" }, "location": "Body", "isApiVersion": false, @@ -2737,10 +3223,10 @@ }, "parameters": [ { - "$ref": "195" + "$ref": "233" }, { - "$ref": "197" + "$ref": "235" } ], "response": {}, @@ -2750,26 +3236,26 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts" }, { - "$id": "198", + "$id": "236", "kind": "basic", "name": "multiBinaryParts", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", "operation": { - "$id": "199", + "$id": "237", "name": "multiBinaryParts", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", "accessibility": "public", "parameters": [ { - "$id": "200", + "$id": "238", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "27" + "$ref": "31" }, "isApiVersion": false, "optional": false, @@ -2780,12 +3266,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts.contentType", "methodParameterSegments": [ { - "$id": "201", + "$id": "239", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "27" + "$ref": "31" }, "location": "Header", "isApiVersion": false, @@ -2799,12 +3285,12 @@ ] }, { - "$id": "202", + "$id": "240", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "96" + "$ref": "112" }, "isApiVersion": false, "contentTypes": [ @@ -2818,12 +3304,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts.body", "methodParameterSegments": [ { - "$id": "203", + "$id": "241", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "96" + "$ref": "112" }, "location": "Body", "isApiVersion": false, @@ -2861,10 +3347,10 @@ }, "parameters": [ { - "$ref": "201" + "$ref": "239" }, { - "$ref": "203" + "$ref": "241" } ], "response": {}, @@ -2874,26 +3360,26 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts" }, { - "$id": "204", + "$id": "242", "kind": "basic", "name": "checkFileNameAndContentType", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data", "operation": { - "$id": "205", + "$id": "243", "name": "checkFileNameAndContentType", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "206", + "$id": "244", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "31" + "$ref": "35" }, "isApiVersion": false, "optional": false, @@ -2904,12 +3390,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType.contentType", "methodParameterSegments": [ { - "$id": "207", + "$id": "245", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "31" + "$ref": "35" }, "location": "Header", "isApiVersion": false, @@ -2923,12 +3409,12 @@ ] }, { - "$id": "208", + "$id": "246", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "59" + "$ref": "75" }, "isApiVersion": false, "contentTypes": [ @@ -2942,12 +3428,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType.body", "methodParameterSegments": [ { - "$id": "209", + "$id": "247", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "59" + "$ref": "75" }, "location": "Body", "isApiVersion": false, @@ -2985,10 +3471,10 @@ }, "parameters": [ { - "$ref": "207" + "$ref": "245" }, { - "$ref": "209" + "$ref": "247" } ], "response": {}, @@ -2998,26 +3484,26 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType" }, { - "$id": "210", + "$id": "248", "kind": "basic", "name": "anonymousModel", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data", "operation": { - "$id": "211", + "$id": "249", "name": "anonymousModel", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "212", + "$id": "250", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "35" + "$ref": "39" }, "isApiVersion": false, "optional": false, @@ -3028,12 +3514,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.contentType", "methodParameterSegments": [ { - "$id": "213", + "$id": "251", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "35" + "$ref": "39" }, "location": "Header", "isApiVersion": false, @@ -3047,12 +3533,12 @@ ] }, { - "$id": "214", + "$id": "252", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "101" + "$ref": "117" }, "isApiVersion": false, "contentTypes": [ @@ -3066,12 +3552,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.body", "methodParameterSegments": [ { - "$id": "215", + "$id": "253", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "101" + "$ref": "117" }, "location": "Body", "isApiVersion": false, @@ -3109,10 +3595,10 @@ }, "parameters": [ { - "$ref": "213" + "$ref": "251" }, { - "$ref": "215" + "$ref": "253" } ], "response": {}, @@ -3124,13 +3610,13 @@ ], "parameters": [ { - "$id": "216", + "$id": "254", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "217", + "$id": "255", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3141,7 +3627,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "218", + "$id": "256", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3159,36 +3645,36 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData", "apiVersions": [], "parent": { - "$ref": "157" + "$ref": "195" }, "children": [ { - "$id": "219", + "$id": "257", "kind": "client", "name": "HttpParts", "namespace": "Payload.MultiPart.FormData.HttpParts", "methods": [ { - "$id": "220", + "$id": "258", "kind": "basic", "name": "jsonArrayAndFileArray", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for mixed scenarios", "operation": { - "$id": "221", + "$id": "259", "name": "jsonArrayAndFileArray", "resourceName": "HttpParts", "doc": "Test content-type: multipart/form-data for mixed scenarios", "accessibility": "public", "parameters": [ { - "$id": "222", + "$id": "260", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "39" + "$ref": "43" }, "isApiVersion": false, "optional": false, @@ -3199,12 +3685,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray.contentType", "methodParameterSegments": [ { - "$id": "223", + "$id": "261", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "39" + "$ref": "43" }, "location": "Header", "isApiVersion": false, @@ -3218,12 +3704,12 @@ ] }, { - "$id": "224", + "$id": "262", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "104" + "$ref": "120" }, "isApiVersion": false, "contentTypes": [ @@ -3237,12 +3723,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray.body", "methodParameterSegments": [ { - "$id": "225", + "$id": "263", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "104" + "$ref": "120" }, "location": "Body", "isApiVersion": false, @@ -3280,10 +3766,10 @@ }, "parameters": [ { - "$ref": "223" + "$ref": "261" }, { - "$ref": "225" + "$ref": "263" } ], "response": {}, @@ -3295,13 +3781,13 @@ ], "parameters": [ { - "$id": "226", + "$id": "264", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "227", + "$id": "265", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3312,7 +3798,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "228", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3330,36 +3816,36 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts", "apiVersions": [], "parent": { - "$ref": "161" + "$ref": "199" }, "children": [ { - "$id": "229", + "$id": "267", "kind": "client", "name": "ContentType", "namespace": "Payload.MultiPart.FormData.HttpParts.ContentType", "methods": [ { - "$id": "230", + "$id": "268", "kind": "basic", "name": "imageJpegContentType", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data", "operation": { - "$id": "231", + "$id": "269", "name": "imageJpegContentType", "resourceName": "ContentType", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "232", + "$id": "270", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "43" + "$ref": "47" }, "isApiVersion": false, "optional": false, @@ -3370,12 +3856,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType.contentType", "methodParameterSegments": [ { - "$id": "233", + "$id": "271", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "43" + "$ref": "47" }, "location": "Header", "isApiVersion": false, @@ -3389,12 +3875,12 @@ ] }, { - "$id": "234", + "$id": "272", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "129" + "$ref": "167" }, "isApiVersion": false, "contentTypes": [ @@ -3408,12 +3894,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType.body", "methodParameterSegments": [ { - "$id": "235", + "$id": "273", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "129" + "$ref": "167" }, "location": "Body", "isApiVersion": false, @@ -3451,10 +3937,10 @@ }, "parameters": [ { - "$ref": "233" + "$ref": "271" }, { - "$ref": "235" + "$ref": "273" } ], "response": {}, @@ -3464,26 +3950,26 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType" }, { - "$id": "236", + "$id": "274", "kind": "basic", "name": "requiredContentType", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data", "operation": { - "$id": "237", + "$id": "275", "name": "requiredContentType", "resourceName": "ContentType", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "238", + "$id": "276", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "47" + "$ref": "51" }, "isApiVersion": false, "optional": false, @@ -3494,12 +3980,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType.contentType", "methodParameterSegments": [ { - "$id": "239", + "$id": "277", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "47" + "$ref": "51" }, "location": "Header", "isApiVersion": false, @@ -3513,12 +3999,12 @@ ] }, { - "$id": "240", + "$id": "278", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "140" + "$ref": "178" }, "isApiVersion": false, "contentTypes": [ @@ -3532,12 +4018,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType.body", "methodParameterSegments": [ { - "$id": "241", + "$id": "279", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "140" + "$ref": "178" }, "location": "Body", "isApiVersion": false, @@ -3575,10 +4061,10 @@ }, "parameters": [ { - "$ref": "239" + "$ref": "277" }, { - "$ref": "241" + "$ref": "279" } ], "response": {}, @@ -3588,26 +4074,26 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType" }, { - "$id": "242", + "$id": "280", "kind": "basic", "name": "optionalContentType", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for optional content type", "operation": { - "$id": "243", + "$id": "281", "name": "optionalContentType", "resourceName": "ContentType", "doc": "Test content-type: multipart/form-data for optional content type", "accessibility": "public", "parameters": [ { - "$id": "244", + "$id": "282", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "51" + "$ref": "55" }, "isApiVersion": false, "optional": false, @@ -3618,12 +4104,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType.contentType", "methodParameterSegments": [ { - "$id": "245", + "$id": "283", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "51" + "$ref": "55" }, "location": "Header", "isApiVersion": false, @@ -3637,12 +4123,12 @@ ] }, { - "$id": "246", + "$id": "284", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "142" + "$ref": "180" }, "isApiVersion": false, "contentTypes": [ @@ -3656,12 +4142,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType.body", "methodParameterSegments": [ { - "$id": "247", + "$id": "285", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "142" + "$ref": "180" }, "location": "Body", "isApiVersion": false, @@ -3699,10 +4185,10 @@ }, "parameters": [ { - "$ref": "245" + "$ref": "283" }, { - "$ref": "247" + "$ref": "285" } ], "response": {}, @@ -3714,13 +4200,13 @@ ], "parameters": [ { - "$id": "248", + "$id": "286", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "249", + "$id": "287", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3731,7 +4217,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "250", + "$id": "288", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3749,37 +4235,37 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType", "apiVersions": [], "parent": { - "$ref": "219" + "$ref": "257" }, "isMultiServiceClient": false }, { - "$id": "251", + "$id": "289", "kind": "client", "name": "NonString", "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", "methods": [ { - "$id": "252", + "$id": "290", "kind": "basic", "name": "float", "accessibility": "public", "apiVersions": [], "doc": "Test content-type: multipart/form-data for non string", "operation": { - "$id": "253", + "$id": "291", "name": "float", "resourceName": "NonString", "doc": "Test content-type: multipart/form-data for non string", "accessibility": "public", "parameters": [ { - "$id": "254", + "$id": "292", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "55" + "$ref": "59" }, "isApiVersion": false, "optional": false, @@ -3790,12 +4276,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.contentType", "methodParameterSegments": [ { - "$id": "255", + "$id": "293", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "55" + "$ref": "59" }, "location": "Header", "isApiVersion": false, @@ -3809,12 +4295,12 @@ ] }, { - "$id": "256", + "$id": "294", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "151" + "$ref": "189" }, "isApiVersion": false, "contentTypes": [ @@ -3828,12 +4314,12 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.body", "methodParameterSegments": [ { - "$id": "257", + "$id": "295", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "151" + "$ref": "189" }, "location": "Body", "isApiVersion": false, @@ -3871,10 +4357,10 @@ }, "parameters": [ { - "$ref": "255" + "$ref": "293" }, { - "$ref": "257" + "$ref": "295" } ], "response": {}, @@ -3886,13 +4372,13 @@ ], "parameters": [ { - "$id": "258", + "$id": "296", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "259", + "$id": "297", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3903,7 +4389,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "260", + "$id": "298", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3921,12 +4407,426 @@ "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString", "apiVersions": [], "parent": { - "$ref": "219" + "$ref": "257" }, "isMultiServiceClient": false } ], "isMultiServiceClient": false + }, + { + "$id": "299", + "kind": "client", + "name": "File", + "namespace": "Payload.MultiPart.FormData.File", + "methods": [ + { + "$id": "300", + "kind": "basic", + "name": "uploadFileSpecificContentType", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "301", + "name": "uploadFileSpecificContentType", + "resourceName": "File", + "accessibility": "public", + "parameters": [ + { + "$id": "302", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "63" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileSpecificContentType.contentType", + "methodParameterSegments": [ + { + "$id": "303", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileSpecificContentType.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "304", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "145" + }, + "isApiVersion": false, + "contentTypes": [ + "multipart/form-data" + ], + "defaultContentType": "multipart/form-data", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileSpecificContentType.body", + "methodParameterSegments": [ + { + "$id": "305", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "145" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileSpecificContentType.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/file/specific-content-type", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileSpecificContentType", + "decorators": [], + "namespace": "Payload.MultiPart.FormData.File" + }, + "parameters": [ + { + "$ref": "303" + }, + { + "$ref": "305" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileSpecificContentType" + }, + { + "$id": "306", + "kind": "basic", + "name": "uploadFileRequiredFilename", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "307", + "name": "uploadFileRequiredFilename", + "resourceName": "File", + "accessibility": "public", + "parameters": [ + { + "$id": "308", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "67" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileRequiredFilename.contentType", + "methodParameterSegments": [ + { + "$id": "309", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "67" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileRequiredFilename.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "310", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "157" + }, + "isApiVersion": false, + "contentTypes": [ + "multipart/form-data" + ], + "defaultContentType": "multipart/form-data", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileRequiredFilename.body", + "methodParameterSegments": [ + { + "$id": "311", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "157" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileRequiredFilename.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/file/required-filename", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileRequiredFilename", + "decorators": [], + "namespace": "Payload.MultiPart.FormData.File" + }, + "parameters": [ + { + "$ref": "309" + }, + { + "$ref": "311" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileRequiredFilename" + }, + { + "$id": "312", + "kind": "basic", + "name": "uploadFileArray", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "313", + "name": "uploadFileArray", + "resourceName": "File", + "accessibility": "public", + "parameters": [ + { + "$id": "314", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "71" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileArray.contentType", + "methodParameterSegments": [ + { + "$id": "315", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileArray.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "316", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "164" + }, + "isApiVersion": false, + "contentTypes": [ + "multipart/form-data" + ], + "defaultContentType": "multipart/form-data", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileArray.body", + "methodParameterSegments": [ + { + "$id": "317", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "164" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileArray.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/file/file-array", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileArray", + "decorators": [], + "namespace": "Payload.MultiPart.FormData.File" + }, + "parameters": [ + { + "$ref": "315" + }, + { + "$ref": "317" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.uploadFileArray" + } + ], + "parameters": [ + { + "$id": "318", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "319", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "320", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.File", + "apiVersions": [], + "parent": { + "$ref": "199" + }, + "isMultiServiceClient": false } ], "isMultiServiceClient": false diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/PayloadPageableContext.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/PayloadPageableContext.cs index 16ab1269624..14ee36f4556 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/PayloadPageableContext.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/PayloadPageableContext.cs @@ -10,6 +10,7 @@ namespace Payload.Pageable { [ModelReaderWriterBuildable(typeof(Pet))] + [ModelReaderWriterBuildable(typeof(XmlPet))] public partial class PayloadPageableContext : ModelReaderWriterContext { } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/XmlPet.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/XmlPet.Serialization.cs new file mode 100644 index 00000000000..75060681b65 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/XmlPet.Serialization.cs @@ -0,0 +1,16 @@ +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; + +namespace Payload.Pageable +{ + public partial class XmlPet + { + internal XmlPet() => throw null; + + protected virtual XmlPet PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/XmlPet.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/XmlPet.cs new file mode 100644 index 00000000000..c5d4938028d --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/XmlPet.cs @@ -0,0 +1,13 @@ +// + +#nullable disable + +namespace Payload.Pageable +{ + public partial class XmlPet + { + public string Id => throw null; + + public string Name => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/PageableClient.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/PageableClient.cs index 61121f24241..990fa78c378 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/PageableClient.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/PageableClient.cs @@ -6,6 +6,7 @@ using System.ClientModel.Primitives; using Payload.Pageable._PageSize; using Payload.Pageable._ServerDrivenPagination; +using Payload.Pageable._XmlPagination; namespace Payload.Pageable { @@ -20,5 +21,7 @@ public partial class PageableClient public virtual ServerDrivenPagination GetServerDrivenPaginationClient() => throw null; public virtual PageSize GetPageSizeClient() => throw null; + + public virtual XmlPagination GetXmlPaginationClient() => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/PayloadPageableModelFactory.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/PayloadPageableModelFactory.cs index a49e5ee7889..84bdf1a3305 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/PayloadPageableModelFactory.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/PayloadPageableModelFactory.cs @@ -14,5 +14,7 @@ public static partial class PayloadPageableModelFactory { public static Pet Pet(string id = default, string name = default) => throw null; + + public static XmlPet XmlPet(string id = default, string name = default) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/XmlPagination.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/XmlPagination.cs new file mode 100644 index 00000000000..f5423d536cc --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/XmlPagination.cs @@ -0,0 +1,34 @@ +// + +#nullable disable + +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using Payload.Pageable; + +namespace Payload.Pageable._XmlPagination +{ + public partial class XmlPagination + { + protected XmlPagination() => throw null; + + public ClientPipeline Pipeline => throw null; + + public virtual CollectionResult GetWithContinuation(string marker, RequestOptions options) => throw null; + + public virtual AsyncCollectionResult GetWithContinuationAsync(string marker, RequestOptions options) => throw null; + + public virtual CollectionResult GetWithContinuation(string marker = default, CancellationToken cancellationToken = default) => throw null; + + public virtual AsyncCollectionResult GetWithContinuationAsync(string marker = default, CancellationToken cancellationToken = default) => throw null; + + public virtual CollectionResult GetWithNextLink(RequestOptions options) => throw null; + + public virtual AsyncCollectionResult GetWithNextLinkAsync(RequestOptions options) => throw null; + + public virtual CollectionResult GetWithNextLink(CancellationToken cancellationToken = default) => throw null; + + public virtual AsyncCollectionResult GetWithNextLinkAsync(CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/tspCodeModel.json index ea31bd2832e..12b360f531d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/tspCodeModel.json @@ -178,11 +178,75 @@ }, "value": "application/json", "decorators": [] + }, + { + "$id": "23", + "kind": "constant", + "name": "listWithContinuationContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "25", + "kind": "constant", + "name": "ListWithContinuationResponseContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "27", + "kind": "constant", + "name": "listWithNextLinkContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "29", + "kind": "constant", + "name": "ListWithContinuationResponseContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] } ], "models": [ { - "$id": "23", + "$id": "31", "kind": "model", "name": "LinkResponse", "namespace": "Payload.Pageable.ServerDrivenPagination", @@ -196,16 +260,16 @@ }, "properties": [ { - "$id": "24", + "$id": "32", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$id": "25", + "$id": "33", "kind": "array", "name": "ArrayPet", "valueType": { - "$id": "26", + "$id": "34", "kind": "model", "name": "Pet", "namespace": "Payload.Pageable", @@ -219,12 +283,12 @@ }, "properties": [ { - "$id": "27", + "$id": "35", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "28", + "$id": "36", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -244,12 +308,12 @@ "isHttpMetadata": false }, { - "$id": "29", + "$id": "37", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "30", + "$id": "38", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -287,12 +351,12 @@ "isHttpMetadata": false }, { - "$id": "31", + "$id": "39", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "32", + "$id": "40", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -314,10 +378,10 @@ ] }, { - "$ref": "26" + "$ref": "34" }, { - "$id": "33", + "$id": "41", "kind": "model", "name": "LinkStringResponse", "namespace": "Payload.Pageable.ServerDrivenPagination", @@ -331,12 +395,12 @@ }, "properties": [ { - "$id": "34", + "$id": "42", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "25" + "$ref": "33" }, "optional": false, "readOnly": false, @@ -352,12 +416,12 @@ "isHttpMetadata": false }, { - "$id": "35", + "$id": "43", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "36", + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -379,7 +443,7 @@ ] }, { - "$id": "37", + "$id": "45", "kind": "model", "name": "NestedLinkResponse", "namespace": "Payload.Pageable.ServerDrivenPagination", @@ -393,12 +457,12 @@ }, "properties": [ { - "$id": "38", + "$id": "46", "kind": "property", "name": "nestedItems", "serializedName": "nestedItems", "type": { - "$id": "39", + "$id": "47", "kind": "model", "name": "NestedLinkResponseNestedItems", "namespace": "Payload.Pageable.ServerDrivenPagination", @@ -412,12 +476,12 @@ }, "properties": [ { - "$id": "40", + "$id": "48", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "25" + "$ref": "33" }, "optional": false, "readOnly": false, @@ -448,12 +512,12 @@ "isHttpMetadata": false }, { - "$id": "41", + "$id": "49", "kind": "property", "name": "nestedNext", "serializedName": "nestedNext", "type": { - "$id": "42", + "$id": "50", "kind": "model", "name": "NestedLinkResponseNestedNext", "namespace": "Payload.Pageable.ServerDrivenPagination", @@ -467,12 +531,12 @@ }, "properties": [ { - "$id": "43", + "$id": "51", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "44", + "$id": "52", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -509,13 +573,13 @@ ] }, { - "$ref": "39" + "$ref": "47" }, { - "$ref": "42" + "$ref": "50" }, { - "$id": "45", + "$id": "53", "kind": "model", "name": "ListWithoutContinuationResponse", "namespace": "Payload.Pageable.PageSize", @@ -529,12 +593,12 @@ }, "properties": [ { - "$id": "46", + "$id": "54", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "25" + "$ref": "33" }, "optional": false, "readOnly": false, @@ -552,7 +616,7 @@ ] }, { - "$id": "47", + "$id": "55", "kind": "model", "name": "ListWithPageSizeResponse", "namespace": "Payload.Pageable.PageSize", @@ -566,12 +630,12 @@ }, "properties": [ { - "$id": "48", + "$id": "56", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "25" + "$ref": "33" }, "optional": false, "readOnly": false, @@ -589,7 +653,290 @@ ] }, { - "$id": "49", + "$id": "57", + "kind": "model", + "name": "XmlPetListResult", + "namespace": "Payload.Pageable", + "crossLanguageDefinitionId": "Payload.Pageable.XmlPetListResult", + "usage": "Output,Xml", + "doc": "The XML response for listing pets.", + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "PetListResult" + } + } + ], + "serializationOptions": { + "xml": { + "name": "PetListResult", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "58", + "kind": "property", + "name": "pets", + "serializedName": "Pets", + "type": { + "$id": "59", + "kind": "array", + "name": "ArrayXmlPet", + "valueType": { + "$id": "60", + "kind": "model", + "name": "XmlPet", + "namespace": "Payload.Pageable", + "crossLanguageDefinitionId": "Payload.Pageable.XmlPet", + "usage": "Output,Xml", + "doc": "An XML pet item.", + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "Pet" + } + } + ], + "serializationOptions": { + "xml": { + "name": "Pet", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "61", + "kind": "property", + "name": "id", + "serializedName": "Id", + "type": { + "$id": "62", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "Id" + } + } + ], + "crossLanguageDefinitionId": "Payload.Pageable.XmlPet.id", + "serializationOptions": { + "xml": { + "name": "Id", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "63", + "kind": "property", + "name": "name", + "serializedName": "Name", + "type": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "Name" + } + } + ], + "crossLanguageDefinitionId": "Payload.Pageable.XmlPet.name", + "serializationOptions": { + "xml": { + "name": "Name", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "Pets" + } + } + ], + "crossLanguageDefinitionId": "Payload.Pageable.XmlPetListResult.pets", + "serializationOptions": { + "xml": { + "name": "Pets", + "attribute": false, + "unwrapped": false, + "itemsName": "Pet" + } + }, + "isHttpMetadata": false + }, + { + "$id": "65", + "kind": "property", + "name": "nextMarker", + "serializedName": "NextMarker", + "type": { + "$id": "66", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "NextMarker" + } + } + ], + "crossLanguageDefinitionId": "Payload.Pageable.XmlPetListResult.nextMarker", + "serializationOptions": { + "xml": { + "name": "NextMarker", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "60" + }, + { + "$id": "67", + "kind": "model", + "name": "XmlPetListResultWithNextLink", + "namespace": "Payload.Pageable", + "crossLanguageDefinitionId": "Payload.Pageable.XmlPetListResultWithNextLink", + "usage": "Output,Xml", + "doc": "The XML response for listing pets with next link.", + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "PetListResult" + } + } + ], + "serializationOptions": { + "xml": { + "name": "PetListResult", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "68", + "kind": "property", + "name": "pets", + "serializedName": "Pets", + "type": { + "$ref": "59" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "Pets" + } + } + ], + "crossLanguageDefinitionId": "Payload.Pageable.XmlPetListResultWithNextLink.pets", + "serializationOptions": { + "xml": { + "name": "Pets", + "attribute": false, + "unwrapped": false, + "itemsName": "Pet" + } + }, + "isHttpMetadata": false + }, + { + "$id": "69", + "kind": "property", + "name": "nextLink", + "serializedName": "NextLink", + "type": { + "$id": "70", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "NextLink" + } + } + ], + "crossLanguageDefinitionId": "Payload.Pageable.XmlPetListResultWithNextLink.nextLink", + "serializationOptions": { + "xml": { + "name": "NextLink", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "71", "kind": "model", "name": "RequestQueryResponseBodyResponse", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -603,12 +950,12 @@ }, "properties": [ { - "$id": "50", + "$id": "72", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "25" + "$ref": "33" }, "optional": false, "readOnly": false, @@ -624,12 +971,12 @@ "isHttpMetadata": false }, { - "$id": "51", + "$id": "73", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "52", + "$id": "74", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -651,7 +998,7 @@ ] }, { - "$id": "53", + "$id": "75", "kind": "model", "name": "RequestHeaderResponseBodyResponse", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -665,12 +1012,12 @@ }, "properties": [ { - "$id": "54", + "$id": "76", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "25" + "$ref": "33" }, "optional": false, "readOnly": false, @@ -686,12 +1033,12 @@ "isHttpMetadata": false }, { - "$id": "55", + "$id": "77", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "56", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -713,7 +1060,7 @@ ] }, { - "$id": "57", + "$id": "79", "kind": "model", "name": "RequestQueryResponseHeaderResponse", "namespace": "", @@ -727,12 +1074,12 @@ }, "properties": [ { - "$id": "58", + "$id": "80", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "25" + "$ref": "33" }, "optional": false, "readOnly": false, @@ -750,7 +1097,7 @@ ] }, { - "$id": "59", + "$id": "81", "kind": "model", "name": "RequestHeaderResponseHeaderResponse", "namespace": "", @@ -764,12 +1111,12 @@ }, "properties": [ { - "$id": "60", + "$id": "82", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "25" + "$ref": "33" }, "optional": false, "readOnly": false, @@ -787,7 +1134,7 @@ ] }, { - "$id": "61", + "$id": "83", "kind": "model", "name": "RequestQueryNestedResponseBodyResponse", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -801,12 +1148,12 @@ }, "properties": [ { - "$id": "62", + "$id": "84", "kind": "property", "name": "nestedItems", "serializedName": "nestedItems", "type": { - "$id": "63", + "$id": "85", "kind": "model", "name": "RequestQueryNestedResponseBodyResponseNestedItems", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -820,12 +1167,12 @@ }, "properties": [ { - "$id": "64", + "$id": "86", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "25" + "$ref": "33" }, "optional": false, "readOnly": false, @@ -856,12 +1203,12 @@ "isHttpMetadata": false }, { - "$id": "65", + "$id": "87", "kind": "property", "name": "nestedNext", "serializedName": "nestedNext", "type": { - "$id": "66", + "$id": "88", "kind": "model", "name": "RequestQueryNestedResponseBodyResponseNestedNext", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -875,12 +1222,12 @@ }, "properties": [ { - "$id": "67", + "$id": "89", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "68", + "$id": "90", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -917,13 +1264,13 @@ ] }, { - "$ref": "63" + "$ref": "85" }, { - "$ref": "66" + "$ref": "88" }, { - "$id": "69", + "$id": "91", "kind": "model", "name": "RequestHeaderNestedResponseBodyResponse", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -937,12 +1284,12 @@ }, "properties": [ { - "$id": "70", + "$id": "92", "kind": "property", "name": "nestedItems", "serializedName": "nestedItems", "type": { - "$id": "71", + "$id": "93", "kind": "model", "name": "RequestHeaderNestedResponseBodyResponseNestedItems", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -956,12 +1303,12 @@ }, "properties": [ { - "$id": "72", + "$id": "94", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "25" + "$ref": "33" }, "optional": false, "readOnly": false, @@ -992,12 +1339,12 @@ "isHttpMetadata": false }, { - "$id": "73", + "$id": "95", "kind": "property", "name": "nestedNext", "serializedName": "nestedNext", "type": { - "$id": "74", + "$id": "96", "kind": "model", "name": "RequestHeaderNestedResponseBodyResponseNestedNext", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -1011,12 +1358,12 @@ }, "properties": [ { - "$id": "75", + "$id": "97", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "76", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1053,15 +1400,15 @@ ] }, { - "$ref": "71" + "$ref": "93" }, { - "$ref": "74" + "$ref": "96" } ], "clients": [ { - "$id": "77", + "$id": "99", "kind": "client", "name": "PageableClient", "namespace": "Payload.Pageable", @@ -1069,13 +1416,13 @@ "methods": [], "parameters": [ { - "$id": "78", + "$id": "100", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "79", + "$id": "101", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1086,7 +1433,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "80", + "$id": "102", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1105,25 +1452,25 @@ "apiVersions": [], "children": [ { - "$id": "81", + "$id": "103", "kind": "client", "name": "ServerDrivenPagination", "namespace": "Payload.Pageable.ServerDrivenPagination", "methods": [ { - "$id": "82", + "$id": "104", "kind": "paging", "name": "link", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "83", + "$id": "105", "name": "link", "resourceName": "ServerDrivenPagination", "accessibility": "public", "parameters": [ { - "$id": "84", + "$id": "106", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1139,7 +1486,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.accept", "methodParameterSegments": [ { - "$id": "85", + "$id": "107", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -1164,7 +1511,7 @@ 200 ], "bodyType": { - "$ref": "23" + "$ref": "31" }, "headers": [], "isErrorResponse": false, @@ -1185,12 +1532,12 @@ }, "parameters": [ { - "$ref": "85" + "$ref": "107" } ], "response": { "type": { - "$ref": "25" + "$ref": "33" }, "resultSegments": [ "pets" @@ -1214,19 +1561,19 @@ } }, { - "$id": "86", + "$id": "108", "kind": "paging", "name": "linkString", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "87", + "$id": "109", "name": "linkString", "resourceName": "ServerDrivenPagination", "accessibility": "public", "parameters": [ { - "$id": "88", + "$id": "110", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1242,7 +1589,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.linkString.accept", "methodParameterSegments": [ { - "$id": "89", + "$id": "111", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -1267,7 +1614,7 @@ 200 ], "bodyType": { - "$ref": "33" + "$ref": "41" }, "headers": [], "isErrorResponse": false, @@ -1288,12 +1635,12 @@ }, "parameters": [ { - "$ref": "89" + "$ref": "111" } ], "response": { "type": { - "$ref": "25" + "$ref": "33" }, "resultSegments": [ "pets" @@ -1317,19 +1664,19 @@ } }, { - "$id": "90", + "$id": "112", "kind": "paging", "name": "nestedLink", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "91", + "$id": "113", "name": "nestedLink", "resourceName": "ServerDrivenPagination", "accessibility": "public", "parameters": [ { - "$id": "92", + "$id": "114", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1345,7 +1692,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.nestedLink.accept", "methodParameterSegments": [ { - "$id": "93", + "$id": "115", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -1370,7 +1717,7 @@ 200 ], "bodyType": { - "$ref": "37" + "$ref": "45" }, "headers": [], "isErrorResponse": false, @@ -1391,12 +1738,12 @@ }, "parameters": [ { - "$ref": "93" + "$ref": "115" } ], "response": { "type": { - "$ref": "25" + "$ref": "33" }, "resultSegments": [ "nestedItems", @@ -1425,13 +1772,13 @@ ], "parameters": [ { - "$id": "94", + "$id": "116", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "95", + "$id": "117", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1442,7 +1789,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "96", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1460,34 +1807,34 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination", "apiVersions": [], "parent": { - "$ref": "77" + "$ref": "99" }, "children": [ { - "$id": "97", + "$id": "119", "kind": "client", "name": "ContinuationToken", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", "methods": [ { - "$id": "98", + "$id": "120", "kind": "paging", "name": "requestQueryResponseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "99", + "$id": "121", "name": "requestQueryResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "100", + "$id": "122", "kind": "query", "name": "token", "serializedName": "token", "type": { - "$id": "101", + "$id": "123", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1502,12 +1849,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "102", + "$id": "124", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "103", + "$id": "125", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1525,12 +1872,12 @@ ] }, { - "$id": "104", + "$id": "126", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "105", + "$id": "127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1545,12 +1892,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.foo", "methodParameterSegments": [ { - "$id": "106", + "$id": "128", "kind": "method", "name": "foo", "serializedName": "foo", "type": { - "$id": "107", + "$id": "129", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1568,12 +1915,12 @@ ] }, { - "$id": "108", + "$id": "130", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "109", + "$id": "131", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1588,12 +1935,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "110", + "$id": "132", "kind": "method", "name": "bar", "serializedName": "bar", "type": { - "$id": "111", + "$id": "133", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1611,7 +1958,7 @@ ] }, { - "$id": "112", + "$id": "134", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1627,7 +1974,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.accept", "methodParameterSegments": [ { - "$id": "113", + "$id": "135", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -1652,7 +1999,7 @@ 200 ], "bodyType": { - "$ref": "49" + "$ref": "71" }, "headers": [], "isErrorResponse": false, @@ -1673,21 +2020,21 @@ }, "parameters": [ { - "$ref": "102" + "$ref": "124" }, { - "$ref": "106" + "$ref": "128" }, { - "$ref": "110" + "$ref": "132" }, { - "$ref": "113" + "$ref": "135" } ], "response": { "type": { - "$ref": "25" + "$ref": "33" }, "resultSegments": [ "pets" @@ -1703,7 +2050,7 @@ ], "continuationToken": { "parameter": { - "$ref": "100" + "$ref": "122" }, "responseSegments": [ "nextToken" @@ -1714,24 +2061,24 @@ } }, { - "$id": "114", + "$id": "136", "kind": "paging", "name": "requestHeaderResponseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "115", + "$id": "137", "name": "requestHeaderResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "116", + "$id": "138", "kind": "header", "name": "token", "serializedName": "token", "type": { - "$id": "117", + "$id": "139", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1746,12 +2093,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.token", "methodParameterSegments": [ { - "$id": "118", + "$id": "140", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "119", + "$id": "141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1769,12 +2116,12 @@ ] }, { - "$id": "120", + "$id": "142", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "121", + "$id": "143", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1789,12 +2136,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.foo", "methodParameterSegments": [ { - "$id": "122", + "$id": "144", "kind": "method", "name": "foo", "serializedName": "foo", "type": { - "$id": "123", + "$id": "145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1812,12 +2159,12 @@ ] }, { - "$id": "124", + "$id": "146", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "125", + "$id": "147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1832,12 +2179,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "126", + "$id": "148", "kind": "method", "name": "bar", "serializedName": "bar", "type": { - "$id": "127", + "$id": "149", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1855,7 +2202,7 @@ ] }, { - "$id": "128", + "$id": "150", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1871,7 +2218,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.accept", "methodParameterSegments": [ { - "$id": "129", + "$id": "151", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -1896,7 +2243,7 @@ 200 ], "bodyType": { - "$ref": "53" + "$ref": "75" }, "headers": [], "isErrorResponse": false, @@ -1917,21 +2264,21 @@ }, "parameters": [ { - "$ref": "118" + "$ref": "140" }, { - "$ref": "122" + "$ref": "144" }, { - "$ref": "126" + "$ref": "148" }, { - "$ref": "129" + "$ref": "151" } ], "response": { "type": { - "$ref": "25" + "$ref": "33" }, "resultSegments": [ "pets" @@ -1947,7 +2294,7 @@ ], "continuationToken": { "parameter": { - "$ref": "116" + "$ref": "138" }, "responseSegments": [ "nextToken" @@ -1958,24 +2305,24 @@ } }, { - "$id": "130", + "$id": "152", "kind": "paging", "name": "requestQueryResponseHeader", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "131", + "$id": "153", "name": "requestQueryResponseHeader", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "132", + "$id": "154", "kind": "query", "name": "token", "serializedName": "token", "type": { - "$id": "133", + "$id": "155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1990,12 +2337,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "134", + "$id": "156", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "135", + "$id": "157", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2013,12 +2360,12 @@ ] }, { - "$id": "136", + "$id": "158", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "137", + "$id": "159", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2033,12 +2380,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.foo", "methodParameterSegments": [ { - "$id": "138", + "$id": "160", "kind": "method", "name": "foo", "serializedName": "foo", "type": { - "$id": "139", + "$id": "161", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2056,12 +2403,12 @@ ] }, { - "$id": "140", + "$id": "162", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "141", + "$id": "163", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2076,12 +2423,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "142", + "$id": "164", "kind": "method", "name": "bar", "serializedName": "bar", "type": { - "$id": "143", + "$id": "165", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2099,7 +2446,7 @@ ] }, { - "$id": "144", + "$id": "166", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2115,7 +2462,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.accept", "methodParameterSegments": [ { - "$id": "145", + "$id": "167", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -2140,14 +2487,14 @@ 200 ], "bodyType": { - "$ref": "57" + "$ref": "79" }, "headers": [ { "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "146", + "$id": "168", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2173,21 +2520,21 @@ }, "parameters": [ { - "$ref": "134" + "$ref": "156" }, { - "$ref": "138" + "$ref": "160" }, { - "$ref": "142" + "$ref": "164" }, { - "$ref": "145" + "$ref": "167" } ], "response": { "type": { - "$ref": "25" + "$ref": "33" }, "resultSegments": [ "pets" @@ -2203,7 +2550,7 @@ ], "continuationToken": { "parameter": { - "$ref": "132" + "$ref": "154" }, "responseSegments": [ "next-token" @@ -2214,24 +2561,24 @@ } }, { - "$id": "147", + "$id": "169", "kind": "paging", "name": "requestHeaderResponseHeader", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "148", + "$id": "170", "name": "requestHeaderResponseHeader", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "149", + "$id": "171", "kind": "header", "name": "token", "serializedName": "token", "type": { - "$id": "150", + "$id": "172", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2246,12 +2593,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.token", "methodParameterSegments": [ { - "$id": "151", + "$id": "173", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "152", + "$id": "174", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2269,12 +2616,12 @@ ] }, { - "$id": "153", + "$id": "175", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "154", + "$id": "176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2289,12 +2636,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.foo", "methodParameterSegments": [ { - "$id": "155", + "$id": "177", "kind": "method", "name": "foo", "serializedName": "foo", "type": { - "$id": "156", + "$id": "178", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2312,12 +2659,12 @@ ] }, { - "$id": "157", + "$id": "179", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "158", + "$id": "180", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2332,12 +2679,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "159", + "$id": "181", "kind": "method", "name": "bar", "serializedName": "bar", "type": { - "$id": "160", + "$id": "182", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2355,7 +2702,7 @@ ] }, { - "$id": "161", + "$id": "183", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2371,7 +2718,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.accept", "methodParameterSegments": [ { - "$id": "162", + "$id": "184", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -2396,14 +2743,14 @@ 200 ], "bodyType": { - "$ref": "59" + "$ref": "81" }, "headers": [ { "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "163", + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2429,21 +2776,21 @@ }, "parameters": [ { - "$ref": "151" + "$ref": "173" }, { - "$ref": "155" + "$ref": "177" }, { - "$ref": "159" + "$ref": "181" }, { - "$ref": "162" + "$ref": "184" } ], "response": { "type": { - "$ref": "25" + "$ref": "33" }, "resultSegments": [ "pets" @@ -2459,7 +2806,7 @@ ], "continuationToken": { "parameter": { - "$ref": "149" + "$ref": "171" }, "responseSegments": [ "next-token" @@ -2470,24 +2817,24 @@ } }, { - "$id": "164", + "$id": "186", "kind": "paging", "name": "requestQueryNestedResponseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "165", + "$id": "187", "name": "requestQueryNestedResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "166", + "$id": "188", "kind": "query", "name": "token", "serializedName": "token", "type": { - "$id": "167", + "$id": "189", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2502,12 +2849,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "168", + "$id": "190", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "169", + "$id": "191", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2525,12 +2872,12 @@ ] }, { - "$id": "170", + "$id": "192", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "171", + "$id": "193", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2545,12 +2892,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.foo", "methodParameterSegments": [ { - "$id": "172", + "$id": "194", "kind": "method", "name": "foo", "serializedName": "foo", "type": { - "$id": "173", + "$id": "195", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2568,12 +2915,12 @@ ] }, { - "$id": "174", + "$id": "196", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "175", + "$id": "197", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2588,12 +2935,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "176", + "$id": "198", "kind": "method", "name": "bar", "serializedName": "bar", "type": { - "$id": "177", + "$id": "199", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2611,7 +2958,7 @@ ] }, { - "$id": "178", + "$id": "200", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2627,7 +2974,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.accept", "methodParameterSegments": [ { - "$id": "179", + "$id": "201", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -2652,7 +2999,7 @@ 200 ], "bodyType": { - "$ref": "61" + "$ref": "83" }, "headers": [], "isErrorResponse": false, @@ -2673,21 +3020,21 @@ }, "parameters": [ { - "$ref": "168" + "$ref": "190" }, { - "$ref": "172" + "$ref": "194" }, { - "$ref": "176" + "$ref": "198" }, { - "$ref": "179" + "$ref": "201" } ], "response": { "type": { - "$ref": "25" + "$ref": "33" }, "resultSegments": [ "nestedItems", @@ -2705,7 +3052,7 @@ ], "continuationToken": { "parameter": { - "$ref": "166" + "$ref": "188" }, "responseSegments": [ "nestedNext", @@ -2717,24 +3064,24 @@ } }, { - "$id": "180", + "$id": "202", "kind": "paging", "name": "requestHeaderNestedResponseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "181", + "$id": "203", "name": "requestHeaderNestedResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "182", + "$id": "204", "kind": "header", "name": "token", "serializedName": "token", "type": { - "$id": "183", + "$id": "205", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2749,12 +3096,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.token", "methodParameterSegments": [ { - "$id": "184", + "$id": "206", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "185", + "$id": "207", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2772,12 +3119,12 @@ ] }, { - "$id": "186", + "$id": "208", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "187", + "$id": "209", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2792,12 +3139,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.foo", "methodParameterSegments": [ { - "$id": "188", + "$id": "210", "kind": "method", "name": "foo", "serializedName": "foo", "type": { - "$id": "189", + "$id": "211", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2815,12 +3162,12 @@ ] }, { - "$id": "190", + "$id": "212", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "191", + "$id": "213", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2835,12 +3182,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "192", + "$id": "214", "kind": "method", "name": "bar", "serializedName": "bar", "type": { - "$id": "193", + "$id": "215", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2858,7 +3205,7 @@ ] }, { - "$id": "194", + "$id": "216", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2874,7 +3221,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.accept", "methodParameterSegments": [ { - "$id": "195", + "$id": "217", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -2899,7 +3246,7 @@ 200 ], "bodyType": { - "$ref": "69" + "$ref": "91" }, "headers": [], "isErrorResponse": false, @@ -2920,21 +3267,21 @@ }, "parameters": [ { - "$ref": "184" + "$ref": "206" }, { - "$ref": "188" + "$ref": "210" }, { - "$ref": "192" + "$ref": "214" }, { - "$ref": "195" + "$ref": "217" } ], "response": { "type": { - "$ref": "25" + "$ref": "33" }, "resultSegments": [ "nestedItems", @@ -2952,7 +3299,7 @@ ], "continuationToken": { "parameter": { - "$ref": "182" + "$ref": "204" }, "responseSegments": [ "nestedNext", @@ -2966,13 +3313,13 @@ ], "parameters": [ { - "$id": "196", + "$id": "218", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "197", + "$id": "219", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2983,7 +3330,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "198", + "$id": "220", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3001,7 +3348,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", "apiVersions": [], "parent": { - "$ref": "81" + "$ref": "103" }, "isMultiServiceClient": false } @@ -3009,25 +3356,25 @@ "isMultiServiceClient": false }, { - "$id": "199", + "$id": "221", "kind": "client", "name": "PageSize", "namespace": "Payload.Pageable.PageSize", "methods": [ { - "$id": "200", + "$id": "222", "kind": "paging", "name": "listWithoutContinuation", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "201", + "$id": "223", "name": "listWithoutContinuation", "resourceName": "PageSize", "accessibility": "public", "parameters": [ { - "$id": "202", + "$id": "224", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3043,7 +3390,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithoutContinuation.accept", "methodParameterSegments": [ { - "$id": "203", + "$id": "225", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -3068,7 +3415,7 @@ 200 ], "bodyType": { - "$ref": "45" + "$ref": "53" }, "headers": [], "isErrorResponse": false, @@ -3089,12 +3436,12 @@ }, "parameters": [ { - "$ref": "203" + "$ref": "225" } ], "response": { "type": { - "$ref": "25" + "$ref": "33" }, "resultSegments": [ "pets" @@ -3112,24 +3459,24 @@ } }, { - "$id": "204", + "$id": "226", "kind": "paging", "name": "listWithPageSize", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "205", + "$id": "227", "name": "listWithPageSize", "resourceName": "PageSize", "accessibility": "public", "parameters": [ { - "$id": "206", + "$id": "228", "kind": "query", "name": "pageSize", "serializedName": "pageSize", "type": { - "$id": "207", + "$id": "229", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3144,12 +3491,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "208", + "$id": "230", "kind": "method", "name": "pageSize", "serializedName": "pageSize", "type": { - "$id": "209", + "$id": "231", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3167,7 +3514,7 @@ ] }, { - "$id": "210", + "$id": "232", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3183,7 +3530,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithPageSize.accept", "methodParameterSegments": [ { - "$id": "211", + "$id": "233", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -3208,7 +3555,7 @@ 200 ], "bodyType": { - "$ref": "47" + "$ref": "55" }, "headers": [], "isErrorResponse": false, @@ -3229,15 +3576,15 @@ }, "parameters": [ { - "$ref": "208" + "$ref": "230" }, { - "$ref": "211" + "$ref": "233" } ], "response": { "type": { - "$ref": "25" + "$ref": "33" }, "resultSegments": [ "pets" @@ -3259,13 +3606,13 @@ ], "parameters": [ { - "$id": "212", + "$id": "234", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "213", + "$id": "235", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3276,7 +3623,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "214", + "$id": "236", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3294,7 +3641,326 @@ "crossLanguageDefinitionId": "Payload.Pageable.PageSize", "apiVersions": [], "parent": { - "$ref": "77" + "$ref": "99" + }, + "isMultiServiceClient": false + }, + { + "$id": "237", + "kind": "client", + "name": "XmlPagination", + "namespace": "Payload.Pageable.XmlPagination", + "methods": [ + { + "$id": "238", + "kind": "paging", + "name": "listWithContinuation", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "239", + "name": "listWithContinuation", + "resourceName": "XmlPagination", + "accessibility": "public", + "parameters": [ + { + "$id": "240", + "kind": "query", + "name": "marker", + "serializedName": "marker", + "type": { + "$id": "241", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.listWithContinuation.marker", + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "242", + "kind": "method", + "name": "marker", + "serializedName": "marker", + "type": { + "$id": "243", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.listWithContinuation.marker", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "244", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "23" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.listWithContinuation.accept", + "methodParameterSegments": [ + { + "$id": "245", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.listWithContinuation.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "57" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "25" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/pageable/xml/list-with-continuation", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.listWithContinuation", + "decorators": [], + "namespace": "Payload.Pageable.XmlPagination" + }, + "parameters": [ + { + "$ref": "242" + }, + { + "$ref": "245" + } + ], + "response": { + "type": { + "$ref": "59" + }, + "resultSegments": [ + "Pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.listWithContinuation", + "pagingMetadata": { + "itemPropertySegments": [ + "Pets" + ], + "continuationToken": { + "parameter": { + "$ref": "240" + }, + "responseSegments": [ + "NextMarker" + ], + "responseLocation": "Body" + }, + "pageSizeParameterSegments": [] + } + }, + { + "$id": "246", + "kind": "paging", + "name": "listWithNextLink", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "247", + "name": "listWithNextLink", + "resourceName": "XmlPagination", + "accessibility": "public", + "parameters": [ + { + "$id": "248", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "27" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.listWithNextLink.accept", + "methodParameterSegments": [ + { + "$id": "249", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.listWithNextLink.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "67" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "29" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/pageable/xml/list-with-next-link", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.listWithNextLink", + "decorators": [], + "namespace": "Payload.Pageable.XmlPagination" + }, + "parameters": [ + { + "$ref": "249" + } + ], + "response": { + "type": { + "$ref": "59" + }, + "resultSegments": [ + "Pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.listWithNextLink", + "pagingMetadata": { + "itemPropertySegments": [ + "Pets" + ], + "nextLink": { + "responseSegments": [ + "NextLink" + ], + "responseLocation": "Body" + }, + "pageSizeParameterSegments": [] + } + } + ], + "parameters": [ + { + "$id": "250", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "251", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "252", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination", + "apiVersions": [], + "parent": { + "$ref": "99" }, "isMultiServiceClient": false } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json index 14dfd018003..f377693334f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json @@ -173,7 +173,7 @@ }, "value": "2022-12-01-preview" }, - "optional": false, + "optional": true, "scope": "Method", "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryApiVersion.apiVersion", "readOnly": false, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/ModelProperties.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/ModelProperties.cs index 0fed89ca4f3..76f4b999169 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/ModelProperties.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/ModelProperties.cs @@ -30,5 +30,13 @@ public partial class ModelProperties public virtual ClientResult DictMethods(DictMethods body, CancellationToken cancellationToken = default) => throw null; public virtual Task DictMethodsAsync(DictMethods body, CancellationToken cancellationToken = default) => throw null; + + public virtual ClientResult WithList(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual Task WithListAsync(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual ClientResult WithList(ModelWithList body, CancellationToken cancellationToken = default) => throw null; + + public virtual Task WithListAsync(ModelWithList body, CancellationToken cancellationToken = default) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ModelWithList.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ModelWithList.Serialization.cs new file mode 100644 index 00000000000..308b855cc9b --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ModelWithList.Serialization.cs @@ -0,0 +1,36 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace SpecialWords._ModelProperties +{ + public partial class ModelWithList : IJsonModel + { + internal ModelWithList() => throw null; + + protected virtual ModelWithList PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + ModelWithList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + protected virtual ModelWithList JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + ModelWithList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(ModelWithList modelWithList) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ModelWithList.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ModelWithList.cs new file mode 100644 index 00000000000..2aa63c0a18b --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ModelWithList.cs @@ -0,0 +1,13 @@ +// + +#nullable disable + +namespace SpecialWords._ModelProperties +{ + public partial class ModelWithList + { + public ModelWithList(string list) => throw null; + + public string List => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/SpecialWordsContext.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/SpecialWordsContext.cs index d04f06a1fa5..9469e8aa953 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/SpecialWordsContext.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/SpecialWordsContext.cs @@ -33,6 +33,7 @@ namespace SpecialWords [ModelReaderWriterBuildable(typeof(In))] [ModelReaderWriterBuildable(typeof(Is))] [ModelReaderWriterBuildable(typeof(Lambda))] + [ModelReaderWriterBuildable(typeof(ModelWithList))] [ModelReaderWriterBuildable(typeof(Not))] [ModelReaderWriterBuildable(typeof(Or))] [ModelReaderWriterBuildable(typeof(Pass))] diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/SpecialWordsModelFactory.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/SpecialWordsModelFactory.cs index 9b130273a61..43aca8db259 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/SpecialWordsModelFactory.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/SpecialWordsModelFactory.cs @@ -78,5 +78,7 @@ public static partial class SpecialWordsModelFactory public static SameAsModel SameAsModel(string sameAsModelProperty = default) => throw null; public static DictMethods DictMethods(string keys = default, string items = default, string values = default, string popitem = default, string clear = default, string update = default, string setdefault = default, string pop = default, string @get = default, string copy = default) => throw null; + + public static ModelWithList ModelWithList(string list = default) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/tspCodeModel.json index 83d658dfa9c..e66645d5b9d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/tspCodeModel.json @@ -562,11 +562,27 @@ }, "value": "application/json", "decorators": [] + }, + { + "$id": "71", + "kind": "constant", + "name": "withListContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] } ], "models": [ { - "$id": "71", + "$id": "73", "kind": "model", "name": "and", "namespace": "SpecialWords.Models", @@ -580,12 +596,12 @@ }, "properties": [ { - "$id": "72", + "$id": "74", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "73", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -607,7 +623,7 @@ ] }, { - "$id": "74", + "$id": "76", "kind": "model", "name": "as", "namespace": "SpecialWords.Models", @@ -621,12 +637,12 @@ }, "properties": [ { - "$id": "75", + "$id": "77", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "76", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -648,7 +664,7 @@ ] }, { - "$id": "77", + "$id": "79", "kind": "model", "name": "assert", "namespace": "SpecialWords.Models", @@ -662,12 +678,12 @@ }, "properties": [ { - "$id": "78", + "$id": "80", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "79", + "$id": "81", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -689,7 +705,7 @@ ] }, { - "$id": "80", + "$id": "82", "kind": "model", "name": "async", "namespace": "SpecialWords.Models", @@ -703,12 +719,12 @@ }, "properties": [ { - "$id": "81", + "$id": "83", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "82", + "$id": "84", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -730,7 +746,7 @@ ] }, { - "$id": "83", + "$id": "85", "kind": "model", "name": "await", "namespace": "SpecialWords.Models", @@ -744,12 +760,12 @@ }, "properties": [ { - "$id": "84", + "$id": "86", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "85", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -771,7 +787,7 @@ ] }, { - "$id": "86", + "$id": "88", "kind": "model", "name": "break", "namespace": "SpecialWords.Models", @@ -785,12 +801,12 @@ }, "properties": [ { - "$id": "87", + "$id": "89", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "88", + "$id": "90", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -812,7 +828,7 @@ ] }, { - "$id": "89", + "$id": "91", "kind": "model", "name": "class", "namespace": "SpecialWords.Models", @@ -826,12 +842,12 @@ }, "properties": [ { - "$id": "90", + "$id": "92", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "91", + "$id": "93", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -853,7 +869,7 @@ ] }, { - "$id": "92", + "$id": "94", "kind": "model", "name": "constructor", "namespace": "SpecialWords.Models", @@ -867,12 +883,12 @@ }, "properties": [ { - "$id": "93", + "$id": "95", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "94", + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -894,7 +910,7 @@ ] }, { - "$id": "95", + "$id": "97", "kind": "model", "name": "continue", "namespace": "SpecialWords.Models", @@ -908,12 +924,12 @@ }, "properties": [ { - "$id": "96", + "$id": "98", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "97", + "$id": "99", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -935,7 +951,7 @@ ] }, { - "$id": "98", + "$id": "100", "kind": "model", "name": "def", "namespace": "SpecialWords.Models", @@ -949,12 +965,12 @@ }, "properties": [ { - "$id": "99", + "$id": "101", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "100", + "$id": "102", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -976,7 +992,7 @@ ] }, { - "$id": "101", + "$id": "103", "kind": "model", "name": "del", "namespace": "SpecialWords.Models", @@ -990,12 +1006,12 @@ }, "properties": [ { - "$id": "102", + "$id": "104", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "103", + "$id": "105", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1017,7 +1033,7 @@ ] }, { - "$id": "104", + "$id": "106", "kind": "model", "name": "elif", "namespace": "SpecialWords.Models", @@ -1031,12 +1047,12 @@ }, "properties": [ { - "$id": "105", + "$id": "107", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "106", + "$id": "108", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1058,7 +1074,7 @@ ] }, { - "$id": "107", + "$id": "109", "kind": "model", "name": "else", "namespace": "SpecialWords.Models", @@ -1072,12 +1088,12 @@ }, "properties": [ { - "$id": "108", + "$id": "110", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "109", + "$id": "111", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1099,7 +1115,7 @@ ] }, { - "$id": "110", + "$id": "112", "kind": "model", "name": "except", "namespace": "SpecialWords.Models", @@ -1113,12 +1129,12 @@ }, "properties": [ { - "$id": "111", + "$id": "113", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "112", + "$id": "114", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1140,7 +1156,7 @@ ] }, { - "$id": "113", + "$id": "115", "kind": "model", "name": "exec", "namespace": "SpecialWords.Models", @@ -1154,12 +1170,12 @@ }, "properties": [ { - "$id": "114", + "$id": "116", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "115", + "$id": "117", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1181,7 +1197,7 @@ ] }, { - "$id": "116", + "$id": "118", "kind": "model", "name": "finally", "namespace": "SpecialWords.Models", @@ -1195,12 +1211,12 @@ }, "properties": [ { - "$id": "117", + "$id": "119", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "118", + "$id": "120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1222,7 +1238,7 @@ ] }, { - "$id": "119", + "$id": "121", "kind": "model", "name": "for", "namespace": "SpecialWords.Models", @@ -1236,12 +1252,12 @@ }, "properties": [ { - "$id": "120", + "$id": "122", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "121", + "$id": "123", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1263,7 +1279,7 @@ ] }, { - "$id": "122", + "$id": "124", "kind": "model", "name": "from", "namespace": "SpecialWords.Models", @@ -1277,12 +1293,12 @@ }, "properties": [ { - "$id": "123", + "$id": "125", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "124", + "$id": "126", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1304,7 +1320,7 @@ ] }, { - "$id": "125", + "$id": "127", "kind": "model", "name": "global", "namespace": "SpecialWords.Models", @@ -1318,12 +1334,12 @@ }, "properties": [ { - "$id": "126", + "$id": "128", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "127", + "$id": "129", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1345,7 +1361,7 @@ ] }, { - "$id": "128", + "$id": "130", "kind": "model", "name": "if", "namespace": "SpecialWords.Models", @@ -1359,12 +1375,12 @@ }, "properties": [ { - "$id": "129", + "$id": "131", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "130", + "$id": "132", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1386,7 +1402,7 @@ ] }, { - "$id": "131", + "$id": "133", "kind": "model", "name": "import", "namespace": "SpecialWords.Models", @@ -1400,12 +1416,12 @@ }, "properties": [ { - "$id": "132", + "$id": "134", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "133", + "$id": "135", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1427,7 +1443,7 @@ ] }, { - "$id": "134", + "$id": "136", "kind": "model", "name": "in", "namespace": "SpecialWords.Models", @@ -1441,12 +1457,12 @@ }, "properties": [ { - "$id": "135", + "$id": "137", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "136", + "$id": "138", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1468,7 +1484,7 @@ ] }, { - "$id": "137", + "$id": "139", "kind": "model", "name": "is", "namespace": "SpecialWords.Models", @@ -1482,12 +1498,12 @@ }, "properties": [ { - "$id": "138", + "$id": "140", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "139", + "$id": "141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1509,7 +1525,7 @@ ] }, { - "$id": "140", + "$id": "142", "kind": "model", "name": "lambda", "namespace": "SpecialWords.Models", @@ -1523,12 +1539,12 @@ }, "properties": [ { - "$id": "141", + "$id": "143", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "142", + "$id": "144", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1550,7 +1566,7 @@ ] }, { - "$id": "143", + "$id": "145", "kind": "model", "name": "not", "namespace": "SpecialWords.Models", @@ -1564,12 +1580,12 @@ }, "properties": [ { - "$id": "144", + "$id": "146", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "145", + "$id": "147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1591,7 +1607,7 @@ ] }, { - "$id": "146", + "$id": "148", "kind": "model", "name": "or", "namespace": "SpecialWords.Models", @@ -1605,12 +1621,12 @@ }, "properties": [ { - "$id": "147", + "$id": "149", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "148", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1632,7 +1648,7 @@ ] }, { - "$id": "149", + "$id": "151", "kind": "model", "name": "pass", "namespace": "SpecialWords.Models", @@ -1646,12 +1662,12 @@ }, "properties": [ { - "$id": "150", + "$id": "152", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "151", + "$id": "153", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1673,7 +1689,7 @@ ] }, { - "$id": "152", + "$id": "154", "kind": "model", "name": "raise", "namespace": "SpecialWords.Models", @@ -1687,12 +1703,12 @@ }, "properties": [ { - "$id": "153", + "$id": "155", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "154", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1714,7 +1730,7 @@ ] }, { - "$id": "155", + "$id": "157", "kind": "model", "name": "return", "namespace": "SpecialWords.Models", @@ -1728,12 +1744,12 @@ }, "properties": [ { - "$id": "156", + "$id": "158", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "157", + "$id": "159", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1755,7 +1771,7 @@ ] }, { - "$id": "158", + "$id": "160", "kind": "model", "name": "try", "namespace": "SpecialWords.Models", @@ -1769,12 +1785,12 @@ }, "properties": [ { - "$id": "159", + "$id": "161", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "160", + "$id": "162", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1796,7 +1812,7 @@ ] }, { - "$id": "161", + "$id": "163", "kind": "model", "name": "while", "namespace": "SpecialWords.Models", @@ -1810,12 +1826,12 @@ }, "properties": [ { - "$id": "162", + "$id": "164", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "163", + "$id": "165", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1837,7 +1853,7 @@ ] }, { - "$id": "164", + "$id": "166", "kind": "model", "name": "with", "namespace": "SpecialWords.Models", @@ -1851,12 +1867,12 @@ }, "properties": [ { - "$id": "165", + "$id": "167", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "166", + "$id": "168", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1878,7 +1894,7 @@ ] }, { - "$id": "167", + "$id": "169", "kind": "model", "name": "yield", "namespace": "SpecialWords.Models", @@ -1892,12 +1908,12 @@ }, "properties": [ { - "$id": "168", + "$id": "170", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "169", + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1919,7 +1935,7 @@ ] }, { - "$id": "170", + "$id": "172", "kind": "model", "name": "SameAsModel", "namespace": "SpecialWords.ModelProperties", @@ -1933,12 +1949,12 @@ }, "properties": [ { - "$id": "171", + "$id": "173", "kind": "property", "name": "SameAsModel", "serializedName": "SameAsModel", "type": { - "$id": "172", + "$id": "174", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1960,7 +1976,7 @@ ] }, { - "$id": "173", + "$id": "175", "kind": "model", "name": "DictMethods", "namespace": "SpecialWords.ModelProperties", @@ -1974,12 +1990,12 @@ }, "properties": [ { - "$id": "174", + "$id": "176", "kind": "property", "name": "keys", "serializedName": "keys", "type": { - "$id": "175", + "$id": "177", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1999,12 +2015,12 @@ "isHttpMetadata": false }, { - "$id": "176", + "$id": "178", "kind": "property", "name": "items", "serializedName": "items", "type": { - "$id": "177", + "$id": "179", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2024,12 +2040,12 @@ "isHttpMetadata": false }, { - "$id": "178", + "$id": "180", "kind": "property", "name": "values", "serializedName": "values", "type": { - "$id": "179", + "$id": "181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2049,12 +2065,12 @@ "isHttpMetadata": false }, { - "$id": "180", + "$id": "182", "kind": "property", "name": "popitem", "serializedName": "popitem", "type": { - "$id": "181", + "$id": "183", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2074,12 +2090,12 @@ "isHttpMetadata": false }, { - "$id": "182", + "$id": "184", "kind": "property", "name": "clear", "serializedName": "clear", "type": { - "$id": "183", + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2099,12 +2115,12 @@ "isHttpMetadata": false }, { - "$id": "184", + "$id": "186", "kind": "property", "name": "update", "serializedName": "update", "type": { - "$id": "185", + "$id": "187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2124,12 +2140,12 @@ "isHttpMetadata": false }, { - "$id": "186", + "$id": "188", "kind": "property", "name": "setdefault", "serializedName": "setdefault", "type": { - "$id": "187", + "$id": "189", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2149,12 +2165,12 @@ "isHttpMetadata": false }, { - "$id": "188", + "$id": "190", "kind": "property", "name": "pop", "serializedName": "pop", "type": { - "$id": "189", + "$id": "191", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2174,12 +2190,12 @@ "isHttpMetadata": false }, { - "$id": "190", + "$id": "192", "kind": "property", "name": "get", "serializedName": "get", "type": { - "$id": "191", + "$id": "193", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2199,12 +2215,12 @@ "isHttpMetadata": false }, { - "$id": "192", + "$id": "194", "kind": "property", "name": "copy", "serializedName": "copy", "type": { - "$id": "193", + "$id": "195", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2224,25 +2240,66 @@ "isHttpMetadata": false } ] + }, + { + "$id": "196", + "kind": "model", + "name": "ModelWithList", + "namespace": "SpecialWords.ModelProperties", + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.ModelWithList", + "usage": "Input,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "ModelWithList" + } + }, + "properties": [ + { + "$id": "197", + "kind": "property", + "name": "list", + "serializedName": "list", + "type": { + "$id": "198", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.ModelWithList.list", + "serializationOptions": { + "json": { + "name": "list" + } + }, + "isHttpMetadata": false + } + ] } ], "clients": [ { - "$id": "194", + "$id": "199", "kind": "client", "name": "SpecialWordsClient", "namespace": "SpecialWords", - "doc": "Scenarios to verify that reserved words can be used in service and generators will handle it appropriately.\n\nCurrent list of special words\n```txt\nand\nas\nassert\nasync\nawait\nbreak\nclass\nconstructor\ncontinue\ndef\ndel\nelif\nelse\nexcept\nexec\nfinally\nfor\nfrom\nglobal\nif\nimport\nin\nis\nlambda\nnot\nor\npass\nraise\nreturn\ntry\nwhile\nwith\nyield\n```", + "doc": "Scenarios to verify that reserved words can be used in service and generators will handle it appropriately.\n\nCurrent list of special words\n```txt\nand\nas\nassert\nasync\nawait\nbreak\nclass\nconstructor\ncontinue\ndef\ndel\nelif\nelse\nexcept\nexec\nfinally\nfor\nfrom\nglobal\nif\nimport\nin\nis\nlambda\nlist\nnot\nor\npass\nraise\nreturn\ntry\nwhile\nwith\nyield\n```", "methods": [], "parameters": [ { - "$id": "195", + "$id": "200", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "196", + "$id": "201", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2253,7 +2310,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "197", + "$id": "202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2272,26 +2329,26 @@ "apiVersions": [], "children": [ { - "$id": "198", + "$id": "203", "kind": "client", "name": "Models", "namespace": "SpecialWords.Models", "doc": "Verify model names", "methods": [ { - "$id": "199", + "$id": "204", "kind": "basic", "name": "withAnd", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "200", + "$id": "205", "name": "withAnd", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "201", + "$id": "206", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2308,7 +2365,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAnd.contentType", "methodParameterSegments": [ { - "$id": "202", + "$id": "207", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -2328,12 +2385,12 @@ ] }, { - "$id": "203", + "$id": "208", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "71" + "$ref": "73" }, "isApiVersion": false, "contentTypes": [ @@ -2347,12 +2404,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAnd.body", "methodParameterSegments": [ { - "$id": "204", + "$id": "209", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "71" + "$ref": "73" }, "location": "Body", "isApiVersion": false, @@ -2390,10 +2447,10 @@ }, "parameters": [ { - "$ref": "204" + "$ref": "209" }, { - "$ref": "202" + "$ref": "207" } ], "response": {}, @@ -2403,19 +2460,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAnd" }, { - "$id": "205", + "$id": "210", "kind": "basic", "name": "withAs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "206", + "$id": "211", "name": "withAs", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "207", + "$id": "212", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2432,7 +2489,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAs.contentType", "methodParameterSegments": [ { - "$id": "208", + "$id": "213", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -2452,12 +2509,12 @@ ] }, { - "$id": "209", + "$id": "214", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "74" + "$ref": "76" }, "isApiVersion": false, "contentTypes": [ @@ -2471,12 +2528,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAs.body", "methodParameterSegments": [ { - "$id": "210", + "$id": "215", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "74" + "$ref": "76" }, "location": "Body", "isApiVersion": false, @@ -2514,10 +2571,10 @@ }, "parameters": [ { - "$ref": "210" + "$ref": "215" }, { - "$ref": "208" + "$ref": "213" } ], "response": {}, @@ -2527,19 +2584,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAs" }, { - "$id": "211", + "$id": "216", "kind": "basic", "name": "withAssert", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "212", + "$id": "217", "name": "withAssert", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "213", + "$id": "218", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2556,7 +2613,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAssert.contentType", "methodParameterSegments": [ { - "$id": "214", + "$id": "219", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -2576,12 +2633,12 @@ ] }, { - "$id": "215", + "$id": "220", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "77" + "$ref": "79" }, "isApiVersion": false, "contentTypes": [ @@ -2595,12 +2652,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAssert.body", "methodParameterSegments": [ { - "$id": "216", + "$id": "221", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "77" + "$ref": "79" }, "location": "Body", "isApiVersion": false, @@ -2638,10 +2695,10 @@ }, "parameters": [ { - "$ref": "216" + "$ref": "221" }, { - "$ref": "214" + "$ref": "219" } ], "response": {}, @@ -2651,19 +2708,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAssert" }, { - "$id": "217", + "$id": "222", "kind": "basic", "name": "withAsync", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "218", + "$id": "223", "name": "withAsync", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "219", + "$id": "224", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2680,7 +2737,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAsync.contentType", "methodParameterSegments": [ { - "$id": "220", + "$id": "225", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -2700,12 +2757,12 @@ ] }, { - "$id": "221", + "$id": "226", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "80" + "$ref": "82" }, "isApiVersion": false, "contentTypes": [ @@ -2719,12 +2776,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAsync.body", "methodParameterSegments": [ { - "$id": "222", + "$id": "227", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "80" + "$ref": "82" }, "location": "Body", "isApiVersion": false, @@ -2762,10 +2819,10 @@ }, "parameters": [ { - "$ref": "222" + "$ref": "227" }, { - "$ref": "220" + "$ref": "225" } ], "response": {}, @@ -2775,19 +2832,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAsync" }, { - "$id": "223", + "$id": "228", "kind": "basic", "name": "withAwait", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "224", + "$id": "229", "name": "withAwait", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "225", + "$id": "230", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2804,7 +2861,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAwait.contentType", "methodParameterSegments": [ { - "$id": "226", + "$id": "231", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -2824,12 +2881,12 @@ ] }, { - "$id": "227", + "$id": "232", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "83" + "$ref": "85" }, "isApiVersion": false, "contentTypes": [ @@ -2843,12 +2900,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAwait.body", "methodParameterSegments": [ { - "$id": "228", + "$id": "233", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "83" + "$ref": "85" }, "location": "Body", "isApiVersion": false, @@ -2886,10 +2943,10 @@ }, "parameters": [ { - "$ref": "228" + "$ref": "233" }, { - "$ref": "226" + "$ref": "231" } ], "response": {}, @@ -2899,19 +2956,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAwait" }, { - "$id": "229", + "$id": "234", "kind": "basic", "name": "withBreak", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "230", + "$id": "235", "name": "withBreak", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "231", + "$id": "236", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2928,7 +2985,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withBreak.contentType", "methodParameterSegments": [ { - "$id": "232", + "$id": "237", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -2948,12 +3005,12 @@ ] }, { - "$id": "233", + "$id": "238", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "86" + "$ref": "88" }, "isApiVersion": false, "contentTypes": [ @@ -2967,12 +3024,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withBreak.body", "methodParameterSegments": [ { - "$id": "234", + "$id": "239", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "86" + "$ref": "88" }, "location": "Body", "isApiVersion": false, @@ -3010,10 +3067,10 @@ }, "parameters": [ { - "$ref": "234" + "$ref": "239" }, { - "$ref": "232" + "$ref": "237" } ], "response": {}, @@ -3023,19 +3080,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withBreak" }, { - "$id": "235", + "$id": "240", "kind": "basic", "name": "withClass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "236", + "$id": "241", "name": "withClass", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "237", + "$id": "242", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3052,7 +3109,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withClass.contentType", "methodParameterSegments": [ { - "$id": "238", + "$id": "243", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3072,12 +3129,12 @@ ] }, { - "$id": "239", + "$id": "244", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "89" + "$ref": "91" }, "isApiVersion": false, "contentTypes": [ @@ -3091,12 +3148,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withClass.body", "methodParameterSegments": [ { - "$id": "240", + "$id": "245", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "89" + "$ref": "91" }, "location": "Body", "isApiVersion": false, @@ -3134,10 +3191,10 @@ }, "parameters": [ { - "$ref": "240" + "$ref": "245" }, { - "$ref": "238" + "$ref": "243" } ], "response": {}, @@ -3147,19 +3204,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withClass" }, { - "$id": "241", + "$id": "246", "kind": "basic", "name": "withConstructor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "242", + "$id": "247", "name": "withConstructor", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "243", + "$id": "248", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3176,7 +3233,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor.contentType", "methodParameterSegments": [ { - "$id": "244", + "$id": "249", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3196,12 +3253,12 @@ ] }, { - "$id": "245", + "$id": "250", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "92" + "$ref": "94" }, "isApiVersion": false, "contentTypes": [ @@ -3215,12 +3272,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor.body", "methodParameterSegments": [ { - "$id": "246", + "$id": "251", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "92" + "$ref": "94" }, "location": "Body", "isApiVersion": false, @@ -3258,10 +3315,10 @@ }, "parameters": [ { - "$ref": "246" + "$ref": "251" }, { - "$ref": "244" + "$ref": "249" } ], "response": {}, @@ -3271,19 +3328,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor" }, { - "$id": "247", + "$id": "252", "kind": "basic", "name": "withContinue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "248", + "$id": "253", "name": "withContinue", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "249", + "$id": "254", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3300,7 +3357,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withContinue.contentType", "methodParameterSegments": [ { - "$id": "250", + "$id": "255", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3320,12 +3377,12 @@ ] }, { - "$id": "251", + "$id": "256", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "95" + "$ref": "97" }, "isApiVersion": false, "contentTypes": [ @@ -3339,12 +3396,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withContinue.body", "methodParameterSegments": [ { - "$id": "252", + "$id": "257", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "95" + "$ref": "97" }, "location": "Body", "isApiVersion": false, @@ -3382,10 +3439,10 @@ }, "parameters": [ { - "$ref": "252" + "$ref": "257" }, { - "$ref": "250" + "$ref": "255" } ], "response": {}, @@ -3395,19 +3452,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withContinue" }, { - "$id": "253", + "$id": "258", "kind": "basic", "name": "withDef", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "254", + "$id": "259", "name": "withDef", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "255", + "$id": "260", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3424,7 +3481,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDef.contentType", "methodParameterSegments": [ { - "$id": "256", + "$id": "261", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3444,12 +3501,12 @@ ] }, { - "$id": "257", + "$id": "262", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "98" + "$ref": "100" }, "isApiVersion": false, "contentTypes": [ @@ -3463,12 +3520,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDef.body", "methodParameterSegments": [ { - "$id": "258", + "$id": "263", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "98" + "$ref": "100" }, "location": "Body", "isApiVersion": false, @@ -3506,10 +3563,10 @@ }, "parameters": [ { - "$ref": "258" + "$ref": "263" }, { - "$ref": "256" + "$ref": "261" } ], "response": {}, @@ -3519,19 +3576,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDef" }, { - "$id": "259", + "$id": "264", "kind": "basic", "name": "withDel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "260", + "$id": "265", "name": "withDel", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "261", + "$id": "266", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3548,7 +3605,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDel.contentType", "methodParameterSegments": [ { - "$id": "262", + "$id": "267", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3568,12 +3625,12 @@ ] }, { - "$id": "263", + "$id": "268", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "101" + "$ref": "103" }, "isApiVersion": false, "contentTypes": [ @@ -3587,12 +3644,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDel.body", "methodParameterSegments": [ { - "$id": "264", + "$id": "269", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "101" + "$ref": "103" }, "location": "Body", "isApiVersion": false, @@ -3630,10 +3687,10 @@ }, "parameters": [ { - "$ref": "264" + "$ref": "269" }, { - "$ref": "262" + "$ref": "267" } ], "response": {}, @@ -3643,19 +3700,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDel" }, { - "$id": "265", + "$id": "270", "kind": "basic", "name": "withElif", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "266", + "$id": "271", "name": "withElif", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "267", + "$id": "272", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3672,7 +3729,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElif.contentType", "methodParameterSegments": [ { - "$id": "268", + "$id": "273", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3692,12 +3749,12 @@ ] }, { - "$id": "269", + "$id": "274", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "104" + "$ref": "106" }, "isApiVersion": false, "contentTypes": [ @@ -3711,12 +3768,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElif.body", "methodParameterSegments": [ { - "$id": "270", + "$id": "275", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "104" + "$ref": "106" }, "location": "Body", "isApiVersion": false, @@ -3754,10 +3811,10 @@ }, "parameters": [ { - "$ref": "270" + "$ref": "275" }, { - "$ref": "268" + "$ref": "273" } ], "response": {}, @@ -3767,19 +3824,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElif" }, { - "$id": "271", + "$id": "276", "kind": "basic", "name": "withElse", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "272", + "$id": "277", "name": "withElse", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "273", + "$id": "278", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3796,7 +3853,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElse.contentType", "methodParameterSegments": [ { - "$id": "274", + "$id": "279", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3816,12 +3873,12 @@ ] }, { - "$id": "275", + "$id": "280", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "107" + "$ref": "109" }, "isApiVersion": false, "contentTypes": [ @@ -3835,12 +3892,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElse.body", "methodParameterSegments": [ { - "$id": "276", + "$id": "281", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "107" + "$ref": "109" }, "location": "Body", "isApiVersion": false, @@ -3878,10 +3935,10 @@ }, "parameters": [ { - "$ref": "276" + "$ref": "281" }, { - "$ref": "274" + "$ref": "279" } ], "response": {}, @@ -3891,19 +3948,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElse" }, { - "$id": "277", + "$id": "282", "kind": "basic", "name": "withExcept", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "278", + "$id": "283", "name": "withExcept", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "279", + "$id": "284", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3920,7 +3977,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExcept.contentType", "methodParameterSegments": [ { - "$id": "280", + "$id": "285", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3940,12 +3997,12 @@ ] }, { - "$id": "281", + "$id": "286", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "110" + "$ref": "112" }, "isApiVersion": false, "contentTypes": [ @@ -3959,12 +4016,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExcept.body", "methodParameterSegments": [ { - "$id": "282", + "$id": "287", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "110" + "$ref": "112" }, "location": "Body", "isApiVersion": false, @@ -4002,10 +4059,10 @@ }, "parameters": [ { - "$ref": "282" + "$ref": "287" }, { - "$ref": "280" + "$ref": "285" } ], "response": {}, @@ -4015,19 +4072,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExcept" }, { - "$id": "283", + "$id": "288", "kind": "basic", "name": "withExec", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "284", + "$id": "289", "name": "withExec", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "285", + "$id": "290", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4044,7 +4101,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExec.contentType", "methodParameterSegments": [ { - "$id": "286", + "$id": "291", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4064,12 +4121,12 @@ ] }, { - "$id": "287", + "$id": "292", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "113" + "$ref": "115" }, "isApiVersion": false, "contentTypes": [ @@ -4083,12 +4140,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExec.body", "methodParameterSegments": [ { - "$id": "288", + "$id": "293", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "113" + "$ref": "115" }, "location": "Body", "isApiVersion": false, @@ -4126,10 +4183,10 @@ }, "parameters": [ { - "$ref": "288" + "$ref": "293" }, { - "$ref": "286" + "$ref": "291" } ], "response": {}, @@ -4139,19 +4196,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExec" }, { - "$id": "289", + "$id": "294", "kind": "basic", "name": "withFinally", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "290", + "$id": "295", "name": "withFinally", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "291", + "$id": "296", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4168,7 +4225,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFinally.contentType", "methodParameterSegments": [ { - "$id": "292", + "$id": "297", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4188,12 +4245,12 @@ ] }, { - "$id": "293", + "$id": "298", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "116" + "$ref": "118" }, "isApiVersion": false, "contentTypes": [ @@ -4207,12 +4264,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFinally.body", "methodParameterSegments": [ { - "$id": "294", + "$id": "299", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "116" + "$ref": "118" }, "location": "Body", "isApiVersion": false, @@ -4250,10 +4307,10 @@ }, "parameters": [ { - "$ref": "294" + "$ref": "299" }, { - "$ref": "292" + "$ref": "297" } ], "response": {}, @@ -4263,19 +4320,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFinally" }, { - "$id": "295", + "$id": "300", "kind": "basic", "name": "withFor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "296", + "$id": "301", "name": "withFor", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "297", + "$id": "302", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4292,7 +4349,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFor.contentType", "methodParameterSegments": [ { - "$id": "298", + "$id": "303", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4312,12 +4369,12 @@ ] }, { - "$id": "299", + "$id": "304", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "119" + "$ref": "121" }, "isApiVersion": false, "contentTypes": [ @@ -4331,12 +4388,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFor.body", "methodParameterSegments": [ { - "$id": "300", + "$id": "305", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "119" + "$ref": "121" }, "location": "Body", "isApiVersion": false, @@ -4374,10 +4431,10 @@ }, "parameters": [ { - "$ref": "300" + "$ref": "305" }, { - "$ref": "298" + "$ref": "303" } ], "response": {}, @@ -4387,19 +4444,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFor" }, { - "$id": "301", + "$id": "306", "kind": "basic", "name": "withFrom", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "302", + "$id": "307", "name": "withFrom", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "303", + "$id": "308", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4416,7 +4473,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFrom.contentType", "methodParameterSegments": [ { - "$id": "304", + "$id": "309", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4436,12 +4493,12 @@ ] }, { - "$id": "305", + "$id": "310", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "122" + "$ref": "124" }, "isApiVersion": false, "contentTypes": [ @@ -4455,12 +4512,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFrom.body", "methodParameterSegments": [ { - "$id": "306", + "$id": "311", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "122" + "$ref": "124" }, "location": "Body", "isApiVersion": false, @@ -4498,10 +4555,10 @@ }, "parameters": [ { - "$ref": "306" + "$ref": "311" }, { - "$ref": "304" + "$ref": "309" } ], "response": {}, @@ -4511,19 +4568,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFrom" }, { - "$id": "307", + "$id": "312", "kind": "basic", "name": "withGlobal", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "308", + "$id": "313", "name": "withGlobal", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "309", + "$id": "314", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4540,7 +4597,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal.contentType", "methodParameterSegments": [ { - "$id": "310", + "$id": "315", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4560,12 +4617,12 @@ ] }, { - "$id": "311", + "$id": "316", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "125" + "$ref": "127" }, "isApiVersion": false, "contentTypes": [ @@ -4579,12 +4636,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal.body", "methodParameterSegments": [ { - "$id": "312", + "$id": "317", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "125" + "$ref": "127" }, "location": "Body", "isApiVersion": false, @@ -4622,10 +4679,10 @@ }, "parameters": [ { - "$ref": "312" + "$ref": "317" }, { - "$ref": "310" + "$ref": "315" } ], "response": {}, @@ -4635,19 +4692,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal" }, { - "$id": "313", + "$id": "318", "kind": "basic", "name": "withIf", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "314", + "$id": "319", "name": "withIf", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "315", + "$id": "320", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4664,7 +4721,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIf.contentType", "methodParameterSegments": [ { - "$id": "316", + "$id": "321", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4684,12 +4741,12 @@ ] }, { - "$id": "317", + "$id": "322", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "128" + "$ref": "130" }, "isApiVersion": false, "contentTypes": [ @@ -4703,12 +4760,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIf.body", "methodParameterSegments": [ { - "$id": "318", + "$id": "323", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "128" + "$ref": "130" }, "location": "Body", "isApiVersion": false, @@ -4746,10 +4803,10 @@ }, "parameters": [ { - "$ref": "318" + "$ref": "323" }, { - "$ref": "316" + "$ref": "321" } ], "response": {}, @@ -4759,19 +4816,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIf" }, { - "$id": "319", + "$id": "324", "kind": "basic", "name": "withImport", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "320", + "$id": "325", "name": "withImport", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "321", + "$id": "326", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4788,7 +4845,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withImport.contentType", "methodParameterSegments": [ { - "$id": "322", + "$id": "327", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4808,12 +4865,12 @@ ] }, { - "$id": "323", + "$id": "328", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "131" + "$ref": "133" }, "isApiVersion": false, "contentTypes": [ @@ -4827,12 +4884,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withImport.body", "methodParameterSegments": [ { - "$id": "324", + "$id": "329", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "131" + "$ref": "133" }, "location": "Body", "isApiVersion": false, @@ -4870,10 +4927,10 @@ }, "parameters": [ { - "$ref": "324" + "$ref": "329" }, { - "$ref": "322" + "$ref": "327" } ], "response": {}, @@ -4883,19 +4940,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withImport" }, { - "$id": "325", + "$id": "330", "kind": "basic", "name": "withIn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "326", + "$id": "331", "name": "withIn", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "327", + "$id": "332", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4912,7 +4969,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIn.contentType", "methodParameterSegments": [ { - "$id": "328", + "$id": "333", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4932,12 +4989,12 @@ ] }, { - "$id": "329", + "$id": "334", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "134" + "$ref": "136" }, "isApiVersion": false, "contentTypes": [ @@ -4951,12 +5008,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIn.body", "methodParameterSegments": [ { - "$id": "330", + "$id": "335", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "134" + "$ref": "136" }, "location": "Body", "isApiVersion": false, @@ -4994,10 +5051,10 @@ }, "parameters": [ { - "$ref": "330" + "$ref": "335" }, { - "$ref": "328" + "$ref": "333" } ], "response": {}, @@ -5007,19 +5064,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIn" }, { - "$id": "331", + "$id": "336", "kind": "basic", "name": "withIs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "332", + "$id": "337", "name": "withIs", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "333", + "$id": "338", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5036,7 +5093,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIs.contentType", "methodParameterSegments": [ { - "$id": "334", + "$id": "339", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5056,12 +5113,12 @@ ] }, { - "$id": "335", + "$id": "340", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "137" + "$ref": "139" }, "isApiVersion": false, "contentTypes": [ @@ -5075,12 +5132,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIs.body", "methodParameterSegments": [ { - "$id": "336", + "$id": "341", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "137" + "$ref": "139" }, "location": "Body", "isApiVersion": false, @@ -5118,10 +5175,10 @@ }, "parameters": [ { - "$ref": "336" + "$ref": "341" }, { - "$ref": "334" + "$ref": "339" } ], "response": {}, @@ -5131,19 +5188,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIs" }, { - "$id": "337", + "$id": "342", "kind": "basic", "name": "withLambda", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "338", + "$id": "343", "name": "withLambda", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "339", + "$id": "344", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5160,7 +5217,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withLambda.contentType", "methodParameterSegments": [ { - "$id": "340", + "$id": "345", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5180,12 +5237,12 @@ ] }, { - "$id": "341", + "$id": "346", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "140" + "$ref": "142" }, "isApiVersion": false, "contentTypes": [ @@ -5199,12 +5256,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withLambda.body", "methodParameterSegments": [ { - "$id": "342", + "$id": "347", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "140" + "$ref": "142" }, "location": "Body", "isApiVersion": false, @@ -5242,10 +5299,10 @@ }, "parameters": [ { - "$ref": "342" + "$ref": "347" }, { - "$ref": "340" + "$ref": "345" } ], "response": {}, @@ -5255,19 +5312,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withLambda" }, { - "$id": "343", + "$id": "348", "kind": "basic", "name": "withNot", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "344", + "$id": "349", "name": "withNot", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "345", + "$id": "350", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5284,7 +5341,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withNot.contentType", "methodParameterSegments": [ { - "$id": "346", + "$id": "351", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5304,12 +5361,12 @@ ] }, { - "$id": "347", + "$id": "352", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "143" + "$ref": "145" }, "isApiVersion": false, "contentTypes": [ @@ -5323,12 +5380,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withNot.body", "methodParameterSegments": [ { - "$id": "348", + "$id": "353", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "143" + "$ref": "145" }, "location": "Body", "isApiVersion": false, @@ -5366,10 +5423,10 @@ }, "parameters": [ { - "$ref": "348" + "$ref": "353" }, { - "$ref": "346" + "$ref": "351" } ], "response": {}, @@ -5379,19 +5436,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withNot" }, { - "$id": "349", + "$id": "354", "kind": "basic", "name": "withOr", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "350", + "$id": "355", "name": "withOr", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "351", + "$id": "356", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5408,7 +5465,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withOr.contentType", "methodParameterSegments": [ { - "$id": "352", + "$id": "357", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5428,12 +5485,12 @@ ] }, { - "$id": "353", + "$id": "358", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "146" + "$ref": "148" }, "isApiVersion": false, "contentTypes": [ @@ -5447,12 +5504,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withOr.body", "methodParameterSegments": [ { - "$id": "354", + "$id": "359", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "146" + "$ref": "148" }, "location": "Body", "isApiVersion": false, @@ -5490,10 +5547,10 @@ }, "parameters": [ { - "$ref": "354" + "$ref": "359" }, { - "$ref": "352" + "$ref": "357" } ], "response": {}, @@ -5503,19 +5560,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withOr" }, { - "$id": "355", + "$id": "360", "kind": "basic", "name": "withPass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "356", + "$id": "361", "name": "withPass", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "357", + "$id": "362", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5532,7 +5589,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withPass.contentType", "methodParameterSegments": [ { - "$id": "358", + "$id": "363", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5552,12 +5609,12 @@ ] }, { - "$id": "359", + "$id": "364", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "149" + "$ref": "151" }, "isApiVersion": false, "contentTypes": [ @@ -5571,12 +5628,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withPass.body", "methodParameterSegments": [ { - "$id": "360", + "$id": "365", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "149" + "$ref": "151" }, "location": "Body", "isApiVersion": false, @@ -5614,10 +5671,10 @@ }, "parameters": [ { - "$ref": "360" + "$ref": "365" }, { - "$ref": "358" + "$ref": "363" } ], "response": {}, @@ -5627,19 +5684,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withPass" }, { - "$id": "361", + "$id": "366", "kind": "basic", "name": "withRaise", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "362", + "$id": "367", "name": "withRaise", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "363", + "$id": "368", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5656,7 +5713,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withRaise.contentType", "methodParameterSegments": [ { - "$id": "364", + "$id": "369", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5676,12 +5733,12 @@ ] }, { - "$id": "365", + "$id": "370", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "152" + "$ref": "154" }, "isApiVersion": false, "contentTypes": [ @@ -5695,12 +5752,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withRaise.body", "methodParameterSegments": [ { - "$id": "366", + "$id": "371", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "152" + "$ref": "154" }, "location": "Body", "isApiVersion": false, @@ -5738,10 +5795,10 @@ }, "parameters": [ { - "$ref": "366" + "$ref": "371" }, { - "$ref": "364" + "$ref": "369" } ], "response": {}, @@ -5751,19 +5808,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withRaise" }, { - "$id": "367", + "$id": "372", "kind": "basic", "name": "withReturn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "368", + "$id": "373", "name": "withReturn", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "369", + "$id": "374", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5780,7 +5837,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withReturn.contentType", "methodParameterSegments": [ { - "$id": "370", + "$id": "375", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5800,12 +5857,12 @@ ] }, { - "$id": "371", + "$id": "376", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "155" + "$ref": "157" }, "isApiVersion": false, "contentTypes": [ @@ -5819,12 +5876,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withReturn.body", "methodParameterSegments": [ { - "$id": "372", + "$id": "377", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "155" + "$ref": "157" }, "location": "Body", "isApiVersion": false, @@ -5862,10 +5919,10 @@ }, "parameters": [ { - "$ref": "372" + "$ref": "377" }, { - "$ref": "370" + "$ref": "375" } ], "response": {}, @@ -5875,19 +5932,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withReturn" }, { - "$id": "373", + "$id": "378", "kind": "basic", "name": "withTry", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "374", + "$id": "379", "name": "withTry", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "375", + "$id": "380", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5904,7 +5961,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withTry.contentType", "methodParameterSegments": [ { - "$id": "376", + "$id": "381", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5924,12 +5981,12 @@ ] }, { - "$id": "377", + "$id": "382", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "158" + "$ref": "160" }, "isApiVersion": false, "contentTypes": [ @@ -5943,12 +6000,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withTry.body", "methodParameterSegments": [ { - "$id": "378", + "$id": "383", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "158" + "$ref": "160" }, "location": "Body", "isApiVersion": false, @@ -5986,10 +6043,10 @@ }, "parameters": [ { - "$ref": "378" + "$ref": "383" }, { - "$ref": "376" + "$ref": "381" } ], "response": {}, @@ -5999,19 +6056,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withTry" }, { - "$id": "379", + "$id": "384", "kind": "basic", "name": "withWhile", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "380", + "$id": "385", "name": "withWhile", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "381", + "$id": "386", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6028,7 +6085,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWhile.contentType", "methodParameterSegments": [ { - "$id": "382", + "$id": "387", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6048,12 +6105,12 @@ ] }, { - "$id": "383", + "$id": "388", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "161" + "$ref": "163" }, "isApiVersion": false, "contentTypes": [ @@ -6067,12 +6124,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWhile.body", "methodParameterSegments": [ { - "$id": "384", + "$id": "389", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "161" + "$ref": "163" }, "location": "Body", "isApiVersion": false, @@ -6110,10 +6167,10 @@ }, "parameters": [ { - "$ref": "384" + "$ref": "389" }, { - "$ref": "382" + "$ref": "387" } ], "response": {}, @@ -6123,19 +6180,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWhile" }, { - "$id": "385", + "$id": "390", "kind": "basic", "name": "withWith", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "386", + "$id": "391", "name": "withWith", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "387", + "$id": "392", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6152,7 +6209,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWith.contentType", "methodParameterSegments": [ { - "$id": "388", + "$id": "393", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6172,12 +6229,12 @@ ] }, { - "$id": "389", + "$id": "394", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "164" + "$ref": "166" }, "isApiVersion": false, "contentTypes": [ @@ -6191,12 +6248,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWith.body", "methodParameterSegments": [ { - "$id": "390", + "$id": "395", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "164" + "$ref": "166" }, "location": "Body", "isApiVersion": false, @@ -6234,10 +6291,10 @@ }, "parameters": [ { - "$ref": "390" + "$ref": "395" }, { - "$ref": "388" + "$ref": "393" } ], "response": {}, @@ -6247,19 +6304,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWith" }, { - "$id": "391", + "$id": "396", "kind": "basic", "name": "withYield", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "392", + "$id": "397", "name": "withYield", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "393", + "$id": "398", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6276,7 +6333,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withYield.contentType", "methodParameterSegments": [ { - "$id": "394", + "$id": "399", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6296,12 +6353,12 @@ ] }, { - "$id": "395", + "$id": "400", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "167" + "$ref": "169" }, "isApiVersion": false, "contentTypes": [ @@ -6315,12 +6372,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withYield.body", "methodParameterSegments": [ { - "$id": "396", + "$id": "401", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "167" + "$ref": "169" }, "location": "Body", "isApiVersion": false, @@ -6358,10 +6415,10 @@ }, "parameters": [ { - "$ref": "396" + "$ref": "401" }, { - "$ref": "394" + "$ref": "399" } ], "response": {}, @@ -6373,13 +6430,13 @@ ], "parameters": [ { - "$id": "397", + "$id": "402", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "398", + "$id": "403", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6390,7 +6447,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "399", + "$id": "404", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6408,31 +6465,31 @@ "crossLanguageDefinitionId": "SpecialWords.Models", "apiVersions": [], "parent": { - "$ref": "194" + "$ref": "199" }, "isMultiServiceClient": false }, { - "$id": "400", + "$id": "405", "kind": "client", "name": "ModelProperties", "namespace": "SpecialWords.ModelProperties", "doc": "Verify model names", "methods": [ { - "$id": "401", + "$id": "406", "kind": "basic", "name": "sameAsModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "402", + "$id": "407", "name": "sameAsModel", "resourceName": "ModelProperties", "accessibility": "public", "parameters": [ { - "$id": "403", + "$id": "408", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6449,7 +6506,7 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel.contentType", "methodParameterSegments": [ { - "$id": "404", + "$id": "409", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6469,12 +6526,12 @@ ] }, { - "$id": "405", + "$id": "410", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "170" + "$ref": "172" }, "isApiVersion": false, "contentTypes": [ @@ -6488,12 +6545,12 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel.body", "methodParameterSegments": [ { - "$id": "406", + "$id": "411", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "170" + "$ref": "172" }, "location": "Body", "isApiVersion": false, @@ -6531,10 +6588,10 @@ }, "parameters": [ { - "$ref": "406" + "$ref": "411" }, { - "$ref": "404" + "$ref": "409" } ], "response": {}, @@ -6544,19 +6601,19 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel" }, { - "$id": "407", + "$id": "412", "kind": "basic", "name": "dictMethods", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "408", + "$id": "413", "name": "dictMethods", "resourceName": "ModelProperties", "accessibility": "public", "parameters": [ { - "$id": "409", + "$id": "414", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6573,7 +6630,7 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods.contentType", "methodParameterSegments": [ { - "$id": "410", + "$id": "415", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6593,12 +6650,12 @@ ] }, { - "$id": "411", + "$id": "416", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "173" + "$ref": "175" }, "isApiVersion": false, "contentTypes": [ @@ -6612,12 +6669,12 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods.body", "methodParameterSegments": [ { - "$id": "412", + "$id": "417", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "173" + "$ref": "175" }, "location": "Body", "isApiVersion": false, @@ -6655,10 +6712,10 @@ }, "parameters": [ { - "$ref": "412" + "$ref": "417" }, { - "$ref": "410" + "$ref": "415" } ], "response": {}, @@ -6666,17 +6723,141 @@ "generateConvenient": true, "generateProtocol": true, "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods" + }, + { + "$id": "418", + "kind": "basic", + "name": "withList", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "419", + "name": "withList", + "resourceName": "ModelProperties", + "accessibility": "public", + "parameters": [ + { + "$id": "420", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "71" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.withList.contentType", + "methodParameterSegments": [ + { + "$id": "421", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.withList.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "422", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "196" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.withList.body", + "methodParameterSegments": [ + { + "$id": "423", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "196" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.withList.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/model-properties/list", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.withList", + "decorators": [], + "namespace": "SpecialWords.ModelProperties" + }, + "parameters": [ + { + "$ref": "423" + }, + { + "$ref": "421" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.withList" } ], "parameters": [ { - "$id": "413", + "$id": "424", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "414", + "$id": "425", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6687,7 +6868,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "415", + "$id": "426", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6705,25 +6886,25 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties", "apiVersions": [], "parent": { - "$ref": "194" + "$ref": "199" }, "isMultiServiceClient": false }, { - "$id": "416", + "$id": "427", "kind": "client", "name": "Operations", "namespace": "SpecialWords", "doc": "Test reserved words as operation name.", "methods": [ { - "$id": "417", + "$id": "428", "kind": "basic", "name": "and", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "418", + "$id": "429", "name": "and", "resourceName": "Operations", "accessibility": "public", @@ -6755,13 +6936,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.and" }, { - "$id": "419", + "$id": "430", "kind": "basic", "name": "as", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "420", + "$id": "431", "name": "as", "resourceName": "Operations", "accessibility": "public", @@ -6793,13 +6974,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.as" }, { - "$id": "421", + "$id": "432", "kind": "basic", "name": "assert", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "422", + "$id": "433", "name": "assert", "resourceName": "Operations", "accessibility": "public", @@ -6831,13 +7012,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.assert" }, { - "$id": "423", + "$id": "434", "kind": "basic", "name": "async", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "424", + "$id": "435", "name": "async", "resourceName": "Operations", "accessibility": "public", @@ -6869,13 +7050,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.async" }, { - "$id": "425", + "$id": "436", "kind": "basic", "name": "await", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "426", + "$id": "437", "name": "await", "resourceName": "Operations", "accessibility": "public", @@ -6907,13 +7088,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.await" }, { - "$id": "427", + "$id": "438", "kind": "basic", "name": "break", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "428", + "$id": "439", "name": "break", "resourceName": "Operations", "accessibility": "public", @@ -6945,13 +7126,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.break" }, { - "$id": "429", + "$id": "440", "kind": "basic", "name": "class", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "430", + "$id": "441", "name": "class", "resourceName": "Operations", "accessibility": "public", @@ -6983,13 +7164,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.class" }, { - "$id": "431", + "$id": "442", "kind": "basic", "name": "constructor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "432", + "$id": "443", "name": "constructor", "resourceName": "Operations", "accessibility": "public", @@ -7021,13 +7202,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.constructor" }, { - "$id": "433", + "$id": "444", "kind": "basic", "name": "continue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "434", + "$id": "445", "name": "continue", "resourceName": "Operations", "accessibility": "public", @@ -7059,13 +7240,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.continue" }, { - "$id": "435", + "$id": "446", "kind": "basic", "name": "def", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "436", + "$id": "447", "name": "def", "resourceName": "Operations", "accessibility": "public", @@ -7097,13 +7278,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.def" }, { - "$id": "437", + "$id": "448", "kind": "basic", "name": "del", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "438", + "$id": "449", "name": "del", "resourceName": "Operations", "accessibility": "public", @@ -7135,13 +7316,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.del" }, { - "$id": "439", + "$id": "450", "kind": "basic", "name": "elif", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "440", + "$id": "451", "name": "elif", "resourceName": "Operations", "accessibility": "public", @@ -7173,13 +7354,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.elif" }, { - "$id": "441", + "$id": "452", "kind": "basic", "name": "else", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "442", + "$id": "453", "name": "else", "resourceName": "Operations", "accessibility": "public", @@ -7211,13 +7392,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.else" }, { - "$id": "443", + "$id": "454", "kind": "basic", "name": "except", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "444", + "$id": "455", "name": "except", "resourceName": "Operations", "accessibility": "public", @@ -7249,13 +7430,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.except" }, { - "$id": "445", + "$id": "456", "kind": "basic", "name": "exec", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "446", + "$id": "457", "name": "exec", "resourceName": "Operations", "accessibility": "public", @@ -7287,13 +7468,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.exec" }, { - "$id": "447", + "$id": "458", "kind": "basic", "name": "finally", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "448", + "$id": "459", "name": "finally", "resourceName": "Operations", "accessibility": "public", @@ -7325,13 +7506,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.finally" }, { - "$id": "449", + "$id": "460", "kind": "basic", "name": "for", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "450", + "$id": "461", "name": "for", "resourceName": "Operations", "accessibility": "public", @@ -7363,13 +7544,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.for" }, { - "$id": "451", + "$id": "462", "kind": "basic", "name": "from", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "452", + "$id": "463", "name": "from", "resourceName": "Operations", "accessibility": "public", @@ -7401,13 +7582,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.from" }, { - "$id": "453", + "$id": "464", "kind": "basic", "name": "global", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "454", + "$id": "465", "name": "global", "resourceName": "Operations", "accessibility": "public", @@ -7439,13 +7620,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.global" }, { - "$id": "455", + "$id": "466", "kind": "basic", "name": "if", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "456", + "$id": "467", "name": "if", "resourceName": "Operations", "accessibility": "public", @@ -7477,13 +7658,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.if" }, { - "$id": "457", + "$id": "468", "kind": "basic", "name": "import", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "458", + "$id": "469", "name": "import", "resourceName": "Operations", "accessibility": "public", @@ -7515,13 +7696,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.import" }, { - "$id": "459", + "$id": "470", "kind": "basic", "name": "in", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "460", + "$id": "471", "name": "in", "resourceName": "Operations", "accessibility": "public", @@ -7553,13 +7734,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.in" }, { - "$id": "461", + "$id": "472", "kind": "basic", "name": "is", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "462", + "$id": "473", "name": "is", "resourceName": "Operations", "accessibility": "public", @@ -7591,13 +7772,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.is" }, { - "$id": "463", + "$id": "474", "kind": "basic", "name": "lambda", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "464", + "$id": "475", "name": "lambda", "resourceName": "Operations", "accessibility": "public", @@ -7629,13 +7810,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.lambda" }, { - "$id": "465", + "$id": "476", "kind": "basic", "name": "not", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "466", + "$id": "477", "name": "not", "resourceName": "Operations", "accessibility": "public", @@ -7667,13 +7848,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.not" }, { - "$id": "467", + "$id": "478", "kind": "basic", "name": "or", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "468", + "$id": "479", "name": "or", "resourceName": "Operations", "accessibility": "public", @@ -7705,13 +7886,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.or" }, { - "$id": "469", + "$id": "480", "kind": "basic", "name": "pass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "470", + "$id": "481", "name": "pass", "resourceName": "Operations", "accessibility": "public", @@ -7743,13 +7924,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.pass" }, { - "$id": "471", + "$id": "482", "kind": "basic", "name": "raise", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "472", + "$id": "483", "name": "raise", "resourceName": "Operations", "accessibility": "public", @@ -7781,13 +7962,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.raise" }, { - "$id": "473", + "$id": "484", "kind": "basic", "name": "return", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "474", + "$id": "485", "name": "return", "resourceName": "Operations", "accessibility": "public", @@ -7819,13 +8000,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.return" }, { - "$id": "475", + "$id": "486", "kind": "basic", "name": "try", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "476", + "$id": "487", "name": "try", "resourceName": "Operations", "accessibility": "public", @@ -7857,13 +8038,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.try" }, { - "$id": "477", + "$id": "488", "kind": "basic", "name": "while", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "478", + "$id": "489", "name": "while", "resourceName": "Operations", "accessibility": "public", @@ -7895,13 +8076,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.while" }, { - "$id": "479", + "$id": "490", "kind": "basic", "name": "with", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "480", + "$id": "491", "name": "with", "resourceName": "Operations", "accessibility": "public", @@ -7933,13 +8114,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.with" }, { - "$id": "481", + "$id": "492", "kind": "basic", "name": "yield", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "482", + "$id": "493", "name": "yield", "resourceName": "Operations", "accessibility": "public", @@ -7973,13 +8154,13 @@ ], "parameters": [ { - "$id": "483", + "$id": "494", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "484", + "$id": "495", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7990,7 +8171,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "485", + "$id": "496", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8008,36 +8189,36 @@ "crossLanguageDefinitionId": "SpecialWords.Operations", "apiVersions": [], "parent": { - "$ref": "194" + "$ref": "199" }, "isMultiServiceClient": false }, { - "$id": "486", + "$id": "497", "kind": "client", "name": "Parameters", "namespace": "SpecialWords", "doc": "Verify reserved words as parameter name.", "methods": [ { - "$id": "487", + "$id": "498", "kind": "basic", "name": "withAnd", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "488", + "$id": "499", "name": "withAnd", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "489", + "$id": "500", "kind": "query", "name": "and", "serializedName": "and", "type": { - "$id": "490", + "$id": "501", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8052,12 +8233,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "491", + "$id": "502", "kind": "method", "name": "and", "serializedName": "and", "type": { - "$id": "492", + "$id": "503", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8096,7 +8277,7 @@ }, "parameters": [ { - "$ref": "491" + "$ref": "502" } ], "response": {}, @@ -8106,24 +8287,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAnd" }, { - "$id": "493", + "$id": "504", "kind": "basic", "name": "withAs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "494", + "$id": "505", "name": "withAs", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "495", + "$id": "506", "kind": "query", "name": "as", "serializedName": "as", "type": { - "$id": "496", + "$id": "507", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8138,12 +8319,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "497", + "$id": "508", "kind": "method", "name": "as", "serializedName": "as", "type": { - "$id": "498", + "$id": "509", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8182,7 +8363,7 @@ }, "parameters": [ { - "$ref": "497" + "$ref": "508" } ], "response": {}, @@ -8192,24 +8373,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAs" }, { - "$id": "499", + "$id": "510", "kind": "basic", "name": "withAssert", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "500", + "$id": "511", "name": "withAssert", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "501", + "$id": "512", "kind": "query", "name": "assert", "serializedName": "assert", "type": { - "$id": "502", + "$id": "513", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8224,12 +8405,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "503", + "$id": "514", "kind": "method", "name": "assert", "serializedName": "assert", "type": { - "$id": "504", + "$id": "515", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8268,7 +8449,7 @@ }, "parameters": [ { - "$ref": "503" + "$ref": "514" } ], "response": {}, @@ -8278,24 +8459,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAssert" }, { - "$id": "505", + "$id": "516", "kind": "basic", "name": "withAsync", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "506", + "$id": "517", "name": "withAsync", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "507", + "$id": "518", "kind": "query", "name": "async", "serializedName": "async", "type": { - "$id": "508", + "$id": "519", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8310,12 +8491,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "509", + "$id": "520", "kind": "method", "name": "async", "serializedName": "async", "type": { - "$id": "510", + "$id": "521", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8354,7 +8535,7 @@ }, "parameters": [ { - "$ref": "509" + "$ref": "520" } ], "response": {}, @@ -8364,24 +8545,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAsync" }, { - "$id": "511", + "$id": "522", "kind": "basic", "name": "withAwait", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "512", + "$id": "523", "name": "withAwait", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "513", + "$id": "524", "kind": "query", "name": "await", "serializedName": "await", "type": { - "$id": "514", + "$id": "525", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8396,12 +8577,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "515", + "$id": "526", "kind": "method", "name": "await", "serializedName": "await", "type": { - "$id": "516", + "$id": "527", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8440,7 +8621,7 @@ }, "parameters": [ { - "$ref": "515" + "$ref": "526" } ], "response": {}, @@ -8450,24 +8631,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAwait" }, { - "$id": "517", + "$id": "528", "kind": "basic", "name": "withBreak", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "518", + "$id": "529", "name": "withBreak", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "519", + "$id": "530", "kind": "query", "name": "break", "serializedName": "break", "type": { - "$id": "520", + "$id": "531", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8482,12 +8663,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "521", + "$id": "532", "kind": "method", "name": "break", "serializedName": "break", "type": { - "$id": "522", + "$id": "533", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8526,7 +8707,7 @@ }, "parameters": [ { - "$ref": "521" + "$ref": "532" } ], "response": {}, @@ -8536,24 +8717,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withBreak" }, { - "$id": "523", + "$id": "534", "kind": "basic", "name": "withClass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "524", + "$id": "535", "name": "withClass", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "525", + "$id": "536", "kind": "query", "name": "class", "serializedName": "class", "type": { - "$id": "526", + "$id": "537", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8568,12 +8749,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "527", + "$id": "538", "kind": "method", "name": "class", "serializedName": "class", "type": { - "$id": "528", + "$id": "539", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8612,7 +8793,7 @@ }, "parameters": [ { - "$ref": "527" + "$ref": "538" } ], "response": {}, @@ -8622,24 +8803,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withClass" }, { - "$id": "529", + "$id": "540", "kind": "basic", "name": "withConstructor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "530", + "$id": "541", "name": "withConstructor", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "531", + "$id": "542", "kind": "query", "name": "constructor", "serializedName": "constructor", "type": { - "$id": "532", + "$id": "543", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8654,12 +8835,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "533", + "$id": "544", "kind": "method", "name": "constructor", "serializedName": "constructor", "type": { - "$id": "534", + "$id": "545", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8698,7 +8879,7 @@ }, "parameters": [ { - "$ref": "533" + "$ref": "544" } ], "response": {}, @@ -8708,24 +8889,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor" }, { - "$id": "535", + "$id": "546", "kind": "basic", "name": "withContinue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "536", + "$id": "547", "name": "withContinue", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "537", + "$id": "548", "kind": "query", "name": "continue", "serializedName": "continue", "type": { - "$id": "538", + "$id": "549", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8740,12 +8921,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "539", + "$id": "550", "kind": "method", "name": "continue", "serializedName": "continue", "type": { - "$id": "540", + "$id": "551", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8784,7 +8965,7 @@ }, "parameters": [ { - "$ref": "539" + "$ref": "550" } ], "response": {}, @@ -8794,24 +8975,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withContinue" }, { - "$id": "541", + "$id": "552", "kind": "basic", "name": "withDef", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "542", + "$id": "553", "name": "withDef", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "543", + "$id": "554", "kind": "query", "name": "def", "serializedName": "def", "type": { - "$id": "544", + "$id": "555", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8826,12 +9007,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "545", + "$id": "556", "kind": "method", "name": "def", "serializedName": "def", "type": { - "$id": "546", + "$id": "557", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8870,7 +9051,7 @@ }, "parameters": [ { - "$ref": "545" + "$ref": "556" } ], "response": {}, @@ -8880,24 +9061,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withDef" }, { - "$id": "547", + "$id": "558", "kind": "basic", "name": "withDel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "548", + "$id": "559", "name": "withDel", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "549", + "$id": "560", "kind": "query", "name": "del", "serializedName": "del", "type": { - "$id": "550", + "$id": "561", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8912,12 +9093,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "551", + "$id": "562", "kind": "method", "name": "del", "serializedName": "del", "type": { - "$id": "552", + "$id": "563", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8956,7 +9137,7 @@ }, "parameters": [ { - "$ref": "551" + "$ref": "562" } ], "response": {}, @@ -8966,24 +9147,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withDel" }, { - "$id": "553", + "$id": "564", "kind": "basic", "name": "withElif", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "554", + "$id": "565", "name": "withElif", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "555", + "$id": "566", "kind": "query", "name": "elif", "serializedName": "elif", "type": { - "$id": "556", + "$id": "567", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8998,12 +9179,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "557", + "$id": "568", "kind": "method", "name": "elif", "serializedName": "elif", "type": { - "$id": "558", + "$id": "569", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9042,7 +9223,7 @@ }, "parameters": [ { - "$ref": "557" + "$ref": "568" } ], "response": {}, @@ -9052,24 +9233,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withElif" }, { - "$id": "559", + "$id": "570", "kind": "basic", "name": "withElse", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "560", + "$id": "571", "name": "withElse", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "561", + "$id": "572", "kind": "query", "name": "else", "serializedName": "else", "type": { - "$id": "562", + "$id": "573", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9084,12 +9265,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "563", + "$id": "574", "kind": "method", "name": "else", "serializedName": "else", "type": { - "$id": "564", + "$id": "575", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9128,7 +9309,7 @@ }, "parameters": [ { - "$ref": "563" + "$ref": "574" } ], "response": {}, @@ -9138,24 +9319,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withElse" }, { - "$id": "565", + "$id": "576", "kind": "basic", "name": "withExcept", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "566", + "$id": "577", "name": "withExcept", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "567", + "$id": "578", "kind": "query", "name": "except", "serializedName": "except", "type": { - "$id": "568", + "$id": "579", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9170,12 +9351,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "569", + "$id": "580", "kind": "method", "name": "except", "serializedName": "except", "type": { - "$id": "570", + "$id": "581", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9214,7 +9395,7 @@ }, "parameters": [ { - "$ref": "569" + "$ref": "580" } ], "response": {}, @@ -9224,24 +9405,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withExcept" }, { - "$id": "571", + "$id": "582", "kind": "basic", "name": "withExec", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "572", + "$id": "583", "name": "withExec", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "573", + "$id": "584", "kind": "query", "name": "exec", "serializedName": "exec", "type": { - "$id": "574", + "$id": "585", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9256,12 +9437,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "575", + "$id": "586", "kind": "method", "name": "exec", "serializedName": "exec", "type": { - "$id": "576", + "$id": "587", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9300,7 +9481,7 @@ }, "parameters": [ { - "$ref": "575" + "$ref": "586" } ], "response": {}, @@ -9310,24 +9491,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withExec" }, { - "$id": "577", + "$id": "588", "kind": "basic", "name": "withFinally", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "578", + "$id": "589", "name": "withFinally", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "579", + "$id": "590", "kind": "query", "name": "finally", "serializedName": "finally", "type": { - "$id": "580", + "$id": "591", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9342,12 +9523,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "581", + "$id": "592", "kind": "method", "name": "finally", "serializedName": "finally", "type": { - "$id": "582", + "$id": "593", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9386,7 +9567,7 @@ }, "parameters": [ { - "$ref": "581" + "$ref": "592" } ], "response": {}, @@ -9396,24 +9577,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withFinally" }, { - "$id": "583", + "$id": "594", "kind": "basic", "name": "withFor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "584", + "$id": "595", "name": "withFor", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "585", + "$id": "596", "kind": "query", "name": "for", "serializedName": "for", "type": { - "$id": "586", + "$id": "597", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9428,12 +9609,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "587", + "$id": "598", "kind": "method", "name": "for", "serializedName": "for", "type": { - "$id": "588", + "$id": "599", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9472,7 +9653,7 @@ }, "parameters": [ { - "$ref": "587" + "$ref": "598" } ], "response": {}, @@ -9482,24 +9663,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withFor" }, { - "$id": "589", + "$id": "600", "kind": "basic", "name": "withFrom", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "590", + "$id": "601", "name": "withFrom", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "591", + "$id": "602", "kind": "query", "name": "from", "serializedName": "from", "type": { - "$id": "592", + "$id": "603", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9514,12 +9695,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "593", + "$id": "604", "kind": "method", "name": "from", "serializedName": "from", "type": { - "$id": "594", + "$id": "605", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9558,7 +9739,7 @@ }, "parameters": [ { - "$ref": "593" + "$ref": "604" } ], "response": {}, @@ -9568,24 +9749,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withFrom" }, { - "$id": "595", + "$id": "606", "kind": "basic", "name": "withGlobal", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "596", + "$id": "607", "name": "withGlobal", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "597", + "$id": "608", "kind": "query", "name": "global", "serializedName": "global", "type": { - "$id": "598", + "$id": "609", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9600,12 +9781,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "599", + "$id": "610", "kind": "method", "name": "global", "serializedName": "global", "type": { - "$id": "600", + "$id": "611", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9644,7 +9825,7 @@ }, "parameters": [ { - "$ref": "599" + "$ref": "610" } ], "response": {}, @@ -9654,24 +9835,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal" }, { - "$id": "601", + "$id": "612", "kind": "basic", "name": "withIf", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "602", + "$id": "613", "name": "withIf", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "603", + "$id": "614", "kind": "query", "name": "if", "serializedName": "if", "type": { - "$id": "604", + "$id": "615", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9686,12 +9867,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "605", + "$id": "616", "kind": "method", "name": "if", "serializedName": "if", "type": { - "$id": "606", + "$id": "617", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9730,7 +9911,7 @@ }, "parameters": [ { - "$ref": "605" + "$ref": "616" } ], "response": {}, @@ -9740,24 +9921,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withIf" }, { - "$id": "607", + "$id": "618", "kind": "basic", "name": "withImport", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "608", + "$id": "619", "name": "withImport", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "609", + "$id": "620", "kind": "query", "name": "import", "serializedName": "import", "type": { - "$id": "610", + "$id": "621", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9772,12 +9953,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "611", + "$id": "622", "kind": "method", "name": "import", "serializedName": "import", "type": { - "$id": "612", + "$id": "623", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9816,7 +9997,7 @@ }, "parameters": [ { - "$ref": "611" + "$ref": "622" } ], "response": {}, @@ -9826,24 +10007,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withImport" }, { - "$id": "613", + "$id": "624", "kind": "basic", "name": "withIn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "614", + "$id": "625", "name": "withIn", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "615", + "$id": "626", "kind": "query", "name": "in", "serializedName": "in", "type": { - "$id": "616", + "$id": "627", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9858,12 +10039,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "617", + "$id": "628", "kind": "method", "name": "in", "serializedName": "in", "type": { - "$id": "618", + "$id": "629", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9902,7 +10083,7 @@ }, "parameters": [ { - "$ref": "617" + "$ref": "628" } ], "response": {}, @@ -9912,24 +10093,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withIn" }, { - "$id": "619", + "$id": "630", "kind": "basic", "name": "withIs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "620", + "$id": "631", "name": "withIs", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "621", + "$id": "632", "kind": "query", "name": "is", "serializedName": "is", "type": { - "$id": "622", + "$id": "633", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9944,12 +10125,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "623", + "$id": "634", "kind": "method", "name": "is", "serializedName": "is", "type": { - "$id": "624", + "$id": "635", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9988,7 +10169,7 @@ }, "parameters": [ { - "$ref": "623" + "$ref": "634" } ], "response": {}, @@ -9998,24 +10179,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withIs" }, { - "$id": "625", + "$id": "636", "kind": "basic", "name": "withLambda", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "626", + "$id": "637", "name": "withLambda", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "627", + "$id": "638", "kind": "query", "name": "lambda", "serializedName": "lambda", "type": { - "$id": "628", + "$id": "639", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10030,12 +10211,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "629", + "$id": "640", "kind": "method", "name": "lambda", "serializedName": "lambda", "type": { - "$id": "630", + "$id": "641", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10074,7 +10255,7 @@ }, "parameters": [ { - "$ref": "629" + "$ref": "640" } ], "response": {}, @@ -10084,24 +10265,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withLambda" }, { - "$id": "631", + "$id": "642", "kind": "basic", "name": "withNot", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "632", + "$id": "643", "name": "withNot", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "633", + "$id": "644", "kind": "query", "name": "not", "serializedName": "not", "type": { - "$id": "634", + "$id": "645", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10116,12 +10297,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "635", + "$id": "646", "kind": "method", "name": "not", "serializedName": "not", "type": { - "$id": "636", + "$id": "647", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10160,7 +10341,7 @@ }, "parameters": [ { - "$ref": "635" + "$ref": "646" } ], "response": {}, @@ -10170,24 +10351,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withNot" }, { - "$id": "637", + "$id": "648", "kind": "basic", "name": "withOr", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "638", + "$id": "649", "name": "withOr", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "639", + "$id": "650", "kind": "query", "name": "or", "serializedName": "or", "type": { - "$id": "640", + "$id": "651", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10202,12 +10383,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "641", + "$id": "652", "kind": "method", "name": "or", "serializedName": "or", "type": { - "$id": "642", + "$id": "653", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10246,7 +10427,7 @@ }, "parameters": [ { - "$ref": "641" + "$ref": "652" } ], "response": {}, @@ -10256,24 +10437,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withOr" }, { - "$id": "643", + "$id": "654", "kind": "basic", "name": "withPass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "644", + "$id": "655", "name": "withPass", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "645", + "$id": "656", "kind": "query", "name": "pass", "serializedName": "pass", "type": { - "$id": "646", + "$id": "657", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10288,12 +10469,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "647", + "$id": "658", "kind": "method", "name": "pass", "serializedName": "pass", "type": { - "$id": "648", + "$id": "659", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10332,7 +10513,7 @@ }, "parameters": [ { - "$ref": "647" + "$ref": "658" } ], "response": {}, @@ -10342,24 +10523,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withPass" }, { - "$id": "649", + "$id": "660", "kind": "basic", "name": "withRaise", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "650", + "$id": "661", "name": "withRaise", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "651", + "$id": "662", "kind": "query", "name": "raise", "serializedName": "raise", "type": { - "$id": "652", + "$id": "663", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10374,12 +10555,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "653", + "$id": "664", "kind": "method", "name": "raise", "serializedName": "raise", "type": { - "$id": "654", + "$id": "665", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10418,7 +10599,7 @@ }, "parameters": [ { - "$ref": "653" + "$ref": "664" } ], "response": {}, @@ -10428,24 +10609,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withRaise" }, { - "$id": "655", + "$id": "666", "kind": "basic", "name": "withReturn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "656", + "$id": "667", "name": "withReturn", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "657", + "$id": "668", "kind": "query", "name": "return", "serializedName": "return", "type": { - "$id": "658", + "$id": "669", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10460,12 +10641,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "659", + "$id": "670", "kind": "method", "name": "return", "serializedName": "return", "type": { - "$id": "660", + "$id": "671", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10504,7 +10685,7 @@ }, "parameters": [ { - "$ref": "659" + "$ref": "670" } ], "response": {}, @@ -10514,24 +10695,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withReturn" }, { - "$id": "661", + "$id": "672", "kind": "basic", "name": "withTry", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "662", + "$id": "673", "name": "withTry", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "663", + "$id": "674", "kind": "query", "name": "try", "serializedName": "try", "type": { - "$id": "664", + "$id": "675", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10546,12 +10727,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "665", + "$id": "676", "kind": "method", "name": "try", "serializedName": "try", "type": { - "$id": "666", + "$id": "677", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10590,7 +10771,7 @@ }, "parameters": [ { - "$ref": "665" + "$ref": "676" } ], "response": {}, @@ -10600,24 +10781,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withTry" }, { - "$id": "667", + "$id": "678", "kind": "basic", "name": "withWhile", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "668", + "$id": "679", "name": "withWhile", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "669", + "$id": "680", "kind": "query", "name": "while", "serializedName": "while", "type": { - "$id": "670", + "$id": "681", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10632,12 +10813,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "671", + "$id": "682", "kind": "method", "name": "while", "serializedName": "while", "type": { - "$id": "672", + "$id": "683", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10676,7 +10857,7 @@ }, "parameters": [ { - "$ref": "671" + "$ref": "682" } ], "response": {}, @@ -10686,24 +10867,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withWhile" }, { - "$id": "673", + "$id": "684", "kind": "basic", "name": "withWith", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "674", + "$id": "685", "name": "withWith", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "675", + "$id": "686", "kind": "query", "name": "with", "serializedName": "with", "type": { - "$id": "676", + "$id": "687", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10718,12 +10899,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "677", + "$id": "688", "kind": "method", "name": "with", "serializedName": "with", "type": { - "$id": "678", + "$id": "689", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10762,7 +10943,7 @@ }, "parameters": [ { - "$ref": "677" + "$ref": "688" } ], "response": {}, @@ -10772,24 +10953,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withWith" }, { - "$id": "679", + "$id": "690", "kind": "basic", "name": "withYield", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "680", + "$id": "691", "name": "withYield", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "681", + "$id": "692", "kind": "query", "name": "yield", "serializedName": "yield", "type": { - "$id": "682", + "$id": "693", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10804,12 +10985,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "683", + "$id": "694", "kind": "method", "name": "yield", "serializedName": "yield", "type": { - "$id": "684", + "$id": "695", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10848,7 +11029,7 @@ }, "parameters": [ { - "$ref": "683" + "$ref": "694" } ], "response": {}, @@ -10858,24 +11039,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withYield" }, { - "$id": "685", + "$id": "696", "kind": "basic", "name": "withCancellationToken", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "686", + "$id": "697", "name": "withCancellationToken", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "687", + "$id": "698", "kind": "query", "name": "cancellationToken", "serializedName": "cancellationToken", "type": { - "$id": "688", + "$id": "699", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10890,12 +11071,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "689", + "$id": "700", "kind": "method", "name": "cancellationToken", "serializedName": "cancellationToken", "type": { - "$id": "690", + "$id": "701", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10934,7 +11115,7 @@ }, "parameters": [ { - "$ref": "689" + "$ref": "700" } ], "response": {}, @@ -10946,13 +11127,13 @@ ], "parameters": [ { - "$id": "691", + "$id": "702", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "692", + "$id": "703", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10963,7 +11144,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "693", + "$id": "704", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10981,7 +11162,7 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters", "apiVersions": [], "parent": { - "$ref": "194" + "$ref": "199" }, "isMultiServiceClient": false } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/file/Configuration.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/file/Configuration.json new file mode 100644 index 00000000000..0d23dae137b --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/file/Configuration.json @@ -0,0 +1,3 @@ +{ + "package-name": "Type.File" +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/file/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/file/tspCodeModel.json new file mode 100644 index 00000000000..9f39cffeab2 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/file/tspCodeModel.json @@ -0,0 +1,51127 @@ +{ + "name": "Type.File", + "apiVersions": [], + "enums": [ + { + "$id": "1", + "kind": "enum", + "name": "FileContentType", + "crossLanguageDefinitionId": "", + "valueType": { + "$id": "2", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "3", + "kind": "enumvalue", + "name": "image/png", + "value": "image/png", + "valueType": { + "$id": "4", + "kind": "string", + "decorators": [], + "doc": "A sequence of textual characters.", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "enumType": { + "$ref": "1" + }, + "decorators": [] + } + ], + "namespace": "TypeSpec.Http", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output", + "decorators": [] + }, + { + "$id": "5", + "kind": "enum", + "name": "File1ContentType", + "crossLanguageDefinitionId": "", + "valueType": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "7", + "kind": "enumvalue", + "name": "application/json", + "value": "application/json", + "valueType": { + "$id": "8", + "kind": "string", + "decorators": [], + "doc": "A sequence of textual characters.", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "enumType": { + "$ref": "5" + }, + "decorators": [] + } + ], + "namespace": "TypeSpec.Http", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "9", + "kind": "enum", + "name": "FileContentType2", + "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType.anonymous", + "valueType": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "11", + "kind": "enumvalue", + "name": "image/png", + "value": "image/png", + "valueType": { + "$ref": "10" + }, + "enumType": { + "$ref": "9" + }, + "decorators": [] + }, + { + "$id": "12", + "kind": "enumvalue", + "name": "image/jpeg", + "value": "image/jpeg", + "valueType": { + "$ref": "10" + }, + "enumType": { + "$ref": "9" + }, + "decorators": [] + } + ], + "namespace": "Type.File.Body", + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "13", + "kind": "enum", + "name": "FileContentType3", + "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType.anonymous", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "15", + "kind": "enumvalue", + "name": "image/png", + "value": "image/png", + "valueType": { + "$ref": "14" + }, + "enumType": { + "$ref": "13" + }, + "decorators": [] + }, + { + "$id": "16", + "kind": "enumvalue", + "name": "image/jpeg", + "value": "image/jpeg", + "valueType": { + "$ref": "14" + }, + "enumType": { + "$ref": "13" + }, + "decorators": [] + } + ], + "namespace": "Type.File.Body", + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + } + ], + "constants": [ + { + "$id": "17", + "kind": "constant", + "name": "uploadFileJsonContentTypeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "19", + "kind": "constant", + "name": "downloadFileJsonContentTypeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "21", + "kind": "constant", + "name": "FileContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "23", + "kind": "constant", + "name": "downloadFileSpecificContentTypeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + }, + { + "$id": "25", + "kind": "constant", + "name": "FileContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + }, + { + "$id": "27", + "kind": "constant", + "name": "downloadFileDefaultContentTypeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "*/*", + "decorators": [] + } + ], + "models": [ + { + "$id": "29", + "kind": "model", + "name": "File", + "namespace": "TypeSpec.Http", + "crossLanguageDefinitionId": "TypeSpec.Http.File", + "usage": "Input,Output", + "doc": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below.", + "summary": "A file in an HTTP request, response, or multipart payload.", + "decorators": [], + "serializationOptions": { + "binary": { + "isFile": true, + "isText": false, + "contentTypes": [ + "image/png" + ], + "filename": { + "$id": "30", + "kind": "ModelProperty", + "name": "filename", + "node": { + "$id": "31", + "kind": 15, + "id": { + "$id": "32", + "kind": 3, + "sv": "filename", + "pos": 8679, + "end": 8687, + "flags": 0, + "parent": { + "$ref": "31" + }, + "_id": 931 + }, + "decorators": [ + { + "$id": "33", + "kind": 5, + "arguments": [ + { + "$id": "34", + "kind": 32, + "value": "The name of the file, if any.", + "pos": 8644, + "end": 8675, + "flags": 0, + "parent": { + "$ref": "33" + } + } + ], + "target": { + "$id": "35", + "kind": 3, + "sv": "summary", + "pos": 8636, + "end": 8643, + "flags": 1, + "parent": { + "$ref": "33" + }, + "_id": 932 + }, + "pos": 8635, + "end": 8676, + "flags": 0, + "parent": { + "$ref": "31" + } + } + ], + "value": { + "$id": "36", + "kind": 45, + "target": { + "$id": "37", + "kind": 3, + "sv": "string", + "pos": 8690, + "end": 8696, + "flags": 1, + "parent": { + "$ref": "36" + }, + "_id": 934 + }, + "arguments": [], + "pos": 8690, + "end": 8696, + "flags": 1, + "parent": { + "$ref": "31" + }, + "_id": 933 + }, + "optional": true, + "pos": 7976, + "end": 8696, + "flags": 0, + "docs": [ + { + "$id": "38", + "kind": 51, + "content": [ + { + "$id": "39", + "kind": 52, + "text": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.", + "pos": 7979, + "end": 8630, + "flags": 0, + "parent": { + "$ref": "38" + } + } + ], + "tags": [], + "pos": 7976, + "end": 8632, + "flags": 0, + "parent": { + "$ref": "31" + } + } + ], + "directives": [], + "parent": { + "$id": "40", + "kind": 13, + "id": { + "$id": "41", + "kind": 3, + "sv": "File", + "pos": 7210, + "end": 7214, + "flags": 0, + "parent": { + "$ref": "40" + }, + "_id": 902 + }, + "templateParameters": [ + { + "$id": "42", + "kind": 46, + "id": { + "$id": "43", + "kind": 3, + "sv": "ContentType", + "pos": 7215, + "end": 7226, + "flags": 0, + "parent": { + "$ref": "42" + }, + "_id": 915 + }, + "constraint": { + "$id": "44", + "kind": 45, + "target": { + "$id": "45", + "kind": 3, + "sv": "string", + "pos": 7235, + "end": 7241, + "flags": 1, + "parent": { + "$ref": "44" + }, + "_id": 917 + }, + "arguments": [], + "pos": 7235, + "end": 7241, + "flags": 1, + "parent": { + "$ref": "42" + }, + "_id": 916 + }, + "default": { + "$id": "46", + "kind": 45, + "target": { + "$id": "47", + "kind": 3, + "sv": "string", + "pos": 7244, + "end": 7250, + "flags": 1, + "parent": { + "$ref": "46" + }, + "_id": 919 + }, + "arguments": [], + "pos": 7244, + "end": 7250, + "flags": 1, + "parent": { + "$ref": "42" + }, + "_id": 918 + }, + "pos": 7215, + "end": 7250, + "flags": 0, + "parent": { + "$ref": "40" + }, + "symbol": { + "declarations": [ + { + "$ref": "42" + } + ], + "name": "ContentType", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "40" + } + ], + "name": "File", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$id": "48", + "kind": 8, + "decorators": [], + "docs": [], + "id": { + "$id": "49", + "kind": 3, + "sv": "Http", + "pos": 138, + "end": 142, + "flags": 0, + "parent": { + "$ref": "48" + }, + "_id": 1036 + }, + "locals": { + "duplicates": {} + }, + "directives": [], + "pos": 119, + "end": 143, + "flags": 0, + "parent": { + "$id": "50", + "kind": 8, + "decorators": [], + "directives": [], + "id": { + "$id": "51", + "kind": 3, + "sv": "TypeSpec", + "pos": 129, + "end": 137, + "flags": 0, + "parent": { + "$ref": "50" + }, + "_id": 1035 + }, + "statements": { + "$ref": "48" + }, + "locals": { + "duplicates": {} + }, + "pos": 119, + "end": 143, + "flags": 0, + "parent": { + "$id": "52", + "kind": 0, + "statements": [ + { + "$id": "53", + "kind": 2, + "path": { + "$id": "54", + "kind": 32, + "value": "../dist/src/tsp-index.js", + "pos": 7, + "end": 33, + "flags": 0, + "parent": { + "$ref": "53" + } + }, + "pos": 0, + "end": 34, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "52" + } + }, + { + "$id": "55", + "kind": 2, + "path": { + "$id": "56", + "kind": 32, + "value": "./decorators.tsp", + "pos": 42, + "end": 60, + "flags": 0, + "parent": { + "$ref": "55" + } + }, + "pos": 35, + "end": 61, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "52" + } + }, + { + "$id": "57", + "kind": 2, + "path": { + "$id": "58", + "kind": 32, + "value": "./private.decorators.tsp", + "pos": 69, + "end": 95, + "flags": 0, + "parent": { + "$ref": "57" + } + }, + "pos": 62, + "end": 96, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "52" + } + }, + { + "$id": "59", + "kind": 2, + "path": { + "$id": "60", + "kind": 32, + "value": "./auth.tsp", + "pos": 104, + "end": 116, + "flags": 0, + "parent": { + "$ref": "59" + } + }, + "pos": 97, + "end": 117, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "52" + } + }, + { + "$ref": "50" + }, + { + "$id": "61", + "kind": 9, + "name": { + "$id": "62", + "kind": 3, + "sv": "Private", + "pos": 151, + "end": 158, + "flags": 1, + "parent": { + "$ref": "61" + }, + "_id": 8 + }, + "pos": 145, + "end": 159, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "52" + } + }, + { + "$id": "63", + "kind": 13, + "id": { + "$id": "64", + "kind": 3, + "sv": "Response", + "pos": 271, + "end": 279, + "flags": 0, + "parent": { + "$ref": "63" + }, + "_id": 944 + }, + "templateParameters": [ + { + "$id": "65", + "kind": 46, + "id": { + "$id": "66", + "kind": 3, + "sv": "Status", + "pos": 280, + "end": 286, + "flags": 0, + "parent": { + "$ref": "65" + }, + "_id": 946 + }, + "pos": 280, + "end": 286, + "flags": 0, + "parent": { + "$ref": "63" + }, + "symbol": { + "declarations": [ + { + "$ref": "65" + } + ], + "name": "Status", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "63" + } + ], + "name": "Response", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 101 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 102 + } + } + ], + "templateParametersRange": { + "pos": 279, + "end": 287 + }, + "decorators": [ + { + "$id": "67", + "kind": 5, + "arguments": [ + { + "$id": "68", + "kind": 32, + "value": "", + "pos": 261, + "end": 263, + "flags": 0, + "parent": { + "$ref": "67" + } + } + ], + "target": { + "$id": "69", + "kind": 3, + "sv": "doc", + "pos": 257, + "end": 260, + "flags": 1, + "parent": { + "$ref": "67" + }, + "_id": 945 + }, + "pos": 256, + "end": 264, + "flags": 0, + "parent": { + "$ref": "63" + } + } + ], + "properties": [ + { + "$id": "70", + "kind": 15, + "id": { + "$id": "71", + "kind": 3, + "sv": "statusCode", + "pos": 333, + "end": 343, + "flags": 0, + "parent": { + "$ref": "70" + }, + "_id": 947 + }, + "decorators": [ + { + "$id": "72", + "kind": 5, + "arguments": [ + { + "$id": "73", + "kind": 32, + "value": "The status code.", + "pos": 297, + "end": 315, + "flags": 0, + "parent": { + "$ref": "72" + } + } + ], + "target": { + "$id": "74", + "kind": 3, + "sv": "doc", + "pos": 293, + "end": 296, + "flags": 1, + "parent": { + "$ref": "72" + }, + "_id": 948 + }, + "pos": 292, + "end": 316, + "flags": 0, + "parent": { + "$ref": "70" + } + }, + { + "$id": "75", + "kind": 5, + "arguments": [], + "target": { + "$id": "76", + "kind": 3, + "sv": "statusCode", + "pos": 320, + "end": 330, + "flags": 1, + "parent": { + "$ref": "75" + }, + "_id": 949 + }, + "pos": 319, + "end": 330, + "flags": 0, + "parent": { + "$ref": "70" + } + } + ], + "value": { + "$id": "77", + "kind": 45, + "target": { + "$id": "78", + "kind": 3, + "sv": "Status", + "pos": 345, + "end": 351, + "flags": 1, + "parent": { + "$ref": "77" + }, + "_id": 955 + }, + "arguments": [], + "pos": 345, + "end": 351, + "flags": 1, + "parent": { + "$ref": "70" + }, + "_id": 954 + }, + "optional": false, + "pos": 292, + "end": 351, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "63" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "70" + }, + "name": "statusCode", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "63" + } + ], + "name": "Response", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 101 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 288, + "end": 354 + }, + "pos": 161, + "end": 354, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "79", + "kind": 51, + "content": [ + { + "$id": "80", + "kind": 52, + "text": "Describes an HTTP response.", + "pos": 164, + "end": 202, + "flags": 0, + "parent": { + "$ref": "79" + } + } + ], + "tags": [ + { + "$id": "81", + "kind": 57, + "tagName": { + "$id": "82", + "kind": 3, + "sv": "template", + "pos": 203, + "end": 211, + "flags": 0, + "parent": { + "$ref": "81" + } + }, + "paramName": { + "$id": "83", + "kind": 3, + "sv": "Status", + "pos": 212, + "end": 218, + "flags": 0, + "parent": { + "$ref": "81" + } + }, + "content": [ + { + "$id": "84", + "kind": 52, + "text": "The status code of the response.", + "pos": 219, + "end": 253, + "flags": 0, + "parent": { + "$ref": "81" + } + } + ], + "pos": 202, + "end": 253, + "flags": 0, + "parent": { + "$ref": "79" + } + } + ], + "pos": 161, + "end": 255, + "flags": 0, + "parent": { + "$ref": "63" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "63" + } + ], + "name": "Response", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 101 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "85", + "kind": 13, + "id": { + "$id": "86", + "kind": 3, + "sv": "Body", + "pos": 647, + "end": 651, + "flags": 0, + "parent": { + "$ref": "85" + }, + "_id": 1037 + }, + "templateParameters": [ + { + "$id": "87", + "kind": 46, + "id": { + "$id": "88", + "kind": 3, + "sv": "Type", + "pos": 652, + "end": 656, + "flags": 0, + "parent": { + "$ref": "87" + }, + "_id": 1039 + }, + "pos": 652, + "end": 656, + "flags": 0, + "parent": { + "$ref": "85" + }, + "symbol": { + "declarations": [ + { + "$ref": "87" + } + ], + "name": "Type", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "85" + } + ], + "name": "Body", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 110 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 111 + } + } + ], + "templateParametersRange": { + "pos": 651, + "end": 657 + }, + "decorators": [ + { + "$id": "89", + "kind": 5, + "arguments": [ + { + "$id": "90", + "kind": 32, + "value": "", + "pos": 637, + "end": 639, + "flags": 0, + "parent": { + "$ref": "89" + } + } + ], + "target": { + "$id": "91", + "kind": 3, + "sv": "doc", + "pos": 633, + "end": 636, + "flags": 1, + "parent": { + "$ref": "89" + }, + "_id": 1038 + }, + "pos": 632, + "end": 640, + "flags": 0, + "parent": { + "$ref": "85" + } + } + ], + "properties": [ + { + "$id": "92", + "kind": 15, + "id": { + "$id": "93", + "kind": 3, + "sv": "body", + "pos": 732, + "end": 736, + "flags": 0, + "parent": { + "$ref": "92" + }, + "_id": 1040 + }, + "decorators": [ + { + "$id": "94", + "kind": 5, + "arguments": [], + "target": { + "$id": "95", + "kind": 3, + "sv": "body", + "pos": 663, + "end": 667, + "flags": 1, + "parent": { + "$ref": "94" + }, + "_id": 1041 + }, + "pos": 662, + "end": 667, + "flags": 0, + "parent": { + "$ref": "92" + } + }, + { + "$id": "96", + "kind": 5, + "arguments": [ + { + "$id": "97", + "kind": 32, + "value": "The body type of the operation request or response.", + "pos": 675, + "end": 728, + "flags": 0, + "parent": { + "$ref": "96" + } + } + ], + "target": { + "$id": "98", + "kind": 3, + "sv": "doc", + "pos": 671, + "end": 674, + "flags": 1, + "parent": { + "$ref": "96" + }, + "_id": 1046 + }, + "pos": 670, + "end": 729, + "flags": 0, + "parent": { + "$ref": "92" + } + } + ], + "value": { + "$id": "99", + "kind": 45, + "target": { + "$id": "100", + "kind": 3, + "sv": "Type", + "pos": 738, + "end": 742, + "flags": 1, + "parent": { + "$ref": "99" + }, + "_id": 1048 + }, + "arguments": [], + "pos": 738, + "end": 742, + "flags": 1, + "parent": { + "$ref": "92" + }, + "_id": 1047 + }, + "optional": false, + "pos": 662, + "end": 742, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "85" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "92" + }, + "name": "body", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "85" + } + ], + "name": "Body", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 110 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 658, + "end": 745 + }, + "pos": 356, + "end": 745, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "101", + "kind": 51, + "content": [ + { + "$id": "102", + "kind": 52, + "text": "Defines a model with a single property of the given type, marked with `@body`.\n\nThis can be useful in situations where you cannot use a bare type as the body\nand it is awkward to add a property.", + "pos": 359, + "end": 572, + "flags": 0, + "parent": { + "$ref": "101" + } + } + ], + "tags": [ + { + "$id": "103", + "kind": 57, + "tagName": { + "$id": "104", + "kind": 3, + "sv": "template", + "pos": 573, + "end": 581, + "flags": 0, + "parent": { + "$ref": "103" + } + }, + "paramName": { + "$id": "105", + "kind": 3, + "sv": "Type", + "pos": 582, + "end": 586, + "flags": 0, + "parent": { + "$ref": "103" + } + }, + "content": [ + { + "$id": "106", + "kind": 52, + "text": "The type of the model's `body` property.", + "pos": 587, + "end": 629, + "flags": 0, + "parent": { + "$ref": "103" + } + } + ], + "pos": 572, + "end": 629, + "flags": 0, + "parent": { + "$ref": "101" + } + } + ], + "pos": 356, + "end": 631, + "flags": 0, + "parent": { + "$ref": "85" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "85" + } + ], + "name": "Body", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 110 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "107", + "kind": 13, + "id": { + "$id": "108", + "kind": 3, + "sv": "LocationHeader", + "pos": 864, + "end": 878, + "flags": 0, + "parent": { + "$ref": "107" + }, + "_id": 1049 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "109", + "kind": 15, + "id": { + "$id": "110", + "kind": 3, + "sv": "location", + "pos": 1003, + "end": 1011, + "flags": 0, + "parent": { + "$ref": "109" + }, + "_id": 1050 + }, + "decorators": [ + { + "$id": "111", + "kind": 5, + "arguments": [ + { + "$id": "112", + "kind": 32, + "value": "The Location header contains the URL where the status of the long running operation can be checked.", + "pos": 888, + "end": 989, + "flags": 0, + "parent": { + "$ref": "111" + } + } + ], + "target": { + "$id": "113", + "kind": 3, + "sv": "doc", + "pos": 884, + "end": 887, + "flags": 1, + "parent": { + "$ref": "111" + }, + "_id": 1051 + }, + "pos": 883, + "end": 990, + "flags": 0, + "parent": { + "$ref": "109" + } + }, + { + "$id": "114", + "kind": 5, + "arguments": [], + "target": { + "$id": "115", + "kind": 3, + "sv": "header", + "pos": 994, + "end": 1000, + "flags": 1, + "parent": { + "$ref": "114" + }, + "_id": 1052 + }, + "pos": 993, + "end": 1000, + "flags": 0, + "parent": { + "$ref": "109" + } + } + ], + "value": { + "$id": "116", + "kind": 45, + "target": { + "$id": "117", + "kind": 3, + "sv": "string", + "pos": 1013, + "end": 1019, + "flags": 1, + "parent": { + "$ref": "116" + }, + "_id": 1070 + }, + "arguments": [], + "pos": 1013, + "end": 1019, + "flags": 1, + "parent": { + "$ref": "109" + }, + "_id": 1069 + }, + "optional": false, + "pos": 883, + "end": 1019, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "107" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "109" + }, + "name": "location", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "107" + } + ], + "name": "LocationHeader", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 112 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 879, + "end": 1022 + }, + "pos": 747, + "end": 1022, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "118", + "kind": 51, + "content": [ + { + "$id": "119", + "kind": 52, + "text": "The Location header contains the URL where the status of the long running operation can be checked.", + "pos": 750, + "end": 855, + "flags": 0, + "parent": { + "$ref": "118" + } + } + ], + "tags": [], + "pos": 747, + "end": 857, + "flags": 0, + "parent": { + "$ref": "107" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "107" + } + ], + "name": "LocationHeader", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 112 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "120", + "kind": 13, + "id": { + "$id": "121", + "kind": 3, + "sv": "OkResponse", + "pos": 1319, + "end": 1329, + "flags": 0, + "parent": { + "$ref": "120" + }, + "_id": 1071 + }, + "is": { + "$id": "122", + "kind": 45, + "target": { + "$id": "123", + "kind": 3, + "sv": "Response", + "pos": 1333, + "end": 1341, + "flags": 1, + "parent": { + "$ref": "122" + }, + "_id": 1073 + }, + "arguments": [ + { + "$id": "124", + "kind": 61, + "argument": { + "$id": "125", + "kind": 33, + "value": 200, + "valueAsString": "200", + "pos": 1342, + "end": 1345, + "flags": 1, + "parent": { + "$ref": "124" + } + }, + "pos": 1342, + "end": 1345, + "flags": 1, + "parent": { + "$ref": "122" + } + } + ], + "pos": 1333, + "end": 1346, + "flags": 1, + "parent": { + "$ref": "120" + }, + "_id": 1072 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "pos": 1275, + "end": 1347, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "126", + "kind": 51, + "content": [ + { + "$id": "127", + "kind": 52, + "text": "The request has succeeded.", + "pos": 1278, + "end": 1310, + "flags": 0, + "parent": { + "$ref": "126" + } + } + ], + "tags": [], + "pos": 1275, + "end": 1312, + "flags": 0, + "parent": { + "$ref": "120" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "120" + } + ], + "name": "OkResponse", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 114 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "128", + "kind": 13, + "id": { + "$id": "129", + "kind": 3, + "sv": "CreatedResponse", + "pos": 1440, + "end": 1455, + "flags": 0, + "parent": { + "$ref": "128" + }, + "_id": 1074 + }, + "is": { + "$id": "130", + "kind": 45, + "target": { + "$id": "131", + "kind": 3, + "sv": "Response", + "pos": 1459, + "end": 1467, + "flags": 1, + "parent": { + "$ref": "130" + }, + "_id": 1076 + }, + "arguments": [ + { + "$id": "132", + "kind": 61, + "argument": { + "$id": "133", + "kind": 33, + "value": 201, + "valueAsString": "201", + "pos": 1468, + "end": 1471, + "flags": 1, + "parent": { + "$ref": "132" + } + }, + "pos": 1468, + "end": 1471, + "flags": 1, + "parent": { + "$ref": "130" + } + } + ], + "pos": 1459, + "end": 1472, + "flags": 1, + "parent": { + "$ref": "128" + }, + "_id": 1075 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "pos": 1348, + "end": 1473, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "134", + "kind": 51, + "content": [ + { + "$id": "135", + "kind": 52, + "text": "The request has succeeded and a new resource has been created as a result.", + "pos": 1351, + "end": 1431, + "flags": 0, + "parent": { + "$ref": "134" + } + } + ], + "tags": [], + "pos": 1348, + "end": 1433, + "flags": 0, + "parent": { + "$ref": "128" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "128" + } + ], + "name": "CreatedResponse", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 115 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "136", + "kind": 13, + "id": { + "$id": "137", + "kind": 3, + "sv": "AcceptedResponse", + "pos": 1575, + "end": 1591, + "flags": 0, + "parent": { + "$ref": "136" + }, + "_id": 1077 + }, + "is": { + "$id": "138", + "kind": 45, + "target": { + "$id": "139", + "kind": 3, + "sv": "Response", + "pos": 1595, + "end": 1603, + "flags": 1, + "parent": { + "$ref": "138" + }, + "_id": 1079 + }, + "arguments": [ + { + "$id": "140", + "kind": 61, + "argument": { + "$id": "141", + "kind": 33, + "value": 202, + "valueAsString": "202", + "pos": 1604, + "end": 1607, + "flags": 1, + "parent": { + "$ref": "140" + } + }, + "pos": 1604, + "end": 1607, + "flags": 1, + "parent": { + "$ref": "138" + } + } + ], + "pos": 1595, + "end": 1608, + "flags": 1, + "parent": { + "$ref": "136" + }, + "_id": 1078 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "pos": 1474, + "end": 1609, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "142", + "kind": 51, + "content": [ + { + "$id": "143", + "kind": 52, + "text": "The request has been accepted for processing, but processing has not yet completed.", + "pos": 1477, + "end": 1566, + "flags": 0, + "parent": { + "$ref": "142" + } + } + ], + "tags": [], + "pos": 1474, + "end": 1568, + "flags": 0, + "parent": { + "$ref": "136" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "136" + } + ], + "name": "AcceptedResponse", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 116 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "144", + "kind": 13, + "id": { + "$id": "145", + "kind": 3, + "sv": "NoContentResponse", + "pos": 1704, + "end": 1721, + "flags": 0, + "parent": { + "$ref": "144" + }, + "_id": 941 + }, + "is": { + "$id": "146", + "kind": 45, + "target": { + "$id": "147", + "kind": 3, + "sv": "Response", + "pos": 1725, + "end": 1733, + "flags": 1, + "parent": { + "$ref": "146" + }, + "_id": 943 + }, + "arguments": [ + { + "$id": "148", + "kind": 61, + "argument": { + "$id": "149", + "kind": 33, + "value": 204, + "valueAsString": "204", + "pos": 1734, + "end": 1737, + "flags": 1, + "parent": { + "$ref": "148" + } + }, + "pos": 1734, + "end": 1737, + "flags": 1, + "parent": { + "$ref": "146" + } + } + ], + "pos": 1725, + "end": 1738, + "flags": 1, + "parent": { + "$ref": "144" + }, + "_id": 942 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "pos": 1610, + "end": 1739, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "150", + "kind": 51, + "content": [ + { + "$id": "151", + "kind": 52, + "text": "There is no content to send for this request, but the headers may be useful.", + "pos": 1613, + "end": 1695, + "flags": 0, + "parent": { + "$ref": "150" + } + } + ], + "tags": [], + "pos": 1610, + "end": 1697, + "flags": 0, + "parent": { + "$ref": "144" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "144" + } + ], + "name": "NoContentResponse", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 100 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "152", + "kind": 13, + "id": { + "$id": "153", + "kind": 3, + "sv": "MovedResponse", + "pos": 1859, + "end": 1872, + "flags": 0, + "parent": { + "$ref": "152" + }, + "_id": 1080 + }, + "is": { + "$id": "154", + "kind": 45, + "target": { + "$id": "155", + "kind": 3, + "sv": "Response", + "pos": 1876, + "end": 1884, + "flags": 1, + "parent": { + "$ref": "154" + }, + "_id": 1082 + }, + "arguments": [ + { + "$id": "156", + "kind": 61, + "argument": { + "$id": "157", + "kind": 33, + "value": 301, + "valueAsString": "301", + "pos": 1885, + "end": 1888, + "flags": 1, + "parent": { + "$ref": "156" + } + }, + "pos": 1885, + "end": 1888, + "flags": 1, + "parent": { + "$ref": "154" + } + } + ], + "pos": 1876, + "end": 1889, + "flags": 1, + "parent": { + "$ref": "152" + }, + "_id": 1081 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "158", + "kind": 16, + "target": { + "$id": "159", + "kind": 45, + "target": { + "$id": "160", + "kind": 3, + "sv": "LocationHeader", + "pos": 1897, + "end": 1911, + "flags": 1, + "parent": { + "$ref": "159" + }, + "_id": 1084 + }, + "arguments": [], + "pos": 1897, + "end": 1911, + "flags": 1, + "parent": { + "$ref": "158" + }, + "_id": 1083 + }, + "pos": 1894, + "end": 1911, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "152" + } + } + ], + "bodyRange": { + "pos": 1890, + "end": 1914 + }, + "pos": 1740, + "end": 1914, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "161", + "kind": 51, + "content": [ + { + "$id": "162", + "kind": 52, + "text": "The URL of the requested resource has been changed permanently. The new URL is given in the response.", + "pos": 1743, + "end": 1850, + "flags": 0, + "parent": { + "$ref": "161" + } + } + ], + "tags": [], + "pos": 1740, + "end": 1852, + "flags": 0, + "parent": { + "$ref": "152" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "152" + } + ], + "name": "MovedResponse", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 117 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "163", + "kind": 13, + "id": { + "$id": "164", + "kind": 3, + "sv": "NotModifiedResponse", + "pos": 2014, + "end": 2033, + "flags": 0, + "parent": { + "$ref": "163" + }, + "_id": 1085 + }, + "is": { + "$id": "165", + "kind": 45, + "target": { + "$id": "166", + "kind": 3, + "sv": "Response", + "pos": 2037, + "end": 2045, + "flags": 1, + "parent": { + "$ref": "165" + }, + "_id": 1087 + }, + "arguments": [ + { + "$id": "167", + "kind": 61, + "argument": { + "$id": "168", + "kind": 33, + "value": 304, + "valueAsString": "304", + "pos": 2046, + "end": 2049, + "flags": 1, + "parent": { + "$ref": "167" + } + }, + "pos": 2046, + "end": 2049, + "flags": 1, + "parent": { + "$ref": "165" + } + } + ], + "pos": 2037, + "end": 2050, + "flags": 1, + "parent": { + "$ref": "163" + }, + "_id": 1086 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "pos": 1915, + "end": 2051, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "169", + "kind": 51, + "content": [ + { + "$id": "170", + "kind": 52, + "text": "The client has made a conditional request and the resource has not been modified.", + "pos": 1918, + "end": 2005, + "flags": 0, + "parent": { + "$ref": "169" + } + } + ], + "tags": [], + "pos": 1915, + "end": 2007, + "flags": 0, + "parent": { + "$ref": "163" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "163" + } + ], + "name": "NotModifiedResponse", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 118 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "171", + "kind": 13, + "id": { + "$id": "172", + "kind": 3, + "sv": "BadRequestResponse", + "pos": 2136, + "end": 2154, + "flags": 0, + "parent": { + "$ref": "171" + }, + "_id": 1088 + }, + "is": { + "$id": "173", + "kind": 45, + "target": { + "$id": "174", + "kind": 3, + "sv": "Response", + "pos": 2158, + "end": 2166, + "flags": 1, + "parent": { + "$ref": "173" + }, + "_id": 1090 + }, + "arguments": [ + { + "$id": "175", + "kind": 61, + "argument": { + "$id": "176", + "kind": 33, + "value": 400, + "valueAsString": "400", + "pos": 2167, + "end": 2170, + "flags": 1, + "parent": { + "$ref": "175" + } + }, + "pos": 2167, + "end": 2170, + "flags": 1, + "parent": { + "$ref": "173" + } + } + ], + "pos": 2158, + "end": 2171, + "flags": 1, + "parent": { + "$ref": "171" + }, + "_id": 1089 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "pos": 2052, + "end": 2172, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "177", + "kind": 51, + "content": [ + { + "$id": "178", + "kind": 52, + "text": "The server could not understand the request due to invalid syntax.", + "pos": 2055, + "end": 2127, + "flags": 0, + "parent": { + "$ref": "177" + } + } + ], + "tags": [], + "pos": 2052, + "end": 2129, + "flags": 0, + "parent": { + "$ref": "171" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "171" + } + ], + "name": "BadRequestResponse", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 119 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "179", + "kind": 13, + "id": { + "$id": "180", + "kind": 3, + "sv": "UnauthorizedResponse", + "pos": 2214, + "end": 2234, + "flags": 0, + "parent": { + "$ref": "179" + }, + "_id": 1091 + }, + "is": { + "$id": "181", + "kind": 45, + "target": { + "$id": "182", + "kind": 3, + "sv": "Response", + "pos": 2238, + "end": 2246, + "flags": 1, + "parent": { + "$ref": "181" + }, + "_id": 1093 + }, + "arguments": [ + { + "$id": "183", + "kind": 61, + "argument": { + "$id": "184", + "kind": 33, + "value": 401, + "valueAsString": "401", + "pos": 2247, + "end": 2250, + "flags": 1, + "parent": { + "$ref": "183" + } + }, + "pos": 2247, + "end": 2250, + "flags": 1, + "parent": { + "$ref": "181" + } + } + ], + "pos": 2238, + "end": 2251, + "flags": 1, + "parent": { + "$ref": "179" + }, + "_id": 1092 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "pos": 2173, + "end": 2252, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "185", + "kind": 51, + "content": [ + { + "$id": "186", + "kind": 52, + "text": "Access is unauthorized.", + "pos": 2176, + "end": 2205, + "flags": 0, + "parent": { + "$ref": "185" + } + } + ], + "tags": [], + "pos": 2173, + "end": 2207, + "flags": 0, + "parent": { + "$ref": "179" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "179" + } + ], + "name": "UnauthorizedResponse", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 120 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "187", + "kind": 13, + "id": { + "$id": "188", + "kind": 3, + "sv": "ForbiddenResponse", + "pos": 2291, + "end": 2308, + "flags": 0, + "parent": { + "$ref": "187" + }, + "_id": 1094 + }, + "is": { + "$id": "189", + "kind": 45, + "target": { + "$id": "190", + "kind": 3, + "sv": "Response", + "pos": 2312, + "end": 2320, + "flags": 1, + "parent": { + "$ref": "189" + }, + "_id": 1096 + }, + "arguments": [ + { + "$id": "191", + "kind": 61, + "argument": { + "$id": "192", + "kind": 33, + "value": 403, + "valueAsString": "403", + "pos": 2321, + "end": 2324, + "flags": 1, + "parent": { + "$ref": "191" + } + }, + "pos": 2321, + "end": 2324, + "flags": 1, + "parent": { + "$ref": "189" + } + } + ], + "pos": 2312, + "end": 2325, + "flags": 1, + "parent": { + "$ref": "187" + }, + "_id": 1095 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "pos": 2253, + "end": 2326, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "193", + "kind": 51, + "content": [ + { + "$id": "194", + "kind": 52, + "text": "Access is forbidden.", + "pos": 2256, + "end": 2282, + "flags": 0, + "parent": { + "$ref": "193" + } + } + ], + "tags": [], + "pos": 2253, + "end": 2284, + "flags": 0, + "parent": { + "$ref": "187" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "187" + } + ], + "name": "ForbiddenResponse", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 121 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "195", + "kind": 13, + "id": { + "$id": "196", + "kind": 3, + "sv": "NotFoundResponse", + "pos": 2391, + "end": 2407, + "flags": 0, + "parent": { + "$ref": "195" + }, + "_id": 1097 + }, + "is": { + "$id": "197", + "kind": 45, + "target": { + "$id": "198", + "kind": 3, + "sv": "Response", + "pos": 2411, + "end": 2419, + "flags": 1, + "parent": { + "$ref": "197" + }, + "_id": 1099 + }, + "arguments": [ + { + "$id": "199", + "kind": 61, + "argument": { + "$id": "200", + "kind": 33, + "value": 404, + "valueAsString": "404", + "pos": 2420, + "end": 2423, + "flags": 1, + "parent": { + "$ref": "199" + } + }, + "pos": 2420, + "end": 2423, + "flags": 1, + "parent": { + "$ref": "197" + } + } + ], + "pos": 2411, + "end": 2424, + "flags": 1, + "parent": { + "$ref": "195" + }, + "_id": 1098 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "pos": 2327, + "end": 2425, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "201", + "kind": 51, + "content": [ + { + "$id": "202", + "kind": 52, + "text": "The server cannot find the requested resource.", + "pos": 2330, + "end": 2382, + "flags": 0, + "parent": { + "$ref": "201" + } + } + ], + "tags": [], + "pos": 2327, + "end": 2384, + "flags": 0, + "parent": { + "$ref": "195" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "195" + } + ], + "name": "NotFoundResponse", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 122 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "203", + "kind": 13, + "id": { + "$id": "204", + "kind": 3, + "sv": "ConflictResponse", + "pos": 2503, + "end": 2519, + "flags": 0, + "parent": { + "$ref": "203" + }, + "_id": 1100 + }, + "is": { + "$id": "205", + "kind": 45, + "target": { + "$id": "206", + "kind": 3, + "sv": "Response", + "pos": 2523, + "end": 2531, + "flags": 1, + "parent": { + "$ref": "205" + }, + "_id": 1102 + }, + "arguments": [ + { + "$id": "207", + "kind": 61, + "argument": { + "$id": "208", + "kind": 33, + "value": 409, + "valueAsString": "409", + "pos": 2532, + "end": 2535, + "flags": 1, + "parent": { + "$ref": "207" + } + }, + "pos": 2532, + "end": 2535, + "flags": 1, + "parent": { + "$ref": "205" + } + } + ], + "pos": 2523, + "end": 2536, + "flags": 1, + "parent": { + "$ref": "203" + }, + "_id": 1101 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "pos": 2426, + "end": 2537, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "209", + "kind": 51, + "content": [ + { + "$id": "210", + "kind": 52, + "text": "The request conflicts with the current state of the server.", + "pos": 2429, + "end": 2494, + "flags": 0, + "parent": { + "$ref": "209" + } + } + ], + "tags": [], + "pos": 2426, + "end": 2496, + "flags": 0, + "parent": { + "$ref": "203" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "203" + } + ], + "name": "ConflictResponse", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 123 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "211", + "kind": 13, + "id": { + "$id": "212", + "kind": 3, + "sv": "PlainData", + "pos": 2773, + "end": 2782, + "flags": 0, + "parent": { + "$ref": "211" + }, + "_id": 1103 + }, + "templateParameters": [ + { + "$id": "213", + "kind": 46, + "id": { + "$id": "214", + "kind": 3, + "sv": "Data", + "pos": 2783, + "end": 2787, + "flags": 0, + "parent": { + "$ref": "213" + }, + "_id": 1106 + }, + "pos": 2783, + "end": 2787, + "flags": 0, + "parent": { + "$ref": "211" + }, + "symbol": { + "declarations": [ + { + "$ref": "213" + } + ], + "name": "Data", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "211" + } + ], + "name": "PlainData", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 124 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 125 + } + } + ], + "templateParametersRange": { + "pos": 2782, + "end": 2788 + }, + "decorators": [ + { + "$id": "215", + "kind": 5, + "arguments": [], + "target": { + "$id": "216", + "kind": 3, + "sv": "plainData", + "pos": 2757, + "end": 2766, + "flags": 1, + "parent": { + "$ref": "215" + }, + "_id": 1107 + }, + "pos": 2756, + "end": 2766, + "flags": 0, + "parent": { + "$ref": "211" + } + } + ], + "properties": [ + { + "$id": "217", + "kind": 16, + "target": { + "$id": "218", + "kind": 45, + "target": { + "$id": "219", + "kind": 3, + "sv": "Data", + "pos": 2796, + "end": 2800, + "flags": 1, + "parent": { + "$ref": "218" + }, + "_id": 1105 + }, + "arguments": [], + "pos": 2796, + "end": 2800, + "flags": 1, + "parent": { + "$ref": "217" + }, + "_id": 1104 + }, + "pos": 2793, + "end": 2800, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "211" + } + } + ], + "bodyRange": { + "pos": 2789, + "end": 2803 + }, + "pos": 2539, + "end": 2803, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "220", + "kind": 51, + "content": [ + { + "$id": "221", + "kind": 52, + "text": "Produces a new model with the same properties as T, but with `@query`,\n`@header`, `@body`, and `@path` decorators removed from all properties.", + "pos": 2542, + "end": 2698, + "flags": 0, + "parent": { + "$ref": "220" + } + } + ], + "tags": [ + { + "$id": "222", + "kind": 57, + "tagName": { + "$id": "223", + "kind": 3, + "sv": "template", + "pos": 2699, + "end": 2707, + "flags": 0, + "parent": { + "$ref": "222" + } + }, + "paramName": { + "$id": "224", + "kind": 3, + "sv": "Data", + "pos": 2708, + "end": 2712, + "flags": 0, + "parent": { + "$ref": "222" + } + }, + "content": [ + { + "$id": "225", + "kind": 52, + "text": "The model to spread as the plain data.", + "pos": 2713, + "end": 2753, + "flags": 0, + "parent": { + "$ref": "222" + } + } + ], + "pos": 2698, + "end": 2753, + "flags": 0, + "parent": { + "$ref": "220" + } + } + ], + "pos": 2539, + "end": 2755, + "flags": 0, + "parent": { + "$ref": "211" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "211" + } + ], + "name": "PlainData", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 124 + }, + "locals": { + "duplicates": {} + } + }, + { + "$ref": "40" + }, + { + "$id": "226", + "kind": 13, + "id": { + "$id": "227", + "kind": 3, + "sv": "HttpPartOptions", + "pos": 8992, + "end": 9007, + "flags": 0, + "parent": { + "$ref": "226" + }, + "_id": 1116 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "228", + "kind": 15, + "id": { + "$id": "229", + "kind": 3, + "sv": "name", + "pos": 9065, + "end": 9069, + "flags": 0, + "parent": { + "$ref": "228" + }, + "_id": 1117 + }, + "decorators": [], + "value": { + "$id": "230", + "kind": 45, + "target": { + "$id": "231", + "kind": 3, + "sv": "string", + "pos": 9072, + "end": 9078, + "flags": 1, + "parent": { + "$ref": "230" + }, + "_id": 1119 + }, + "arguments": [], + "pos": 9072, + "end": 9078, + "flags": 1, + "parent": { + "$ref": "228" + }, + "_id": 1118 + }, + "optional": true, + "pos": 9012, + "end": 9078, + "flags": 0, + "docs": [ + { + "$id": "232", + "kind": 51, + "content": [ + { + "$id": "233", + "kind": 52, + "text": "Name of the part when using the array form.", + "pos": 9015, + "end": 9060, + "flags": 0, + "parent": { + "$ref": "232" + } + } + ], + "tags": [], + "pos": 9012, + "end": 9062, + "flags": 0, + "parent": { + "$ref": "228" + } + } + ], + "directives": [], + "parent": { + "$ref": "226" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "228" + }, + "name": "name", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "226" + } + ], + "name": "HttpPartOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 126 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 9008, + "end": 9081 + }, + "pos": 8986, + "end": 9081, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "226" + } + ], + "name": "HttpPartOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 126 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "234", + "kind": 13, + "id": { + "$id": "235", + "kind": 3, + "sv": "HttpPart", + "pos": 9122, + "end": 9130, + "flags": 0, + "parent": { + "$ref": "234" + }, + "_id": 1120 + }, + "templateParameters": [ + { + "$id": "236", + "kind": 46, + "id": { + "$id": "237", + "kind": 3, + "sv": "Type", + "pos": 9131, + "end": 9135, + "flags": 0, + "parent": { + "$ref": "236" + }, + "_id": 1138 + }, + "pos": 9131, + "end": 9135, + "flags": 0, + "parent": { + "$ref": "234" + }, + "symbol": { + "declarations": [ + { + "$ref": "236" + } + ], + "name": "Type", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "234" + } + ], + "name": "HttpPart", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 127 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 128 + } + }, + { + "$id": "238", + "kind": 46, + "id": { + "$id": "239", + "kind": 3, + "sv": "Options", + "pos": 9137, + "end": 9144, + "flags": 0, + "parent": { + "$ref": "238" + }, + "_id": 1141 + }, + "constraint": { + "$id": "240", + "kind": 44, + "target": { + "$id": "241", + "kind": 45, + "target": { + "$id": "242", + "kind": 3, + "sv": "HttpPartOptions", + "pos": 9161, + "end": 9176, + "flags": 1, + "parent": { + "$ref": "241" + }, + "_id": 1143 + }, + "arguments": [], + "pos": 9161, + "end": 9176, + "flags": 1, + "parent": { + "$ref": "240" + }, + "_id": 1142 + }, + "pos": 9153, + "end": 9176, + "flags": 0, + "parent": { + "$ref": "238" + } + }, + "default": { + "$id": "243", + "kind": 63, + "properties": [], + "bodyRange": { + "pos": 9179, + "end": 9182 + }, + "pos": 9179, + "end": 9182, + "flags": 0, + "parent": { + "$ref": "238" + } + }, + "pos": 9137, + "end": 9182, + "flags": 0, + "parent": { + "$ref": "234" + }, + "symbol": { + "declarations": [ + { + "$ref": "238" + } + ], + "name": "Options", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "234" + } + ], + "name": "HttpPart", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 127 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 129 + } + } + ], + "templateParametersRange": { + "pos": 9130, + "end": 9183 + }, + "decorators": [ + { + "$id": "244", + "kind": 5, + "arguments": [ + { + "$id": "245", + "kind": 45, + "target": { + "$id": "246", + "kind": 3, + "sv": "Type", + "pos": 9101, + "end": 9105, + "flags": 1, + "parent": { + "$ref": "245" + }, + "_id": 1137 + }, + "arguments": [], + "pos": 9101, + "end": 9105, + "flags": 1, + "parent": { + "$ref": "244" + }, + "_id": 1136 + }, + { + "$id": "247", + "kind": 45, + "target": { + "$id": "248", + "kind": 3, + "sv": "Options", + "pos": 9107, + "end": 9114, + "flags": 1, + "parent": { + "$ref": "247" + }, + "_id": 1140 + }, + "arguments": [], + "pos": 9107, + "end": 9114, + "flags": 1, + "parent": { + "$ref": "244" + }, + "_id": 1139 + } + ], + "target": { + "$id": "249", + "kind": 7, + "base": { + "$id": "250", + "kind": 3, + "sv": "Private", + "pos": 9084, + "end": 9091, + "flags": 1, + "parent": { + "$ref": "249" + }, + "_id": 1122 + }, + "id": { + "$id": "251", + "kind": 3, + "sv": "httpPart", + "pos": 9092, + "end": 9100, + "flags": 1, + "parent": { + "$ref": "249" + }, + "_id": 1123 + }, + "selector": ".", + "pos": 9084, + "end": 9100, + "flags": 1, + "parent": { + "$ref": "244" + }, + "_id": 1121 + }, + "pos": 9083, + "end": 9115, + "flags": 0, + "parent": { + "$ref": "234" + } + } + ], + "properties": [], + "bodyRange": { + "pos": 9184, + "end": 9186 + }, + "pos": 9083, + "end": 9186, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "234" + } + ], + "name": "HttpPart", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 127 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "252", + "kind": 13, + "id": { + "$id": "253", + "kind": 3, + "sv": "Link", + "pos": 9194, + "end": 9198, + "flags": 0, + "parent": { + "$ref": "252" + }, + "_id": 1144 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "254", + "kind": 15, + "id": { + "$id": "255", + "kind": 3, + "sv": "target", + "pos": 9203, + "end": 9209, + "flags": 0, + "parent": { + "$ref": "254" + }, + "_id": 1145 + }, + "decorators": [], + "value": { + "$id": "256", + "kind": 45, + "target": { + "$id": "257", + "kind": 3, + "sv": "url", + "pos": 9211, + "end": 9214, + "flags": 1, + "parent": { + "$ref": "256" + }, + "_id": 1147 + }, + "arguments": [], + "pos": 9211, + "end": 9214, + "flags": 1, + "parent": { + "$ref": "254" + }, + "_id": 1146 + }, + "optional": false, + "pos": 9203, + "end": 9214, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "252" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "254" + }, + "name": "target", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "252" + } + ], + "name": "Link", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 130 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "258", + "kind": 15, + "id": { + "$id": "259", + "kind": 3, + "sv": "rel", + "pos": 9218, + "end": 9221, + "flags": 0, + "parent": { + "$ref": "258" + }, + "_id": 1148 + }, + "decorators": [], + "value": { + "$id": "260", + "kind": 45, + "target": { + "$id": "261", + "kind": 3, + "sv": "string", + "pos": 9223, + "end": 9229, + "flags": 1, + "parent": { + "$ref": "260" + }, + "_id": 1150 + }, + "arguments": [], + "pos": 9223, + "end": 9229, + "flags": 1, + "parent": { + "$ref": "258" + }, + "_id": 1149 + }, + "optional": false, + "pos": 9218, + "end": 9229, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "252" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "258" + }, + "name": "rel", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "252" + } + ], + "name": "Link", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 130 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "262", + "kind": 15, + "id": { + "$id": "263", + "kind": 3, + "sv": "attributes", + "pos": 9233, + "end": 9243, + "flags": 0, + "parent": { + "$ref": "262" + }, + "_id": 1151 + }, + "decorators": [], + "value": { + "$id": "264", + "kind": 45, + "target": { + "$id": "265", + "kind": 3, + "sv": "Record", + "pos": 9246, + "end": 9252, + "flags": 1, + "parent": { + "$ref": "264" + }, + "_id": 1153 + }, + "arguments": [ + { + "$id": "266", + "kind": 61, + "argument": { + "$id": "267", + "kind": 43, + "pos": 9253, + "end": 9260, + "flags": 1, + "parent": { + "$ref": "266" + } + }, + "pos": 9253, + "end": 9260, + "flags": 1, + "parent": { + "$ref": "264" + } + } + ], + "pos": 9246, + "end": 9261, + "flags": 1, + "parent": { + "$ref": "262" + }, + "_id": 1152 + }, + "optional": true, + "pos": 9233, + "end": 9261, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "252" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "262" + }, + "name": "attributes", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "252" + } + ], + "name": "Link", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 130 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 9199, + "end": 9264 + }, + "pos": 9188, + "end": 9264, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "252" + } + ], + "name": "Link", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 130 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "268", + "kind": 17, + "id": { + "$id": "269", + "kind": 3, + "sv": "LinkHeader", + "pos": 9273, + "end": 9283, + "flags": 0, + "parent": { + "$ref": "268" + }, + "_id": 1154 + }, + "templateParameters": [ + { + "$id": "270", + "kind": 46, + "id": { + "$id": "271", + "kind": 3, + "sv": "T", + "pos": 9284, + "end": 9285, + "flags": 0, + "parent": { + "$ref": "270" + }, + "_id": 1157 + }, + "constraint": { + "$id": "272", + "kind": 28, + "options": [ + { + "$id": "273", + "kind": 45, + "target": { + "$id": "274", + "kind": 3, + "sv": "Record", + "pos": 9294, + "end": 9300, + "flags": 1, + "parent": { + "$ref": "273" + }, + "_id": 1159 + }, + "arguments": [ + { + "$id": "275", + "kind": 61, + "argument": { + "$id": "276", + "kind": 45, + "target": { + "$id": "277", + "kind": 3, + "sv": "url", + "pos": 9301, + "end": 9304, + "flags": 1, + "parent": { + "$ref": "276" + }, + "_id": 1161 + }, + "arguments": [], + "pos": 9301, + "end": 9304, + "flags": 1, + "parent": { + "$ref": "275" + }, + "_id": 1160 + }, + "pos": 9301, + "end": 9304, + "flags": 1, + "parent": { + "$ref": "273" + } + } + ], + "pos": 9294, + "end": 9305, + "flags": 1, + "parent": { + "$ref": "272" + }, + "_id": 1158 + }, + { + "$id": "278", + "kind": 31, + "elementType": { + "$id": "279", + "kind": 45, + "target": { + "$id": "280", + "kind": 3, + "sv": "Link", + "pos": 9308, + "end": 9312, + "flags": 1, + "parent": { + "$ref": "279" + }, + "_id": 1163 + }, + "arguments": [], + "pos": 9308, + "end": 9312, + "flags": 1, + "parent": { + "$ref": "278" + }, + "_id": 1162 + }, + "pos": 9308, + "end": 9314, + "flags": 0, + "parent": { + "$ref": "272" + } + } + ], + "pos": 9294, + "end": 9314, + "flags": 0, + "parent": { + "$ref": "270" + } + }, + "pos": 9284, + "end": 9314, + "flags": 0, + "parent": { + "$ref": "268" + }, + "symbol": { + "declarations": [ + { + "$ref": "270" + } + ], + "name": "T", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "268" + } + ], + "name": "LinkHeader", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "metatypeMembers": { + "duplicates": {} + }, + "id": 131 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 132 + } + } + ], + "templateParametersRange": { + "pos": 9283, + "end": 9315 + }, + "extends": { + "$id": "281", + "kind": 45, + "target": { + "$id": "282", + "kind": 3, + "sv": "string", + "pos": 9324, + "end": 9330, + "flags": 1, + "parent": { + "$ref": "281" + }, + "_id": 1156 + }, + "arguments": [], + "pos": 9324, + "end": 9330, + "flags": 1, + "parent": { + "$ref": "268" + }, + "_id": 1155 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 9266, + "end": 9331, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "268" + } + ], + "name": "LinkHeader", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "metatypeMembers": { + "duplicates": {} + }, + "id": 131 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "283", + "kind": 13, + "id": { + "$id": "284", + "kind": 3, + "sv": "MergePatchUpdate", + "pos": 11019, + "end": 11035, + "flags": 0, + "parent": { + "$ref": "283" + }, + "_id": 1164 + }, + "templateParameters": [ + { + "$id": "285", + "kind": 46, + "id": { + "$id": "286", + "kind": 3, + "sv": "T", + "pos": 11039, + "end": 11040, + "flags": 0, + "parent": { + "$ref": "285" + }, + "_id": 1178 + }, + "constraint": { + "$id": "287", + "kind": 45, + "target": { + "$id": "288", + "kind": 7, + "base": { + "$id": "289", + "kind": 3, + "sv": "Reflection", + "pos": 11049, + "end": 11059, + "flags": 1, + "parent": { + "$ref": "288" + }, + "_id": 1176 + }, + "id": { + "$id": "290", + "kind": 3, + "sv": "Model", + "pos": 11060, + "end": 11065, + "flags": 1, + "parent": { + "$ref": "288" + }, + "_id": 1177 + }, + "selector": ".", + "pos": 11049, + "end": 11065, + "flags": 1, + "parent": { + "$ref": "287" + }, + "_id": 1175 + }, + "arguments": [], + "pos": 11049, + "end": 11065, + "flags": 1, + "parent": { + "$ref": "285" + }, + "_id": 1174 + }, + "pos": 11039, + "end": 11065, + "flags": 0, + "parent": { + "$ref": "283" + }, + "symbol": { + "declarations": [ + { + "$ref": "285" + } + ], + "name": "T", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "283" + } + ], + "name": "MergePatchUpdate", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 133 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 135 + } + }, + { + "$id": "291", + "kind": 46, + "id": { + "$id": "292", + "kind": 3, + "sv": "NameTemplate", + "pos": 11069, + "end": 11081, + "flags": 0, + "parent": { + "$ref": "291" + }, + "_id": 1169 + }, + "constraint": { + "$id": "293", + "kind": 44, + "target": { + "$id": "294", + "kind": 45, + "target": { + "$id": "295", + "kind": 3, + "sv": "string", + "pos": 11098, + "end": 11104, + "flags": 1, + "parent": { + "$ref": "294" + }, + "_id": 1171 + }, + "arguments": [], + "pos": 11098, + "end": 11104, + "flags": 1, + "parent": { + "$ref": "293" + }, + "_id": 1170 + }, + "pos": 11090, + "end": 11104, + "flags": 0, + "parent": { + "$ref": "291" + } + }, + "default": { + "$id": "296", + "kind": 32, + "value": "{name}MergePatchUpdate", + "pos": 11107, + "end": 11131, + "flags": 0, + "parent": { + "$ref": "291" + } + }, + "pos": 11069, + "end": 11131, + "flags": 0, + "parent": { + "$ref": "283" + }, + "symbol": { + "declarations": [ + { + "$ref": "291" + } + ], + "name": "NameTemplate", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "283" + } + ], + "name": "MergePatchUpdate", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 133 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 134 + } + } + ], + "templateParametersRange": { + "pos": 11035, + "end": 11133 + }, + "decorators": [ + { + "$id": "297", + "kind": 5, + "arguments": [ + { + "$id": "298", + "kind": 32, + "value": "", + "pos": 10835, + "end": 10837, + "flags": 0, + "parent": { + "$ref": "297" + } + } + ], + "target": { + "$id": "299", + "kind": 3, + "sv": "doc", + "pos": 10831, + "end": 10834, + "flags": 1, + "parent": { + "$ref": "297" + }, + "_id": 1165 + }, + "pos": 10830, + "end": 10838, + "flags": 0, + "parent": { + "$ref": "283" + } + }, + { + "$id": "300", + "kind": 5, + "arguments": [ + { + "$id": "301", + "kind": 45, + "target": { + "$id": "302", + "kind": 3, + "sv": "NameTemplate", + "pos": 10853, + "end": 10865, + "flags": 1, + "parent": { + "$ref": "301" + }, + "_id": 1168 + }, + "arguments": [], + "pos": 10853, + "end": 10865, + "flags": 1, + "parent": { + "$ref": "300" + }, + "_id": 1167 + }, + { + "$id": "303", + "kind": 45, + "target": { + "$id": "304", + "kind": 3, + "sv": "T", + "pos": 10867, + "end": 10868, + "flags": 1, + "parent": { + "$ref": "303" + }, + "_id": 1173 + }, + "arguments": [], + "pos": 10867, + "end": 10868, + "flags": 1, + "parent": { + "$ref": "300" + }, + "_id": 1172 + } + ], + "target": { + "$id": "305", + "kind": 3, + "sv": "friendlyName", + "pos": 10840, + "end": 10852, + "flags": 1, + "parent": { + "$ref": "300" + }, + "_id": 1166 + }, + "pos": 10839, + "end": 10869, + "flags": 0, + "parent": { + "$ref": "283" + } + }, + { + "$id": "306", + "kind": 5, + "arguments": [ + { + "$id": "307", + "kind": 32, + "value": "application/merge-patch+json", + "pos": 10885, + "end": 10915, + "flags": 0, + "parent": { + "$ref": "306" + } + } + ], + "target": { + "$id": "308", + "kind": 3, + "sv": "mediaTypeHint", + "pos": 10871, + "end": 10884, + "flags": 1, + "parent": { + "$ref": "306" + }, + "_id": 1179 + }, + "pos": 10870, + "end": 10916, + "flags": 0, + "parent": { + "$ref": "283" + } + }, + { + "$id": "309", + "kind": 5, + "arguments": [ + { + "$id": "310", + "kind": 45, + "target": { + "$id": "311", + "kind": 3, + "sv": "T", + "pos": 10934, + "end": 10935, + "flags": 1, + "parent": { + "$ref": "310" + }, + "_id": 1206 + }, + "arguments": [], + "pos": 10934, + "end": 10935, + "flags": 1, + "parent": { + "$ref": "309" + }, + "_id": 1205 + }, + { + "$id": "312", + "kind": 45, + "target": { + "$id": "313", + "kind": 3, + "sv": "NameTemplate", + "pos": 10937, + "end": 10949, + "flags": 1, + "parent": { + "$ref": "312" + }, + "_id": 1208 + }, + "arguments": [], + "pos": 10937, + "end": 10949, + "flags": 1, + "parent": { + "$ref": "309" + }, + "_id": 1207 + }, + { + "$id": "314", + "kind": 63, + "properties": [ + { + "$id": "315", + "kind": 64, + "id": { + "$id": "316", + "kind": 3, + "sv": "visibilityMode", + "pos": 10954, + "end": 10968, + "flags": 0, + "parent": { + "$ref": "315" + }, + "_id": 1209 + }, + "value": { + "$id": "317", + "kind": 45, + "target": { + "$id": "318", + "kind": 7, + "base": { + "$id": "319", + "kind": 7, + "base": { + "$id": "320", + "kind": 3, + "sv": "Private", + "pos": 10970, + "end": 10977, + "flags": 1, + "parent": { + "$ref": "319" + }, + "_id": 1213 + }, + "id": { + "$id": "321", + "kind": 3, + "sv": "MergePatchVisibilityMode", + "pos": 10978, + "end": 11002, + "flags": 1, + "parent": { + "$ref": "319" + }, + "_id": 1214 + }, + "selector": ".", + "pos": 10970, + "end": 11002, + "flags": 1, + "parent": { + "$ref": "318" + }, + "_id": 1212 + }, + "id": { + "$id": "322", + "kind": 3, + "sv": "Update", + "pos": 11003, + "end": 11009, + "flags": 1, + "parent": { + "$ref": "318" + }, + "_id": 1215 + }, + "selector": ".", + "pos": 10970, + "end": 11009, + "flags": 1, + "parent": { + "$ref": "317" + }, + "_id": 1211 + }, + "arguments": [], + "pos": 10970, + "end": 11009, + "flags": 1, + "parent": { + "$ref": "315" + }, + "_id": 1210 + }, + "pos": 10954, + "end": 11009, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "314" + } + } + ], + "bodyRange": { + "pos": 10951, + "end": 11011 + }, + "pos": 10951, + "end": 11011, + "flags": 0, + "parent": { + "$ref": "309" + } + } + ], + "target": { + "$id": "323", + "kind": 3, + "sv": "applyMergePatch", + "pos": 10918, + "end": 10933, + "flags": 1, + "parent": { + "$ref": "309" + }, + "_id": 1180 + }, + "pos": 10917, + "end": 11012, + "flags": 0, + "parent": { + "$ref": "283" + } + } + ], + "properties": [], + "bodyRange": { + "pos": 11134, + "end": 11136 + }, + "pos": 9333, + "end": 11136, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "324", + "kind": 51, + "content": [ + { + "$id": "325", + "kind": 52, + "text": "Create a MergePatch Request body for updating the given resource Model.\nThe MergePatch request created by this template provides a TypeSpec description of a\nJSON MergePatch request that can successfully update the given resource.\nThe transformation follows the definition of JSON MergePatch requests in\nrfc 7396: https://www.rfc-editor.org/rfc/rfc7396,\napplying the merge-patch transform recursively to keyed types in the resource Model.\n\nUsing this template in a PATCH request body overrides the `implicitOptionality`\nsetting for PATCH operations and sets `application/merge-patch+json` as the request\ncontent-type.", + "pos": 9336, + "end": 9989, + "flags": 0, + "parent": { + "$ref": "324" + } + } + ], + "tags": [ + { + "$id": "326", + "kind": 57, + "tagName": { + "$id": "327", + "kind": 3, + "sv": "template", + "pos": 9990, + "end": 9998, + "flags": 0, + "parent": { + "$ref": "326" + } + }, + "paramName": { + "$id": "328", + "kind": 3, + "sv": "T", + "pos": 9999, + "end": 10000, + "flags": 0, + "parent": { + "$ref": "326" + } + }, + "content": [ + { + "$id": "329", + "kind": 52, + "text": "The type of the resource to create a MergePatch update request body for.", + "pos": 10001, + "end": 10077, + "flags": 0, + "parent": { + "$ref": "326" + } + } + ], + "pos": 9989, + "end": 10077, + "flags": 0, + "parent": { + "$ref": "324" + } + }, + { + "$id": "330", + "kind": 57, + "tagName": { + "$id": "331", + "kind": 3, + "sv": "template", + "pos": 10078, + "end": 10086, + "flags": 0, + "parent": { + "$ref": "330" + } + }, + "paramName": { + "$id": "332", + "kind": 3, + "sv": "NameTemplate", + "pos": 10087, + "end": 10099, + "flags": 0, + "parent": { + "$ref": "330" + } + }, + "content": [ + { + "$id": "333", + "kind": 52, + "text": "A StringTemplate used to name any models created by applying\nthe merge-patch transform to the resource. The default name template is `{name}MergePatchUpdate`,\nfor example, the merge patch transform of model `Widget` is named `WidgetMergePatchUpdate`.", + "pos": 10100, + "end": 10363, + "flags": 0, + "parent": { + "$ref": "330" + } + } + ], + "pos": 10077, + "end": 10363, + "flags": 0, + "parent": { + "$ref": "324" + } + }, + { + "$id": "334", + "kind": 58, + "tagName": { + "$id": "335", + "kind": 3, + "sv": "example", + "pos": 10364, + "end": 10371, + "flags": 0, + "parent": { + "$ref": "334" + } + }, + "content": [ + { + "$id": "336", + "kind": 52, + "text": "```tsp\n// An operation updating a 'Widget' using merge-patch\n@patch op update(@body request: MergePatchUpdate): Widget;\n```", + "pos": 10371, + "end": 10522, + "flags": 0, + "parent": { + "$ref": "334" + } + } + ], + "pos": 10363, + "end": 10522, + "flags": 0, + "parent": { + "$ref": "324" + } + }, + { + "$id": "337", + "kind": 58, + "tagName": { + "$id": "338", + "kind": 3, + "sv": "example", + "pos": 10523, + "end": 10530, + "flags": 0, + "parent": { + "$ref": "337" + } + }, + "content": [ + { + "$id": "339", + "kind": 52, + "text": "```tsp\n// An operation updating a 'Widget' using merge-patch\n@patch op update(@bodyRoot request: MergePatchUpdate): Widget;\n```", + "pos": 10530, + "end": 10685, + "flags": 0, + "parent": { + "$ref": "337" + } + } + ], + "pos": 10522, + "end": 10685, + "flags": 0, + "parent": { + "$ref": "324" + } + }, + { + "$id": "340", + "kind": 58, + "tagName": { + "$id": "341", + "kind": 3, + "sv": "example", + "pos": 10686, + "end": 10693, + "flags": 0, + "parent": { + "$ref": "340" + } + }, + "content": [ + { + "$id": "342", + "kind": 52, + "text": "```tsp\n// An operation updating a 'Widget' using merge-patch\n@patch op update(...MergePatchUpdate): Widget;\n```", + "pos": 10693, + "end": 10827, + "flags": 0, + "parent": { + "$ref": "340" + } + } + ], + "pos": 10685, + "end": 10827, + "flags": 0, + "parent": { + "$ref": "324" + } + } + ], + "pos": 9333, + "end": 10829, + "flags": 0, + "parent": { + "$ref": "283" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "283" + } + ], + "name": "MergePatchUpdate", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 133 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "343", + "kind": 13, + "id": { + "$id": "344", + "kind": 3, + "sv": "MergePatchCreateOrUpdate", + "pos": 12902, + "end": 12926, + "flags": 0, + "parent": { + "$ref": "343" + }, + "_id": 1216 + }, + "templateParameters": [ + { + "$id": "345", + "kind": 46, + "id": { + "$id": "346", + "kind": 3, + "sv": "T", + "pos": 12930, + "end": 12931, + "flags": 0, + "parent": { + "$ref": "345" + }, + "_id": 1230 + }, + "constraint": { + "$id": "347", + "kind": 45, + "target": { + "$id": "348", + "kind": 7, + "base": { + "$id": "349", + "kind": 3, + "sv": "Reflection", + "pos": 12940, + "end": 12950, + "flags": 1, + "parent": { + "$ref": "348" + }, + "_id": 1228 + }, + "id": { + "$id": "350", + "kind": 3, + "sv": "Model", + "pos": 12951, + "end": 12956, + "flags": 1, + "parent": { + "$ref": "348" + }, + "_id": 1229 + }, + "selector": ".", + "pos": 12940, + "end": 12956, + "flags": 1, + "parent": { + "$ref": "347" + }, + "_id": 1227 + }, + "arguments": [], + "pos": 12940, + "end": 12956, + "flags": 1, + "parent": { + "$ref": "345" + }, + "_id": 1226 + }, + "pos": 12930, + "end": 12956, + "flags": 0, + "parent": { + "$ref": "343" + }, + "symbol": { + "declarations": [ + { + "$ref": "345" + } + ], + "name": "T", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "343" + } + ], + "name": "MergePatchCreateOrUpdate", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 138 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 140 + } + }, + { + "$id": "351", + "kind": 46, + "id": { + "$id": "352", + "kind": 3, + "sv": "NameTemplate", + "pos": 12960, + "end": 12972, + "flags": 0, + "parent": { + "$ref": "351" + }, + "_id": 1221 + }, + "constraint": { + "$id": "353", + "kind": 44, + "target": { + "$id": "354", + "kind": 45, + "target": { + "$id": "355", + "kind": 3, + "sv": "string", + "pos": 12989, + "end": 12995, + "flags": 1, + "parent": { + "$ref": "354" + }, + "_id": 1223 + }, + "arguments": [], + "pos": 12989, + "end": 12995, + "flags": 1, + "parent": { + "$ref": "353" + }, + "_id": 1222 + }, + "pos": 12981, + "end": 12995, + "flags": 0, + "parent": { + "$ref": "351" + } + }, + "default": { + "$id": "356", + "kind": 32, + "value": "{name}MergePatchCreateOrUpdate", + "pos": 12998, + "end": 13030, + "flags": 0, + "parent": { + "$ref": "351" + } + }, + "pos": 12960, + "end": 13030, + "flags": 0, + "parent": { + "$ref": "343" + }, + "symbol": { + "declarations": [ + { + "$ref": "351" + } + ], + "name": "NameTemplate", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "343" + } + ], + "name": "MergePatchCreateOrUpdate", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 138 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 139 + } + } + ], + "templateParametersRange": { + "pos": 12926, + "end": 13032 + }, + "decorators": [ + { + "$id": "357", + "kind": 5, + "arguments": [ + { + "$id": "358", + "kind": 32, + "value": "", + "pos": 12702, + "end": 12704, + "flags": 0, + "parent": { + "$ref": "357" + } + } + ], + "target": { + "$id": "359", + "kind": 3, + "sv": "doc", + "pos": 12698, + "end": 12701, + "flags": 1, + "parent": { + "$ref": "357" + }, + "_id": 1217 + }, + "pos": 12697, + "end": 12705, + "flags": 0, + "parent": { + "$ref": "343" + } + }, + { + "$id": "360", + "kind": 5, + "arguments": [ + { + "$id": "361", + "kind": 45, + "target": { + "$id": "362", + "kind": 3, + "sv": "NameTemplate", + "pos": 12720, + "end": 12732, + "flags": 1, + "parent": { + "$ref": "361" + }, + "_id": 1220 + }, + "arguments": [], + "pos": 12720, + "end": 12732, + "flags": 1, + "parent": { + "$ref": "360" + }, + "_id": 1219 + }, + { + "$id": "363", + "kind": 45, + "target": { + "$id": "364", + "kind": 3, + "sv": "T", + "pos": 12734, + "end": 12735, + "flags": 1, + "parent": { + "$ref": "363" + }, + "_id": 1225 + }, + "arguments": [], + "pos": 12734, + "end": 12735, + "flags": 1, + "parent": { + "$ref": "360" + }, + "_id": 1224 + } + ], + "target": { + "$id": "365", + "kind": 3, + "sv": "friendlyName", + "pos": 12707, + "end": 12719, + "flags": 1, + "parent": { + "$ref": "360" + }, + "_id": 1218 + }, + "pos": 12706, + "end": 12736, + "flags": 0, + "parent": { + "$ref": "343" + } + }, + { + "$id": "366", + "kind": 5, + "arguments": [ + { + "$id": "367", + "kind": 32, + "value": "application/merge-patch+json", + "pos": 12752, + "end": 12782, + "flags": 0, + "parent": { + "$ref": "366" + } + } + ], + "target": { + "$id": "368", + "kind": 3, + "sv": "mediaTypeHint", + "pos": 12738, + "end": 12751, + "flags": 1, + "parent": { + "$ref": "366" + }, + "_id": 1231 + }, + "pos": 12737, + "end": 12783, + "flags": 0, + "parent": { + "$ref": "343" + } + }, + { + "$id": "369", + "kind": 5, + "arguments": [ + { + "$id": "370", + "kind": 45, + "target": { + "$id": "371", + "kind": 3, + "sv": "T", + "pos": 12804, + "end": 12805, + "flags": 1, + "parent": { + "$ref": "370" + }, + "_id": 1234 + }, + "arguments": [], + "pos": 12804, + "end": 12805, + "flags": 1, + "parent": { + "$ref": "369" + }, + "_id": 1233 + }, + { + "$id": "372", + "kind": 45, + "target": { + "$id": "373", + "kind": 3, + "sv": "NameTemplate", + "pos": 12809, + "end": 12821, + "flags": 1, + "parent": { + "$ref": "372" + }, + "_id": 1236 + }, + "arguments": [], + "pos": 12809, + "end": 12821, + "flags": 1, + "parent": { + "$ref": "369" + }, + "_id": 1235 + }, + { + "$id": "374", + "kind": 63, + "properties": [ + { + "$id": "375", + "kind": 64, + "id": { + "$id": "376", + "kind": 3, + "sv": "visibilityMode", + "pos": 12828, + "end": 12842, + "flags": 0, + "parent": { + "$ref": "375" + }, + "_id": 1237 + }, + "value": { + "$id": "377", + "kind": 45, + "target": { + "$id": "378", + "kind": 7, + "base": { + "$id": "379", + "kind": 7, + "base": { + "$id": "380", + "kind": 3, + "sv": "Private", + "pos": 12844, + "end": 12851, + "flags": 1, + "parent": { + "$ref": "379" + }, + "_id": 1241 + }, + "id": { + "$id": "381", + "kind": 3, + "sv": "MergePatchVisibilityMode", + "pos": 12852, + "end": 12876, + "flags": 1, + "parent": { + "$ref": "379" + }, + "_id": 1242 + }, + "selector": ".", + "pos": 12844, + "end": 12876, + "flags": 1, + "parent": { + "$ref": "378" + }, + "_id": 1240 + }, + "id": { + "$id": "382", + "kind": 3, + "sv": "CreateOrUpdate", + "pos": 12877, + "end": 12891, + "flags": 1, + "parent": { + "$ref": "378" + }, + "_id": 1243 + }, + "selector": ".", + "pos": 12844, + "end": 12891, + "flags": 1, + "parent": { + "$ref": "377" + }, + "_id": 1239 + }, + "arguments": [], + "pos": 12844, + "end": 12891, + "flags": 1, + "parent": { + "$ref": "375" + }, + "_id": 1238 + }, + "pos": 12828, + "end": 12891, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "374" + } + } + ], + "bodyRange": { + "pos": 12825, + "end": 12893 + }, + "pos": 12825, + "end": 12893, + "flags": 0, + "parent": { + "$ref": "369" + } + } + ], + "target": { + "$id": "383", + "kind": 3, + "sv": "applyMergePatch", + "pos": 12785, + "end": 12800, + "flags": 1, + "parent": { + "$ref": "369" + }, + "_id": 1232 + }, + "pos": 12784, + "end": 12895, + "flags": 0, + "parent": { + "$ref": "343" + } + } + ], + "properties": [], + "bodyRange": { + "pos": 13033, + "end": 13035 + }, + "pos": 11138, + "end": 13035, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "384", + "kind": 51, + "content": [ + { + "$id": "385", + "kind": 52, + "text": "Create a MergePatch Request body for creating or updating the given resource Model.\nThe MergePatch request created by this template provides a TypeSpec description of a\nJSON MergePatch request that can successfully create or update the given resource.\nThe transformation follows the definition of JSON MergePatch requests in\nrfc 7396: https://www.rfc-editor.org/rfc/rfc7396,\napplying the merge-patch transform recursively to keyed types in the resource Model.\n\nUsing this template in a PATCH request body overrides the `implicitOptionality`\nsetting for PATCH operations and sets `application/merge-patch+json` as the request\ncontent-type.", + "pos": 11141, + "end": 11816, + "flags": 0, + "parent": { + "$ref": "384" + } + } + ], + "tags": [ + { + "$id": "386", + "kind": 57, + "tagName": { + "$id": "387", + "kind": 3, + "sv": "template", + "pos": 11817, + "end": 11825, + "flags": 0, + "parent": { + "$ref": "386" + } + }, + "paramName": { + "$id": "388", + "kind": 3, + "sv": "T", + "pos": 11826, + "end": 11827, + "flags": 0, + "parent": { + "$ref": "386" + } + }, + "content": [ + { + "$id": "389", + "kind": 52, + "text": "The type of the resource to create a MergePatch update request body for.", + "pos": 11828, + "end": 11904, + "flags": 0, + "parent": { + "$ref": "386" + } + } + ], + "pos": 11816, + "end": 11904, + "flags": 0, + "parent": { + "$ref": "384" + } + }, + { + "$id": "390", + "kind": 57, + "tagName": { + "$id": "391", + "kind": 3, + "sv": "template", + "pos": 11905, + "end": 11913, + "flags": 0, + "parent": { + "$ref": "390" + } + }, + "paramName": { + "$id": "392", + "kind": 3, + "sv": "NameTemplate", + "pos": 11914, + "end": 11926, + "flags": 0, + "parent": { + "$ref": "390" + } + }, + "content": [ + { + "$id": "393", + "kind": 52, + "text": "A StringTemplate used to name any models created by applying\nthe merge-patch transform to the resource. The default name template is `{name}MergePatchCreateOrUpdate`,\nfor example, the merge patch transform of model `Widget` is named `WidgetMergePatchCreateOrUpdate`.", + "pos": 11927, + "end": 12206, + "flags": 0, + "parent": { + "$ref": "390" + } + } + ], + "pos": 11904, + "end": 12206, + "flags": 0, + "parent": { + "$ref": "384" + } + }, + { + "$id": "394", + "kind": 58, + "tagName": { + "$id": "395", + "kind": 3, + "sv": "example", + "pos": 12207, + "end": 12214, + "flags": 0, + "parent": { + "$ref": "394" + } + }, + "content": [ + { + "$id": "396", + "kind": 52, + "text": "```tsp\n// An operation updating a 'Widget' using merge-patch\n@patch op update(@body request: MergePatchCreateOrUpdate): Widget;\n```", + "pos": 12214, + "end": 12373, + "flags": 0, + "parent": { + "$ref": "394" + } + } + ], + "pos": 12206, + "end": 12373, + "flags": 0, + "parent": { + "$ref": "384" + } + }, + { + "$id": "397", + "kind": 58, + "tagName": { + "$id": "398", + "kind": 3, + "sv": "example", + "pos": 12374, + "end": 12381, + "flags": 0, + "parent": { + "$ref": "397" + } + }, + "content": [ + { + "$id": "399", + "kind": 52, + "text": "```tsp\n// An operation updating a 'Widget' using merge-patch\n@patch op update(@bodyRoot request: MergePatchCreateOrUpdate): Widget;\n```", + "pos": 12381, + "end": 12544, + "flags": 0, + "parent": { + "$ref": "397" + } + } + ], + "pos": 12373, + "end": 12544, + "flags": 0, + "parent": { + "$ref": "384" + } + }, + { + "$id": "400", + "kind": 58, + "tagName": { + "$id": "401", + "kind": 3, + "sv": "example", + "pos": 12545, + "end": 12552, + "flags": 0, + "parent": { + "$ref": "400" + } + }, + "content": [ + { + "$id": "402", + "kind": 52, + "text": "```tsp\n// An operation updating a 'Widget' using merge-patch\n@patch op update(...MergePatchCreateOrUpdate): Widget;\n```", + "pos": 12552, + "end": 12694, + "flags": 0, + "parent": { + "$ref": "400" + } + } + ], + "pos": 12544, + "end": 12694, + "flags": 0, + "parent": { + "$ref": "384" + } + } + ], + "pos": 11138, + "end": 12696, + "flags": 0, + "parent": { + "$ref": "343" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "343" + } + ], + "name": "MergePatchCreateOrUpdate", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 138 + }, + "locals": { + "duplicates": {} + } + } + ], + "file": { + "text": "import \"../dist/src/tsp-index.js\";\nimport \"./decorators.tsp\";\nimport \"./private.decorators.tsp\";\nimport \"./auth.tsp\";\n\nnamespace TypeSpec.Http;\n\nusing Private;\n\n/**\n * Describes an HTTP response.\n *\n * @template Status The status code of the response.\n */\n@doc(\"\")\nmodel Response {\n @doc(\"The status code.\")\n @statusCode\n statusCode: Status;\n}\n\n/**\n * Defines a model with a single property of the given type, marked with `@body`.\n *\n * This can be useful in situations where you cannot use a bare type as the body\n * and it is awkward to add a property.\n *\n * @template Type The type of the model's `body` property.\n */\n@doc(\"\")\nmodel Body {\n @body\n @doc(\"The body type of the operation request or response.\")\n body: Type;\n}\n\n/**\n * The Location header contains the URL where the status of the long running operation can be checked.\n */\nmodel LocationHeader {\n @doc(\"The Location header contains the URL where the status of the long running operation can be checked.\")\n @header\n location: string;\n}\n\n// Don't put @doc on these, change `getStatusCodeDescription` implementation\n// to update the default descriptions for these status codes. This ensures\n// that we get consistent emit between different ways to spell the same\n// responses in TypeSpec.\n\n/**\n * The request has succeeded.\n */\nmodel OkResponse is Response<200>;\n/**\n * The request has succeeded and a new resource has been created as a result.\n */\nmodel CreatedResponse is Response<201>;\n/**\n * The request has been accepted for processing, but processing has not yet completed.\n */\nmodel AcceptedResponse is Response<202>;\n/**\n * There is no content to send for this request, but the headers may be useful.\n */\nmodel NoContentResponse is Response<204>;\n/**\n * The URL of the requested resource has been changed permanently. The new URL is given in the response.\n */\nmodel MovedResponse is Response<301> {\n ...LocationHeader;\n}\n/**\n * The client has made a conditional request and the resource has not been modified.\n */\nmodel NotModifiedResponse is Response<304>;\n/**\n * The server could not understand the request due to invalid syntax.\n */\nmodel BadRequestResponse is Response<400>;\n/**\n * Access is unauthorized.\n */\nmodel UnauthorizedResponse is Response<401>;\n/**\n * Access is forbidden.\n */\nmodel ForbiddenResponse is Response<403>;\n/**\n * The server cannot find the requested resource.\n */\nmodel NotFoundResponse is Response<404>;\n/**\n * The request conflicts with the current state of the server.\n */\nmodel ConflictResponse is Response<409>;\n\n/**\n * Produces a new model with the same properties as T, but with `@query`,\n * `@header`, `@body`, and `@path` decorators removed from all properties.\n *\n * @template Data The model to spread as the plain data.\n */\n@plainData\nmodel PlainData {\n ...Data;\n}\n\n/**\n * A file in an HTTP request, response, or multipart payload.\n *\n * Files have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\n * or multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\n * operation is treated as a file upload or download.\n *\n * When using file bodies, the fields of the file model are defined to come from particular locations by default:\n *\n * - `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n * - `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n * - `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n * (MAY be overridden or changed).\n *\n * A File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n * `Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\n * it will have a structure like:\n *\n * ```\n * {\n * \"contentType\": ,\n * \"filename\": ,\n * \"contents\": \n * }\n * ```\n *\n * The `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\n * defines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\n * serialized_. See the examples below for more information.\n *\n * NOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n * (`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\n * you wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n * `filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\n * is overridden, as shown in the examples below.\n *\n * @template ContentType The allowed media (MIME) types of the file contents.\n * @template Contents The type of the file contents. This can be `string`, `bytes`, or any scalar that extends them.\n *\n * @example\n * ```tsp\n * // Download a file\n * @get op download(): File;\n *\n * // Upload a file\n * @post op upload(@bodyRoot file: File): void;\n * ```\n *\n * @example\n * ```tsp\n * // Upload and download files in a multipart payload\n * op multipartFormDataUpload(\n * @multipartBody fields: {\n * files: HttpPart[];\n * },\n * ): void;\n *\n * op multipartFormDataDownload(): {\n * @multipartBody formFields: {\n * files: HttpPart[];\n * }\n * };\n * ```\n *\n * @example\n * ```tsp\n * // Declare a custom type of text file, where the filename goes in the path\n * // in requests.\n * model SpecFile extends File<\"application/json\" | \"application/yaml\", string> {\n * // Provide a header that contains the name of the file when created or updated\n * @header(\"x-filename\")\n * @path filename: string;\n * }\n *\n * @get op downloadSpec(@path name: string): SpecFile;\n *\n * @post op uploadSpec(@bodyRoot spec: SpecFile): void;\n * ```\n *\n * @example\n * ```tsp\n * // Declare a custom type of binary file\n * model ImageFile extends File {\n * contentType: \"image/png\" | \"image/jpeg\";\n * @path filename: string;\n * }\n *\n * @get op downloadImage(@path name: string): ImageFile;\n *\n * @post op uploadImage(@bodyRoot image: ImageFile): void;\n * ```\n *\n * @example\n * ```tsp\n * // Use a File as a structured JSON object. The HTTP library will warn you that the File will be serialized as JSON,\n * // so you should suppress the warning if it's really what you want instead of a binary file upload/download.\n *\n * // The response body is a JSON object like `{\"contentType\":,\"filename\":,\"contents\":}`\n * @get op downloadTextFileJson(): {\n * @header contentType: \"application/json\",\n * @body file: File<\"text/plain\", string>,\n * };\n *\n * // The request body is a JSON object like `{\"contentType\":,\"filename\":,\"contents\":}`\n * @post op uploadBinaryFileJson(\n * @header contentType: \"application/json\",\n * @body file: File<\"image/png\", bytes>,\n * ): void;\n *\n */\n@summary(\"A file in an HTTP request, response, or multipart payload.\")\n@Private.httpFile\nmodel File {\n /**\n * The allowed media (MIME) types of the file contents.\n *\n * In file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\n * this value is serialized as a field in the response.\n *\n * NOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\n * it will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n * _contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.\n */\n @summary(\"The allowed media (MIME) types of the file contents.\")\n contentType?: ContentType;\n\n /**\n * The name of the file, if any.\n *\n * In file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\n * or multipart payload. In JSON bodies, this value is serialized as a field in the response.\n *\n * NOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\n * payloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\n * you must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\n * decorators.\n */\n @summary(\"The name of the file, if any.\")\n filename?: string;\n\n /**\n * The contents of the file.\n *\n * In file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,\n * this value is serialized as a field in the response.\n */\n @summary(\"The contents of the file.\")\n contents: Contents;\n}\n\nmodel HttpPartOptions {\n /** Name of the part when using the array form. */\n name?: string;\n}\n\n@Private.httpPart(Type, Options)\nmodel HttpPart {}\n\nmodel Link {\n target: url;\n rel: string;\n attributes?: Record;\n}\n\nscalar LinkHeader | Link[]> extends string;\n\n/**\n * Create a MergePatch Request body for updating the given resource Model.\n * The MergePatch request created by this template provides a TypeSpec description of a\n * JSON MergePatch request that can successfully update the given resource.\n * The transformation follows the definition of JSON MergePatch requests in\n * rfc 7396: https://www.rfc-editor.org/rfc/rfc7396,\n * applying the merge-patch transform recursively to keyed types in the resource Model.\n *\n * Using this template in a PATCH request body overrides the `implicitOptionality`\n * setting for PATCH operations and sets `application/merge-patch+json` as the request\n * content-type.\n *\n * @template T The type of the resource to create a MergePatch update request body for.\n * @template NameTemplate A StringTemplate used to name any models created by applying\n * the merge-patch transform to the resource. The default name template is `{name}MergePatchUpdate`,\n * for example, the merge patch transform of model `Widget` is named `WidgetMergePatchUpdate`.\n *\n * @example\n * ```tsp\n * // An operation updating a 'Widget' using merge-patch\n * @patch op update(@body request: MergePatchUpdate): Widget;\n * ```\n *\n * @example\n * ```tsp\n * // An operation updating a 'Widget' using merge-patch\n * @patch op update(@bodyRoot request: MergePatchUpdate): Widget;\n * ```\n *\n * @example\n * ```tsp\n * // An operation updating a 'Widget' using merge-patch\n * @patch op update(...MergePatchUpdate): Widget;\n * ```\n */\n@doc(\"\")\n@friendlyName(NameTemplate, T)\n@mediaTypeHint(\"application/merge-patch+json\")\n@applyMergePatch(T, NameTemplate, #{ visibilityMode: Private.MergePatchVisibilityMode.Update })\nmodel MergePatchUpdate<\n T extends Reflection.Model,\n NameTemplate extends valueof string = \"{name}MergePatchUpdate\"\n> {}\n\n/**\n * Create a MergePatch Request body for creating or updating the given resource Model.\n * The MergePatch request created by this template provides a TypeSpec description of a\n * JSON MergePatch request that can successfully create or update the given resource.\n * The transformation follows the definition of JSON MergePatch requests in\n * rfc 7396: https://www.rfc-editor.org/rfc/rfc7396,\n * applying the merge-patch transform recursively to keyed types in the resource Model.\n *\n * Using this template in a PATCH request body overrides the `implicitOptionality`\n * setting for PATCH operations and sets `application/merge-patch+json` as the request\n * content-type.\n *\n * @template T The type of the resource to create a MergePatch update request body for.\n * @template NameTemplate A StringTemplate used to name any models created by applying\n * the merge-patch transform to the resource. The default name template is `{name}MergePatchCreateOrUpdate`,\n * for example, the merge patch transform of model `Widget` is named `WidgetMergePatchCreateOrUpdate`.\n *\n * @example\n * ```tsp\n * // An operation updating a 'Widget' using merge-patch\n * @patch op update(@body request: MergePatchCreateOrUpdate): Widget;\n * ```\n *\n * @example\n * ```tsp\n * // An operation updating a 'Widget' using merge-patch\n * @patch op update(@bodyRoot request: MergePatchCreateOrUpdate): Widget;\n * ```\n *\n * @example\n * ```tsp\n * // An operation updating a 'Widget' using merge-patch\n * @patch op update(...MergePatchCreateOrUpdate): Widget;\n * ```\n */\n@doc(\"\")\n@friendlyName(NameTemplate, T)\n@mediaTypeHint(\"application/merge-patch+json\")\n@applyMergePatch(\n T,\n NameTemplate,\n #{ visibilityMode: Private.MergePatchVisibilityMode.CreateOrUpdate }\n)\nmodel MergePatchCreateOrUpdate<\n T extends Reflection.Model,\n NameTemplate extends valueof string = \"{name}MergePatchCreateOrUpdate\"\n> {}\n", + "path": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http/lib/main.tsp" + }, + "id": { + "$id": "403", + "kind": 3, + "sv": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http/lib/main.tsp", + "pos": 0, + "end": 0, + "flags": 8, + "parent": { + "$ref": "52" + } + }, + "namespaces": [ + { + "$ref": "50" + }, + { + "$ref": "48" + } + ], + "usings": [ + { + "$ref": "61" + } + ], + "locals": { + "duplicates": {} + }, + "inScopeNamespaces": [ + { + "$ref": "48" + }, + { + "$ref": "50" + } + ], + "parseDiagnostics": [], + "comments": [], + "printable": true, + "parseOptions": {}, + "pos": 0, + "end": 13035, + "flags": 0, + "symbol": { + "declarations": [], + "node": { + "$ref": "52" + }, + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http/lib/main.tsp", + "exports": { + "duplicates": {} + }, + "flags": 32768, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "symbol": { + "declarations": [ + { + "$ref": "50" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + } + } + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "50" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 97 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 98 + } + }, + { + "$id": "404", + "kind": 46, + "id": { + "$id": "405", + "kind": 3, + "sv": "Contents", + "pos": 7252, + "end": 7260, + "flags": 0, + "parent": { + "$ref": "404" + }, + "_id": 920 + }, + "constraint": { + "$id": "406", + "kind": 28, + "options": [ + { + "$id": "407", + "kind": 45, + "target": { + "$id": "408", + "kind": 3, + "sv": "bytes", + "pos": 7269, + "end": 7274, + "flags": 1, + "parent": { + "$ref": "407" + }, + "_id": 922 + }, + "arguments": [], + "pos": 7269, + "end": 7274, + "flags": 1, + "parent": { + "$ref": "406" + }, + "_id": 921 + }, + { + "$id": "409", + "kind": 45, + "target": { + "$id": "410", + "kind": 3, + "sv": "string", + "pos": 7277, + "end": 7283, + "flags": 1, + "parent": { + "$ref": "409" + }, + "_id": 924 + }, + "arguments": [], + "pos": 7277, + "end": 7283, + "flags": 1, + "parent": { + "$ref": "406" + }, + "_id": 923 + } + ], + "pos": 7269, + "end": 7283, + "flags": 0, + "parent": { + "$ref": "404" + } + }, + "default": { + "$id": "411", + "kind": 45, + "target": { + "$id": "412", + "kind": 3, + "sv": "bytes", + "pos": 7286, + "end": 7291, + "flags": 1, + "parent": { + "$ref": "411" + }, + "_id": 926 + }, + "arguments": [], + "pos": 7286, + "end": 7291, + "flags": 1, + "parent": { + "$ref": "404" + }, + "_id": 925 + }, + "pos": 7252, + "end": 7291, + "flags": 0, + "parent": { + "$ref": "40" + }, + "symbol": { + "declarations": [ + { + "$ref": "404" + } + ], + "name": "Contents", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "40" + } + ], + "name": "File", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "48" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "50" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 97 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 99 + } + } + ], + "templateParametersRange": { + "pos": 7214, + "end": 7292 + }, + "decorators": [ + { + "$id": "413", + "kind": 5, + "arguments": [ + { + "$id": "414", + "kind": 32, + "value": "A file in an HTTP request, response, or multipart payload.", + "pos": 7124, + "end": 7184, + "flags": 0, + "parent": { + "$ref": "413" + } + } + ], + "target": { + "$id": "415", + "kind": 3, + "sv": "summary", + "pos": 7116, + "end": 7123, + "flags": 1, + "parent": { + "$ref": "413" + }, + "_id": 903 + }, + "pos": 7115, + "end": 7185, + "flags": 0, + "parent": { + "$ref": "40" + } + }, + { + "$id": "416", + "kind": 5, + "arguments": [], + "target": { + "$id": "417", + "kind": 7, + "base": { + "$id": "418", + "kind": 3, + "sv": "Private", + "pos": 7187, + "end": 7194, + "flags": 1, + "parent": { + "$ref": "417" + }, + "_id": 905 + }, + "id": { + "$id": "419", + "kind": 3, + "sv": "httpFile", + "pos": 7195, + "end": 7203, + "flags": 1, + "parent": { + "$ref": "417" + }, + "_id": 906 + }, + "selector": ".", + "pos": 7187, + "end": 7203, + "flags": 1, + "parent": { + "$ref": "416" + }, + "_id": 904 + }, + "pos": 7186, + "end": 7203, + "flags": 0, + "parent": { + "$ref": "40" + } + } + ], + "properties": [ + { + "$id": "420", + "kind": 15, + "id": { + "$id": "421", + "kind": 3, + "sv": "contentType", + "pos": 7946, + "end": 7957, + "flags": 0, + "parent": { + "$ref": "420" + }, + "_id": 927 + }, + "decorators": [ + { + "$id": "422", + "kind": 5, + "arguments": [ + { + "$id": "423", + "kind": 32, + "value": "The allowed media (MIME) types of the file contents.", + "pos": 7888, + "end": 7942, + "flags": 0, + "parent": { + "$ref": "422" + } + } + ], + "target": { + "$id": "424", + "kind": 3, + "sv": "summary", + "pos": 7880, + "end": 7887, + "flags": 1, + "parent": { + "$ref": "422" + }, + "_id": 928 + }, + "pos": 7879, + "end": 7943, + "flags": 0, + "parent": { + "$ref": "420" + } + } + ], + "value": { + "$id": "425", + "kind": 45, + "target": { + "$id": "426", + "kind": 3, + "sv": "ContentType", + "pos": 7960, + "end": 7971, + "flags": 1, + "parent": { + "$ref": "425" + }, + "_id": 930 + }, + "arguments": [], + "pos": 7960, + "end": 7971, + "flags": 1, + "parent": { + "$ref": "420" + }, + "_id": 929 + }, + "optional": true, + "pos": 7297, + "end": 7971, + "flags": 0, + "docs": [ + { + "$id": "427", + "kind": 51, + "content": [ + { + "$id": "428", + "kind": 52, + "text": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "pos": 7300, + "end": 7874, + "flags": 0, + "parent": { + "$ref": "427" + } + } + ], + "tags": [], + "pos": 7297, + "end": 7876, + "flags": 0, + "parent": { + "$ref": "420" + } + } + ], + "directives": [], + "parent": { + "$ref": "40" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "420" + }, + "name": "contentType", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "40" + } + ], + "name": "File", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "48" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "50" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 97 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$ref": "31" + }, + { + "$id": "429", + "kind": 15, + "id": { + "$id": "430", + "kind": 3, + "sv": "contents", + "pos": 8963, + "end": 8971, + "flags": 0, + "parent": { + "$ref": "429" + }, + "_id": 935 + }, + "decorators": [ + { + "$id": "431", + "kind": 5, + "arguments": [ + { + "$id": "432", + "kind": 32, + "value": "The contents of the file.", + "pos": 8932, + "end": 8959, + "flags": 0, + "parent": { + "$ref": "431" + } + } + ], + "target": { + "$id": "433", + "kind": 3, + "sv": "summary", + "pos": 8924, + "end": 8931, + "flags": 1, + "parent": { + "$ref": "431" + }, + "_id": 936 + }, + "pos": 8923, + "end": 8960, + "flags": 0, + "parent": { + "$ref": "429" + } + } + ], + "value": { + "$id": "434", + "kind": 45, + "target": { + "$id": "435", + "kind": 3, + "sv": "Contents", + "pos": 8973, + "end": 8981, + "flags": 1, + "parent": { + "$ref": "434" + }, + "_id": 938 + }, + "arguments": [], + "pos": 8973, + "end": 8981, + "flags": 1, + "parent": { + "$ref": "429" + }, + "_id": 937 + }, + "optional": false, + "pos": 8701, + "end": 8981, + "flags": 0, + "docs": [ + { + "$id": "436", + "kind": 51, + "content": [ + { + "$id": "437", + "kind": 52, + "text": "The contents of the file.\n\nIn file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,\nthis value is serialized as a field in the response.", + "pos": 8704, + "end": 8918, + "flags": 0, + "parent": { + "$ref": "436" + } + } + ], + "tags": [], + "pos": 8701, + "end": 8920, + "flags": 0, + "parent": { + "$ref": "429" + } + } + ], + "directives": [], + "parent": { + "$ref": "40" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "429" + }, + "name": "contents", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "40" + } + ], + "name": "File", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "48" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "50" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 97 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 7293, + "end": 8984 + }, + "pos": 2805, + "end": 8984, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "438", + "kind": 51, + "content": [ + { + "$id": "439", + "kind": 52, + "text": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below.", + "pos": 2808, + "end": 4899, + "flags": 0, + "parent": { + "$ref": "438" + } + } + ], + "tags": [ + { + "$id": "440", + "kind": 57, + "tagName": { + "$id": "441", + "kind": 3, + "sv": "template", + "pos": 4900, + "end": 4908, + "flags": 0, + "parent": { + "$ref": "440" + } + }, + "paramName": { + "$id": "442", + "kind": 3, + "sv": "ContentType", + "pos": 4909, + "end": 4920, + "flags": 0, + "parent": { + "$ref": "440" + } + }, + "content": [ + { + "$id": "443", + "kind": 52, + "text": "The allowed media (MIME) types of the file contents.", + "pos": 4921, + "end": 4977, + "flags": 0, + "parent": { + "$ref": "440" + } + } + ], + "pos": 4899, + "end": 4977, + "flags": 0, + "parent": { + "$ref": "438" + } + }, + { + "$id": "444", + "kind": 57, + "tagName": { + "$id": "445", + "kind": 3, + "sv": "template", + "pos": 4978, + "end": 4986, + "flags": 0, + "parent": { + "$ref": "444" + } + }, + "paramName": { + "$id": "446", + "kind": 3, + "sv": "Contents", + "pos": 4987, + "end": 4995, + "flags": 0, + "parent": { + "$ref": "444" + } + }, + "content": [ + { + "$id": "447", + "kind": 52, + "text": "The type of the file contents. This can be `string`, `bytes`, or any scalar that extends them.", + "pos": 4996, + "end": 5097, + "flags": 0, + "parent": { + "$ref": "444" + } + } + ], + "pos": 4977, + "end": 5097, + "flags": 0, + "parent": { + "$ref": "438" + } + }, + { + "$id": "448", + "kind": 58, + "tagName": { + "$id": "449", + "kind": 3, + "sv": "example", + "pos": 5098, + "end": 5105, + "flags": 0, + "parent": { + "$ref": "448" + } + }, + "content": [ + { + "$id": "450", + "kind": 52, + "text": "```tsp\n// Download a file\n@get op download(): File;\n\n// Upload a file\n@post op upload(@bodyRoot file: File): void;\n```", + "pos": 5105, + "end": 5251, + "flags": 0, + "parent": { + "$ref": "448" + } + } + ], + "pos": 5097, + "end": 5251, + "flags": 0, + "parent": { + "$ref": "438" + } + }, + { + "$id": "451", + "kind": 58, + "tagName": { + "$id": "452", + "kind": 3, + "sv": "example", + "pos": 5252, + "end": 5259, + "flags": 0, + "parent": { + "$ref": "451" + } + }, + "content": [ + { + "$id": "453", + "kind": 52, + "text": "```tsp\n// Upload and download files in a multipart payload\nop multipartFormDataUpload(\n @multipartBody fields: {\n files: HttpPart[];\n },\n): void;\n\nop multipartFormDataDownload(): {\n @multipartBody formFields: {\n files: HttpPart[];\n }\n};\n```", + "pos": 5259, + "end": 5570, + "flags": 0, + "parent": { + "$ref": "451" + } + } + ], + "pos": 5251, + "end": 5570, + "flags": 0, + "parent": { + "$ref": "438" + } + }, + { + "$id": "454", + "kind": 58, + "tagName": { + "$id": "455", + "kind": 3, + "sv": "example", + "pos": 5571, + "end": 5578, + "flags": 0, + "parent": { + "$ref": "454" + } + }, + "content": [ + { + "$id": "456", + "kind": 52, + "text": "```tsp\n// Declare a custom type of text file, where the filename goes in the path\n// in requests.\nmodel SpecFile extends File<\"application/json\" | \"application/yaml\", string> {\n // Provide a header that contains the name of the file when created or updated\n @header(\"x-filename\")\n @path filename: string;\n}\n\n@get op downloadSpec(@path name: string): SpecFile;\n\n@post op uploadSpec(@bodyRoot spec: SpecFile): void;\n```", + "pos": 5578, + "end": 6043, + "flags": 0, + "parent": { + "$ref": "454" + } + } + ], + "pos": 5570, + "end": 6043, + "flags": 0, + "parent": { + "$ref": "438" + } + }, + { + "$id": "457", + "kind": 58, + "tagName": { + "$id": "458", + "kind": 3, + "sv": "example", + "pos": 6044, + "end": 6051, + "flags": 0, + "parent": { + "$ref": "457" + } + }, + "content": [ + { + "$id": "459", + "kind": 52, + "text": "```tsp\n// Declare a custom type of binary file\nmodel ImageFile extends File {\n contentType: \"image/png\" | \"image/jpeg\";\n @path filename: string;\n}\n\n@get op downloadImage(@path name: string): ImageFile;\n\n@post op uploadImage(@bodyRoot image: ImageFile): void;\n```", + "pos": 6051, + "end": 6354, + "flags": 0, + "parent": { + "$ref": "457" + } + } + ], + "pos": 6043, + "end": 6354, + "flags": 0, + "parent": { + "$ref": "438" + } + }, + { + "$id": "460", + "kind": 58, + "tagName": { + "$id": "461", + "kind": 3, + "sv": "example", + "pos": 6355, + "end": 6362, + "flags": 0, + "parent": { + "$ref": "460" + } + }, + "content": [ + { + "$id": "462", + "kind": 52, + "text": "```tsp\n// Use a File as a structured JSON object. The HTTP library will warn you that the File will be serialized as JSON,\n// so you should suppress the warning if it's really what you want instead of a binary file upload/download.\n\n// The response body is a JSON object like `{\"contentType\":,\"filename\":,\"contents\":}`\n@get op downloadTextFileJson(): {\n @header contentType: \"application/json\",\n @body file: File<\"text/plain\", string>,\n};\n\n// The request body is a JSON object like `{\"contentType\":,\"filename\":,\"contents\":}`\n@post op uploadBinaryFileJson(\n @header contentType: \"application/json\",\n @body file: File<\"image/png\", bytes>,\n): void;", + "pos": 6362, + "end": 7112, + "flags": 0, + "parent": { + "$ref": "460" + } + } + ], + "pos": 6354, + "end": 7112, + "flags": 0, + "parent": { + "$ref": "438" + } + } + ], + "pos": 2805, + "end": 7114, + "flags": 0, + "parent": { + "$ref": "40" + } + } + ], + "parent": { + "$ref": "52" + }, + "symbol": { + "declarations": [ + { + "$ref": "40" + } + ], + "name": "File", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "48" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "50" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 97 + }, + "locals": { + "duplicates": {} + } + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "31" + }, + "name": "filename", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "40" + } + ], + "name": "File", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "48" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "50" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 97 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "optional": true, + "type": { + "$id": "463", + "kind": "Scalar", + "name": "string", + "node": { + "$id": "464", + "kind": 17, + "id": { + "$id": "465", + "kind": 3, + "sv": "string", + "pos": 1973, + "end": 1979, + "flags": 0, + "parent": { + "$ref": "464" + }, + "_id": 63 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 1921, + "end": 1980, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "466", + "kind": 51, + "content": [ + { + "$id": "467", + "kind": 52, + "text": "A sequence of textual characters.", + "pos": 1924, + "end": 1963, + "flags": 0, + "parent": { + "$ref": "466" + } + } + ], + "tags": [], + "pos": 1921, + "end": 1965, + "flags": 0, + "parent": { + "$ref": "464" + } + } + ], + "parent": { + "$id": "468", + "kind": 0, + "statements": [ + { + "$id": "469", + "kind": 2, + "path": { + "$id": "470", + "kind": 32, + "value": "../dist/src/lib/intrinsic/tsp-index.js", + "pos": 7, + "end": 47, + "flags": 0, + "parent": { + "$ref": "469" + } + }, + "pos": 0, + "end": 48, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "468" + } + }, + { + "$id": "471", + "kind": 2, + "path": { + "$id": "472", + "kind": 32, + "value": "./prototypes.tsp", + "pos": 56, + "end": 74, + "flags": 0, + "parent": { + "$ref": "471" + } + }, + "pos": 49, + "end": 75, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "468" + } + }, + { + "$id": "473", + "kind": 8, + "decorators": [], + "docs": [], + "id": { + "$id": "474", + "kind": 3, + "sv": "TypeSpec", + "pos": 184, + "end": 192, + "flags": 0, + "parent": { + "$ref": "473" + }, + "_id": 15 + }, + "locals": { + "duplicates": {} + }, + "directives": [], + "pos": 174, + "end": 193, + "flags": 0, + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "475", + "kind": 17, + "id": { + "$id": "476", + "kind": 3, + "sv": "bytes", + "pos": 236, + "end": 241, + "flags": 0, + "parent": { + "$ref": "475" + }, + "_id": 16 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 195, + "end": 242, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "477", + "kind": 51, + "content": [ + { + "$id": "478", + "kind": 52, + "text": "Represent a byte array", + "pos": 198, + "end": 226, + "flags": 0, + "parent": { + "$ref": "477" + } + } + ], + "tags": [], + "pos": 195, + "end": 228, + "flags": 0, + "parent": { + "$ref": "475" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "475" + } + ], + "name": "bytes", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 0 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "479", + "kind": 17, + "id": { + "$id": "480", + "kind": 3, + "sv": "numeric", + "pos": 277, + "end": 284, + "flags": 0, + "parent": { + "$ref": "479" + }, + "_id": 17 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 244, + "end": 285, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "481", + "kind": 51, + "content": [ + { + "$id": "482", + "kind": 52, + "text": "A numeric type", + "pos": 247, + "end": 267, + "flags": 0, + "parent": { + "$ref": "481" + } + } + ], + "tags": [], + "pos": 244, + "end": 269, + "flags": 0, + "parent": { + "$ref": "479" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "479" + } + ], + "name": "numeric", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 1 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "483", + "kind": 17, + "id": { + "$id": "484", + "kind": 3, + "sv": "integer", + "pos": 431, + "end": 438, + "flags": 0, + "parent": { + "$ref": "483" + }, + "_id": 18 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "485", + "kind": 45, + "target": { + "$id": "486", + "kind": 3, + "sv": "numeric", + "pos": 447, + "end": 454, + "flags": 1, + "parent": { + "$ref": "485" + }, + "_id": 20 + }, + "arguments": [], + "pos": 447, + "end": 454, + "flags": 1, + "parent": { + "$ref": "483" + }, + "_id": 19 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 287, + "end": 455, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "487", + "kind": 51, + "content": [ + { + "$id": "488", + "kind": 52, + "text": "A whole number. This represent any `integer` value possible.\nIt is commonly represented as `BigInteger` in some languages.", + "pos": 290, + "end": 421, + "flags": 0, + "parent": { + "$ref": "487" + } + } + ], + "tags": [], + "pos": 287, + "end": 423, + "flags": 0, + "parent": { + "$ref": "483" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "483" + } + ], + "name": "integer", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 2 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "489", + "kind": 17, + "id": { + "$id": "490", + "kind": 3, + "sv": "float", + "pos": 503, + "end": 508, + "flags": 0, + "parent": { + "$ref": "489" + }, + "_id": 21 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "491", + "kind": 45, + "target": { + "$id": "492", + "kind": 3, + "sv": "numeric", + "pos": 517, + "end": 524, + "flags": 1, + "parent": { + "$ref": "491" + }, + "_id": 23 + }, + "arguments": [], + "pos": 517, + "end": 524, + "flags": 1, + "parent": { + "$ref": "489" + }, + "_id": 22 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 457, + "end": 525, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "493", + "kind": 51, + "content": [ + { + "$id": "494", + "kind": 52, + "text": "A number with decimal value", + "pos": 460, + "end": 493, + "flags": 0, + "parent": { + "$ref": "493" + } + } + ], + "tags": [], + "pos": 457, + "end": 495, + "flags": 0, + "parent": { + "$ref": "489" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "489" + } + ], + "name": "float", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 3 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "495", + "kind": 17, + "id": { + "$id": "496", + "kind": 3, + "sv": "int64", + "pos": 625, + "end": 630, + "flags": 0, + "parent": { + "$ref": "495" + }, + "_id": 24 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "497", + "kind": 45, + "target": { + "$id": "498", + "kind": 3, + "sv": "integer", + "pos": 639, + "end": 646, + "flags": 1, + "parent": { + "$ref": "497" + }, + "_id": 26 + }, + "arguments": [], + "pos": 639, + "end": 646, + "flags": 1, + "parent": { + "$ref": "495" + }, + "_id": 25 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 527, + "end": 647, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "499", + "kind": 51, + "content": [ + { + "$id": "500", + "kind": 52, + "text": "A 64-bit integer. (`-9,223,372,036,854,775,808` to `9,223,372,036,854,775,807`)", + "pos": 530, + "end": 615, + "flags": 0, + "parent": { + "$ref": "499" + } + } + ], + "tags": [], + "pos": 527, + "end": 617, + "flags": 0, + "parent": { + "$ref": "495" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "495" + } + ], + "name": "int64", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 4 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "501", + "kind": 17, + "id": { + "$id": "502", + "kind": 3, + "sv": "int32", + "pos": 723, + "end": 728, + "flags": 0, + "parent": { + "$ref": "501" + }, + "_id": 27 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "503", + "kind": 45, + "target": { + "$id": "504", + "kind": 3, + "sv": "int64", + "pos": 737, + "end": 742, + "flags": 1, + "parent": { + "$ref": "503" + }, + "_id": 29 + }, + "arguments": [], + "pos": 737, + "end": 742, + "flags": 1, + "parent": { + "$ref": "501" + }, + "_id": 28 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 649, + "end": 743, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "505", + "kind": 51, + "content": [ + { + "$id": "506", + "kind": 52, + "text": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", + "pos": 652, + "end": 713, + "flags": 0, + "parent": { + "$ref": "505" + } + } + ], + "tags": [], + "pos": 649, + "end": 715, + "flags": 0, + "parent": { + "$ref": "501" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "501" + } + ], + "name": "int32", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 5 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "507", + "kind": 17, + "id": { + "$id": "508", + "kind": 3, + "sv": "int16", + "pos": 805, + "end": 810, + "flags": 0, + "parent": { + "$ref": "507" + }, + "_id": 30 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "509", + "kind": 45, + "target": { + "$id": "510", + "kind": 3, + "sv": "int32", + "pos": 819, + "end": 824, + "flags": 1, + "parent": { + "$ref": "509" + }, + "_id": 32 + }, + "arguments": [], + "pos": 819, + "end": 824, + "flags": 1, + "parent": { + "$ref": "507" + }, + "_id": 31 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 745, + "end": 825, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "511", + "kind": 51, + "content": [ + { + "$id": "512", + "kind": 52, + "text": "A 16-bit integer. (`-32,768` to `32,767`)", + "pos": 748, + "end": 795, + "flags": 0, + "parent": { + "$ref": "511" + } + } + ], + "tags": [], + "pos": 745, + "end": 797, + "flags": 0, + "parent": { + "$ref": "507" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "507" + } + ], + "name": "int16", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 6 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "513", + "kind": 17, + "id": { + "$id": "514", + "kind": 3, + "sv": "int8", + "pos": 880, + "end": 884, + "flags": 0, + "parent": { + "$ref": "513" + }, + "_id": 33 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "515", + "kind": 45, + "target": { + "$id": "516", + "kind": 3, + "sv": "int16", + "pos": 893, + "end": 898, + "flags": 1, + "parent": { + "$ref": "515" + }, + "_id": 35 + }, + "arguments": [], + "pos": 893, + "end": 898, + "flags": 1, + "parent": { + "$ref": "513" + }, + "_id": 34 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 827, + "end": 899, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "517", + "kind": 51, + "content": [ + { + "$id": "518", + "kind": 52, + "text": "A 8-bit integer. (`-128` to `127`)", + "pos": 830, + "end": 870, + "flags": 0, + "parent": { + "$ref": "517" + } + } + ], + "tags": [], + "pos": 827, + "end": 872, + "flags": 0, + "parent": { + "$ref": "513" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "513" + } + ], + "name": "int8", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 7 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "519", + "kind": 17, + "id": { + "$id": "520", + "kind": 3, + "sv": "uint64", + "pos": 983, + "end": 989, + "flags": 0, + "parent": { + "$ref": "519" + }, + "_id": 36 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "521", + "kind": 45, + "target": { + "$id": "522", + "kind": 3, + "sv": "integer", + "pos": 998, + "end": 1005, + "flags": 1, + "parent": { + "$ref": "521" + }, + "_id": 38 + }, + "arguments": [], + "pos": 998, + "end": 1005, + "flags": 1, + "parent": { + "$ref": "519" + }, + "_id": 37 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 901, + "end": 1006, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "523", + "kind": 51, + "content": [ + { + "$id": "524", + "kind": 52, + "text": "A 64-bit unsigned integer (`0` to `18,446,744,073,709,551,615`)", + "pos": 904, + "end": 973, + "flags": 0, + "parent": { + "$ref": "523" + } + } + ], + "tags": [], + "pos": 901, + "end": 975, + "flags": 0, + "parent": { + "$ref": "519" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "519" + } + ], + "name": "uint64", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 8 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "525", + "kind": 17, + "id": { + "$id": "526", + "kind": 3, + "sv": "uint32", + "pos": 1077, + "end": 1083, + "flags": 0, + "parent": { + "$ref": "525" + }, + "_id": 39 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "527", + "kind": 45, + "target": { + "$id": "528", + "kind": 3, + "sv": "uint64", + "pos": 1092, + "end": 1098, + "flags": 1, + "parent": { + "$ref": "527" + }, + "_id": 41 + }, + "arguments": [], + "pos": 1092, + "end": 1098, + "flags": 1, + "parent": { + "$ref": "525" + }, + "_id": 40 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 1008, + "end": 1099, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "529", + "kind": 51, + "content": [ + { + "$id": "530", + "kind": 52, + "text": "A 32-bit unsigned integer (`0` to `4,294,967,295`)", + "pos": 1011, + "end": 1067, + "flags": 0, + "parent": { + "$ref": "529" + } + } + ], + "tags": [], + "pos": 1008, + "end": 1069, + "flags": 0, + "parent": { + "$ref": "525" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "525" + } + ], + "name": "uint32", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 9 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "531", + "kind": 17, + "id": { + "$id": "532", + "kind": 3, + "sv": "uint16", + "pos": 1163, + "end": 1169, + "flags": 0, + "parent": { + "$ref": "531" + }, + "_id": 42 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "533", + "kind": 45, + "target": { + "$id": "534", + "kind": 3, + "sv": "uint32", + "pos": 1178, + "end": 1184, + "flags": 1, + "parent": { + "$ref": "533" + }, + "_id": 44 + }, + "arguments": [], + "pos": 1178, + "end": 1184, + "flags": 1, + "parent": { + "$ref": "531" + }, + "_id": 43 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 1101, + "end": 1185, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "535", + "kind": 51, + "content": [ + { + "$id": "536", + "kind": 52, + "text": "A 16-bit unsigned integer (`0` to `65,535`)", + "pos": 1104, + "end": 1153, + "flags": 0, + "parent": { + "$ref": "535" + } + } + ], + "tags": [], + "pos": 1101, + "end": 1155, + "flags": 0, + "parent": { + "$ref": "531" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "531" + } + ], + "name": "uint16", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 10 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "537", + "kind": 17, + "id": { + "$id": "538", + "kind": 3, + "sv": "uint8", + "pos": 1245, + "end": 1250, + "flags": 0, + "parent": { + "$ref": "537" + }, + "_id": 45 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "539", + "kind": 45, + "target": { + "$id": "540", + "kind": 3, + "sv": "uint16", + "pos": 1259, + "end": 1265, + "flags": 1, + "parent": { + "$ref": "539" + }, + "_id": 47 + }, + "arguments": [], + "pos": 1259, + "end": 1265, + "flags": 1, + "parent": { + "$ref": "537" + }, + "_id": 46 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 1187, + "end": 1266, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "541", + "kind": 51, + "content": [ + { + "$id": "542", + "kind": 52, + "text": "A 8-bit unsigned integer (`0` to `255`)", + "pos": 1190, + "end": 1235, + "flags": 0, + "parent": { + "$ref": "541" + } + } + ], + "tags": [], + "pos": 1187, + "end": 1237, + "flags": 0, + "parent": { + "$ref": "537" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "537" + } + ], + "name": "uint8", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 11 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "543", + "kind": 17, + "id": { + "$id": "544", + "kind": 3, + "sv": "safeint", + "pos": 1398, + "end": 1405, + "flags": 0, + "parent": { + "$ref": "543" + }, + "_id": 48 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "545", + "kind": 45, + "target": { + "$id": "546", + "kind": 3, + "sv": "int64", + "pos": 1414, + "end": 1419, + "flags": 1, + "parent": { + "$ref": "545" + }, + "_id": 50 + }, + "arguments": [], + "pos": 1414, + "end": 1419, + "flags": 1, + "parent": { + "$ref": "543" + }, + "_id": 49 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 1268, + "end": 1420, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "547", + "kind": 51, + "content": [ + { + "$id": "548", + "kind": 52, + "text": "An integer that can be serialized to JSON (`−9007199254740991 (−(2^53 − 1))` to `9007199254740991 (2^53 − 1)` )", + "pos": 1271, + "end": 1388, + "flags": 0, + "parent": { + "$ref": "547" + } + } + ], + "tags": [], + "pos": 1268, + "end": 1390, + "flags": 0, + "parent": { + "$ref": "543" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "543" + } + ], + "name": "safeint", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 12 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "549", + "kind": 17, + "id": { + "$id": "550", + "kind": 3, + "sv": "float64", + "pos": 1510, + "end": 1517, + "flags": 0, + "parent": { + "$ref": "549" + }, + "_id": 51 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "551", + "kind": 45, + "target": { + "$id": "552", + "kind": 3, + "sv": "float", + "pos": 1526, + "end": 1531, + "flags": 1, + "parent": { + "$ref": "551" + }, + "_id": 53 + }, + "arguments": [], + "pos": 1526, + "end": 1531, + "flags": 1, + "parent": { + "$ref": "549" + }, + "_id": 52 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 1422, + "end": 1532, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "553", + "kind": 51, + "content": [ + { + "$id": "554", + "kind": 52, + "text": "A 64 bit floating point number. (`±5.0 × 10^−324` to `±1.7 × 10^308`)", + "pos": 1425, + "end": 1500, + "flags": 0, + "parent": { + "$ref": "553" + } + } + ], + "tags": [], + "pos": 1422, + "end": 1502, + "flags": 0, + "parent": { + "$ref": "549" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "549" + } + ], + "name": "float64", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 13 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "555", + "kind": 17, + "id": { + "$id": "556", + "kind": 3, + "sv": "float32", + "pos": 1620, + "end": 1627, + "flags": 0, + "parent": { + "$ref": "555" + }, + "_id": 54 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "557", + "kind": 45, + "target": { + "$id": "558", + "kind": 3, + "sv": "float64", + "pos": 1636, + "end": 1643, + "flags": 1, + "parent": { + "$ref": "557" + }, + "_id": 56 + }, + "arguments": [], + "pos": 1636, + "end": 1643, + "flags": 1, + "parent": { + "$ref": "555" + }, + "_id": 55 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 1534, + "end": 1644, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "559", + "kind": 51, + "content": [ + { + "$id": "560", + "kind": 52, + "text": "A 32 bit floating point number. (`±1.5 x 10^−45` to `±3.4 x 10^38`)", + "pos": 1537, + "end": 1610, + "flags": 0, + "parent": { + "$ref": "559" + } + } + ], + "tags": [], + "pos": 1534, + "end": 1612, + "flags": 0, + "parent": { + "$ref": "555" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "555" + } + ], + "name": "float32", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 14 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "561", + "kind": 17, + "id": { + "$id": "562", + "kind": 3, + "sv": "decimal", + "pos": 1822, + "end": 1829, + "flags": 0, + "parent": { + "$ref": "561" + }, + "_id": 57 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "563", + "kind": 45, + "target": { + "$id": "564", + "kind": 3, + "sv": "numeric", + "pos": 1838, + "end": 1845, + "flags": 1, + "parent": { + "$ref": "563" + }, + "_id": 59 + }, + "arguments": [], + "pos": 1838, + "end": 1845, + "flags": 1, + "parent": { + "$ref": "561" + }, + "_id": 58 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 1646, + "end": 1846, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "565", + "kind": 51, + "content": [ + { + "$id": "566", + "kind": 52, + "text": "A decimal number with any length and precision. This represent any `decimal` value possible.\nIt is commonly represented as `BigDecimal` in some languages.", + "pos": 1649, + "end": 1812, + "flags": 0, + "parent": { + "$ref": "565" + } + } + ], + "tags": [], + "pos": 1646, + "end": 1814, + "flags": 0, + "parent": { + "$ref": "561" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "561" + } + ], + "name": "decimal", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 15 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "567", + "kind": 17, + "id": { + "$id": "568", + "kind": 3, + "sv": "decimal128", + "pos": 1892, + "end": 1902, + "flags": 0, + "parent": { + "$ref": "567" + }, + "_id": 60 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "569", + "kind": 45, + "target": { + "$id": "570", + "kind": 3, + "sv": "decimal", + "pos": 1911, + "end": 1918, + "flags": 1, + "parent": { + "$ref": "569" + }, + "_id": 62 + }, + "arguments": [], + "pos": 1911, + "end": 1918, + "flags": 1, + "parent": { + "$ref": "567" + }, + "_id": 61 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 1848, + "end": 1919, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "571", + "kind": 51, + "content": [ + { + "$id": "572", + "kind": 52, + "text": "A 128-bit decimal number.", + "pos": 1851, + "end": 1882, + "flags": 0, + "parent": { + "$ref": "571" + } + } + ], + "tags": [], + "pos": 1848, + "end": 1884, + "flags": 0, + "parent": { + "$ref": "567" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "567" + } + ], + "name": "decimal128", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 16 + }, + "locals": { + "duplicates": {} + } + }, + { + "$ref": "464" + }, + { + "$id": "573", + "kind": 17, + "id": { + "$id": "574", + "kind": 3, + "sv": "plainDate", + "pos": 2060, + "end": 2069, + "flags": 0, + "parent": { + "$ref": "573" + }, + "_id": 64 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "members": [ + { + "$id": "575", + "kind": 69, + "id": { + "$id": "576", + "kind": 3, + "sv": "fromISO", + "pos": 2232, + "end": 2239, + "flags": 0, + "parent": { + "$ref": "575" + }, + "_id": 65 + }, + "parameters": [ + { + "$id": "577", + "kind": 27, + "id": { + "$id": "578", + "kind": 3, + "sv": "value", + "pos": 2240, + "end": 2245, + "flags": 0, + "parent": { + "$ref": "577" + }, + "_id": 66 + }, + "type": { + "$id": "579", + "kind": 45, + "target": { + "$id": "580", + "kind": 3, + "sv": "string", + "pos": 2247, + "end": 2253, + "flags": 1, + "parent": { + "$ref": "579" + }, + "_id": 68 + }, + "arguments": [], + "pos": 2247, + "end": 2253, + "flags": 1, + "parent": { + "$ref": "577" + }, + "_id": 67 + }, + "optional": false, + "rest": false, + "pos": 2240, + "end": 2253, + "flags": 0, + "parent": { + "$ref": "575" + }, + "symbol": { + "declarations": [ + { + "$ref": "577" + } + ], + "name": "value", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "573" + } + ], + "name": "plainDate", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 18 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 194 + } + } + ], + "pos": 2074, + "end": 2254, + "flags": 0, + "docs": [ + { + "$id": "581", + "kind": 51, + "content": [ + { + "$id": "582", + "kind": 52, + "text": "Create a plain date from an ISO 8601 string.", + "pos": 2077, + "end": 2133, + "flags": 0, + "parent": { + "$ref": "581" + } + } + ], + "tags": [ + { + "$id": "583", + "kind": 58, + "tagName": { + "$id": "584", + "kind": 3, + "sv": "example", + "pos": 2134, + "end": 2141, + "flags": 0, + "parent": { + "$ref": "583" + } + }, + "content": [ + { + "$id": "585", + "kind": 52, + "text": "```tsp\nconst date = plainDate.fromISO(\"2024-05-06\");\n```", + "pos": 2141, + "end": 2222, + "flags": 0, + "parent": { + "$ref": "583" + } + } + ], + "pos": 2133, + "end": 2222, + "flags": 0, + "parent": { + "$ref": "581" + } + } + ], + "pos": 2074, + "end": 2224, + "flags": 0, + "parent": { + "$ref": "575" + } + } + ], + "directives": [], + "parent": { + "$ref": "573" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "575" + }, + "name": "fromISO", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "573" + } + ], + "name": "plainDate", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 18 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "586", + "kind": 69, + "id": { + "$id": "587", + "kind": 3, + "sv": "now", + "pos": 2407, + "end": 2410, + "flags": 0, + "parent": { + "$ref": "586" + }, + "_id": 69 + }, + "parameters": [], + "pos": 2259, + "end": 2412, + "flags": 0, + "docs": [ + { + "$id": "588", + "kind": 51, + "content": [ + { + "$id": "589", + "kind": 52, + "text": "Create a plain date representing the current date.", + "pos": 2262, + "end": 2324, + "flags": 0, + "parent": { + "$ref": "588" + } + } + ], + "tags": [ + { + "$id": "590", + "kind": 58, + "tagName": { + "$id": "591", + "kind": 3, + "sv": "example", + "pos": 2325, + "end": 2332, + "flags": 0, + "parent": { + "$ref": "590" + } + }, + "content": [ + { + "$id": "592", + "kind": 52, + "text": "```tsp\nconst date = plainDate.now();\n```", + "pos": 2332, + "end": 2397, + "flags": 0, + "parent": { + "$ref": "590" + } + } + ], + "pos": 2324, + "end": 2397, + "flags": 0, + "parent": { + "$ref": "588" + } + } + ], + "pos": 2259, + "end": 2399, + "flags": 0, + "parent": { + "$ref": "586" + } + } + ], + "directives": [], + "parent": { + "$ref": "573" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "586" + }, + "name": "now", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "573" + } + ], + "name": "plainDate", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 18 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 2070, + "end": 2415 + }, + "decorators": [], + "pos": 1982, + "end": 2415, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "593", + "kind": 51, + "content": [ + { + "$id": "594", + "kind": 52, + "text": "A date on a calendar without a time zone, e.g. \"April 10th\"", + "pos": 1985, + "end": 2050, + "flags": 0, + "parent": { + "$ref": "593" + } + } + ], + "tags": [], + "pos": 1982, + "end": 2052, + "flags": 0, + "parent": { + "$ref": "573" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "573" + } + ], + "name": "plainDate", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 18 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "595", + "kind": 17, + "id": { + "$id": "596", + "kind": 3, + "sv": "plainTime", + "pos": 2489, + "end": 2498, + "flags": 0, + "parent": { + "$ref": "595" + }, + "_id": 70 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "members": [ + { + "$id": "597", + "kind": 69, + "id": { + "$id": "598", + "kind": 3, + "sv": "fromISO", + "pos": 2656, + "end": 2663, + "flags": 0, + "parent": { + "$ref": "597" + }, + "_id": 71 + }, + "parameters": [ + { + "$id": "599", + "kind": 27, + "id": { + "$id": "600", + "kind": 3, + "sv": "value", + "pos": 2664, + "end": 2669, + "flags": 0, + "parent": { + "$ref": "599" + }, + "_id": 72 + }, + "type": { + "$id": "601", + "kind": 45, + "target": { + "$id": "602", + "kind": 3, + "sv": "string", + "pos": 2671, + "end": 2677, + "flags": 1, + "parent": { + "$ref": "601" + }, + "_id": 74 + }, + "arguments": [], + "pos": 2671, + "end": 2677, + "flags": 1, + "parent": { + "$ref": "599" + }, + "_id": 73 + }, + "optional": false, + "rest": false, + "pos": 2664, + "end": 2677, + "flags": 0, + "parent": { + "$ref": "597" + }, + "symbol": { + "declarations": [ + { + "$ref": "599" + } + ], + "name": "value", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "595" + } + ], + "name": "plainTime", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 19 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 197 + } + } + ], + "pos": 2503, + "end": 2678, + "flags": 0, + "docs": [ + { + "$id": "603", + "kind": 51, + "content": [ + { + "$id": "604", + "kind": 52, + "text": "Create a plain time from an ISO 8601 string.", + "pos": 2506, + "end": 2562, + "flags": 0, + "parent": { + "$ref": "603" + } + } + ], + "tags": [ + { + "$id": "605", + "kind": 58, + "tagName": { + "$id": "606", + "kind": 3, + "sv": "example", + "pos": 2563, + "end": 2570, + "flags": 0, + "parent": { + "$ref": "605" + } + }, + "content": [ + { + "$id": "607", + "kind": 52, + "text": "```tsp\nconst time = plainTime.fromISO(\"12:34\");\n```", + "pos": 2570, + "end": 2646, + "flags": 0, + "parent": { + "$ref": "605" + } + } + ], + "pos": 2562, + "end": 2646, + "flags": 0, + "parent": { + "$ref": "603" + } + } + ], + "pos": 2503, + "end": 2648, + "flags": 0, + "parent": { + "$ref": "597" + } + } + ], + "directives": [], + "parent": { + "$ref": "595" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "597" + }, + "name": "fromISO", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "595" + } + ], + "name": "plainTime", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 19 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "608", + "kind": 69, + "id": { + "$id": "609", + "kind": 3, + "sv": "now", + "pos": 2831, + "end": 2834, + "flags": 0, + "parent": { + "$ref": "608" + }, + "_id": 75 + }, + "parameters": [], + "pos": 2683, + "end": 2836, + "flags": 0, + "docs": [ + { + "$id": "610", + "kind": 51, + "content": [ + { + "$id": "611", + "kind": 52, + "text": "Create a plain time representing the current time.", + "pos": 2686, + "end": 2748, + "flags": 0, + "parent": { + "$ref": "610" + } + } + ], + "tags": [ + { + "$id": "612", + "kind": 58, + "tagName": { + "$id": "613", + "kind": 3, + "sv": "example", + "pos": 2749, + "end": 2756, + "flags": 0, + "parent": { + "$ref": "612" + } + }, + "content": [ + { + "$id": "614", + "kind": 52, + "text": "```tsp\nconst time = plainTime.now();\n```", + "pos": 2756, + "end": 2821, + "flags": 0, + "parent": { + "$ref": "612" + } + } + ], + "pos": 2748, + "end": 2821, + "flags": 0, + "parent": { + "$ref": "610" + } + } + ], + "pos": 2683, + "end": 2823, + "flags": 0, + "parent": { + "$ref": "608" + } + } + ], + "directives": [], + "parent": { + "$ref": "595" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "608" + }, + "name": "now", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "595" + } + ], + "name": "plainTime", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 19 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 2499, + "end": 2839 + }, + "decorators": [], + "pos": 2417, + "end": 2839, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "615", + "kind": 51, + "content": [ + { + "$id": "616", + "kind": 52, + "text": "A time on a clock without a time zone, e.g. \"3:00 am\"", + "pos": 2420, + "end": 2479, + "flags": 0, + "parent": { + "$ref": "615" + } + } + ], + "tags": [], + "pos": 2417, + "end": 2481, + "flags": 0, + "parent": { + "$ref": "595" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "595" + } + ], + "name": "plainTime", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 19 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "617", + "kind": 17, + "id": { + "$id": "618", + "kind": 3, + "sv": "utcDateTime", + "pos": 2907, + "end": 2918, + "flags": 0, + "parent": { + "$ref": "617" + }, + "_id": 76 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "members": [ + { + "$id": "619", + "kind": 69, + "id": { + "$id": "620", + "kind": 3, + "sv": "fromISO", + "pos": 3087, + "end": 3094, + "flags": 0, + "parent": { + "$ref": "619" + }, + "_id": 77 + }, + "parameters": [ + { + "$id": "621", + "kind": 27, + "id": { + "$id": "622", + "kind": 3, + "sv": "value", + "pos": 3095, + "end": 3100, + "flags": 0, + "parent": { + "$ref": "621" + }, + "_id": 78 + }, + "type": { + "$id": "623", + "kind": 45, + "target": { + "$id": "624", + "kind": 3, + "sv": "string", + "pos": 3102, + "end": 3108, + "flags": 1, + "parent": { + "$ref": "623" + }, + "_id": 80 + }, + "arguments": [], + "pos": 3102, + "end": 3108, + "flags": 1, + "parent": { + "$ref": "621" + }, + "_id": 79 + }, + "optional": false, + "rest": false, + "pos": 3095, + "end": 3108, + "flags": 0, + "parent": { + "$ref": "619" + }, + "symbol": { + "declarations": [ + { + "$ref": "621" + } + ], + "name": "value", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "617" + } + ], + "name": "utcDateTime", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 20 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 200 + } + } + ], + "pos": 2923, + "end": 3109, + "flags": 0, + "docs": [ + { + "$id": "625", + "kind": 51, + "content": [ + { + "$id": "626", + "kind": 52, + "text": "Create a date from an ISO 8601 string.", + "pos": 2926, + "end": 2976, + "flags": 0, + "parent": { + "$ref": "625" + } + } + ], + "tags": [ + { + "$id": "627", + "kind": 58, + "tagName": { + "$id": "628", + "kind": 3, + "sv": "example", + "pos": 2977, + "end": 2984, + "flags": 0, + "parent": { + "$ref": "627" + } + }, + "content": [ + { + "$id": "629", + "kind": 52, + "text": "```tsp\nconst time = utcDateTime.fromISO(\"2024-05-06T12:20-12Z\");\n```", + "pos": 2984, + "end": 3077, + "flags": 0, + "parent": { + "$ref": "627" + } + } + ], + "pos": 2976, + "end": 3077, + "flags": 0, + "parent": { + "$ref": "625" + } + } + ], + "pos": 2923, + "end": 3079, + "flags": 0, + "parent": { + "$ref": "619" + } + } + ], + "directives": [], + "parent": { + "$ref": "617" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "619" + }, + "name": "fromISO", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "617" + } + ], + "name": "utcDateTime", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 20 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "630", + "kind": 69, + "id": { + "$id": "631", + "kind": 3, + "sv": "now", + "pos": 3274, + "end": 3277, + "flags": 0, + "parent": { + "$ref": "630" + }, + "_id": 81 + }, + "parameters": [], + "pos": 3114, + "end": 3279, + "flags": 0, + "docs": [ + { + "$id": "632", + "kind": 51, + "content": [ + { + "$id": "633", + "kind": 52, + "text": "Create a date representing the current date and time in UTC.", + "pos": 3117, + "end": 3189, + "flags": 0, + "parent": { + "$ref": "632" + } + } + ], + "tags": [ + { + "$id": "634", + "kind": 58, + "tagName": { + "$id": "635", + "kind": 3, + "sv": "example", + "pos": 3190, + "end": 3197, + "flags": 0, + "parent": { + "$ref": "634" + } + }, + "content": [ + { + "$id": "636", + "kind": 52, + "text": "```tsp\nconst time = utcDateTime.now();\n```", + "pos": 3197, + "end": 3264, + "flags": 0, + "parent": { + "$ref": "634" + } + } + ], + "pos": 3189, + "end": 3264, + "flags": 0, + "parent": { + "$ref": "632" + } + } + ], + "pos": 3114, + "end": 3266, + "flags": 0, + "parent": { + "$ref": "630" + } + } + ], + "directives": [], + "parent": { + "$ref": "617" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "630" + }, + "name": "now", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "617" + } + ], + "name": "utcDateTime", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 20 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 2919, + "end": 3282 + }, + "decorators": [], + "pos": 2841, + "end": 3282, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "637", + "kind": 51, + "content": [ + { + "$id": "638", + "kind": 52, + "text": "An instant in coordinated universal time (UTC)\"", + "pos": 2844, + "end": 2897, + "flags": 0, + "parent": { + "$ref": "637" + } + } + ], + "tags": [], + "pos": 2841, + "end": 2899, + "flags": 0, + "parent": { + "$ref": "617" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "617" + } + ], + "name": "utcDateTime", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 20 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "639", + "kind": 17, + "id": { + "$id": "640", + "kind": 3, + "sv": "offsetDateTime", + "pos": 3380, + "end": 3394, + "flags": 0, + "parent": { + "$ref": "639" + }, + "_id": 82 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "members": [ + { + "$id": "641", + "kind": 69, + "id": { + "$id": "642", + "kind": 3, + "sv": "fromISO", + "pos": 3570, + "end": 3577, + "flags": 0, + "parent": { + "$ref": "641" + }, + "_id": 83 + }, + "parameters": [ + { + "$id": "643", + "kind": 27, + "id": { + "$id": "644", + "kind": 3, + "sv": "value", + "pos": 3578, + "end": 3583, + "flags": 0, + "parent": { + "$ref": "643" + }, + "_id": 84 + }, + "type": { + "$id": "645", + "kind": 45, + "target": { + "$id": "646", + "kind": 3, + "sv": "string", + "pos": 3585, + "end": 3591, + "flags": 1, + "parent": { + "$ref": "645" + }, + "_id": 86 + }, + "arguments": [], + "pos": 3585, + "end": 3591, + "flags": 1, + "parent": { + "$ref": "643" + }, + "_id": 85 + }, + "optional": false, + "rest": false, + "pos": 3578, + "end": 3591, + "flags": 0, + "parent": { + "$ref": "641" + }, + "symbol": { + "declarations": [ + { + "$ref": "643" + } + ], + "name": "value", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "639" + } + ], + "name": "offsetDateTime", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 21 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 203 + } + } + ], + "pos": 3399, + "end": 3592, + "flags": 0, + "docs": [ + { + "$id": "647", + "kind": 51, + "content": [ + { + "$id": "648", + "kind": 52, + "text": "Create a date from an ISO 8601 string.", + "pos": 3402, + "end": 3452, + "flags": 0, + "parent": { + "$ref": "647" + } + } + ], + "tags": [ + { + "$id": "649", + "kind": 58, + "tagName": { + "$id": "650", + "kind": 3, + "sv": "example", + "pos": 3453, + "end": 3460, + "flags": 0, + "parent": { + "$ref": "649" + } + }, + "content": [ + { + "$id": "651", + "kind": 52, + "text": "```tsp\nconst time = offsetDateTime.fromISO(\"2024-05-06T12:20-12-0700\");\n```", + "pos": 3460, + "end": 3560, + "flags": 0, + "parent": { + "$ref": "649" + } + } + ], + "pos": 3452, + "end": 3560, + "flags": 0, + "parent": { + "$ref": "647" + } + } + ], + "pos": 3399, + "end": 3562, + "flags": 0, + "parent": { + "$ref": "641" + } + } + ], + "directives": [], + "parent": { + "$ref": "639" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "641" + }, + "name": "fromISO", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "639" + } + ], + "name": "offsetDateTime", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 21 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "652", + "kind": 69, + "id": { + "$id": "653", + "kind": 3, + "sv": "now", + "pos": 3765, + "end": 3768, + "flags": 0, + "parent": { + "$ref": "652" + }, + "_id": 87 + }, + "parameters": [], + "pos": 3597, + "end": 3770, + "flags": 0, + "docs": [ + { + "$id": "654", + "kind": 51, + "content": [ + { + "$id": "655", + "kind": 52, + "text": "Create a date representing the current date and time with offset.", + "pos": 3600, + "end": 3677, + "flags": 0, + "parent": { + "$ref": "654" + } + } + ], + "tags": [ + { + "$id": "656", + "kind": 58, + "tagName": { + "$id": "657", + "kind": 3, + "sv": "example", + "pos": 3678, + "end": 3685, + "flags": 0, + "parent": { + "$ref": "656" + } + }, + "content": [ + { + "$id": "658", + "kind": 52, + "text": "```tsp\nconst time = offsetDateTime.now();\n```", + "pos": 3685, + "end": 3755, + "flags": 0, + "parent": { + "$ref": "656" + } + } + ], + "pos": 3677, + "end": 3755, + "flags": 0, + "parent": { + "$ref": "654" + } + } + ], + "pos": 3597, + "end": 3757, + "flags": 0, + "parent": { + "$ref": "652" + } + } + ], + "directives": [], + "parent": { + "$ref": "639" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "652" + }, + "name": "now", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "639" + } + ], + "name": "offsetDateTime", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 21 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 3395, + "end": 3773 + }, + "decorators": [], + "pos": 3284, + "end": 3773, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "659", + "kind": 51, + "content": [ + { + "$id": "660", + "kind": 52, + "text": "A date and time in a particular time zone, e.g. \"April 10th at 3:00am in PST\"", + "pos": 3287, + "end": 3370, + "flags": 0, + "parent": { + "$ref": "659" + } + } + ], + "tags": [], + "pos": 3284, + "end": 3372, + "flags": 0, + "parent": { + "$ref": "639" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "639" + } + ], + "name": "offsetDateTime", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 21 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "661", + "kind": 17, + "id": { + "$id": "662", + "kind": 3, + "sv": "duration", + "pos": 3829, + "end": 3837, + "flags": 0, + "parent": { + "$ref": "661" + }, + "_id": 88 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "members": [ + { + "$id": "663", + "kind": 69, + "id": { + "$id": "664", + "kind": 3, + "sv": "fromISO", + "pos": 3992, + "end": 3999, + "flags": 0, + "parent": { + "$ref": "663" + }, + "_id": 89 + }, + "parameters": [ + { + "$id": "665", + "kind": 27, + "id": { + "$id": "666", + "kind": 3, + "sv": "value", + "pos": 4000, + "end": 4005, + "flags": 0, + "parent": { + "$ref": "665" + }, + "_id": 90 + }, + "type": { + "$id": "667", + "kind": 45, + "target": { + "$id": "668", + "kind": 3, + "sv": "string", + "pos": 4007, + "end": 4013, + "flags": 1, + "parent": { + "$ref": "667" + }, + "_id": 92 + }, + "arguments": [], + "pos": 4007, + "end": 4013, + "flags": 1, + "parent": { + "$ref": "665" + }, + "_id": 91 + }, + "optional": false, + "rest": false, + "pos": 4000, + "end": 4013, + "flags": 0, + "parent": { + "$ref": "663" + }, + "symbol": { + "declarations": [ + { + "$ref": "665" + } + ], + "name": "value", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "661" + } + ], + "name": "duration", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 22 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 206 + } + } + ], + "pos": 3842, + "end": 4014, + "flags": 0, + "docs": [ + { + "$id": "669", + "kind": 51, + "content": [ + { + "$id": "670", + "kind": 52, + "text": "Create a duration from an ISO 8601 string.", + "pos": 3845, + "end": 3899, + "flags": 0, + "parent": { + "$ref": "669" + } + } + ], + "tags": [ + { + "$id": "671", + "kind": 58, + "tagName": { + "$id": "672", + "kind": 3, + "sv": "example", + "pos": 3900, + "end": 3907, + "flags": 0, + "parent": { + "$ref": "671" + } + }, + "content": [ + { + "$id": "673", + "kind": 52, + "text": "```tsp\nconst time = duration.fromISO(\"P1Y1D\");\n```", + "pos": 3907, + "end": 3982, + "flags": 0, + "parent": { + "$ref": "671" + } + } + ], + "pos": 3899, + "end": 3982, + "flags": 0, + "parent": { + "$ref": "669" + } + } + ], + "pos": 3842, + "end": 3984, + "flags": 0, + "parent": { + "$ref": "663" + } + } + ], + "directives": [], + "parent": { + "$ref": "661" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "663" + }, + "name": "fromISO", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "661" + } + ], + "name": "duration", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 22 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 3838, + "end": 4017 + }, + "decorators": [], + "pos": 3775, + "end": 4017, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "674", + "kind": 51, + "content": [ + { + "$id": "675", + "kind": 52, + "text": "A duration/time period. e.g 5s, 10h", + "pos": 3778, + "end": 3819, + "flags": 0, + "parent": { + "$ref": "674" + } + } + ], + "tags": [], + "pos": 3775, + "end": 3821, + "flags": 0, + "parent": { + "$ref": "661" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "661" + } + ], + "name": "duration", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 22 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "676", + "kind": 17, + "id": { + "$id": "677", + "kind": 3, + "sv": "boolean", + "pos": 4077, + "end": 4084, + "flags": 0, + "parent": { + "$ref": "676" + }, + "_id": 93 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 4019, + "end": 4085, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "678", + "kind": 51, + "content": [ + { + "$id": "679", + "kind": 52, + "text": "Boolean with `true` and `false` values.", + "pos": 4022, + "end": 4067, + "flags": 0, + "parent": { + "$ref": "678" + } + } + ], + "tags": [], + "pos": 4019, + "end": 4069, + "flags": 0, + "parent": { + "$ref": "676" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "676" + } + ], + "name": "boolean", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 23 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "680", + "kind": 13, + "id": { + "$id": "681", + "kind": 3, + "sv": "Array", + "pos": 4232, + "end": 4237, + "flags": 0, + "parent": { + "$ref": "680" + }, + "_id": 94 + }, + "templateParameters": [ + { + "$id": "682", + "kind": 46, + "id": { + "$id": "683", + "kind": 3, + "sv": "Element", + "pos": 4238, + "end": 4245, + "flags": 0, + "parent": { + "$ref": "682" + }, + "_id": 100 + }, + "pos": 4238, + "end": 4245, + "flags": 0, + "parent": { + "$ref": "680" + }, + "symbol": { + "declarations": [ + { + "$ref": "682" + } + ], + "name": "Element", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "680" + } + ], + "name": "Array", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 24 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 25 + } + } + ], + "templateParametersRange": { + "pos": 4237, + "end": 4246 + }, + "decorators": [ + { + "$id": "684", + "kind": 5, + "arguments": [ + { + "$id": "685", + "kind": 45, + "target": { + "$id": "686", + "kind": 3, + "sv": "integer", + "pos": 4208, + "end": 4215, + "flags": 1, + "parent": { + "$ref": "685" + }, + "_id": 97 + }, + "arguments": [], + "pos": 4208, + "end": 4215, + "flags": 1, + "parent": { + "$ref": "684" + }, + "_id": 96 + }, + { + "$id": "687", + "kind": 45, + "target": { + "$id": "688", + "kind": 3, + "sv": "Element", + "pos": 4217, + "end": 4224, + "flags": 1, + "parent": { + "$ref": "687" + }, + "_id": 99 + }, + "arguments": [], + "pos": 4217, + "end": 4224, + "flags": 1, + "parent": { + "$ref": "684" + }, + "_id": 98 + } + ], + "target": { + "$id": "689", + "kind": 3, + "sv": "indexer", + "pos": 4200, + "end": 4207, + "flags": 1, + "parent": { + "$ref": "684" + }, + "_id": 95 + }, + "pos": 4199, + "end": 4225, + "flags": 0, + "parent": { + "$ref": "680" + } + } + ], + "properties": [], + "bodyRange": { + "pos": 4247, + "end": 4249 + }, + "pos": 4087, + "end": 4249, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "690", + "kind": 51, + "content": [ + { + "$id": "691", + "kind": 52, + "text": "\n", + "pos": 4090, + "end": 4094, + "flags": 0, + "parent": { + "$ref": "690" + } + } + ], + "tags": [ + { + "$id": "692", + "kind": 58, + "tagName": { + "$id": "693", + "kind": 3, + "sv": "dev", + "pos": 4095, + "end": 4098, + "flags": 0, + "parent": { + "$ref": "692" + } + }, + "content": [ + { + "$id": "694", + "kind": 52, + "text": "Array model type, equivalent to `Element[]`", + "pos": 4098, + "end": 4146, + "flags": 0, + "parent": { + "$ref": "692" + } + } + ], + "pos": 4094, + "end": 4146, + "flags": 0, + "parent": { + "$ref": "690" + } + }, + { + "$id": "695", + "kind": 57, + "tagName": { + "$id": "696", + "kind": 3, + "sv": "template", + "pos": 4147, + "end": 4155, + "flags": 0, + "parent": { + "$ref": "695" + } + }, + "paramName": { + "$id": "697", + "kind": 3, + "sv": "Element", + "pos": 4156, + "end": 4163, + "flags": 0, + "parent": { + "$ref": "695" + } + }, + "content": [ + { + "$id": "698", + "kind": 52, + "text": "The type of the array elements", + "pos": 4164, + "end": 4196, + "flags": 0, + "parent": { + "$ref": "695" + } + } + ], + "pos": 4146, + "end": 4196, + "flags": 0, + "parent": { + "$ref": "690" + } + } + ], + "pos": 4087, + "end": 4198, + "flags": 0, + "parent": { + "$ref": "680" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "680" + } + ], + "name": "Array", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 24 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "699", + "kind": 13, + "id": { + "$id": "700", + "kind": 3, + "sv": "Record", + "pos": 4422, + "end": 4428, + "flags": 0, + "parent": { + "$ref": "699" + }, + "_id": 101 + }, + "templateParameters": [ + { + "$id": "701", + "kind": 46, + "id": { + "$id": "702", + "kind": 3, + "sv": "Element", + "pos": 4429, + "end": 4436, + "flags": 0, + "parent": { + "$ref": "701" + }, + "_id": 107 + }, + "pos": 4429, + "end": 4436, + "flags": 0, + "parent": { + "$ref": "699" + }, + "symbol": { + "declarations": [ + { + "$ref": "701" + } + ], + "name": "Element", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "699" + } + ], + "name": "Record", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 26 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 27 + } + } + ], + "templateParametersRange": { + "pos": 4428, + "end": 4437 + }, + "decorators": [ + { + "$id": "703", + "kind": 5, + "arguments": [ + { + "$id": "704", + "kind": 45, + "target": { + "$id": "705", + "kind": 3, + "sv": "string", + "pos": 4399, + "end": 4405, + "flags": 1, + "parent": { + "$ref": "704" + }, + "_id": 104 + }, + "arguments": [], + "pos": 4399, + "end": 4405, + "flags": 1, + "parent": { + "$ref": "703" + }, + "_id": 103 + }, + { + "$id": "706", + "kind": 45, + "target": { + "$id": "707", + "kind": 3, + "sv": "Element", + "pos": 4407, + "end": 4414, + "flags": 1, + "parent": { + "$ref": "706" + }, + "_id": 106 + }, + "arguments": [], + "pos": 4407, + "end": 4414, + "flags": 1, + "parent": { + "$ref": "703" + }, + "_id": 105 + } + ], + "target": { + "$id": "708", + "kind": 3, + "sv": "indexer", + "pos": 4391, + "end": 4398, + "flags": 1, + "parent": { + "$ref": "703" + }, + "_id": 102 + }, + "pos": 4390, + "end": 4415, + "flags": 0, + "parent": { + "$ref": "699" + } + } + ], + "properties": [], + "bodyRange": { + "pos": 4438, + "end": 4440 + }, + "pos": 4251, + "end": 4440, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "709", + "kind": 51, + "content": [ + { + "$id": "710", + "kind": 52, + "text": "\n", + "pos": 4254, + "end": 4258, + "flags": 0, + "parent": { + "$ref": "709" + } + } + ], + "tags": [ + { + "$id": "711", + "kind": 58, + "tagName": { + "$id": "712", + "kind": 3, + "sv": "dev", + "pos": 4259, + "end": 4262, + "flags": 0, + "parent": { + "$ref": "711" + } + }, + "content": [ + { + "$id": "713", + "kind": 52, + "text": "Model with string properties where all the properties have type `Property`", + "pos": 4262, + "end": 4341, + "flags": 0, + "parent": { + "$ref": "711" + } + } + ], + "pos": 4258, + "end": 4341, + "flags": 0, + "parent": { + "$ref": "709" + } + }, + { + "$id": "714", + "kind": 57, + "tagName": { + "$id": "715", + "kind": 3, + "sv": "template", + "pos": 4342, + "end": 4350, + "flags": 0, + "parent": { + "$ref": "714" + } + }, + "paramName": { + "$id": "716", + "kind": 3, + "sv": "Element", + "pos": 4351, + "end": 4358, + "flags": 0, + "parent": { + "$ref": "714" + } + }, + "content": [ + { + "$id": "717", + "kind": 52, + "text": "The type of the properties", + "pos": 4359, + "end": 4387, + "flags": 0, + "parent": { + "$ref": "714" + } + } + ], + "pos": 4341, + "end": 4387, + "flags": 0, + "parent": { + "$ref": "709" + } + } + ], + "pos": 4251, + "end": 4389, + "flags": 0, + "parent": { + "$ref": "699" + } + } + ], + "parent": { + "$ref": "468" + }, + "symbol": { + "declarations": [ + { + "$ref": "699" + } + ], + "name": "Record", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 26 + }, + "locals": { + "duplicates": {} + } + } + ], + "file": { + "text": "import \"../dist/src/lib/intrinsic/tsp-index.js\";\nimport \"./prototypes.tsp\";\n\n// This file contains all the intrinsic types of typespec. Everything here will always be loaded\nnamespace TypeSpec;\n\n/**\n * Represent a byte array\n */\nscalar bytes;\n\n/**\n * A numeric type\n */\nscalar numeric;\n\n/**\n * A whole number. This represent any `integer` value possible.\n * It is commonly represented as `BigInteger` in some languages.\n */\nscalar integer extends numeric;\n\n/**\n * A number with decimal value\n */\nscalar float extends numeric;\n\n/**\n * A 64-bit integer. (`-9,223,372,036,854,775,808` to `9,223,372,036,854,775,807`)\n */\nscalar int64 extends integer;\n\n/**\n * A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)\n */\nscalar int32 extends int64;\n\n/**\n * A 16-bit integer. (`-32,768` to `32,767`)\n */\nscalar int16 extends int32;\n\n/**\n * A 8-bit integer. (`-128` to `127`)\n */\nscalar int8 extends int16;\n\n/**\n * A 64-bit unsigned integer (`0` to `18,446,744,073,709,551,615`)\n */\nscalar uint64 extends integer;\n\n/**\n * A 32-bit unsigned integer (`0` to `4,294,967,295`)\n */\nscalar uint32 extends uint64;\n\n/**\n * A 16-bit unsigned integer (`0` to `65,535`)\n */\nscalar uint16 extends uint32;\n\n/**\n * A 8-bit unsigned integer (`0` to `255`)\n */\nscalar uint8 extends uint16;\n\n/**\n * An integer that can be serialized to JSON (`−9007199254740991 (−(2^53 − 1))` to `9007199254740991 (2^53 − 1)` )\n */\nscalar safeint extends int64;\n\n/**\n * A 64 bit floating point number. (`±5.0 × 10^−324` to `±1.7 × 10^308`)\n */\nscalar float64 extends float;\n\n/**\n * A 32 bit floating point number. (`±1.5 x 10^−45` to `±3.4 x 10^38`)\n */\nscalar float32 extends float64;\n\n/**\n * A decimal number with any length and precision. This represent any `decimal` value possible.\n * It is commonly represented as `BigDecimal` in some languages.\n */\nscalar decimal extends numeric;\n\n/**\n * A 128-bit decimal number.\n */\nscalar decimal128 extends decimal;\n\n/**\n * A sequence of textual characters.\n */\nscalar string;\n\n/**\n * A date on a calendar without a time zone, e.g. \"April 10th\"\n */\nscalar plainDate {\n /**\n * Create a plain date from an ISO 8601 string.\n * @example\n *\n * ```tsp\n * const date = plainDate.fromISO(\"2024-05-06\");\n * ```\n */\n init fromISO(value: string);\n\n /**\n * Create a plain date representing the current date.\n * @example\n *\n * ```tsp\n * const date = plainDate.now();\n * ```\n */\n init now();\n}\n\n/**\n * A time on a clock without a time zone, e.g. \"3:00 am\"\n */\nscalar plainTime {\n /**\n * Create a plain time from an ISO 8601 string.\n * @example\n *\n * ```tsp\n * const time = plainTime.fromISO(\"12:34\");\n * ```\n */\n init fromISO(value: string);\n\n /**\n * Create a plain time representing the current time.\n * @example\n *\n * ```tsp\n * const time = plainTime.now();\n * ```\n */\n init now();\n}\n\n/**\n * An instant in coordinated universal time (UTC)\"\n */\nscalar utcDateTime {\n /**\n * Create a date from an ISO 8601 string.\n * @example\n *\n * ```tsp\n * const time = utcDateTime.fromISO(\"2024-05-06T12:20-12Z\");\n * ```\n */\n init fromISO(value: string);\n\n /**\n * Create a date representing the current date and time in UTC.\n * @example\n *\n * ```tsp\n * const time = utcDateTime.now();\n * ```\n */\n init now();\n}\n\n/**\n * A date and time in a particular time zone, e.g. \"April 10th at 3:00am in PST\"\n */\nscalar offsetDateTime {\n /**\n * Create a date from an ISO 8601 string.\n * @example\n *\n * ```tsp\n * const time = offsetDateTime.fromISO(\"2024-05-06T12:20-12-0700\");\n * ```\n */\n init fromISO(value: string);\n\n /**\n * Create a date representing the current date and time with offset.\n * @example\n *\n * ```tsp\n * const time = offsetDateTime.now();\n * ```\n */\n init now();\n}\n\n/**\n * A duration/time period. e.g 5s, 10h\n */\nscalar duration {\n /**\n * Create a duration from an ISO 8601 string.\n * @example\n *\n * ```tsp\n * const time = duration.fromISO(\"P1Y1D\");\n * ```\n */\n init fromISO(value: string);\n}\n\n/**\n * Boolean with `true` and `false` values.\n */\nscalar boolean;\n\n/**\n * @dev Array model type, equivalent to `Element[]`\n * @template Element The type of the array elements\n */\n@indexer(integer, Element)\nmodel Array {}\n\n/**\n * @dev Model with string properties where all the properties have type `Property`\n * @template Element The type of the properties\n */\n@indexer(string, Element)\nmodel Record {}\n", + "path": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/compiler/lib/intrinsics.tsp" + }, + "id": { + "$id": "718", + "kind": 3, + "sv": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/compiler/lib/intrinsics.tsp", + "pos": 0, + "end": 0, + "flags": 8, + "parent": { + "$ref": "468" + } + }, + "namespaces": [ + { + "$ref": "473" + } + ], + "usings": [], + "locals": { + "duplicates": {} + }, + "inScopeNamespaces": [ + { + "$ref": "473" + } + ], + "parseDiagnostics": [], + "comments": [], + "printable": true, + "parseOptions": {}, + "pos": 0, + "end": 4440, + "flags": 0, + "symbol": { + "declarations": [], + "node": { + "$ref": "468" + }, + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/compiler/lib/intrinsics.tsp", + "exports": { + "duplicates": {} + }, + "flags": 32768, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "symbol": { + "declarations": [ + { + "$ref": "464" + } + ], + "name": "string", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "473" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 17 + }, + "locals": { + "duplicates": {} + } + }, + "constructors": {}, + "namespace": { + "$id": "719", + "kind": "Namespace", + "name": "TypeSpec", + "namespace": { + "$id": "720", + "kind": "Namespace", + "name": "", + "node": { + "$id": "721", + "kind": 8, + "decorators": [], + "pos": 0, + "end": 0, + "id": { + "$id": "722", + "kind": 3, + "pos": 0, + "end": 0, + "sv": "global", + "flags": 8 + }, + "symbol": { + "declarations": [ + { + "$ref": "721" + } + ], + "name": "global", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + }, + "id": 166 + }, + "locals": { + "duplicates": {} + }, + "flags": 8 + }, + "models": {}, + "scalars": {}, + "operations": {}, + "namespaces": {}, + "interfaces": {}, + "unions": {}, + "enums": {}, + "decoratorDeclarations": {}, + "functionDeclarations": {}, + "decorators": [], + "isFinished": true, + "entityKind": "Type" + }, + "node": { + "$ref": "473" + }, + "models": {}, + "scalars": {}, + "operations": {}, + "namespaces": {}, + "interfaces": {}, + "unions": {}, + "enums": {}, + "decoratorDeclarations": {}, + "functionDeclarations": {}, + "decorators": [], + "isFinished": true, + "entityKind": "Type" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$id": "723", + "kind": "String", + "value": "self", + "isFinished": true, + "entityKind": "Type" + }, + "jsValue": "self" + }, + { + "value": { + "$id": "724", + "kind": "String", + "value": "A sequence of textual characters.", + "isFinished": true, + "entityKind": "Type" + }, + "jsValue": "A sequence of textual characters." + } + ] + } + ], + "derivedScalars": [ + { + "$id": "725", + "kind": "Scalar", + "name": "url", + "node": { + "$id": "726", + "kind": 17, + "id": { + "$id": "727", + "kind": 3, + "sv": "url", + "pos": 363, + "end": 366, + "flags": 0, + "parent": { + "$ref": "726" + }, + "_id": 153 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "728", + "kind": 45, + "target": { + "$id": "729", + "kind": 3, + "sv": "string", + "pos": 375, + "end": 381, + "flags": 1, + "parent": { + "$ref": "728" + }, + "_id": 155 + }, + "arguments": [], + "pos": 375, + "end": 381, + "flags": 1, + "parent": { + "$ref": "726" + }, + "_id": 154 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "pos": 277, + "end": 382, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "730", + "kind": 51, + "content": [ + { + "$id": "731", + "kind": 52, + "text": "Represent a URL string as described by https://url.spec.whatwg.org/", + "pos": 280, + "end": 353, + "flags": 0, + "parent": { + "$ref": "730" + } + } + ], + "tags": [], + "pos": 277, + "end": 355, + "flags": 0, + "parent": { + "$ref": "726" + } + } + ], + "parent": { + "$id": "732", + "kind": 0, + "statements": [ + { + "$id": "733", + "kind": 8, + "decorators": [], + "docs": [], + "id": { + "$id": "734", + "kind": 3, + "sv": "TypeSpec", + "pos": 10, + "end": 18, + "flags": 0, + "parent": { + "$ref": "733" + }, + "_id": 127 + }, + "locals": { + "duplicates": {} + }, + "directives": [], + "pos": 0, + "end": 19, + "flags": 0, + "parent": { + "$ref": "732" + }, + "symbol": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "735", + "kind": 17, + "id": { + "$id": "736", + "kind": 3, + "sv": "unixTimestamp32", + "pos": 239, + "end": 254, + "flags": 0, + "parent": { + "$ref": "735" + }, + "_id": 128 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "extends": { + "$id": "737", + "kind": 45, + "target": { + "$id": "738", + "kind": 3, + "sv": "utcDateTime", + "pos": 263, + "end": 274, + "flags": 1, + "parent": { + "$ref": "737" + }, + "_id": 130 + }, + "arguments": [], + "pos": 263, + "end": 274, + "flags": 1, + "parent": { + "$ref": "735" + }, + "_id": 129 + }, + "members": [], + "bodyRange": { + "pos": -1, + "end": -1 + }, + "decorators": [ + { + "$id": "739", + "kind": 5, + "arguments": [ + { + "$id": "740", + "kind": 32, + "value": "unixTimestamp", + "pos": 208, + "end": 223, + "flags": 0, + "parent": { + "$ref": "739" + } + }, + { + "$id": "741", + "kind": 45, + "target": { + "$id": "742", + "kind": 3, + "sv": "int32", + "pos": 225, + "end": 230, + "flags": 1, + "parent": { + "$ref": "741" + }, + "_id": 152 + }, + "arguments": [], + "pos": 225, + "end": 230, + "flags": 1, + "parent": { + "$ref": "739" + }, + "_id": 151 + } + ], + "target": { + "$id": "743", + "kind": 3, + "sv": "encode", + "pos": 201, + "end": 207, + "flags": 1, + "parent": { + "$ref": "739" + }, + "_id": 131 + }, + "pos": 200, + "end": 231, + "flags": 0, + "parent": { + "$ref": "735" + } + } + ], + "pos": 21, + "end": 275, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "744", + "kind": 51, + "content": [ + { + "$id": "745", + "kind": 52, + "text": "Represent a 32-bit unix timestamp datetime with 1s of granularity.\nIt measures time by the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970.", + "pos": 24, + "end": 197, + "flags": 0, + "parent": { + "$ref": "744" + } + } + ], + "tags": [], + "pos": 21, + "end": 199, + "flags": 0, + "parent": { + "$ref": "735" + } + } + ], + "parent": { + "$ref": "732" + }, + "symbol": { + "declarations": [ + { + "$ref": "735" + } + ], + "name": "unixTimestamp32", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 36 + }, + "locals": { + "duplicates": {} + } + }, + { + "$ref": "726" + }, + { + "$id": "746", + "kind": 13, + "id": { + "$id": "747", + "kind": 3, + "sv": "OptionalProperties", + "pos": 601, + "end": 619, + "flags": 0, + "parent": { + "$ref": "746" + }, + "_id": 156 + }, + "templateParameters": [ + { + "$id": "748", + "kind": 46, + "id": { + "$id": "749", + "kind": 3, + "sv": "Source", + "pos": 620, + "end": 626, + "flags": 0, + "parent": { + "$ref": "748" + }, + "_id": 159 + }, + "pos": 620, + "end": 626, + "flags": 0, + "parent": { + "$ref": "746" + }, + "symbol": { + "declarations": [ + { + "$ref": "748" + } + ], + "name": "Source", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "746" + } + ], + "name": "OptionalProperties", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 41 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 42 + } + } + ], + "templateParametersRange": { + "pos": 619, + "end": 627 + }, + "decorators": [ + { + "$id": "750", + "kind": 5, + "arguments": [ + { + "$id": "751", + "kind": 32, + "value": "The template for adding optional properties.", + "pos": 523, + "end": 569, + "flags": 0, + "parent": { + "$ref": "750" + } + } + ], + "target": { + "$id": "752", + "kind": 3, + "sv": "doc", + "pos": 519, + "end": 522, + "flags": 1, + "parent": { + "$ref": "750" + }, + "_id": 160 + }, + "pos": 518, + "end": 570, + "flags": 0, + "parent": { + "$ref": "746" + } + }, + { + "$id": "753", + "kind": 5, + "arguments": [], + "target": { + "$id": "754", + "kind": 3, + "sv": "withOptionalProperties", + "pos": 572, + "end": 594, + "flags": 1, + "parent": { + "$ref": "753" + }, + "_id": 167 + }, + "pos": 571, + "end": 594, + "flags": 0, + "parent": { + "$ref": "746" + } + } + ], + "properties": [ + { + "$id": "755", + "kind": 16, + "target": { + "$id": "756", + "kind": 45, + "target": { + "$id": "757", + "kind": 3, + "sv": "Source", + "pos": 635, + "end": 641, + "flags": 1, + "parent": { + "$ref": "756" + }, + "_id": 158 + }, + "arguments": [], + "pos": 635, + "end": 641, + "flags": 1, + "parent": { + "$ref": "755" + }, + "_id": 157 + }, + "pos": 632, + "end": 641, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "746" + } + } + ], + "bodyRange": { + "pos": 628, + "end": 644 + }, + "pos": 384, + "end": 644, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "758", + "kind": 51, + "content": [ + { + "$id": "759", + "kind": 52, + "text": "Represents a collection of optional properties.", + "pos": 387, + "end": 445, + "flags": 0, + "parent": { + "$ref": "758" + } + } + ], + "tags": [ + { + "$id": "760", + "kind": 57, + "tagName": { + "$id": "761", + "kind": 3, + "sv": "template", + "pos": 446, + "end": 454, + "flags": 0, + "parent": { + "$ref": "760" + } + }, + "paramName": { + "$id": "762", + "kind": 3, + "sv": "Source", + "pos": 455, + "end": 461, + "flags": 0, + "parent": { + "$ref": "760" + } + }, + "content": [ + { + "$id": "763", + "kind": 52, + "text": "An object whose spread properties are all optional.", + "pos": 462, + "end": 515, + "flags": 0, + "parent": { + "$ref": "760" + } + } + ], + "pos": 445, + "end": 515, + "flags": 0, + "parent": { + "$ref": "758" + } + } + ], + "pos": 384, + "end": 517, + "flags": 0, + "parent": { + "$ref": "746" + } + } + ], + "parent": { + "$ref": "732" + }, + "symbol": { + "declarations": [ + { + "$ref": "746" + } + ], + "name": "OptionalProperties", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 41 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "764", + "kind": 13, + "id": { + "$id": "765", + "kind": 3, + "sv": "UpdateableProperties", + "pos": 871, + "end": 891, + "flags": 0, + "parent": { + "$ref": "764" + }, + "_id": 173 + }, + "templateParameters": [ + { + "$id": "766", + "kind": 46, + "id": { + "$id": "767", + "kind": 3, + "sv": "Source", + "pos": 892, + "end": 898, + "flags": 0, + "parent": { + "$ref": "766" + }, + "_id": 176 + }, + "pos": 892, + "end": 898, + "flags": 0, + "parent": { + "$ref": "764" + }, + "symbol": { + "declarations": [ + { + "$ref": "766" + } + ], + "name": "Source", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "764" + } + ], + "name": "UpdateableProperties", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 45 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 46 + } + } + ], + "templateParametersRange": { + "pos": 891, + "end": 899 + }, + "decorators": [ + { + "$id": "768", + "kind": 5, + "arguments": [ + { + "$id": "769", + "kind": 32, + "value": "The template for adding updateable properties.", + "pos": 789, + "end": 837, + "flags": 0, + "parent": { + "$ref": "768" + } + } + ], + "target": { + "$id": "770", + "kind": 3, + "sv": "doc", + "pos": 785, + "end": 788, + "flags": 1, + "parent": { + "$ref": "768" + }, + "_id": 177 + }, + "pos": 784, + "end": 838, + "flags": 0, + "parent": { + "$ref": "764" + } + }, + { + "$id": "771", + "kind": 5, + "arguments": [], + "target": { + "$id": "772", + "kind": 3, + "sv": "withUpdateableProperties", + "pos": 840, + "end": 864, + "flags": 1, + "parent": { + "$ref": "771" + }, + "_id": 178 + }, + "pos": 839, + "end": 864, + "flags": 0, + "parent": { + "$ref": "764" + } + } + ], + "properties": [ + { + "$id": "773", + "kind": 16, + "target": { + "$id": "774", + "kind": 45, + "target": { + "$id": "775", + "kind": 3, + "sv": "Source", + "pos": 907, + "end": 913, + "flags": 1, + "parent": { + "$ref": "774" + }, + "_id": 175 + }, + "arguments": [], + "pos": 907, + "end": 913, + "flags": 1, + "parent": { + "$ref": "773" + }, + "_id": 174 + }, + "pos": 904, + "end": 913, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "764" + } + } + ], + "bodyRange": { + "pos": 900, + "end": 916 + }, + "pos": 646, + "end": 916, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "776", + "kind": 51, + "content": [ + { + "$id": "777", + "kind": 52, + "text": "Represents a collection of updateable properties.", + "pos": 649, + "end": 709, + "flags": 0, + "parent": { + "$ref": "776" + } + } + ], + "tags": [ + { + "$id": "778", + "kind": 57, + "tagName": { + "$id": "779", + "kind": 3, + "sv": "template", + "pos": 710, + "end": 718, + "flags": 0, + "parent": { + "$ref": "778" + } + }, + "paramName": { + "$id": "780", + "kind": 3, + "sv": "Source", + "pos": 719, + "end": 725, + "flags": 0, + "parent": { + "$ref": "778" + } + }, + "content": [ + { + "$id": "781", + "kind": 52, + "text": "An object whose spread properties are all updateable.", + "pos": 726, + "end": 781, + "flags": 0, + "parent": { + "$ref": "778" + } + } + ], + "pos": 709, + "end": 781, + "flags": 0, + "parent": { + "$ref": "776" + } + } + ], + "pos": 646, + "end": 783, + "flags": 0, + "parent": { + "$ref": "764" + } + } + ], + "parent": { + "$ref": "732" + }, + "symbol": { + "declarations": [ + { + "$ref": "764" + } + ], + "name": "UpdateableProperties", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 45 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "782", + "kind": 13, + "id": { + "$id": "783", + "kind": 3, + "sv": "OmitProperties", + "pos": 1167, + "end": 1181, + "flags": 0, + "parent": { + "$ref": "782" + }, + "_id": 183 + }, + "templateParameters": [ + { + "$id": "784", + "kind": 46, + "id": { + "$id": "785", + "kind": 3, + "sv": "Source", + "pos": 1182, + "end": 1188, + "flags": 0, + "parent": { + "$ref": "784" + }, + "_id": 186 + }, + "pos": 1182, + "end": 1188, + "flags": 0, + "parent": { + "$ref": "782" + }, + "symbol": { + "declarations": [ + { + "$ref": "784" + } + ], + "name": "Source", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "782" + } + ], + "name": "OmitProperties", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 47 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 48 + } + }, + { + "$id": "786", + "kind": 46, + "id": { + "$id": "787", + "kind": 3, + "sv": "Keys", + "pos": 1190, + "end": 1194, + "flags": 0, + "parent": { + "$ref": "786" + }, + "_id": 203 + }, + "constraint": { + "$id": "788", + "kind": 45, + "target": { + "$id": "789", + "kind": 3, + "sv": "string", + "pos": 1203, + "end": 1209, + "flags": 1, + "parent": { + "$ref": "788" + }, + "_id": 202 + }, + "arguments": [], + "pos": 1203, + "end": 1209, + "flags": 1, + "parent": { + "$ref": "786" + }, + "_id": 201 + }, + "pos": 1190, + "end": 1209, + "flags": 0, + "parent": { + "$ref": "782" + }, + "symbol": { + "declarations": [ + { + "$ref": "786" + } + ], + "name": "Keys", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "782" + } + ], + "name": "OmitProperties", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 47 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 50 + } + } + ], + "templateParametersRange": { + "pos": 1181, + "end": 1210 + }, + "decorators": [ + { + "$id": "790", + "kind": 5, + "arguments": [ + { + "$id": "791", + "kind": 32, + "value": "The template for omitting properties.", + "pos": 1088, + "end": 1127, + "flags": 0, + "parent": { + "$ref": "790" + } + } + ], + "target": { + "$id": "792", + "kind": 3, + "sv": "doc", + "pos": 1084, + "end": 1087, + "flags": 1, + "parent": { + "$ref": "790" + }, + "_id": 187 + }, + "pos": 1083, + "end": 1128, + "flags": 0, + "parent": { + "$ref": "782" + } + }, + { + "$id": "793", + "kind": 5, + "arguments": [ + { + "$id": "794", + "kind": 45, + "target": { + "$id": "795", + "kind": 3, + "sv": "Keys", + "pos": 1155, + "end": 1159, + "flags": 1, + "parent": { + "$ref": "794" + }, + "_id": 200 + }, + "arguments": [], + "pos": 1155, + "end": 1159, + "flags": 1, + "parent": { + "$ref": "793" + }, + "_id": 199 + } + ], + "target": { + "$id": "796", + "kind": 3, + "sv": "withoutOmittedProperties", + "pos": 1130, + "end": 1154, + "flags": 1, + "parent": { + "$ref": "793" + }, + "_id": 188 + }, + "pos": 1129, + "end": 1160, + "flags": 0, + "parent": { + "$ref": "782" + } + } + ], + "properties": [ + { + "$id": "797", + "kind": 16, + "target": { + "$id": "798", + "kind": 45, + "target": { + "$id": "799", + "kind": 3, + "sv": "Source", + "pos": 1218, + "end": 1224, + "flags": 1, + "parent": { + "$ref": "798" + }, + "_id": 185 + }, + "arguments": [], + "pos": 1218, + "end": 1224, + "flags": 1, + "parent": { + "$ref": "797" + }, + "_id": 184 + }, + "pos": 1215, + "end": 1224, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "782" + } + } + ], + "bodyRange": { + "pos": 1211, + "end": 1227 + }, + "pos": 918, + "end": 1227, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "800", + "kind": 51, + "content": [ + { + "$id": "801", + "kind": 52, + "text": "Represents a collection of omitted properties.", + "pos": 921, + "end": 978, + "flags": 0, + "parent": { + "$ref": "800" + } + } + ], + "tags": [ + { + "$id": "802", + "kind": 57, + "tagName": { + "$id": "803", + "kind": 3, + "sv": "template", + "pos": 979, + "end": 987, + "flags": 0, + "parent": { + "$ref": "802" + } + }, + "paramName": { + "$id": "804", + "kind": 3, + "sv": "Source", + "pos": 988, + "end": 994, + "flags": 0, + "parent": { + "$ref": "802" + } + }, + "content": [ + { + "$id": "805", + "kind": 52, + "text": "An object whose properties are spread.", + "pos": 995, + "end": 1037, + "flags": 0, + "parent": { + "$ref": "802" + } + } + ], + "pos": 978, + "end": 1037, + "flags": 0, + "parent": { + "$ref": "800" + } + }, + { + "$id": "806", + "kind": 57, + "tagName": { + "$id": "807", + "kind": 3, + "sv": "template", + "pos": 1038, + "end": 1046, + "flags": 0, + "parent": { + "$ref": "806" + } + }, + "paramName": { + "$id": "808", + "kind": 3, + "sv": "Keys", + "pos": 1047, + "end": 1051, + "flags": 0, + "parent": { + "$ref": "806" + } + }, + "content": [ + { + "$id": "809", + "kind": 52, + "text": "The property keys to omit.", + "pos": 1052, + "end": 1080, + "flags": 0, + "parent": { + "$ref": "806" + } + } + ], + "pos": 1037, + "end": 1080, + "flags": 0, + "parent": { + "$ref": "800" + } + } + ], + "pos": 918, + "end": 1082, + "flags": 0, + "parent": { + "$ref": "782" + } + } + ], + "parent": { + "$ref": "732" + }, + "symbol": { + "declarations": [ + { + "$ref": "782" + } + ], + "name": "OmitProperties", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 47 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "810", + "kind": 13, + "id": { + "$id": "811", + "kind": 3, + "sv": "PickProperties", + "pos": 1506, + "end": 1520, + "flags": 0, + "parent": { + "$ref": "810" + }, + "_id": 204 + }, + "templateParameters": [ + { + "$id": "812", + "kind": 46, + "id": { + "$id": "813", + "kind": 3, + "sv": "Source", + "pos": 1521, + "end": 1527, + "flags": 0, + "parent": { + "$ref": "812" + }, + "_id": 207 + }, + "pos": 1521, + "end": 1527, + "flags": 0, + "parent": { + "$ref": "810" + }, + "symbol": { + "declarations": [ + { + "$ref": "812" + } + ], + "name": "Source", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "810" + } + ], + "name": "PickProperties", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 51 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 52 + } + }, + { + "$id": "814", + "kind": 46, + "id": { + "$id": "815", + "kind": 3, + "sv": "Keys", + "pos": 1529, + "end": 1533, + "flags": 0, + "parent": { + "$ref": "814" + }, + "_id": 223 + }, + "constraint": { + "$id": "816", + "kind": 45, + "target": { + "$id": "817", + "kind": 3, + "sv": "string", + "pos": 1542, + "end": 1548, + "flags": 1, + "parent": { + "$ref": "816" + }, + "_id": 222 + }, + "arguments": [], + "pos": 1542, + "end": 1548, + "flags": 1, + "parent": { + "$ref": "814" + }, + "_id": 221 + }, + "pos": 1529, + "end": 1548, + "flags": 0, + "parent": { + "$ref": "810" + }, + "symbol": { + "declarations": [ + { + "$ref": "814" + } + ], + "name": "Keys", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "810" + } + ], + "name": "PickProperties", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 51 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 53 + } + } + ], + "templateParametersRange": { + "pos": 1520, + "end": 1549 + }, + "decorators": [ + { + "$id": "818", + "kind": 5, + "arguments": [ + { + "$id": "819", + "kind": 32, + "value": "The template for picking properties.", + "pos": 1432, + "end": 1470, + "flags": 0, + "parent": { + "$ref": "818" + } + } + ], + "target": { + "$id": "820", + "kind": 3, + "sv": "doc", + "pos": 1428, + "end": 1431, + "flags": 1, + "parent": { + "$ref": "818" + }, + "_id": 208 + }, + "pos": 1427, + "end": 1471, + "flags": 0, + "parent": { + "$ref": "810" + } + }, + { + "$id": "821", + "kind": 5, + "arguments": [ + { + "$id": "822", + "kind": 45, + "target": { + "$id": "823", + "kind": 3, + "sv": "Keys", + "pos": 1494, + "end": 1498, + "flags": 1, + "parent": { + "$ref": "822" + }, + "_id": 220 + }, + "arguments": [], + "pos": 1494, + "end": 1498, + "flags": 1, + "parent": { + "$ref": "821" + }, + "_id": 219 + } + ], + "target": { + "$id": "824", + "kind": 3, + "sv": "withPickedProperties", + "pos": 1473, + "end": 1493, + "flags": 1, + "parent": { + "$ref": "821" + }, + "_id": 209 + }, + "pos": 1472, + "end": 1499, + "flags": 0, + "parent": { + "$ref": "810" + } + } + ], + "properties": [ + { + "$id": "825", + "kind": 16, + "target": { + "$id": "826", + "kind": 45, + "target": { + "$id": "827", + "kind": 3, + "sv": "Source", + "pos": 1557, + "end": 1563, + "flags": 1, + "parent": { + "$ref": "826" + }, + "_id": 206 + }, + "arguments": [], + "pos": 1557, + "end": 1563, + "flags": 1, + "parent": { + "$ref": "825" + }, + "_id": 205 + }, + "pos": 1554, + "end": 1563, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "810" + } + } + ], + "bodyRange": { + "pos": 1550, + "end": 1566 + }, + "pos": 1229, + "end": 1566, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "828", + "kind": 51, + "content": [ + { + "$id": "829", + "kind": 52, + "text": "Represents a collection of properties with only the specified keys included.", + "pos": 1232, + "end": 1319, + "flags": 0, + "parent": { + "$ref": "828" + } + } + ], + "tags": [ + { + "$id": "830", + "kind": 57, + "tagName": { + "$id": "831", + "kind": 3, + "sv": "template", + "pos": 1320, + "end": 1328, + "flags": 0, + "parent": { + "$ref": "830" + } + }, + "paramName": { + "$id": "832", + "kind": 3, + "sv": "Source", + "pos": 1329, + "end": 1335, + "flags": 0, + "parent": { + "$ref": "830" + } + }, + "content": [ + { + "$id": "833", + "kind": 52, + "text": "An object whose properties are spread.", + "pos": 1336, + "end": 1378, + "flags": 0, + "parent": { + "$ref": "830" + } + } + ], + "pos": 1319, + "end": 1378, + "flags": 0, + "parent": { + "$ref": "828" + } + }, + { + "$id": "834", + "kind": 57, + "tagName": { + "$id": "835", + "kind": 3, + "sv": "template", + "pos": 1379, + "end": 1387, + "flags": 0, + "parent": { + "$ref": "834" + } + }, + "paramName": { + "$id": "836", + "kind": 3, + "sv": "Keys", + "pos": 1388, + "end": 1392, + "flags": 0, + "parent": { + "$ref": "834" + } + }, + "content": [ + { + "$id": "837", + "kind": 52, + "text": "The property keys to include.", + "pos": 1393, + "end": 1424, + "flags": 0, + "parent": { + "$ref": "834" + } + } + ], + "pos": 1378, + "end": 1424, + "flags": 0, + "parent": { + "$ref": "828" + } + } + ], + "pos": 1229, + "end": 1426, + "flags": 0, + "parent": { + "$ref": "810" + } + } + ], + "parent": { + "$ref": "732" + }, + "symbol": { + "declarations": [ + { + "$ref": "810" + } + ], + "name": "PickProperties", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 51 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "838", + "kind": 13, + "id": { + "$id": "839", + "kind": 3, + "sv": "OmitDefaults", + "pos": 1755, + "end": 1767, + "flags": 0, + "parent": { + "$ref": "838" + }, + "_id": 224 + }, + "templateParameters": [ + { + "$id": "840", + "kind": 46, + "id": { + "$id": "841", + "kind": 3, + "sv": "Source", + "pos": 1768, + "end": 1774, + "flags": 0, + "parent": { + "$ref": "840" + }, + "_id": 227 + }, + "pos": 1768, + "end": 1774, + "flags": 0, + "parent": { + "$ref": "838" + }, + "symbol": { + "declarations": [ + { + "$ref": "840" + } + ], + "name": "Source", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "838" + } + ], + "name": "OmitDefaults", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 54 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 55 + } + } + ], + "templateParametersRange": { + "pos": 1767, + "end": 1775 + }, + "decorators": [ + { + "$id": "842", + "kind": 5, + "arguments": [], + "target": { + "$id": "843", + "kind": 3, + "sv": "withoutDefaultValues", + "pos": 1728, + "end": 1748, + "flags": 1, + "parent": { + "$ref": "842" + }, + "_id": 228 + }, + "pos": 1727, + "end": 1748, + "flags": 0, + "parent": { + "$ref": "838" + } + } + ], + "properties": [ + { + "$id": "844", + "kind": 16, + "target": { + "$id": "845", + "kind": 45, + "target": { + "$id": "846", + "kind": 3, + "sv": "Source", + "pos": 1783, + "end": 1789, + "flags": 1, + "parent": { + "$ref": "845" + }, + "_id": 226 + }, + "arguments": [], + "pos": 1783, + "end": 1789, + "flags": 1, + "parent": { + "$ref": "844" + }, + "_id": 225 + }, + "pos": 1780, + "end": 1789, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "838" + } + } + ], + "bodyRange": { + "pos": 1776, + "end": 1792 + }, + "pos": 1568, + "end": 1792, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "847", + "kind": 51, + "content": [ + { + "$id": "848", + "kind": 52, + "text": "Represents a collection of properties with default values omitted.", + "pos": 1571, + "end": 1648, + "flags": 0, + "parent": { + "$ref": "847" + } + } + ], + "tags": [ + { + "$id": "849", + "kind": 57, + "tagName": { + "$id": "850", + "kind": 3, + "sv": "template", + "pos": 1649, + "end": 1657, + "flags": 0, + "parent": { + "$ref": "849" + } + }, + "paramName": { + "$id": "851", + "kind": 3, + "sv": "Source", + "pos": 1658, + "end": 1664, + "flags": 0, + "parent": { + "$ref": "849" + } + }, + "content": [ + { + "$id": "852", + "kind": 52, + "text": "An object whose spread property defaults are all omitted.", + "pos": 1665, + "end": 1724, + "flags": 0, + "parent": { + "$ref": "849" + } + } + ], + "pos": 1648, + "end": 1724, + "flags": 0, + "parent": { + "$ref": "847" + } + } + ], + "pos": 1568, + "end": 1726, + "flags": 0, + "parent": { + "$ref": "838" + } + } + ], + "parent": { + "$ref": "732" + }, + "symbol": { + "declarations": [ + { + "$ref": "838" + } + ], + "name": "OmitDefaults", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 54 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "853", + "kind": 13, + "id": { + "$id": "854", + "kind": 3, + "sv": "DefaultKeyVisibility", + "pos": 2113, + "end": 2133, + "flags": 0, + "parent": { + "$ref": "853" + }, + "_id": 233 + }, + "templateParameters": [ + { + "$id": "855", + "kind": 46, + "id": { + "$id": "856", + "kind": 3, + "sv": "Source", + "pos": 2134, + "end": 2140, + "flags": 0, + "parent": { + "$ref": "855" + }, + "_id": 236 + }, + "pos": 2134, + "end": 2140, + "flags": 0, + "parent": { + "$ref": "853" + }, + "symbol": { + "declarations": [ + { + "$ref": "855" + } + ], + "name": "Source", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "853" + } + ], + "name": "DefaultKeyVisibility", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 56 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 57 + } + }, + { + "$id": "857", + "kind": 46, + "id": { + "$id": "858", + "kind": 3, + "sv": "Visibility", + "pos": 2142, + "end": 2152, + "flags": 0, + "parent": { + "$ref": "857" + }, + "_id": 248 + }, + "constraint": { + "$id": "859", + "kind": 44, + "target": { + "$id": "860", + "kind": 45, + "target": { + "$id": "861", + "kind": 7, + "base": { + "$id": "862", + "kind": 3, + "sv": "Reflection", + "pos": 2169, + "end": 2179, + "flags": 1, + "parent": { + "$ref": "861" + }, + "_id": 251 + }, + "id": { + "$id": "863", + "kind": 3, + "sv": "EnumMember", + "pos": 2180, + "end": 2190, + "flags": 1, + "parent": { + "$ref": "861" + }, + "_id": 252 + }, + "selector": ".", + "pos": 2169, + "end": 2190, + "flags": 1, + "parent": { + "$ref": "860" + }, + "_id": 250 + }, + "arguments": [], + "pos": 2169, + "end": 2190, + "flags": 1, + "parent": { + "$ref": "859" + }, + "_id": 249 + }, + "pos": 2161, + "end": 2190, + "flags": 0, + "parent": { + "$ref": "857" + } + }, + "pos": 2142, + "end": 2190, + "flags": 0, + "parent": { + "$ref": "853" + }, + "symbol": { + "declarations": [ + { + "$ref": "857" + } + ], + "name": "Visibility", + "flags": 1049600, + "parent": { + "declarations": [ + { + "$ref": "853" + } + ], + "name": "DefaultKeyVisibility", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 56 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 58 + } + } + ], + "templateParametersRange": { + "pos": 2133, + "end": 2191 + }, + "decorators": [ + { + "$id": "864", + "kind": 5, + "arguments": [ + { + "$id": "865", + "kind": 32, + "value": "The template for setting the default visibility of key properties.", + "pos": 1999, + "end": 2067, + "flags": 0, + "parent": { + "$ref": "864" + } + } + ], + "target": { + "$id": "866", + "kind": 3, + "sv": "doc", + "pos": 1995, + "end": 1998, + "flags": 1, + "parent": { + "$ref": "864" + }, + "_id": 237 + }, + "pos": 1994, + "end": 2068, + "flags": 0, + "parent": { + "$ref": "853" + } + }, + { + "$id": "867", + "kind": 5, + "arguments": [ + { + "$id": "868", + "kind": 45, + "target": { + "$id": "869", + "kind": 3, + "sv": "Visibility", + "pos": 2095, + "end": 2105, + "flags": 1, + "parent": { + "$ref": "868" + }, + "_id": 247 + }, + "arguments": [], + "pos": 2095, + "end": 2105, + "flags": 1, + "parent": { + "$ref": "867" + }, + "_id": 246 + } + ], + "target": { + "$id": "870", + "kind": 3, + "sv": "withDefaultKeyVisibility", + "pos": 2070, + "end": 2094, + "flags": 1, + "parent": { + "$ref": "867" + }, + "_id": 238 + }, + "pos": 2069, + "end": 2106, + "flags": 0, + "parent": { + "$ref": "853" + } + } + ], + "properties": [ + { + "$id": "871", + "kind": 16, + "target": { + "$id": "872", + "kind": 45, + "target": { + "$id": "873", + "kind": 3, + "sv": "Source", + "pos": 2199, + "end": 2205, + "flags": 1, + "parent": { + "$ref": "872" + }, + "_id": 235 + }, + "arguments": [], + "pos": 2199, + "end": 2205, + "flags": 1, + "parent": { + "$ref": "871" + }, + "_id": 234 + }, + "pos": 2196, + "end": 2205, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "853" + } + } + ], + "bodyRange": { + "pos": 2192, + "end": 2208 + }, + "pos": 1794, + "end": 2208, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "874", + "kind": 51, + "content": [ + { + "$id": "875", + "kind": 52, + "text": "Applies a visibility setting to a collection of properties.", + "pos": 1797, + "end": 1867, + "flags": 0, + "parent": { + "$ref": "874" + } + } + ], + "tags": [ + { + "$id": "876", + "kind": 57, + "tagName": { + "$id": "877", + "kind": 3, + "sv": "template", + "pos": 1868, + "end": 1876, + "flags": 0, + "parent": { + "$ref": "876" + } + }, + "paramName": { + "$id": "878", + "kind": 3, + "sv": "Source", + "pos": 1877, + "end": 1883, + "flags": 0, + "parent": { + "$ref": "876" + } + }, + "content": [ + { + "$id": "879", + "kind": 52, + "text": "An object whose properties are spread.", + "pos": 1884, + "end": 1926, + "flags": 0, + "parent": { + "$ref": "876" + } + } + ], + "pos": 1867, + "end": 1926, + "flags": 0, + "parent": { + "$ref": "874" + } + }, + { + "$id": "880", + "kind": 57, + "tagName": { + "$id": "881", + "kind": 3, + "sv": "template", + "pos": 1927, + "end": 1935, + "flags": 0, + "parent": { + "$ref": "880" + } + }, + "paramName": { + "$id": "882", + "kind": 3, + "sv": "Visibility", + "pos": 1936, + "end": 1946, + "flags": 0, + "parent": { + "$ref": "880" + } + }, + "content": [ + { + "$id": "883", + "kind": 52, + "text": "The visibility to apply to all properties.", + "pos": 1947, + "end": 1991, + "flags": 0, + "parent": { + "$ref": "880" + } + } + ], + "pos": 1926, + "end": 1991, + "flags": 0, + "parent": { + "$ref": "874" + } + } + ], + "pos": 1794, + "end": 1993, + "flags": 0, + "parent": { + "$ref": "853" + } + } + ], + "parent": { + "$ref": "732" + }, + "symbol": { + "declarations": [ + { + "$ref": "853" + } + ], + "name": "DefaultKeyVisibility", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 56 + }, + "locals": { + "duplicates": {} + } + } + ], + "file": { + "text": "namespace TypeSpec;\n\n/**\n * Represent a 32-bit unix timestamp datetime with 1s of granularity.\n * It measures time by the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970.\n */\n@encode(\"unixTimestamp\", int32)\nscalar unixTimestamp32 extends utcDateTime;\n\n/**\n * Represent a URL string as described by https://url.spec.whatwg.org/\n */\nscalar url extends string;\n\n/**\n * Represents a collection of optional properties.\n *\n * @template Source An object whose spread properties are all optional.\n */\n@doc(\"The template for adding optional properties.\")\n@withOptionalProperties\nmodel OptionalProperties {\n ...Source;\n}\n\n/**\n * Represents a collection of updateable properties.\n *\n * @template Source An object whose spread properties are all updateable.\n */\n@doc(\"The template for adding updateable properties.\")\n@withUpdateableProperties\nmodel UpdateableProperties {\n ...Source;\n}\n\n/**\n * Represents a collection of omitted properties.\n *\n * @template Source An object whose properties are spread.\n * @template Keys The property keys to omit.\n */\n@doc(\"The template for omitting properties.\")\n@withoutOmittedProperties(Keys)\nmodel OmitProperties {\n ...Source;\n}\n\n/**\n * Represents a collection of properties with only the specified keys included.\n *\n * @template Source An object whose properties are spread.\n * @template Keys The property keys to include.\n */\n@doc(\"The template for picking properties.\")\n@withPickedProperties(Keys)\nmodel PickProperties {\n ...Source;\n}\n\n/**\n * Represents a collection of properties with default values omitted.\n *\n * @template Source An object whose spread property defaults are all omitted.\n */\n@withoutDefaultValues\nmodel OmitDefaults {\n ...Source;\n}\n\n/**\n * Applies a visibility setting to a collection of properties.\n *\n * @template Source An object whose properties are spread.\n * @template Visibility The visibility to apply to all properties.\n */\n@doc(\"The template for setting the default visibility of key properties.\")\n@withDefaultKeyVisibility(Visibility)\nmodel DefaultKeyVisibility {\n ...Source;\n}\n", + "path": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/compiler/lib/std/types.tsp" + }, + "id": { + "$id": "884", + "kind": 3, + "sv": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/compiler/lib/std/types.tsp", + "pos": 0, + "end": 0, + "flags": 8, + "parent": { + "$ref": "732" + } + }, + "namespaces": [ + { + "$ref": "733" + } + ], + "usings": [], + "locals": { + "duplicates": {} + }, + "inScopeNamespaces": [ + { + "$ref": "733" + } + ], + "parseDiagnostics": [], + "comments": [], + "printable": true, + "parseOptions": {}, + "pos": 0, + "end": 2208, + "flags": 0, + "symbol": { + "declarations": [], + "node": { + "$ref": "732" + }, + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/compiler/lib/std/types.tsp", + "exports": { + "duplicates": {} + }, + "flags": 32768, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "symbol": { + "declarations": [ + { + "$ref": "726" + } + ], + "name": "url", + "members": { + "duplicates": {} + }, + "flags": 1048580, + "parent": { + "declarations": [ + { + "$ref": "733" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 40 + }, + "locals": { + "duplicates": {} + } + }, + "constructors": {}, + "namespace": { + "$ref": "719" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$id": "885", + "kind": "String", + "value": "Represent a URL string as described by https://url.spec.whatwg.org/", + "isFinished": true, + "entityKind": "Type" + }, + "jsValue": "Represent a URL string as described by https://url.spec.whatwg.org/" + } + ] + } + ], + "derivedScalars": [], + "isFinished": true, + "entityKind": "Type", + "baseScalar": { + "$ref": "463" + } + }, + { + "$id": "886", + "kind": "Scalar", + "name": "LinkHeader", + "node": { + "$ref": "268" + }, + "constructors": {}, + "namespace": { + "$id": "887", + "kind": "Namespace", + "name": "Http", + "namespace": { + "$ref": "719" + }, + "node": { + "$id": "888", + "kind": 60, + "id": { + "$id": "889", + "kind": 3, + "sv": "Http", + "pos": 0, + "end": 0, + "flags": 0 + }, + "pos": 0, + "end": 0, + "parent": { + "$id": "890", + "kind": 1, + "id": { + "$id": "891", + "kind": 3, + "sv": "", + "pos": 0, + "end": 0, + "flags": 8 + }, + "esmExports": { + "$decorators": { + "TypeSpec.Http": {}, + "TypeSpec.Http.Private": {} + }, + "$lib": { + "name": "@typespec/http", + "diagnostics": { + "http-verb-duplicate": { + "severity": "error", + "messages": {} + }, + "missing-uri-param": { + "severity": "error", + "messages": {} + }, + "incompatible-uri-param": { + "severity": "error", + "messages": {} + }, + "use-uri-template": { + "severity": "error", + "messages": {} + }, + "double-slash": { + "severity": "warning", + "messages": {} + }, + "missing-server-param": { + "severity": "error", + "messages": {} + }, + "duplicate-body": { + "severity": "error", + "messages": { + "default": "Operation has multiple @body parameters declared", + "duplicateUnannotated": "Operation has multiple unannotated parameters. There can only be one representing the body", + "bodyAndUnannotated": "Operation has a @body and an unannotated parameter. There can only be one representing the body" + } + }, + "duplicate-route-decorator": { + "severity": "error", + "messages": { + "namespace": "@route was defined twice on this namespace and has different values." + } + }, + "operation-param-duplicate-type": { + "severity": "error", + "messages": {} + }, + "duplicate-operation": { + "severity": "error", + "messages": {} + }, + "multiple-status-codes": { + "severity": "error", + "messages": { + "default": "Multiple `@statusCode` decorators defined for this operation response." + } + }, + "status-code-invalid": { + "severity": "error", + "messages": { + "default": "statusCode value must be a numeric or string literal or union of numeric or string literals", + "value": "statusCode value must be a three digit code between 100 and 599" + } + }, + "content-type-string": { + "severity": "error", + "messages": { + "default": "contentType parameter must be a string literal or union of string literals" + } + }, + "content-type-ignored": { + "severity": "warning", + "messages": { + "default": "`Content-Type` header ignored because there is no body." + } + }, + "metadata-ignored": { + "severity": "warning", + "messages": {} + }, + "response-cookie-not-supported": { + "severity": "warning", + "messages": {} + }, + "no-service-found": { + "severity": "warning", + "messages": {} + }, + "invalid-type-for-auth": { + "severity": "error", + "messages": {} + }, + "shared-inconsistency": { + "severity": "error", + "messages": {} + }, + "multipart-invalid-content-type": { + "severity": "error", + "messages": {} + }, + "multipart-model": { + "severity": "error", + "messages": { + "default": "Multipart request body must be a model or a tuple of http parts." + } + }, + "no-implicit-multipart": { + "severity": "error", + "messages": { + "default": "Using multipart payloads requires the use of @multipartBody and HttpPart models." + } + }, + "multipart-part": { + "severity": "error", + "messages": { + "default": "Expect item to be an HttpPart model." + } + }, + "multipart-nested": { + "severity": "error", + "messages": { + "default": "Cannot use @multipartBody inside of an HttpPart" + } + }, + "http-file-extra-property": { + "severity": "error", + "messages": {} + }, + "http-file-disallowed-metadata": { + "severity": "error", + "messages": {} + }, + "formdata-no-part-name": { + "severity": "error", + "messages": { + "default": "Part used in multipart/form-data must have a name." + } + }, + "http-file-structured": { + "severity": "warning", + "messages": { + "union": "An HTTP File in a union is serialized as a structured model instead of being treated as the contents of a file. Declare a separate operation using `@sharedRoute` that has only the File model as the body type to treat it as a file, or suppress this warning if you intend to serialize the File as a model." + } + }, + "http-file-content-type-not-string": { + "severity": "error", + "messages": {} + }, + "http-file-contents-not-scalar": { + "severity": "error", + "messages": {} + }, + "patch-implicit-optional": { + "severity": "warning", + "messages": { + "default": "Patch operation stopped applying an implicit optional transform to the body in 1.0.0. Use @patch(#{implicitOptionality: true}) to restore the old behavior." + } + }, + "merge-patch-contains-null": { + "severity": "error", + "messages": { + "default": "Cannot convert model to a merge-patch compatible shape because it contains the 'null' intrinsic type." + } + }, + "merge-patch-content-type": { + "severity": "warning", + "messages": {} + }, + "merge-patch-contains-metadata": { + "severity": "error", + "messages": {} + } + }, + "state": { + "authentication": { + "description": "State for the @auth decorator" + }, + "header": { + "description": "State for the @header decorator" + }, + "cookie": { + "description": "State for the @cookie decorator" + }, + "query": { + "description": "State for the @query decorator" + }, + "path": { + "description": "State for the @path decorator" + }, + "body": { + "description": "State for the @body decorator" + }, + "bodyRoot": { + "description": "State for the @bodyRoot decorator" + }, + "bodyIgnore": { + "description": "State for the @bodyIgnore decorator" + }, + "multipartBody": { + "description": "State for the @bodyIgnore decorator" + }, + "statusCode": { + "description": "State for the @statusCode decorator" + }, + "verbs": { + "description": "State for the verb decorators (@get, @post, @put, etc.)" + }, + "patchOptions": { + "description": "State for the options of the @patch decorator" + }, + "servers": { + "description": "State for the @server decorator" + }, + "includeInapplicableMetadataInPayload": { + "description": "State for the @includeInapplicableMetadataInPayload decorator" + }, + "externalInterfaces": {}, + "routeProducer": {}, + "routes": {}, + "sharedRoutes": { + "description": "State for the @sharedRoute decorator" + }, + "routeOptions": {}, + "file": { + "description": "State for the @Private.file decorator" + }, + "httpPart": { + "description": "State for the @Private.httpPart decorator" + }, + "mergePatchModel": { + "description": "State marking mergePatch models " + }, + "mergePatchProperty": { + "description": "State marking merge path model property source" + }, + "mergePatchPropertyOptions": { + "description": "Override options for a property in a merge patch transform" + } + }, + "stateKeys": {} + } + }, + "file": { + "text": "", + "path": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http/dist/src/tsp-index.js" + }, + "namespaceSymbols": [], + "symbol": { + "declarations": [ + { + "$ref": "890" + } + ], + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http/dist/src/tsp-index.js", + "exports": { + "duplicates": {} + }, + "flags": 1081344, + "metatypeMembers": { + "duplicates": {} + } + }, + "pos": 0, + "end": 0, + "flags": 0 + }, + "flags": 0, + "symbol": { + "declarations": [ + { + "$ref": "888" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$id": "892", + "kind": 60, + "id": { + "$id": "893", + "kind": 3, + "sv": "TypeSpec", + "pos": 0, + "end": 0, + "flags": 0 + }, + "pos": 0, + "end": 0, + "parent": { + "$ref": "890" + }, + "flags": 0 + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "890" + } + ], + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http/dist/src/tsp-index.js", + "exports": { + "duplicates": {} + }, + "flags": 1081344, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "models": {}, + "scalars": {}, + "operations": {}, + "namespaces": {}, + "interfaces": {}, + "unions": {}, + "enums": {}, + "decoratorDeclarations": {}, + "functionDeclarations": {}, + "decorators": [], + "isFinished": true, + "entityKind": "Type" + }, + "decorators": [], + "derivedScalars": [], + "isFinished": false, + "entityKind": "Type", + "baseScalar": { + "$ref": "463" + } + } + ], + "isFinished": true, + "entityKind": "Type" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$id": "894", + "kind": "String", + "value": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.", + "isFinished": true, + "entityKind": "Type" + }, + "jsValue": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators." + } + ] + }, + { + "definition": { + "$id": "895", + "kind": "Decorator", + "name": "@summary", + "namespace": { + "$ref": "719" + }, + "node": { + "$id": "896", + "kind": 25, + "modifiers": [ + { + "$id": "897", + "kind": 40, + "pos": 263, + "end": 269, + "flags": 0, + "parent": { + "$ref": "896" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "898", + "kind": 3, + "sv": "summary", + "pos": 274, + "end": 281, + "flags": 0, + "parent": { + "$ref": "896" + }, + "_id": 254 + }, + "target": { + "$id": "899", + "kind": 27, + "id": { + "$id": "900", + "kind": 3, + "sv": "target", + "pos": 282, + "end": 288, + "flags": 0, + "parent": { + "$ref": "899" + }, + "_id": 255 + }, + "type": { + "$id": "901", + "kind": 43, + "pos": 290, + "end": 297, + "flags": 0, + "parent": { + "$ref": "899" + } + }, + "optional": false, + "rest": false, + "pos": 282, + "end": 297, + "flags": 0, + "parent": { + "$ref": "896" + }, + "symbol": { + "declarations": [ + { + "$ref": "899" + } + ], + "name": "target", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$id": "902", + "kind": 8, + "decorators": [], + "docs": [], + "id": { + "$id": "903", + "kind": 3, + "sv": "TypeSpec", + "pos": 81, + "end": 89, + "flags": 0, + "parent": { + "$ref": "902" + }, + "_id": 253 + }, + "locals": { + "duplicates": {} + }, + "directives": [], + "pos": 71, + "end": 90, + "flags": 0, + "parent": { + "$id": "904", + "kind": 0, + "statements": [ + { + "$id": "905", + "kind": 2, + "path": { + "$id": "906", + "kind": 32, + "value": "../../dist/src/lib/tsp-index.js", + "pos": 7, + "end": 40, + "flags": 0, + "parent": { + "$ref": "905" + } + }, + "pos": 0, + "end": 41, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "904" + } + }, + { + "$id": "907", + "kind": 9, + "name": { + "$id": "908", + "kind": 7, + "base": { + "$id": "909", + "kind": 3, + "sv": "TypeSpec", + "pos": 49, + "end": 57, + "flags": 1, + "parent": { + "$ref": "908" + }, + "_id": 1 + }, + "id": { + "$id": "910", + "kind": 3, + "sv": "Reflection", + "pos": 58, + "end": 68, + "flags": 1, + "parent": { + "$ref": "908" + }, + "_id": 2 + }, + "selector": ".", + "pos": 49, + "end": 68, + "flags": 1, + "parent": { + "$ref": "907" + }, + "_id": 0 + }, + "pos": 43, + "end": 69, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "904" + } + }, + { + "$ref": "902" + }, + { + "$ref": "896" + }, + { + "$id": "911", + "kind": 25, + "modifiers": [ + { + "$id": "912", + "kind": 40, + "pos": 642, + "end": 648, + "flags": 0, + "parent": { + "$ref": "911" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "913", + "kind": 3, + "sv": "doc", + "pos": 653, + "end": 656, + "flags": 0, + "parent": { + "$ref": "911" + }, + "_id": 161 + }, + "target": { + "$id": "914", + "kind": 27, + "id": { + "$id": "915", + "kind": 3, + "sv": "target", + "pos": 657, + "end": 663, + "flags": 0, + "parent": { + "$ref": "914" + }, + "_id": 162 + }, + "type": { + "$id": "916", + "kind": 43, + "pos": 665, + "end": 672, + "flags": 0, + "parent": { + "$ref": "914" + } + }, + "optional": false, + "rest": false, + "pos": 657, + "end": 672, + "flags": 0, + "parent": { + "$ref": "911" + }, + "symbol": { + "declarations": [ + { + "$ref": "914" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 175 + } + }, + "parameters": [ + { + "$id": "917", + "kind": 27, + "id": { + "$id": "918", + "kind": 3, + "sv": "doc", + "pos": 674, + "end": 677, + "flags": 0, + "parent": { + "$ref": "917" + }, + "_id": 163 + }, + "type": { + "$id": "919", + "kind": 44, + "target": { + "$id": "920", + "kind": 45, + "target": { + "$id": "921", + "kind": 3, + "sv": "string", + "pos": 687, + "end": 693, + "flags": 1, + "parent": { + "$ref": "920" + }, + "_id": 165 + }, + "arguments": [], + "pos": 687, + "end": 693, + "flags": 1, + "parent": { + "$ref": "919" + }, + "_id": 164 + }, + "pos": 679, + "end": 693, + "flags": 0, + "parent": { + "$ref": "917" + } + }, + "optional": false, + "rest": false, + "pos": 674, + "end": 693, + "flags": 0, + "parent": { + "$ref": "911" + }, + "symbol": { + "declarations": [ + { + "$ref": "917" + } + ], + "name": "doc", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 176 + } + }, + { + "$id": "922", + "kind": 27, + "id": { + "$id": "923", + "kind": 3, + "sv": "formatArgs", + "pos": 695, + "end": 705, + "flags": 0, + "parent": { + "$ref": "922" + }, + "_id": 166 + }, + "type": { + "$id": "924", + "kind": 14, + "properties": [], + "bodyRange": { + "pos": 708, + "end": 710 + }, + "pos": 708, + "end": 710, + "flags": 0, + "parent": { + "$ref": "922" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "924" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "metatypeMembers": { + "duplicates": {} + }, + "id": 43 + } + }, + "optional": true, + "rest": false, + "pos": 695, + "end": 710, + "flags": 0, + "parent": { + "$ref": "911" + }, + "symbol": { + "declarations": [ + { + "$ref": "922" + } + ], + "name": "formatArgs", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 177 + } + } + ], + "pos": 326, + "end": 712, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "925", + "kind": 51, + "content": [ + { + "$id": "926", + "kind": 52, + "text": "Attach a documentation string. Content support CommonMark markdown formatting.", + "pos": 329, + "end": 415, + "flags": 0, + "parent": { + "$ref": "925" + } + } + ], + "tags": [ + { + "$id": "927", + "kind": 53, + "tagName": { + "$id": "928", + "kind": 3, + "sv": "param", + "pos": 416, + "end": 421, + "flags": 0, + "parent": { + "$ref": "927" + } + }, + "paramName": { + "$id": "929", + "kind": 3, + "sv": "doc", + "pos": 422, + "end": 425, + "flags": 0, + "parent": { + "$ref": "927" + } + }, + "content": [ + { + "$id": "930", + "kind": 52, + "text": "Documentation string", + "pos": 426, + "end": 450, + "flags": 0, + "parent": { + "$ref": "927" + } + } + ], + "pos": 415, + "end": 450, + "flags": 0, + "parent": { + "$ref": "925" + } + }, + { + "$id": "931", + "kind": 53, + "tagName": { + "$id": "932", + "kind": 3, + "sv": "param", + "pos": 451, + "end": 456, + "flags": 0, + "parent": { + "$ref": "931" + } + }, + "paramName": { + "$id": "933", + "kind": 3, + "sv": "formatArgs", + "pos": 457, + "end": 467, + "flags": 0, + "parent": { + "$ref": "931" + } + }, + "content": [ + { + "$id": "934", + "kind": 52, + "text": "Record with key value pair that can be interpolated in the doc.", + "pos": 468, + "end": 538, + "flags": 0, + "parent": { + "$ref": "931" + } + } + ], + "pos": 450, + "end": 538, + "flags": 0, + "parent": { + "$ref": "925" + } + }, + { + "$id": "935", + "kind": 58, + "tagName": { + "$id": "936", + "kind": 3, + "sv": "example", + "pos": 539, + "end": 546, + "flags": 0, + "parent": { + "$ref": "935" + } + }, + "content": [ + { + "$id": "937", + "kind": 52, + "text": "```typespec\n@doc(\"Represent a Pet available in the PetStore\")\nmodel Pet {}\n```", + "pos": 546, + "end": 639, + "flags": 0, + "parent": { + "$ref": "935" + } + } + ], + "pos": 538, + "end": 639, + "flags": 0, + "parent": { + "$ref": "925" + } + } + ], + "pos": 326, + "end": 641, + "flags": 0, + "parent": { + "$ref": "911" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "911" + } + ], + "name": "@doc", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "938", + "kind": 25, + "modifiers": [ + { + "$id": "939", + "kind": 40, + "pos": 1073, + "end": 1079, + "flags": 0, + "parent": { + "$ref": "938" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "940", + "kind": 3, + "sv": "returnsDoc", + "pos": 1084, + "end": 1094, + "flags": 0, + "parent": { + "$ref": "938" + }, + "_id": 259 + }, + "target": { + "$id": "941", + "kind": 27, + "id": { + "$id": "942", + "kind": 3, + "sv": "target", + "pos": 1095, + "end": 1101, + "flags": 0, + "parent": { + "$ref": "941" + }, + "_id": 260 + }, + "type": { + "$id": "943", + "kind": 45, + "target": { + "$id": "944", + "kind": 3, + "sv": "Operation", + "pos": 1103, + "end": 1112, + "flags": 1, + "parent": { + "$ref": "943" + }, + "_id": 262 + }, + "arguments": [], + "pos": 1103, + "end": 1112, + "flags": 1, + "parent": { + "$ref": "941" + }, + "_id": 261 + }, + "optional": false, + "rest": false, + "pos": 1095, + "end": 1112, + "flags": 0, + "parent": { + "$ref": "938" + }, + "symbol": { + "declarations": [ + { + "$ref": "941" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 239 + } + }, + "parameters": [ + { + "$id": "945", + "kind": 27, + "id": { + "$id": "946", + "kind": 3, + "sv": "doc", + "pos": 1114, + "end": 1117, + "flags": 0, + "parent": { + "$ref": "945" + }, + "_id": 264 + }, + "type": { + "$id": "947", + "kind": 44, + "target": { + "$id": "948", + "kind": 45, + "target": { + "$id": "949", + "kind": 3, + "sv": "string", + "pos": 1127, + "end": 1133, + "flags": 1, + "parent": { + "$ref": "948" + }, + "_id": 266 + }, + "arguments": [], + "pos": 1127, + "end": 1133, + "flags": 1, + "parent": { + "$ref": "947" + }, + "_id": 265 + }, + "pos": 1119, + "end": 1133, + "flags": 0, + "parent": { + "$ref": "945" + } + }, + "optional": false, + "rest": false, + "pos": 1114, + "end": 1133, + "flags": 0, + "parent": { + "$ref": "938" + }, + "symbol": { + "declarations": [ + { + "$ref": "945" + } + ], + "name": "doc", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 240 + } + } + ], + "pos": 714, + "end": 1135, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "950", + "kind": 51, + "content": [ + { + "$id": "951", + "kind": 52, + "text": "Attach a documentation string to describe the successful return types of an operation.\nIf an operation returns a union of success and errors it only describes the success. See `@errorsDoc` for error documentation.", + "pos": 717, + "end": 941, + "flags": 0, + "parent": { + "$ref": "950" + } + } + ], + "tags": [ + { + "$id": "952", + "kind": 53, + "tagName": { + "$id": "953", + "kind": 3, + "sv": "param", + "pos": 942, + "end": 947, + "flags": 0, + "parent": { + "$ref": "952" + } + }, + "paramName": { + "$id": "954", + "kind": 3, + "sv": "doc", + "pos": 948, + "end": 951, + "flags": 0, + "parent": { + "$ref": "952" + } + }, + "content": [ + { + "$id": "955", + "kind": 52, + "text": "Documentation string", + "pos": 952, + "end": 979, + "flags": 0, + "parent": { + "$ref": "952" + } + } + ], + "pos": 941, + "end": 979, + "flags": 0, + "parent": { + "$ref": "950" + } + }, + { + "$id": "956", + "kind": 58, + "tagName": { + "$id": "957", + "kind": 3, + "sv": "example", + "pos": 980, + "end": 987, + "flags": 0, + "parent": { + "$ref": "956" + } + }, + "content": [ + { + "$id": "958", + "kind": 52, + "text": "```typespec\n@returnsDoc(\"Returns doc\")\nop get(): Pet | NotFound;\n```", + "pos": 987, + "end": 1070, + "flags": 0, + "parent": { + "$ref": "956" + } + } + ], + "pos": 979, + "end": 1070, + "flags": 0, + "parent": { + "$ref": "950" + } + } + ], + "pos": 714, + "end": 1072, + "flags": 0, + "parent": { + "$ref": "938" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "938" + } + ], + "name": "@returnsDoc", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "959", + "kind": 25, + "modifiers": [ + { + "$id": "960", + "kind": 40, + "pos": 1491, + "end": 1497, + "flags": 0, + "parent": { + "$ref": "959" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "961", + "kind": 3, + "sv": "errorsDoc", + "pos": 1502, + "end": 1511, + "flags": 0, + "parent": { + "$ref": "959" + }, + "_id": 267 + }, + "target": { + "$id": "962", + "kind": 27, + "id": { + "$id": "963", + "kind": 3, + "sv": "target", + "pos": 1512, + "end": 1518, + "flags": 0, + "parent": { + "$ref": "962" + }, + "_id": 268 + }, + "type": { + "$id": "964", + "kind": 45, + "target": { + "$id": "965", + "kind": 3, + "sv": "Operation", + "pos": 1520, + "end": 1529, + "flags": 1, + "parent": { + "$ref": "964" + }, + "_id": 270 + }, + "arguments": [], + "pos": 1520, + "end": 1529, + "flags": 1, + "parent": { + "$ref": "962" + }, + "_id": 269 + }, + "optional": false, + "rest": false, + "pos": 1512, + "end": 1529, + "flags": 0, + "parent": { + "$ref": "959" + }, + "symbol": { + "declarations": [ + { + "$ref": "962" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 242 + } + }, + "parameters": [ + { + "$id": "966", + "kind": 27, + "id": { + "$id": "967", + "kind": 3, + "sv": "doc", + "pos": 1531, + "end": 1534, + "flags": 0, + "parent": { + "$ref": "966" + }, + "_id": 271 + }, + "type": { + "$id": "968", + "kind": 44, + "target": { + "$id": "969", + "kind": 45, + "target": { + "$id": "970", + "kind": 3, + "sv": "string", + "pos": 1544, + "end": 1550, + "flags": 1, + "parent": { + "$ref": "969" + }, + "_id": 273 + }, + "arguments": [], + "pos": 1544, + "end": 1550, + "flags": 1, + "parent": { + "$ref": "968" + }, + "_id": 272 + }, + "pos": 1536, + "end": 1550, + "flags": 0, + "parent": { + "$ref": "966" + } + }, + "optional": false, + "rest": false, + "pos": 1531, + "end": 1550, + "flags": 0, + "parent": { + "$ref": "959" + }, + "symbol": { + "declarations": [ + { + "$ref": "966" + } + ], + "name": "doc", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 243 + } + } + ], + "pos": 1137, + "end": 1552, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "971", + "kind": 51, + "content": [ + { + "$id": "972", + "kind": 52, + "text": "Attach a documentation string to describe the error return types of an operation.\nIf an operation returns a union of success and errors it only describes the errors. See `@returnsDoc` for success documentation.", + "pos": 1140, + "end": 1361, + "flags": 0, + "parent": { + "$ref": "971" + } + } + ], + "tags": [ + { + "$id": "973", + "kind": 53, + "tagName": { + "$id": "974", + "kind": 3, + "sv": "param", + "pos": 1362, + "end": 1367, + "flags": 0, + "parent": { + "$ref": "973" + } + }, + "paramName": { + "$id": "975", + "kind": 3, + "sv": "doc", + "pos": 1368, + "end": 1371, + "flags": 0, + "parent": { + "$ref": "973" + } + }, + "content": [ + { + "$id": "976", + "kind": 52, + "text": "Documentation string", + "pos": 1372, + "end": 1399, + "flags": 0, + "parent": { + "$ref": "973" + } + } + ], + "pos": 1361, + "end": 1399, + "flags": 0, + "parent": { + "$ref": "971" + } + }, + { + "$id": "977", + "kind": 58, + "tagName": { + "$id": "978", + "kind": 3, + "sv": "example", + "pos": 1400, + "end": 1407, + "flags": 0, + "parent": { + "$ref": "977" + } + }, + "content": [ + { + "$id": "979", + "kind": 52, + "text": "```typespec\n@errorsDoc(\"Errors doc\")\nop get(): Pet | NotFound;\n```", + "pos": 1407, + "end": 1488, + "flags": 0, + "parent": { + "$ref": "977" + } + } + ], + "pos": 1399, + "end": 1488, + "flags": 0, + "parent": { + "$ref": "971" + } + } + ], + "pos": 1137, + "end": 1490, + "flags": 0, + "parent": { + "$ref": "959" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "959" + } + ], + "name": "@errorsDoc", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "980", + "kind": 13, + "id": { + "$id": "981", + "kind": 3, + "sv": "ServiceOptions", + "pos": 1588, + "end": 1602, + "flags": 0, + "parent": { + "$ref": "980" + }, + "_id": 274 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "982", + "kind": 15, + "id": { + "$id": "983", + "kind": 3, + "sv": "title", + "pos": 1646, + "end": 1651, + "flags": 0, + "parent": { + "$ref": "982" + }, + "_id": 275 + }, + "decorators": [], + "value": { + "$id": "984", + "kind": 45, + "target": { + "$id": "985", + "kind": 3, + "sv": "string", + "pos": 1654, + "end": 1660, + "flags": 1, + "parent": { + "$ref": "984" + }, + "_id": 277 + }, + "arguments": [], + "pos": 1654, + "end": 1660, + "flags": 1, + "parent": { + "$ref": "982" + }, + "_id": 276 + }, + "optional": true, + "pos": 1607, + "end": 1660, + "flags": 0, + "docs": [ + { + "$id": "986", + "kind": 51, + "content": [ + { + "$id": "987", + "kind": 52, + "text": "Title of the service.", + "pos": 1610, + "end": 1641, + "flags": 0, + "parent": { + "$ref": "986" + } + } + ], + "tags": [], + "pos": 1607, + "end": 1643, + "flags": 0, + "parent": { + "$ref": "982" + } + } + ], + "directives": [], + "parent": { + "$ref": "980" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "982" + }, + "name": "title", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "980" + } + ], + "name": "ServiceOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 60 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 1603, + "end": 1663 + }, + "pos": 1554, + "end": 1663, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "988", + "kind": 51, + "content": [ + { + "$id": "989", + "kind": 52, + "text": "Service options.", + "pos": 1557, + "end": 1579, + "flags": 0, + "parent": { + "$ref": "988" + } + } + ], + "tags": [], + "pos": 1554, + "end": 1581, + "flags": 0, + "parent": { + "$ref": "980" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "980" + } + ], + "name": "ServiceOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 60 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "990", + "kind": 25, + "modifiers": [ + { + "$id": "991", + "kind": 40, + "pos": 2001, + "end": 2007, + "flags": 0, + "parent": { + "$ref": "990" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "992", + "kind": 3, + "sv": "service", + "pos": 2012, + "end": 2019, + "flags": 0, + "parent": { + "$ref": "990" + }, + "_id": 278 + }, + "target": { + "$id": "993", + "kind": 27, + "id": { + "$id": "994", + "kind": 3, + "sv": "target", + "pos": 2020, + "end": 2026, + "flags": 0, + "parent": { + "$ref": "993" + }, + "_id": 279 + }, + "type": { + "$id": "995", + "kind": 45, + "target": { + "$id": "996", + "kind": 3, + "sv": "Namespace", + "pos": 2028, + "end": 2037, + "flags": 1, + "parent": { + "$ref": "995" + }, + "_id": 281 + }, + "arguments": [], + "pos": 2028, + "end": 2037, + "flags": 1, + "parent": { + "$ref": "993" + }, + "_id": 280 + }, + "optional": false, + "rest": false, + "pos": 2020, + "end": 2037, + "flags": 0, + "parent": { + "$ref": "990" + }, + "symbol": { + "declarations": [ + { + "$ref": "993" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 246 + } + }, + "parameters": [ + { + "$id": "997", + "kind": 27, + "id": { + "$id": "998", + "kind": 3, + "sv": "options", + "pos": 2039, + "end": 2046, + "flags": 0, + "parent": { + "$ref": "997" + }, + "_id": 283 + }, + "type": { + "$id": "999", + "kind": 44, + "target": { + "$id": "1000", + "kind": 45, + "target": { + "$id": "1001", + "kind": 3, + "sv": "ServiceOptions", + "pos": 2057, + "end": 2071, + "flags": 1, + "parent": { + "$ref": "1000" + }, + "_id": 285 + }, + "arguments": [], + "pos": 2057, + "end": 2071, + "flags": 1, + "parent": { + "$ref": "999" + }, + "_id": 284 + }, + "pos": 2049, + "end": 2071, + "flags": 0, + "parent": { + "$ref": "997" + } + }, + "optional": true, + "rest": false, + "pos": 2039, + "end": 2071, + "flags": 0, + "parent": { + "$ref": "990" + }, + "symbol": { + "declarations": [ + { + "$ref": "997" + } + ], + "name": "options", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 247 + } + } + ], + "pos": 1665, + "end": 2073, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1002", + "kind": 51, + "content": [ + { + "$id": "1003", + "kind": 52, + "text": "Mark this namespace as describing a service and configure service properties.", + "pos": 1668, + "end": 1753, + "flags": 0, + "parent": { + "$ref": "1002" + } + } + ], + "tags": [ + { + "$id": "1004", + "kind": 53, + "tagName": { + "$id": "1005", + "kind": 3, + "sv": "param", + "pos": 1754, + "end": 1759, + "flags": 0, + "parent": { + "$ref": "1004" + } + }, + "paramName": { + "$id": "1006", + "kind": 3, + "sv": "options", + "pos": 1760, + "end": 1767, + "flags": 0, + "parent": { + "$ref": "1004" + } + }, + "content": [ + { + "$id": "1007", + "kind": 52, + "text": "Optional configuration for the service.", + "pos": 1768, + "end": 1814, + "flags": 0, + "parent": { + "$ref": "1004" + } + } + ], + "pos": 1753, + "end": 1814, + "flags": 0, + "parent": { + "$ref": "1002" + } + }, + { + "$id": "1008", + "kind": 58, + "tagName": { + "$id": "1009", + "kind": 3, + "sv": "example", + "pos": 1815, + "end": 1822, + "flags": 0, + "parent": { + "$ref": "1008" + } + }, + "content": [ + { + "$id": "1010", + "kind": 52, + "text": "```typespec\n@service\nnamespace PetStore;\n```", + "pos": 1822, + "end": 1886, + "flags": 0, + "parent": { + "$ref": "1008" + } + } + ], + "pos": 1814, + "end": 1886, + "flags": 0, + "parent": { + "$ref": "1002" + } + }, + { + "$id": "1011", + "kind": 58, + "tagName": { + "$id": "1012", + "kind": 3, + "sv": "example", + "pos": 1887, + "end": 1894, + "flags": 0, + "parent": { + "$ref": "1011" + } + }, + "content": [ + { + "$id": "1013", + "kind": 52, + "text": "Setting service title\n```typespec\n@service(#{title: \"Pet store\"})\nnamespace PetStore;\n```", + "pos": 1894, + "end": 1998, + "flags": 0, + "parent": { + "$ref": "1011" + } + } + ], + "pos": 1886, + "end": 1998, + "flags": 0, + "parent": { + "$ref": "1002" + } + } + ], + "pos": 1665, + "end": 2000, + "flags": 0, + "parent": { + "$ref": "990" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "990" + } + ], + "name": "@service", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1014", + "kind": 25, + "modifiers": [ + { + "$id": "1015", + "kind": 40, + "pos": 2307, + "end": 2313, + "flags": 0, + "parent": { + "$ref": "1014" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1016", + "kind": 3, + "sv": "error", + "pos": 2318, + "end": 2323, + "flags": 0, + "parent": { + "$ref": "1014" + }, + "_id": 286 + }, + "target": { + "$id": "1017", + "kind": 27, + "id": { + "$id": "1018", + "kind": 3, + "sv": "target", + "pos": 2324, + "end": 2330, + "flags": 0, + "parent": { + "$ref": "1017" + }, + "_id": 287 + }, + "type": { + "$id": "1019", + "kind": 45, + "target": { + "$id": "1020", + "kind": 3, + "sv": "Model", + "pos": 2332, + "end": 2337, + "flags": 1, + "parent": { + "$ref": "1019" + }, + "_id": 289 + }, + "arguments": [], + "pos": 2332, + "end": 2337, + "flags": 1, + "parent": { + "$ref": "1017" + }, + "_id": 288 + }, + "optional": false, + "rest": false, + "pos": 2324, + "end": 2337, + "flags": 0, + "parent": { + "$ref": "1014" + }, + "symbol": { + "declarations": [ + { + "$ref": "1017" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 249 + } + }, + "parameters": [], + "pos": 2075, + "end": 2339, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1021", + "kind": 51, + "content": [ + { + "$id": "1022", + "kind": 52, + "text": "Specify that this model is an error type. Operations return error types when the operation has failed.", + "pos": 2078, + "end": 2191, + "flags": 0, + "parent": { + "$ref": "1021" + } + } + ], + "tags": [ + { + "$id": "1023", + "kind": 58, + "tagName": { + "$id": "1024", + "kind": 3, + "sv": "example", + "pos": 2192, + "end": 2199, + "flags": 0, + "parent": { + "$ref": "1023" + } + }, + "content": [ + { + "$id": "1025", + "kind": 52, + "text": "```typespec\n@error\nmodel PetStoreError {\n code: string;\n message: string;\n}\n```", + "pos": 2199, + "end": 2304, + "flags": 0, + "parent": { + "$ref": "1023" + } + } + ], + "pos": 2191, + "end": 2304, + "flags": 0, + "parent": { + "$ref": "1021" + } + } + ], + "pos": 2075, + "end": 2306, + "flags": 0, + "parent": { + "$ref": "1014" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1014" + } + ], + "name": "@error", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1026", + "kind": 25, + "modifiers": [ + { + "$id": "1027", + "kind": 40, + "pos": 3478, + "end": 3484, + "flags": 0, + "parent": { + "$ref": "1026" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1028", + "kind": 3, + "sv": "mediaTypeHint", + "pos": 3489, + "end": 3502, + "flags": 0, + "parent": { + "$ref": "1026" + }, + "_id": 290 + }, + "target": { + "$id": "1029", + "kind": 27, + "id": { + "$id": "1030", + "kind": 3, + "sv": "target", + "pos": 3503, + "end": 3509, + "flags": 0, + "parent": { + "$ref": "1029" + }, + "_id": 291 + }, + "type": { + "$id": "1031", + "kind": 28, + "options": [ + { + "$id": "1032", + "kind": 45, + "target": { + "$id": "1033", + "kind": 3, + "sv": "Model", + "pos": 3511, + "end": 3516, + "flags": 1, + "parent": { + "$ref": "1032" + }, + "_id": 293 + }, + "arguments": [], + "pos": 3511, + "end": 3516, + "flags": 1, + "parent": { + "$ref": "1031" + }, + "_id": 292 + }, + { + "$id": "1034", + "kind": 45, + "target": { + "$id": "1035", + "kind": 3, + "sv": "Scalar", + "pos": 3519, + "end": 3525, + "flags": 1, + "parent": { + "$ref": "1034" + }, + "_id": 295 + }, + "arguments": [], + "pos": 3519, + "end": 3525, + "flags": 1, + "parent": { + "$ref": "1031" + }, + "_id": 294 + }, + { + "$id": "1036", + "kind": 45, + "target": { + "$id": "1037", + "kind": 3, + "sv": "Enum", + "pos": 3528, + "end": 3532, + "flags": 1, + "parent": { + "$ref": "1036" + }, + "_id": 297 + }, + "arguments": [], + "pos": 3528, + "end": 3532, + "flags": 1, + "parent": { + "$ref": "1031" + }, + "_id": 296 + }, + { + "$id": "1038", + "kind": 45, + "target": { + "$id": "1039", + "kind": 3, + "sv": "Union", + "pos": 3535, + "end": 3540, + "flags": 1, + "parent": { + "$ref": "1038" + }, + "_id": 300 + }, + "arguments": [], + "pos": 3535, + "end": 3540, + "flags": 1, + "parent": { + "$ref": "1031" + }, + "_id": 299 + } + ], + "pos": 3511, + "end": 3540, + "flags": 0, + "parent": { + "$ref": "1029" + } + }, + "optional": false, + "rest": false, + "pos": 3503, + "end": 3540, + "flags": 0, + "parent": { + "$ref": "1026" + }, + "symbol": { + "declarations": [ + { + "$ref": "1029" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 191 + } + }, + "parameters": [ + { + "$id": "1040", + "kind": 27, + "id": { + "$id": "1041", + "kind": 3, + "sv": "mediaType", + "pos": 3542, + "end": 3551, + "flags": 0, + "parent": { + "$ref": "1040" + }, + "_id": 301 + }, + "type": { + "$id": "1042", + "kind": 44, + "target": { + "$id": "1043", + "kind": 45, + "target": { + "$id": "1044", + "kind": 3, + "sv": "string", + "pos": 3561, + "end": 3567, + "flags": 1, + "parent": { + "$ref": "1043" + }, + "_id": 303 + }, + "arguments": [], + "pos": 3561, + "end": 3567, + "flags": 1, + "parent": { + "$ref": "1042" + }, + "_id": 302 + }, + "pos": 3553, + "end": 3567, + "flags": 0, + "parent": { + "$ref": "1040" + } + }, + "optional": false, + "rest": false, + "pos": 3542, + "end": 3567, + "flags": 0, + "parent": { + "$ref": "1026" + }, + "symbol": { + "declarations": [ + { + "$ref": "1040" + } + ], + "name": "mediaType", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 192 + } + } + ], + "pos": 2341, + "end": 3569, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1045", + "kind": 51, + "content": [ + { + "$id": "1046", + "kind": 52, + "text": "Applies a media type hint to a TypeSpec type. Emitters and libraries may choose to use this hint to determine how a\ntype should be serialized. For example, the `@typespec/http` library will use the media type hint of the response\nbody type as a default `Content-Type` if one is not explicitly specified in the operation.\n\nMedia types (also known as MIME types) are defined by RFC 6838. The media type hint should be a valid media type\nstring as defined by the RFC, but the decorator does not enforce or validate this constraint.\n\nNotes: the applied media type is _only_ a hint. It may be overridden or not used at all. Media type hints are\ninherited by subtypes. If a media type hint is applied to a model, it will be inherited by all other models that\n`extend` it unless they delcare their own media type hint.", + "pos": 2344, + "end": 3191, + "flags": 0, + "parent": { + "$ref": "1045" + } + } + ], + "tags": [ + { + "$id": "1047", + "kind": 53, + "tagName": { + "$id": "1048", + "kind": 3, + "sv": "param", + "pos": 3192, + "end": 3197, + "flags": 0, + "parent": { + "$ref": "1047" + } + }, + "paramName": { + "$id": "1049", + "kind": 3, + "sv": "mediaType", + "pos": 3198, + "end": 3207, + "flags": 0, + "parent": { + "$ref": "1047" + } + }, + "content": [ + { + "$id": "1050", + "kind": 52, + "text": "The media type hint to apply to the target type.", + "pos": 3208, + "end": 3263, + "flags": 0, + "parent": { + "$ref": "1047" + } + } + ], + "pos": 3191, + "end": 3263, + "flags": 0, + "parent": { + "$ref": "1045" + } + }, + { + "$id": "1051", + "kind": 58, + "tagName": { + "$id": "1052", + "kind": 3, + "sv": "example", + "pos": 3264, + "end": 3271, + "flags": 0, + "parent": { + "$ref": "1051" + } + }, + "content": [ + { + "$id": "1053", + "kind": 52, + "text": "create a model that serializes as XML by default\n\n```tsp\n@mediaTypeHint(\"application/xml\")\nmodel Example {\n @visibility(Lifecycle.Read)\n id: string;\n\n name: string;\n}\n```", + "pos": 3271, + "end": 3475, + "flags": 0, + "parent": { + "$ref": "1051" + } + } + ], + "pos": 3263, + "end": 3475, + "flags": 0, + "parent": { + "$ref": "1045" + } + } + ], + "pos": 2341, + "end": 3477, + "flags": 0, + "parent": { + "$ref": "1026" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1026" + } + ], + "name": "@mediaTypeHint", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1054", + "kind": 4, + "target": { + "$id": "1055", + "kind": 3, + "sv": "mediaTypeHint", + "pos": 3683, + "end": 3696, + "flags": 1, + "parent": { + "$ref": "1054" + }, + "_id": 304 + }, + "targetType": { + "$id": "1056", + "kind": 45, + "target": { + "$id": "1057", + "kind": 7, + "base": { + "$id": "1058", + "kind": 3, + "sv": "TypeSpec", + "pos": 3697, + "end": 3705, + "flags": 1, + "parent": { + "$ref": "1057" + }, + "_id": 307 + }, + "id": { + "$id": "1059", + "kind": 3, + "sv": "bytes", + "pos": 3706, + "end": 3711, + "flags": 1, + "parent": { + "$ref": "1057" + }, + "_id": 308 + }, + "selector": ".", + "pos": 3697, + "end": 3711, + "flags": 1, + "parent": { + "$ref": "1056" + }, + "_id": 306 + }, + "arguments": [], + "pos": 3697, + "end": 3711, + "flags": 1, + "parent": { + "$ref": "1054" + }, + "_id": 305 + }, + "arguments": [ + { + "$id": "1060", + "kind": 32, + "value": "application/octet-stream", + "pos": 3713, + "end": 3739, + "flags": 0, + "parent": { + "$ref": "1054" + } + } + ], + "pos": 3681, + "end": 3741, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "904" + } + }, + { + "$id": "1061", + "kind": 25, + "modifiers": [ + { + "$id": "1062", + "kind": 40, + "pos": 4407, + "end": 4413, + "flags": 0, + "parent": { + "$ref": "1061" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1063", + "kind": 3, + "sv": "format", + "pos": 4418, + "end": 4424, + "flags": 0, + "parent": { + "$ref": "1061" + }, + "_id": 309 + }, + "target": { + "$id": "1064", + "kind": 27, + "id": { + "$id": "1065", + "kind": 3, + "sv": "target", + "pos": 4425, + "end": 4431, + "flags": 0, + "parent": { + "$ref": "1064" + }, + "_id": 310 + }, + "type": { + "$id": "1066", + "kind": 28, + "options": [ + { + "$id": "1067", + "kind": 45, + "target": { + "$id": "1068", + "kind": 3, + "sv": "string", + "pos": 4433, + "end": 4439, + "flags": 1, + "parent": { + "$ref": "1067" + }, + "_id": 312 + }, + "arguments": [], + "pos": 4433, + "end": 4439, + "flags": 1, + "parent": { + "$ref": "1066" + }, + "_id": 311 + }, + { + "$id": "1069", + "kind": 45, + "target": { + "$id": "1070", + "kind": 3, + "sv": "ModelProperty", + "pos": 4442, + "end": 4455, + "flags": 1, + "parent": { + "$ref": "1069" + }, + "_id": 314 + }, + "arguments": [], + "pos": 4442, + "end": 4455, + "flags": 1, + "parent": { + "$ref": "1066" + }, + "_id": 313 + } + ], + "pos": 4433, + "end": 4455, + "flags": 0, + "parent": { + "$ref": "1064" + } + }, + "optional": false, + "rest": false, + "pos": 4425, + "end": 4455, + "flags": 0, + "parent": { + "$ref": "1061" + }, + "symbol": { + "declarations": [ + { + "$ref": "1064" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 251 + } + }, + "parameters": [ + { + "$id": "1071", + "kind": 27, + "id": { + "$id": "1072", + "kind": 3, + "sv": "format", + "pos": 4457, + "end": 4463, + "flags": 0, + "parent": { + "$ref": "1071" + }, + "_id": 315 + }, + "type": { + "$id": "1073", + "kind": 44, + "target": { + "$id": "1074", + "kind": 45, + "target": { + "$id": "1075", + "kind": 3, + "sv": "string", + "pos": 4473, + "end": 4479, + "flags": 1, + "parent": { + "$ref": "1074" + }, + "_id": 317 + }, + "arguments": [], + "pos": 4473, + "end": 4479, + "flags": 1, + "parent": { + "$ref": "1073" + }, + "_id": 316 + }, + "pos": 4465, + "end": 4479, + "flags": 0, + "parent": { + "$ref": "1071" + } + }, + "optional": false, + "rest": false, + "pos": 4457, + "end": 4479, + "flags": 0, + "parent": { + "$ref": "1061" + }, + "symbol": { + "declarations": [ + { + "$ref": "1071" + } + ], + "name": "format", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 252 + } + } + ], + "pos": 3978, + "end": 4481, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1076", + "kind": 51, + "content": [ + { + "$id": "1077", + "kind": 52, + "text": "Specify a known data format hint for this string type. For example `uuid`, `uri`, etc.\nThis differs from the `@pattern` decorator which is meant to specify a regular expression while `@format` accepts a known format name.\nThe format names are open ended and are left to emitter to interpret.", + "pos": 3981, + "end": 4289, + "flags": 0, + "parent": { + "$ref": "1076" + } + } + ], + "tags": [ + { + "$id": "1078", + "kind": 53, + "tagName": { + "$id": "1079", + "kind": 3, + "sv": "param", + "pos": 4290, + "end": 4295, + "flags": 0, + "parent": { + "$ref": "1078" + } + }, + "paramName": { + "$id": "1080", + "kind": 3, + "sv": "format", + "pos": 4296, + "end": 4302, + "flags": 0, + "parent": { + "$ref": "1078" + } + }, + "content": [ + { + "$id": "1081", + "kind": 52, + "text": "format name.", + "pos": 4303, + "end": 4322, + "flags": 0, + "parent": { + "$ref": "1078" + } + } + ], + "pos": 4289, + "end": 4322, + "flags": 0, + "parent": { + "$ref": "1076" + } + }, + { + "$id": "1082", + "kind": 58, + "tagName": { + "$id": "1083", + "kind": 3, + "sv": "example", + "pos": 4323, + "end": 4330, + "flags": 0, + "parent": { + "$ref": "1082" + } + }, + "content": [ + { + "$id": "1084", + "kind": 52, + "text": "```typespec\n@format(\"uuid\")\nscalar uuid extends string;\n```", + "pos": 4330, + "end": 4404, + "flags": 0, + "parent": { + "$ref": "1082" + } + } + ], + "pos": 4322, + "end": 4404, + "flags": 0, + "parent": { + "$ref": "1076" + } + } + ], + "pos": 3978, + "end": 4406, + "flags": 0, + "parent": { + "$ref": "1061" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1061" + } + ], + "name": "@format", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1085", + "kind": 25, + "modifiers": [ + { + "$id": "1086", + "kind": 40, + "pos": 5584, + "end": 5590, + "flags": 0, + "parent": { + "$ref": "1085" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1087", + "kind": 3, + "sv": "pattern", + "pos": 5595, + "end": 5602, + "flags": 0, + "parent": { + "$ref": "1085" + }, + "_id": 318 + }, + "target": { + "$id": "1088", + "kind": 27, + "id": { + "$id": "1089", + "kind": 3, + "sv": "target", + "pos": 5606, + "end": 5612, + "flags": 0, + "parent": { + "$ref": "1088" + }, + "_id": 319 + }, + "type": { + "$id": "1090", + "kind": 28, + "options": [ + { + "$id": "1091", + "kind": 45, + "target": { + "$id": "1092", + "kind": 3, + "sv": "string", + "pos": 5614, + "end": 5620, + "flags": 1, + "parent": { + "$ref": "1091" + }, + "_id": 321 + }, + "arguments": [], + "pos": 5614, + "end": 5620, + "flags": 1, + "parent": { + "$ref": "1090" + }, + "_id": 320 + }, + { + "$id": "1093", + "kind": 45, + "target": { + "$id": "1094", + "kind": 3, + "sv": "bytes", + "pos": 5623, + "end": 5628, + "flags": 1, + "parent": { + "$ref": "1093" + }, + "_id": 323 + }, + "arguments": [], + "pos": 5623, + "end": 5628, + "flags": 1, + "parent": { + "$ref": "1090" + }, + "_id": 322 + }, + { + "$id": "1095", + "kind": 45, + "target": { + "$id": "1096", + "kind": 3, + "sv": "ModelProperty", + "pos": 5631, + "end": 5644, + "flags": 1, + "parent": { + "$ref": "1095" + }, + "_id": 325 + }, + "arguments": [], + "pos": 5631, + "end": 5644, + "flags": 1, + "parent": { + "$ref": "1090" + }, + "_id": 324 + } + ], + "pos": 5614, + "end": 5644, + "flags": 0, + "parent": { + "$ref": "1088" + } + }, + "optional": false, + "rest": false, + "pos": 5606, + "end": 5644, + "flags": 0, + "parent": { + "$ref": "1085" + }, + "symbol": { + "declarations": [ + { + "$ref": "1088" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 254 + } + }, + "parameters": [ + { + "$id": "1097", + "kind": 27, + "id": { + "$id": "1098", + "kind": 3, + "sv": "pattern", + "pos": 5648, + "end": 5655, + "flags": 0, + "parent": { + "$ref": "1097" + }, + "_id": 326 + }, + "type": { + "$id": "1099", + "kind": 44, + "target": { + "$id": "1100", + "kind": 45, + "target": { + "$id": "1101", + "kind": 3, + "sv": "string", + "pos": 5665, + "end": 5671, + "flags": 1, + "parent": { + "$ref": "1100" + }, + "_id": 328 + }, + "arguments": [], + "pos": 5665, + "end": 5671, + "flags": 1, + "parent": { + "$ref": "1099" + }, + "_id": 327 + }, + "pos": 5657, + "end": 5671, + "flags": 0, + "parent": { + "$ref": "1097" + } + }, + "optional": false, + "rest": false, + "pos": 5648, + "end": 5671, + "flags": 0, + "parent": { + "$ref": "1085" + }, + "symbol": { + "declarations": [ + { + "$ref": "1097" + } + ], + "name": "pattern", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 255 + } + }, + { + "$id": "1102", + "kind": 27, + "id": { + "$id": "1103", + "kind": 3, + "sv": "validationMessage", + "pos": 5675, + "end": 5692, + "flags": 0, + "parent": { + "$ref": "1102" + }, + "_id": 329 + }, + "type": { + "$id": "1104", + "kind": 44, + "target": { + "$id": "1105", + "kind": 45, + "target": { + "$id": "1106", + "kind": 3, + "sv": "string", + "pos": 5703, + "end": 5709, + "flags": 1, + "parent": { + "$ref": "1105" + }, + "_id": 331 + }, + "arguments": [], + "pos": 5703, + "end": 5709, + "flags": 1, + "parent": { + "$ref": "1104" + }, + "_id": 330 + }, + "pos": 5695, + "end": 5709, + "flags": 0, + "parent": { + "$ref": "1102" + } + }, + "optional": true, + "rest": false, + "pos": 5675, + "end": 5709, + "flags": 0, + "parent": { + "$ref": "1085" + }, + "symbol": { + "declarations": [ + { + "$ref": "1102" + } + ], + "name": "validationMessage", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 256 + } + } + ], + "pos": 4483, + "end": 5712, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1107", + "kind": 51, + "content": [ + { + "$id": "1108", + "kind": 52, + "text": "Specify the the pattern this string should respect using simple regular expression syntax.\nThe following syntax is allowed: alternations (`|`), quantifiers (`?`, `*`, `+`, and `{ }`), wildcard (`.`), and grouping parentheses.\nAdvanced features like look-around, capture groups, and references are not supported.\n\nThis decorator may optionally provide a custom validation _message_. Emitters may choose to use the message to provide\ncontext when pattern validation fails. For the sake of consistency, the message should be a phrase that describes in\nplain language what sort of content the pattern attempts to validate. For example, a complex regular expression that\nvalidates a GUID string might have a message like \"Must be a valid GUID.\"", + "pos": 4486, + "end": 5256, + "flags": 0, + "parent": { + "$ref": "1107" + } + } + ], + "tags": [ + { + "$id": "1109", + "kind": 53, + "tagName": { + "$id": "1110", + "kind": 3, + "sv": "param", + "pos": 5257, + "end": 5262, + "flags": 0, + "parent": { + "$ref": "1109" + } + }, + "paramName": { + "$id": "1111", + "kind": 3, + "sv": "pattern", + "pos": 5263, + "end": 5270, + "flags": 0, + "parent": { + "$ref": "1109" + } + }, + "content": [ + { + "$id": "1112", + "kind": 52, + "text": "Regular expression.", + "pos": 5271, + "end": 5294, + "flags": 0, + "parent": { + "$ref": "1109" + } + } + ], + "pos": 5256, + "end": 5294, + "flags": 0, + "parent": { + "$ref": "1107" + } + }, + { + "$id": "1113", + "kind": 53, + "tagName": { + "$id": "1114", + "kind": 3, + "sv": "param", + "pos": 5295, + "end": 5300, + "flags": 0, + "parent": { + "$ref": "1113" + } + }, + "paramName": { + "$id": "1115", + "kind": 3, + "sv": "validationMessage", + "pos": 5301, + "end": 5318, + "flags": 0, + "parent": { + "$ref": "1113" + } + }, + "content": [ + { + "$id": "1116", + "kind": 52, + "text": "Optional validation message that may provide context when validation fails.", + "pos": 5319, + "end": 5401, + "flags": 0, + "parent": { + "$ref": "1113" + } + } + ], + "pos": 5294, + "end": 5401, + "flags": 0, + "parent": { + "$ref": "1107" + } + }, + { + "$id": "1117", + "kind": 58, + "tagName": { + "$id": "1118", + "kind": 3, + "sv": "example", + "pos": 5402, + "end": 5409, + "flags": 0, + "parent": { + "$ref": "1117" + } + }, + "content": [ + { + "$id": "1119", + "kind": 52, + "text": "```typespec\n@pattern(\"[a-z]+\", \"Must be a string consisting of only lower case letters and of at least one character.\")\nscalar LowerAlpha extends string;\n```", + "pos": 5409, + "end": 5581, + "flags": 0, + "parent": { + "$ref": "1117" + } + } + ], + "pos": 5401, + "end": 5581, + "flags": 0, + "parent": { + "$ref": "1107" + } + } + ], + "pos": 4483, + "end": 5583, + "flags": 0, + "parent": { + "$ref": "1085" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1085" + } + ], + "name": "@pattern", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1120", + "kind": 25, + "modifiers": [ + { + "$id": "1121", + "kind": 40, + "pos": 5900, + "end": 5906, + "flags": 0, + "parent": { + "$ref": "1120" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1122", + "kind": 3, + "sv": "minLength", + "pos": 5911, + "end": 5920, + "flags": 0, + "parent": { + "$ref": "1120" + }, + "_id": 332 + }, + "target": { + "$id": "1123", + "kind": 27, + "id": { + "$id": "1124", + "kind": 3, + "sv": "target", + "pos": 5921, + "end": 5927, + "flags": 0, + "parent": { + "$ref": "1123" + }, + "_id": 333 + }, + "type": { + "$id": "1125", + "kind": 28, + "options": [ + { + "$id": "1126", + "kind": 45, + "target": { + "$id": "1127", + "kind": 3, + "sv": "string", + "pos": 5929, + "end": 5935, + "flags": 1, + "parent": { + "$ref": "1126" + }, + "_id": 335 + }, + "arguments": [], + "pos": 5929, + "end": 5935, + "flags": 1, + "parent": { + "$ref": "1125" + }, + "_id": 334 + }, + { + "$id": "1128", + "kind": 45, + "target": { + "$id": "1129", + "kind": 3, + "sv": "ModelProperty", + "pos": 5938, + "end": 5951, + "flags": 1, + "parent": { + "$ref": "1128" + }, + "_id": 337 + }, + "arguments": [], + "pos": 5938, + "end": 5951, + "flags": 1, + "parent": { + "$ref": "1125" + }, + "_id": 336 + } + ], + "pos": 5929, + "end": 5951, + "flags": 0, + "parent": { + "$ref": "1123" + } + }, + "optional": false, + "rest": false, + "pos": 5921, + "end": 5951, + "flags": 0, + "parent": { + "$ref": "1120" + }, + "symbol": { + "declarations": [ + { + "$ref": "1123" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 258 + } + }, + "parameters": [ + { + "$id": "1130", + "kind": 27, + "id": { + "$id": "1131", + "kind": 3, + "sv": "value", + "pos": 5953, + "end": 5958, + "flags": 0, + "parent": { + "$ref": "1130" + }, + "_id": 338 + }, + "type": { + "$id": "1132", + "kind": 44, + "target": { + "$id": "1133", + "kind": 45, + "target": { + "$id": "1134", + "kind": 3, + "sv": "integer", + "pos": 5968, + "end": 5975, + "flags": 1, + "parent": { + "$ref": "1133" + }, + "_id": 340 + }, + "arguments": [], + "pos": 5968, + "end": 5975, + "flags": 1, + "parent": { + "$ref": "1132" + }, + "_id": 339 + }, + "pos": 5960, + "end": 5975, + "flags": 0, + "parent": { + "$ref": "1130" + } + }, + "optional": false, + "rest": false, + "pos": 5953, + "end": 5975, + "flags": 0, + "parent": { + "$ref": "1120" + }, + "symbol": { + "declarations": [ + { + "$ref": "1130" + } + ], + "name": "value", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 259 + } + } + ], + "pos": 5714, + "end": 5977, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1135", + "kind": 51, + "content": [ + { + "$id": "1136", + "kind": 52, + "text": "Specify the minimum length this string type should be.", + "pos": 5717, + "end": 5779, + "flags": 0, + "parent": { + "$ref": "1135" + } + } + ], + "tags": [ + { + "$id": "1137", + "kind": 53, + "tagName": { + "$id": "1138", + "kind": 3, + "sv": "param", + "pos": 5780, + "end": 5785, + "flags": 0, + "parent": { + "$ref": "1137" + } + }, + "paramName": { + "$id": "1139", + "kind": 3, + "sv": "value", + "pos": 5786, + "end": 5791, + "flags": 0, + "parent": { + "$ref": "1137" + } + }, + "content": [ + { + "$id": "1140", + "kind": 52, + "text": "Minimum length", + "pos": 5792, + "end": 5813, + "flags": 0, + "parent": { + "$ref": "1137" + } + } + ], + "pos": 5779, + "end": 5813, + "flags": 0, + "parent": { + "$ref": "1135" + } + }, + { + "$id": "1141", + "kind": 58, + "tagName": { + "$id": "1142", + "kind": 3, + "sv": "example", + "pos": 5814, + "end": 5821, + "flags": 0, + "parent": { + "$ref": "1141" + } + }, + "content": [ + { + "$id": "1143", + "kind": 52, + "text": "```typespec\n@minLength(2)\nscalar Username extends string;\n```", + "pos": 5821, + "end": 5897, + "flags": 0, + "parent": { + "$ref": "1141" + } + } + ], + "pos": 5813, + "end": 5897, + "flags": 0, + "parent": { + "$ref": "1135" + } + } + ], + "pos": 5714, + "end": 5899, + "flags": 0, + "parent": { + "$ref": "1120" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1120" + } + ], + "name": "@minLength", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1144", + "kind": 25, + "modifiers": [ + { + "$id": "1145", + "kind": 40, + "pos": 6166, + "end": 6172, + "flags": 0, + "parent": { + "$ref": "1144" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1146", + "kind": 3, + "sv": "maxLength", + "pos": 6177, + "end": 6186, + "flags": 0, + "parent": { + "$ref": "1144" + }, + "_id": 341 + }, + "target": { + "$id": "1147", + "kind": 27, + "id": { + "$id": "1148", + "kind": 3, + "sv": "target", + "pos": 6187, + "end": 6193, + "flags": 0, + "parent": { + "$ref": "1147" + }, + "_id": 342 + }, + "type": { + "$id": "1149", + "kind": 28, + "options": [ + { + "$id": "1150", + "kind": 45, + "target": { + "$id": "1151", + "kind": 3, + "sv": "string", + "pos": 6195, + "end": 6201, + "flags": 1, + "parent": { + "$ref": "1150" + }, + "_id": 344 + }, + "arguments": [], + "pos": 6195, + "end": 6201, + "flags": 1, + "parent": { + "$ref": "1149" + }, + "_id": 343 + }, + { + "$id": "1152", + "kind": 45, + "target": { + "$id": "1153", + "kind": 3, + "sv": "ModelProperty", + "pos": 6204, + "end": 6217, + "flags": 1, + "parent": { + "$ref": "1152" + }, + "_id": 346 + }, + "arguments": [], + "pos": 6204, + "end": 6217, + "flags": 1, + "parent": { + "$ref": "1149" + }, + "_id": 345 + } + ], + "pos": 6195, + "end": 6217, + "flags": 0, + "parent": { + "$ref": "1147" + } + }, + "optional": false, + "rest": false, + "pos": 6187, + "end": 6217, + "flags": 0, + "parent": { + "$ref": "1144" + }, + "symbol": { + "declarations": [ + { + "$ref": "1147" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 261 + } + }, + "parameters": [ + { + "$id": "1154", + "kind": 27, + "id": { + "$id": "1155", + "kind": 3, + "sv": "value", + "pos": 6219, + "end": 6224, + "flags": 0, + "parent": { + "$ref": "1154" + }, + "_id": 347 + }, + "type": { + "$id": "1156", + "kind": 44, + "target": { + "$id": "1157", + "kind": 45, + "target": { + "$id": "1158", + "kind": 3, + "sv": "integer", + "pos": 6234, + "end": 6241, + "flags": 1, + "parent": { + "$ref": "1157" + }, + "_id": 349 + }, + "arguments": [], + "pos": 6234, + "end": 6241, + "flags": 1, + "parent": { + "$ref": "1156" + }, + "_id": 348 + }, + "pos": 6226, + "end": 6241, + "flags": 0, + "parent": { + "$ref": "1154" + } + }, + "optional": false, + "rest": false, + "pos": 6219, + "end": 6241, + "flags": 0, + "parent": { + "$ref": "1144" + }, + "symbol": { + "declarations": [ + { + "$ref": "1154" + } + ], + "name": "value", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 262 + } + } + ], + "pos": 5979, + "end": 6243, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1159", + "kind": 51, + "content": [ + { + "$id": "1160", + "kind": 52, + "text": "Specify the maximum length this string type should be.", + "pos": 5982, + "end": 6044, + "flags": 0, + "parent": { + "$ref": "1159" + } + } + ], + "tags": [ + { + "$id": "1161", + "kind": 53, + "tagName": { + "$id": "1162", + "kind": 3, + "sv": "param", + "pos": 6045, + "end": 6050, + "flags": 0, + "parent": { + "$ref": "1161" + } + }, + "paramName": { + "$id": "1163", + "kind": 3, + "sv": "value", + "pos": 6051, + "end": 6056, + "flags": 0, + "parent": { + "$ref": "1161" + } + }, + "content": [ + { + "$id": "1164", + "kind": 52, + "text": "Maximum length", + "pos": 6057, + "end": 6078, + "flags": 0, + "parent": { + "$ref": "1161" + } + } + ], + "pos": 6044, + "end": 6078, + "flags": 0, + "parent": { + "$ref": "1159" + } + }, + { + "$id": "1165", + "kind": 58, + "tagName": { + "$id": "1166", + "kind": 3, + "sv": "example", + "pos": 6079, + "end": 6086, + "flags": 0, + "parent": { + "$ref": "1165" + } + }, + "content": [ + { + "$id": "1167", + "kind": 52, + "text": "```typespec\n@maxLength(20)\nscalar Username extends string;\n```", + "pos": 6086, + "end": 6163, + "flags": 0, + "parent": { + "$ref": "1165" + } + } + ], + "pos": 6078, + "end": 6163, + "flags": 0, + "parent": { + "$ref": "1159" + } + } + ], + "pos": 5979, + "end": 6165, + "flags": 0, + "parent": { + "$ref": "1144" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1144" + } + ], + "name": "@maxLength", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1168", + "kind": 24, + "id": { + "$id": "1169", + "kind": 3, + "sv": "RangeLimitableTypes", + "pos": 6291, + "end": 6310, + "flags": 0, + "parent": { + "$ref": "1168" + }, + "_id": 350 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "value": { + "$id": "1170", + "kind": 28, + "options": [ + { + "$id": "1171", + "kind": 45, + "target": { + "$id": "1172", + "kind": 3, + "sv": "numeric", + "pos": 6317, + "end": 6324, + "flags": 1, + "parent": { + "$ref": "1171" + }, + "_id": 352 + }, + "arguments": [], + "pos": 6317, + "end": 6324, + "flags": 1, + "parent": { + "$ref": "1170" + }, + "_id": 351 + }, + { + "$id": "1173", + "kind": 45, + "target": { + "$id": "1174", + "kind": 3, + "sv": "utcDateTime", + "pos": 6329, + "end": 6340, + "flags": 1, + "parent": { + "$ref": "1173" + }, + "_id": 354 + }, + "arguments": [], + "pos": 6329, + "end": 6340, + "flags": 1, + "parent": { + "$ref": "1170" + }, + "_id": 353 + }, + { + "$id": "1175", + "kind": 45, + "target": { + "$id": "1176", + "kind": 3, + "sv": "offsetDateTime", + "pos": 6345, + "end": 6359, + "flags": 1, + "parent": { + "$ref": "1175" + }, + "_id": 356 + }, + "arguments": [], + "pos": 6345, + "end": 6359, + "flags": 1, + "parent": { + "$ref": "1170" + }, + "_id": 355 + }, + { + "$id": "1177", + "kind": 45, + "target": { + "$id": "1178", + "kind": 3, + "sv": "plainDate", + "pos": 6364, + "end": 6373, + "flags": 1, + "parent": { + "$ref": "1177" + }, + "_id": 358 + }, + "arguments": [], + "pos": 6364, + "end": 6373, + "flags": 1, + "parent": { + "$ref": "1170" + }, + "_id": 357 + }, + { + "$id": "1179", + "kind": 45, + "target": { + "$id": "1180", + "kind": 3, + "sv": "plainTime", + "pos": 6378, + "end": 6387, + "flags": 1, + "parent": { + "$ref": "1179" + }, + "_id": 360 + }, + "arguments": [], + "pos": 6378, + "end": 6387, + "flags": 1, + "parent": { + "$ref": "1170" + }, + "_id": 359 + }, + { + "$id": "1181", + "kind": 45, + "target": { + "$id": "1182", + "kind": 3, + "sv": "duration", + "pos": 6392, + "end": 6400, + "flags": 1, + "parent": { + "$ref": "1181" + }, + "_id": 362 + }, + "arguments": [], + "pos": 6392, + "end": 6400, + "flags": 1, + "parent": { + "$ref": "1170" + }, + "_id": 361 + } + ], + "pos": 6315, + "end": 6400, + "flags": 0, + "parent": { + "$ref": "1168" + } + }, + "pos": 6245, + "end": 6401, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1183", + "kind": 51, + "content": [ + { + "$id": "1184", + "kind": 52, + "text": "Types that can have range limits", + "pos": 6248, + "end": 6282, + "flags": 0, + "parent": { + "$ref": "1183" + } + } + ], + "tags": [], + "pos": 6245, + "end": 6284, + "flags": 0, + "parent": { + "$ref": "1168" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1168" + } + ], + "name": "RangeLimitableTypes", + "flags": 1048704, + "metatypeMembers": { + "duplicates": {} + }, + "id": 63 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "1185", + "kind": 25, + "modifiers": [ + { + "$id": "1186", + "kind": 40, + "pos": 6590, + "end": 6596, + "flags": 0, + "parent": { + "$ref": "1185" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1187", + "kind": 3, + "sv": "minItems", + "pos": 6601, + "end": 6609, + "flags": 0, + "parent": { + "$ref": "1185" + }, + "_id": 363 + }, + "target": { + "$id": "1188", + "kind": 27, + "id": { + "$id": "1189", + "kind": 3, + "sv": "target", + "pos": 6610, + "end": 6616, + "flags": 0, + "parent": { + "$ref": "1188" + }, + "_id": 364 + }, + "type": { + "$id": "1190", + "kind": 28, + "options": [ + { + "$id": "1191", + "kind": 31, + "elementType": { + "$id": "1192", + "kind": 43, + "pos": 6618, + "end": 6625, + "flags": 0, + "parent": { + "$ref": "1191" + } + }, + "pos": 6618, + "end": 6627, + "flags": 0, + "parent": { + "$ref": "1190" + } + }, + { + "$id": "1193", + "kind": 45, + "target": { + "$id": "1194", + "kind": 3, + "sv": "ModelProperty", + "pos": 6630, + "end": 6643, + "flags": 1, + "parent": { + "$ref": "1193" + }, + "_id": 366 + }, + "arguments": [], + "pos": 6630, + "end": 6643, + "flags": 1, + "parent": { + "$ref": "1190" + }, + "_id": 365 + } + ], + "pos": 6618, + "end": 6643, + "flags": 0, + "parent": { + "$ref": "1188" + } + }, + "optional": false, + "rest": false, + "pos": 6610, + "end": 6643, + "flags": 0, + "parent": { + "$ref": "1185" + }, + "symbol": { + "declarations": [ + { + "$ref": "1188" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 264 + } + }, + "parameters": [ + { + "$id": "1195", + "kind": 27, + "id": { + "$id": "1196", + "kind": 3, + "sv": "value", + "pos": 6645, + "end": 6650, + "flags": 0, + "parent": { + "$ref": "1195" + }, + "_id": 367 + }, + "type": { + "$id": "1197", + "kind": 44, + "target": { + "$id": "1198", + "kind": 45, + "target": { + "$id": "1199", + "kind": 3, + "sv": "integer", + "pos": 6660, + "end": 6667, + "flags": 1, + "parent": { + "$ref": "1198" + }, + "_id": 369 + }, + "arguments": [], + "pos": 6660, + "end": 6667, + "flags": 1, + "parent": { + "$ref": "1197" + }, + "_id": 368 + }, + "pos": 6652, + "end": 6667, + "flags": 0, + "parent": { + "$ref": "1195" + } + }, + "optional": false, + "rest": false, + "pos": 6645, + "end": 6667, + "flags": 0, + "parent": { + "$ref": "1185" + }, + "symbol": { + "declarations": [ + { + "$ref": "1195" + } + ], + "name": "value", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 265 + } + } + ], + "pos": 6403, + "end": 6669, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1200", + "kind": 51, + "content": [ + { + "$id": "1201", + "kind": 52, + "text": "Specify the minimum number of items this array should have.", + "pos": 6406, + "end": 6473, + "flags": 0, + "parent": { + "$ref": "1200" + } + } + ], + "tags": [ + { + "$id": "1202", + "kind": 53, + "tagName": { + "$id": "1203", + "kind": 3, + "sv": "param", + "pos": 6474, + "end": 6479, + "flags": 0, + "parent": { + "$ref": "1202" + } + }, + "paramName": { + "$id": "1204", + "kind": 3, + "sv": "value", + "pos": 6480, + "end": 6485, + "flags": 0, + "parent": { + "$ref": "1202" + } + }, + "content": [ + { + "$id": "1205", + "kind": 52, + "text": "Minimum number", + "pos": 6486, + "end": 6507, + "flags": 0, + "parent": { + "$ref": "1202" + } + } + ], + "pos": 6473, + "end": 6507, + "flags": 0, + "parent": { + "$ref": "1200" + } + }, + { + "$id": "1206", + "kind": 58, + "tagName": { + "$id": "1207", + "kind": 3, + "sv": "example", + "pos": 6508, + "end": 6515, + "flags": 0, + "parent": { + "$ref": "1206" + } + }, + "content": [ + { + "$id": "1208", + "kind": 52, + "text": "```typespec\n@minItems(1)\nmodel Endpoints is string[];\n```", + "pos": 6515, + "end": 6587, + "flags": 0, + "parent": { + "$ref": "1206" + } + } + ], + "pos": 6507, + "end": 6587, + "flags": 0, + "parent": { + "$ref": "1200" + } + } + ], + "pos": 6403, + "end": 6589, + "flags": 0, + "parent": { + "$ref": "1185" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1185" + } + ], + "name": "@minItems", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1209", + "kind": 25, + "modifiers": [ + { + "$id": "1210", + "kind": 40, + "pos": 6858, + "end": 6864, + "flags": 0, + "parent": { + "$ref": "1209" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1211", + "kind": 3, + "sv": "maxItems", + "pos": 6869, + "end": 6877, + "flags": 0, + "parent": { + "$ref": "1209" + }, + "_id": 370 + }, + "target": { + "$id": "1212", + "kind": 27, + "id": { + "$id": "1213", + "kind": 3, + "sv": "target", + "pos": 6878, + "end": 6884, + "flags": 0, + "parent": { + "$ref": "1212" + }, + "_id": 371 + }, + "type": { + "$id": "1214", + "kind": 28, + "options": [ + { + "$id": "1215", + "kind": 31, + "elementType": { + "$id": "1216", + "kind": 43, + "pos": 6886, + "end": 6893, + "flags": 0, + "parent": { + "$ref": "1215" + } + }, + "pos": 6886, + "end": 6895, + "flags": 0, + "parent": { + "$ref": "1214" + } + }, + { + "$id": "1217", + "kind": 45, + "target": { + "$id": "1218", + "kind": 3, + "sv": "ModelProperty", + "pos": 6898, + "end": 6911, + "flags": 1, + "parent": { + "$ref": "1217" + }, + "_id": 373 + }, + "arguments": [], + "pos": 6898, + "end": 6911, + "flags": 1, + "parent": { + "$ref": "1214" + }, + "_id": 372 + } + ], + "pos": 6886, + "end": 6911, + "flags": 0, + "parent": { + "$ref": "1212" + } + }, + "optional": false, + "rest": false, + "pos": 6878, + "end": 6911, + "flags": 0, + "parent": { + "$ref": "1209" + }, + "symbol": { + "declarations": [ + { + "$ref": "1212" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 267 + } + }, + "parameters": [ + { + "$id": "1219", + "kind": 27, + "id": { + "$id": "1220", + "kind": 3, + "sv": "value", + "pos": 6913, + "end": 6918, + "flags": 0, + "parent": { + "$ref": "1219" + }, + "_id": 374 + }, + "type": { + "$id": "1221", + "kind": 44, + "target": { + "$id": "1222", + "kind": 45, + "target": { + "$id": "1223", + "kind": 3, + "sv": "integer", + "pos": 6928, + "end": 6935, + "flags": 1, + "parent": { + "$ref": "1222" + }, + "_id": 376 + }, + "arguments": [], + "pos": 6928, + "end": 6935, + "flags": 1, + "parent": { + "$ref": "1221" + }, + "_id": 375 + }, + "pos": 6920, + "end": 6935, + "flags": 0, + "parent": { + "$ref": "1219" + } + }, + "optional": false, + "rest": false, + "pos": 6913, + "end": 6935, + "flags": 0, + "parent": { + "$ref": "1209" + }, + "symbol": { + "declarations": [ + { + "$ref": "1219" + } + ], + "name": "value", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 268 + } + } + ], + "pos": 6671, + "end": 6937, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1224", + "kind": 51, + "content": [ + { + "$id": "1225", + "kind": 52, + "text": "Specify the maximum number of items this array should have.", + "pos": 6674, + "end": 6741, + "flags": 0, + "parent": { + "$ref": "1224" + } + } + ], + "tags": [ + { + "$id": "1226", + "kind": 53, + "tagName": { + "$id": "1227", + "kind": 3, + "sv": "param", + "pos": 6742, + "end": 6747, + "flags": 0, + "parent": { + "$ref": "1226" + } + }, + "paramName": { + "$id": "1228", + "kind": 3, + "sv": "value", + "pos": 6748, + "end": 6753, + "flags": 0, + "parent": { + "$ref": "1226" + } + }, + "content": [ + { + "$id": "1229", + "kind": 52, + "text": "Maximum number", + "pos": 6754, + "end": 6775, + "flags": 0, + "parent": { + "$ref": "1226" + } + } + ], + "pos": 6741, + "end": 6775, + "flags": 0, + "parent": { + "$ref": "1224" + } + }, + { + "$id": "1230", + "kind": 58, + "tagName": { + "$id": "1231", + "kind": 3, + "sv": "example", + "pos": 6776, + "end": 6783, + "flags": 0, + "parent": { + "$ref": "1230" + } + }, + "content": [ + { + "$id": "1232", + "kind": 52, + "text": "```typespec\n@maxItems(5)\nmodel Endpoints is string[];\n```", + "pos": 6783, + "end": 6855, + "flags": 0, + "parent": { + "$ref": "1230" + } + } + ], + "pos": 6775, + "end": 6855, + "flags": 0, + "parent": { + "$ref": "1224" + } + } + ], + "pos": 6671, + "end": 6857, + "flags": 0, + "parent": { + "$ref": "1209" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1209" + } + ], + "name": "@maxItems", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1233", + "kind": 25, + "modifiers": [ + { + "$id": "1234", + "kind": 40, + "pos": 7113, + "end": 7119, + "flags": 0, + "parent": { + "$ref": "1233" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1235", + "kind": 3, + "sv": "minValue", + "pos": 7124, + "end": 7132, + "flags": 0, + "parent": { + "$ref": "1233" + }, + "_id": 377 + }, + "target": { + "$id": "1236", + "kind": 27, + "id": { + "$id": "1237", + "kind": 3, + "sv": "target", + "pos": 7136, + "end": 7142, + "flags": 0, + "parent": { + "$ref": "1236" + }, + "_id": 378 + }, + "type": { + "$id": "1238", + "kind": 28, + "options": [ + { + "$id": "1239", + "kind": 45, + "target": { + "$id": "1240", + "kind": 3, + "sv": "RangeLimitableTypes", + "pos": 7144, + "end": 7163, + "flags": 1, + "parent": { + "$ref": "1239" + }, + "_id": 380 + }, + "arguments": [], + "pos": 7144, + "end": 7163, + "flags": 1, + "parent": { + "$ref": "1238" + }, + "_id": 379 + }, + { + "$id": "1241", + "kind": 45, + "target": { + "$id": "1242", + "kind": 3, + "sv": "ModelProperty", + "pos": 7166, + "end": 7179, + "flags": 1, + "parent": { + "$ref": "1241" + }, + "_id": 382 + }, + "arguments": [], + "pos": 7166, + "end": 7179, + "flags": 1, + "parent": { + "$ref": "1238" + }, + "_id": 381 + } + ], + "pos": 7144, + "end": 7179, + "flags": 0, + "parent": { + "$ref": "1236" + } + }, + "optional": false, + "rest": false, + "pos": 7136, + "end": 7179, + "flags": 0, + "parent": { + "$ref": "1233" + }, + "symbol": { + "declarations": [ + { + "$ref": "1236" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 270 + } + }, + "parameters": [ + { + "$id": "1243", + "kind": 27, + "id": { + "$id": "1244", + "kind": 3, + "sv": "value", + "pos": 7183, + "end": 7188, + "flags": 0, + "parent": { + "$ref": "1243" + }, + "_id": 383 + }, + "type": { + "$id": "1245", + "kind": 44, + "target": { + "$id": "1246", + "kind": 45, + "target": { + "$id": "1247", + "kind": 3, + "sv": "RangeLimitableTypes", + "pos": 7198, + "end": 7217, + "flags": 1, + "parent": { + "$ref": "1246" + }, + "_id": 385 + }, + "arguments": [], + "pos": 7198, + "end": 7217, + "flags": 1, + "parent": { + "$ref": "1245" + }, + "_id": 384 + }, + "pos": 7190, + "end": 7217, + "flags": 0, + "parent": { + "$ref": "1243" + } + }, + "optional": false, + "rest": false, + "pos": 7183, + "end": 7217, + "flags": 0, + "parent": { + "$ref": "1233" + }, + "symbol": { + "declarations": [ + { + "$ref": "1243" + } + ], + "name": "value", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 271 + } + } + ], + "pos": 6939, + "end": 7220, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1248", + "kind": 51, + "content": [ + { + "$id": "1249", + "kind": 52, + "text": "Specify the minimum value this numeric type should be.", + "pos": 6942, + "end": 7004, + "flags": 0, + "parent": { + "$ref": "1248" + } + } + ], + "tags": [ + { + "$id": "1250", + "kind": 53, + "tagName": { + "$id": "1251", + "kind": 3, + "sv": "param", + "pos": 7005, + "end": 7010, + "flags": 0, + "parent": { + "$ref": "1250" + } + }, + "paramName": { + "$id": "1252", + "kind": 3, + "sv": "value", + "pos": 7011, + "end": 7016, + "flags": 0, + "parent": { + "$ref": "1250" + } + }, + "content": [ + { + "$id": "1253", + "kind": 52, + "text": "Minimum value", + "pos": 7017, + "end": 7037, + "flags": 0, + "parent": { + "$ref": "1250" + } + } + ], + "pos": 7004, + "end": 7037, + "flags": 0, + "parent": { + "$ref": "1248" + } + }, + { + "$id": "1254", + "kind": 58, + "tagName": { + "$id": "1255", + "kind": 3, + "sv": "example", + "pos": 7038, + "end": 7045, + "flags": 0, + "parent": { + "$ref": "1254" + } + }, + "content": [ + { + "$id": "1256", + "kind": 52, + "text": "```typespec\n@minValue(18)\nscalar Age is int32;\n```", + "pos": 7045, + "end": 7110, + "flags": 0, + "parent": { + "$ref": "1254" + } + } + ], + "pos": 7037, + "end": 7110, + "flags": 0, + "parent": { + "$ref": "1248" + } + } + ], + "pos": 6939, + "end": 7112, + "flags": 0, + "parent": { + "$ref": "1233" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1233" + } + ], + "name": "@minValue", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1257", + "kind": 25, + "modifiers": [ + { + "$id": "1258", + "kind": 40, + "pos": 7397, + "end": 7403, + "flags": 0, + "parent": { + "$ref": "1257" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1259", + "kind": 3, + "sv": "maxValue", + "pos": 7408, + "end": 7416, + "flags": 0, + "parent": { + "$ref": "1257" + }, + "_id": 386 + }, + "target": { + "$id": "1260", + "kind": 27, + "id": { + "$id": "1261", + "kind": 3, + "sv": "target", + "pos": 7420, + "end": 7426, + "flags": 0, + "parent": { + "$ref": "1260" + }, + "_id": 387 + }, + "type": { + "$id": "1262", + "kind": 28, + "options": [ + { + "$id": "1263", + "kind": 45, + "target": { + "$id": "1264", + "kind": 3, + "sv": "RangeLimitableTypes", + "pos": 7428, + "end": 7447, + "flags": 1, + "parent": { + "$ref": "1263" + }, + "_id": 389 + }, + "arguments": [], + "pos": 7428, + "end": 7447, + "flags": 1, + "parent": { + "$ref": "1262" + }, + "_id": 388 + }, + { + "$id": "1265", + "kind": 45, + "target": { + "$id": "1266", + "kind": 3, + "sv": "ModelProperty", + "pos": 7450, + "end": 7463, + "flags": 1, + "parent": { + "$ref": "1265" + }, + "_id": 391 + }, + "arguments": [], + "pos": 7450, + "end": 7463, + "flags": 1, + "parent": { + "$ref": "1262" + }, + "_id": 390 + } + ], + "pos": 7428, + "end": 7463, + "flags": 0, + "parent": { + "$ref": "1260" + } + }, + "optional": false, + "rest": false, + "pos": 7420, + "end": 7463, + "flags": 0, + "parent": { + "$ref": "1257" + }, + "symbol": { + "declarations": [ + { + "$ref": "1260" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 273 + } + }, + "parameters": [ + { + "$id": "1267", + "kind": 27, + "id": { + "$id": "1268", + "kind": 3, + "sv": "value", + "pos": 7467, + "end": 7472, + "flags": 0, + "parent": { + "$ref": "1267" + }, + "_id": 392 + }, + "type": { + "$id": "1269", + "kind": 44, + "target": { + "$id": "1270", + "kind": 45, + "target": { + "$id": "1271", + "kind": 3, + "sv": "RangeLimitableTypes", + "pos": 7482, + "end": 7501, + "flags": 1, + "parent": { + "$ref": "1270" + }, + "_id": 394 + }, + "arguments": [], + "pos": 7482, + "end": 7501, + "flags": 1, + "parent": { + "$ref": "1269" + }, + "_id": 393 + }, + "pos": 7474, + "end": 7501, + "flags": 0, + "parent": { + "$ref": "1267" + } + }, + "optional": false, + "rest": false, + "pos": 7467, + "end": 7501, + "flags": 0, + "parent": { + "$ref": "1257" + }, + "symbol": { + "declarations": [ + { + "$ref": "1267" + } + ], + "name": "value", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 274 + } + } + ], + "pos": 7222, + "end": 7504, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1272", + "kind": 51, + "content": [ + { + "$id": "1273", + "kind": 52, + "text": "Specify the maximum value this numeric type should be.", + "pos": 7225, + "end": 7287, + "flags": 0, + "parent": { + "$ref": "1272" + } + } + ], + "tags": [ + { + "$id": "1274", + "kind": 53, + "tagName": { + "$id": "1275", + "kind": 3, + "sv": "param", + "pos": 7288, + "end": 7293, + "flags": 0, + "parent": { + "$ref": "1274" + } + }, + "paramName": { + "$id": "1276", + "kind": 3, + "sv": "value", + "pos": 7294, + "end": 7299, + "flags": 0, + "parent": { + "$ref": "1274" + } + }, + "content": [ + { + "$id": "1277", + "kind": 52, + "text": "Maximum value", + "pos": 7300, + "end": 7320, + "flags": 0, + "parent": { + "$ref": "1274" + } + } + ], + "pos": 7287, + "end": 7320, + "flags": 0, + "parent": { + "$ref": "1272" + } + }, + { + "$id": "1278", + "kind": 58, + "tagName": { + "$id": "1279", + "kind": 3, + "sv": "example", + "pos": 7321, + "end": 7328, + "flags": 0, + "parent": { + "$ref": "1278" + } + }, + "content": [ + { + "$id": "1280", + "kind": 52, + "text": "```typespec\n@maxValue(200)\nscalar Age is int32;\n```", + "pos": 7328, + "end": 7394, + "flags": 0, + "parent": { + "$ref": "1278" + } + } + ], + "pos": 7320, + "end": 7394, + "flags": 0, + "parent": { + "$ref": "1272" + } + } + ], + "pos": 7222, + "end": 7396, + "flags": 0, + "parent": { + "$ref": "1257" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1257" + } + ], + "name": "@maxValue", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1281", + "kind": 25, + "modifiers": [ + { + "$id": "1282", + "kind": 40, + "pos": 7728, + "end": 7734, + "flags": 0, + "parent": { + "$ref": "1281" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1283", + "kind": 3, + "sv": "minValueExclusive", + "pos": 7739, + "end": 7756, + "flags": 0, + "parent": { + "$ref": "1281" + }, + "_id": 395 + }, + "target": { + "$id": "1284", + "kind": 27, + "id": { + "$id": "1285", + "kind": 3, + "sv": "target", + "pos": 7760, + "end": 7766, + "flags": 0, + "parent": { + "$ref": "1284" + }, + "_id": 396 + }, + "type": { + "$id": "1286", + "kind": 28, + "options": [ + { + "$id": "1287", + "kind": 45, + "target": { + "$id": "1288", + "kind": 3, + "sv": "RangeLimitableTypes", + "pos": 7768, + "end": 7787, + "flags": 1, + "parent": { + "$ref": "1287" + }, + "_id": 398 + }, + "arguments": [], + "pos": 7768, + "end": 7787, + "flags": 1, + "parent": { + "$ref": "1286" + }, + "_id": 397 + }, + { + "$id": "1289", + "kind": 45, + "target": { + "$id": "1290", + "kind": 3, + "sv": "ModelProperty", + "pos": 7790, + "end": 7803, + "flags": 1, + "parent": { + "$ref": "1289" + }, + "_id": 400 + }, + "arguments": [], + "pos": 7790, + "end": 7803, + "flags": 1, + "parent": { + "$ref": "1286" + }, + "_id": 399 + } + ], + "pos": 7768, + "end": 7803, + "flags": 0, + "parent": { + "$ref": "1284" + } + }, + "optional": false, + "rest": false, + "pos": 7760, + "end": 7803, + "flags": 0, + "parent": { + "$ref": "1281" + }, + "symbol": { + "declarations": [ + { + "$ref": "1284" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 276 + } + }, + "parameters": [ + { + "$id": "1291", + "kind": 27, + "id": { + "$id": "1292", + "kind": 3, + "sv": "value", + "pos": 7807, + "end": 7812, + "flags": 0, + "parent": { + "$ref": "1291" + }, + "_id": 401 + }, + "type": { + "$id": "1293", + "kind": 44, + "target": { + "$id": "1294", + "kind": 45, + "target": { + "$id": "1295", + "kind": 3, + "sv": "RangeLimitableTypes", + "pos": 7822, + "end": 7841, + "flags": 1, + "parent": { + "$ref": "1294" + }, + "_id": 403 + }, + "arguments": [], + "pos": 7822, + "end": 7841, + "flags": 1, + "parent": { + "$ref": "1293" + }, + "_id": 402 + }, + "pos": 7814, + "end": 7841, + "flags": 0, + "parent": { + "$ref": "1291" + } + }, + "optional": false, + "rest": false, + "pos": 7807, + "end": 7841, + "flags": 0, + "parent": { + "$ref": "1281" + }, + "symbol": { + "declarations": [ + { + "$ref": "1291" + } + ], + "name": "value", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 277 + } + } + ], + "pos": 7506, + "end": 7844, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1296", + "kind": 51, + "content": [ + { + "$id": "1297", + "kind": 52, + "text": "Specify the minimum value this numeric type should be, exclusive of the given\nvalue.", + "pos": 7509, + "end": 7604, + "flags": 0, + "parent": { + "$ref": "1296" + } + } + ], + "tags": [ + { + "$id": "1298", + "kind": 53, + "tagName": { + "$id": "1299", + "kind": 3, + "sv": "param", + "pos": 7605, + "end": 7610, + "flags": 0, + "parent": { + "$ref": "1298" + } + }, + "paramName": { + "$id": "1300", + "kind": 3, + "sv": "value", + "pos": 7611, + "end": 7616, + "flags": 0, + "parent": { + "$ref": "1298" + } + }, + "content": [ + { + "$id": "1301", + "kind": 52, + "text": "Minimum value", + "pos": 7617, + "end": 7637, + "flags": 0, + "parent": { + "$ref": "1298" + } + } + ], + "pos": 7604, + "end": 7637, + "flags": 0, + "parent": { + "$ref": "1296" + } + }, + { + "$id": "1302", + "kind": 58, + "tagName": { + "$id": "1303", + "kind": 3, + "sv": "example", + "pos": 7638, + "end": 7645, + "flags": 0, + "parent": { + "$ref": "1302" + } + }, + "content": [ + { + "$id": "1304", + "kind": 52, + "text": "```typespec\n@minValueExclusive(0)\nscalar distance is float64;\n```", + "pos": 7645, + "end": 7725, + "flags": 0, + "parent": { + "$ref": "1302" + } + } + ], + "pos": 7637, + "end": 7725, + "flags": 0, + "parent": { + "$ref": "1296" + } + } + ], + "pos": 7506, + "end": 7727, + "flags": 0, + "parent": { + "$ref": "1281" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1281" + } + ], + "name": "@minValueExclusive", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1305", + "kind": 25, + "modifiers": [ + { + "$id": "1306", + "kind": 40, + "pos": 8069, + "end": 8075, + "flags": 0, + "parent": { + "$ref": "1305" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1307", + "kind": 3, + "sv": "maxValueExclusive", + "pos": 8080, + "end": 8097, + "flags": 0, + "parent": { + "$ref": "1305" + }, + "_id": 404 + }, + "target": { + "$id": "1308", + "kind": 27, + "id": { + "$id": "1309", + "kind": 3, + "sv": "target", + "pos": 8101, + "end": 8107, + "flags": 0, + "parent": { + "$ref": "1308" + }, + "_id": 405 + }, + "type": { + "$id": "1310", + "kind": 28, + "options": [ + { + "$id": "1311", + "kind": 45, + "target": { + "$id": "1312", + "kind": 3, + "sv": "RangeLimitableTypes", + "pos": 8109, + "end": 8128, + "flags": 1, + "parent": { + "$ref": "1311" + }, + "_id": 407 + }, + "arguments": [], + "pos": 8109, + "end": 8128, + "flags": 1, + "parent": { + "$ref": "1310" + }, + "_id": 406 + }, + { + "$id": "1313", + "kind": 45, + "target": { + "$id": "1314", + "kind": 3, + "sv": "ModelProperty", + "pos": 8131, + "end": 8144, + "flags": 1, + "parent": { + "$ref": "1313" + }, + "_id": 409 + }, + "arguments": [], + "pos": 8131, + "end": 8144, + "flags": 1, + "parent": { + "$ref": "1310" + }, + "_id": 408 + } + ], + "pos": 8109, + "end": 8144, + "flags": 0, + "parent": { + "$ref": "1308" + } + }, + "optional": false, + "rest": false, + "pos": 8101, + "end": 8144, + "flags": 0, + "parent": { + "$ref": "1305" + }, + "symbol": { + "declarations": [ + { + "$ref": "1308" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 279 + } + }, + "parameters": [ + { + "$id": "1315", + "kind": 27, + "id": { + "$id": "1316", + "kind": 3, + "sv": "value", + "pos": 8148, + "end": 8153, + "flags": 0, + "parent": { + "$ref": "1315" + }, + "_id": 410 + }, + "type": { + "$id": "1317", + "kind": 44, + "target": { + "$id": "1318", + "kind": 45, + "target": { + "$id": "1319", + "kind": 3, + "sv": "RangeLimitableTypes", + "pos": 8163, + "end": 8182, + "flags": 1, + "parent": { + "$ref": "1318" + }, + "_id": 412 + }, + "arguments": [], + "pos": 8163, + "end": 8182, + "flags": 1, + "parent": { + "$ref": "1317" + }, + "_id": 411 + }, + "pos": 8155, + "end": 8182, + "flags": 0, + "parent": { + "$ref": "1315" + } + }, + "optional": false, + "rest": false, + "pos": 8148, + "end": 8182, + "flags": 0, + "parent": { + "$ref": "1305" + }, + "symbol": { + "declarations": [ + { + "$ref": "1315" + } + ], + "name": "value", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 280 + } + } + ], + "pos": 7846, + "end": 8185, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1320", + "kind": 51, + "content": [ + { + "$id": "1321", + "kind": 52, + "text": "Specify the maximum value this numeric type should be, exclusive of the given\nvalue.", + "pos": 7849, + "end": 7944, + "flags": 0, + "parent": { + "$ref": "1320" + } + } + ], + "tags": [ + { + "$id": "1322", + "kind": 53, + "tagName": { + "$id": "1323", + "kind": 3, + "sv": "param", + "pos": 7945, + "end": 7950, + "flags": 0, + "parent": { + "$ref": "1322" + } + }, + "paramName": { + "$id": "1324", + "kind": 3, + "sv": "value", + "pos": 7951, + "end": 7956, + "flags": 0, + "parent": { + "$ref": "1322" + } + }, + "content": [ + { + "$id": "1325", + "kind": 52, + "text": "Maximum value", + "pos": 7957, + "end": 7977, + "flags": 0, + "parent": { + "$ref": "1322" + } + } + ], + "pos": 7944, + "end": 7977, + "flags": 0, + "parent": { + "$ref": "1320" + } + }, + { + "$id": "1326", + "kind": 58, + "tagName": { + "$id": "1327", + "kind": 3, + "sv": "example", + "pos": 7978, + "end": 7985, + "flags": 0, + "parent": { + "$ref": "1326" + } + }, + "content": [ + { + "$id": "1328", + "kind": 52, + "text": "```typespec\n@maxValueExclusive(50)\nscalar distance is float64;\n```", + "pos": 7985, + "end": 8066, + "flags": 0, + "parent": { + "$ref": "1326" + } + } + ], + "pos": 7977, + "end": 8066, + "flags": 0, + "parent": { + "$ref": "1320" + } + } + ], + "pos": 7846, + "end": 8068, + "flags": 0, + "parent": { + "$ref": "1305" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1305" + } + ], + "name": "@maxValueExclusive", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1329", + "kind": 25, + "modifiers": [ + { + "$id": "1330", + "kind": 40, + "pos": 8361, + "end": 8367, + "flags": 0, + "parent": { + "$ref": "1329" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1331", + "kind": 3, + "sv": "secret", + "pos": 8372, + "end": 8378, + "flags": 0, + "parent": { + "$ref": "1329" + }, + "_id": 413 + }, + "target": { + "$id": "1332", + "kind": 27, + "id": { + "$id": "1333", + "kind": 3, + "sv": "target", + "pos": 8379, + "end": 8385, + "flags": 0, + "parent": { + "$ref": "1332" + }, + "_id": 414 + }, + "type": { + "$id": "1334", + "kind": 28, + "options": [ + { + "$id": "1335", + "kind": 45, + "target": { + "$id": "1336", + "kind": 3, + "sv": "Scalar", + "pos": 8387, + "end": 8393, + "flags": 1, + "parent": { + "$ref": "1335" + }, + "_id": 416 + }, + "arguments": [], + "pos": 8387, + "end": 8393, + "flags": 1, + "parent": { + "$ref": "1334" + }, + "_id": 415 + }, + { + "$id": "1337", + "kind": 45, + "target": { + "$id": "1338", + "kind": 3, + "sv": "ModelProperty", + "pos": 8396, + "end": 8409, + "flags": 1, + "parent": { + "$ref": "1337" + }, + "_id": 418 + }, + "arguments": [], + "pos": 8396, + "end": 8409, + "flags": 1, + "parent": { + "$ref": "1334" + }, + "_id": 417 + }, + { + "$id": "1339", + "kind": 45, + "target": { + "$id": "1340", + "kind": 3, + "sv": "Model", + "pos": 8412, + "end": 8417, + "flags": 1, + "parent": { + "$ref": "1339" + }, + "_id": 420 + }, + "arguments": [], + "pos": 8412, + "end": 8417, + "flags": 1, + "parent": { + "$ref": "1334" + }, + "_id": 419 + }, + { + "$id": "1341", + "kind": 45, + "target": { + "$id": "1342", + "kind": 3, + "sv": "Union", + "pos": 8420, + "end": 8425, + "flags": 1, + "parent": { + "$ref": "1341" + }, + "_id": 422 + }, + "arguments": [], + "pos": 8420, + "end": 8425, + "flags": 1, + "parent": { + "$ref": "1334" + }, + "_id": 421 + }, + { + "$id": "1343", + "kind": 45, + "target": { + "$id": "1344", + "kind": 3, + "sv": "Enum", + "pos": 8428, + "end": 8432, + "flags": 1, + "parent": { + "$ref": "1343" + }, + "_id": 424 + }, + "arguments": [], + "pos": 8428, + "end": 8432, + "flags": 1, + "parent": { + "$ref": "1334" + }, + "_id": 423 + } + ], + "pos": 8387, + "end": 8432, + "flags": 0, + "parent": { + "$ref": "1332" + } + }, + "optional": false, + "rest": false, + "pos": 8379, + "end": 8432, + "flags": 0, + "parent": { + "$ref": "1329" + }, + "symbol": { + "declarations": [ + { + "$ref": "1332" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 282 + } + }, + "parameters": [], + "pos": 8187, + "end": 8434, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1345", + "kind": 51, + "content": [ + { + "$id": "1346", + "kind": 52, + "text": "Mark this value as a secret value that should be treated carefully to avoid exposure", + "pos": 8190, + "end": 8285, + "flags": 0, + "parent": { + "$ref": "1345" + } + } + ], + "tags": [ + { + "$id": "1347", + "kind": 58, + "tagName": { + "$id": "1348", + "kind": 3, + "sv": "example", + "pos": 8286, + "end": 8293, + "flags": 0, + "parent": { + "$ref": "1347" + } + }, + "content": [ + { + "$id": "1349", + "kind": 52, + "text": "```typespec\n@secret\nscalar Password is string;\n```", + "pos": 8293, + "end": 8358, + "flags": 0, + "parent": { + "$ref": "1347" + } + } + ], + "pos": 8285, + "end": 8358, + "flags": 0, + "parent": { + "$ref": "1345" + } + } + ], + "pos": 8187, + "end": 8360, + "flags": 0, + "parent": { + "$ref": "1329" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1329" + } + ], + "name": "@secret", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1350", + "kind": 25, + "modifiers": [ + { + "$id": "1351", + "kind": 40, + "pos": 8619, + "end": 8625, + "flags": 0, + "parent": { + "$ref": "1350" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1352", + "kind": 3, + "sv": "tag", + "pos": 8630, + "end": 8633, + "flags": 0, + "parent": { + "$ref": "1350" + }, + "_id": 425 + }, + "target": { + "$id": "1353", + "kind": 27, + "id": { + "$id": "1354", + "kind": 3, + "sv": "target", + "pos": 8634, + "end": 8640, + "flags": 0, + "parent": { + "$ref": "1353" + }, + "_id": 426 + }, + "type": { + "$id": "1355", + "kind": 28, + "options": [ + { + "$id": "1356", + "kind": 45, + "target": { + "$id": "1357", + "kind": 3, + "sv": "Namespace", + "pos": 8642, + "end": 8651, + "flags": 1, + "parent": { + "$ref": "1356" + }, + "_id": 428 + }, + "arguments": [], + "pos": 8642, + "end": 8651, + "flags": 1, + "parent": { + "$ref": "1355" + }, + "_id": 427 + }, + { + "$id": "1358", + "kind": 45, + "target": { + "$id": "1359", + "kind": 3, + "sv": "Interface", + "pos": 8654, + "end": 8663, + "flags": 1, + "parent": { + "$ref": "1358" + }, + "_id": 430 + }, + "arguments": [], + "pos": 8654, + "end": 8663, + "flags": 1, + "parent": { + "$ref": "1355" + }, + "_id": 429 + }, + { + "$id": "1360", + "kind": 45, + "target": { + "$id": "1361", + "kind": 3, + "sv": "Operation", + "pos": 8666, + "end": 8675, + "flags": 1, + "parent": { + "$ref": "1360" + }, + "_id": 433 + }, + "arguments": [], + "pos": 8666, + "end": 8675, + "flags": 1, + "parent": { + "$ref": "1355" + }, + "_id": 432 + } + ], + "pos": 8642, + "end": 8675, + "flags": 0, + "parent": { + "$ref": "1353" + } + }, + "optional": false, + "rest": false, + "pos": 8634, + "end": 8675, + "flags": 0, + "parent": { + "$ref": "1350" + }, + "symbol": { + "declarations": [ + { + "$ref": "1353" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 284 + } + }, + "parameters": [ + { + "$id": "1362", + "kind": 27, + "id": { + "$id": "1363", + "kind": 3, + "sv": "tag", + "pos": 8677, + "end": 8680, + "flags": 0, + "parent": { + "$ref": "1362" + }, + "_id": 434 + }, + "type": { + "$id": "1364", + "kind": 44, + "target": { + "$id": "1365", + "kind": 45, + "target": { + "$id": "1366", + "kind": 3, + "sv": "string", + "pos": 8690, + "end": 8696, + "flags": 1, + "parent": { + "$ref": "1365" + }, + "_id": 436 + }, + "arguments": [], + "pos": 8690, + "end": 8696, + "flags": 1, + "parent": { + "$ref": "1364" + }, + "_id": 435 + }, + "pos": 8682, + "end": 8696, + "flags": 0, + "parent": { + "$ref": "1362" + } + }, + "optional": false, + "rest": false, + "pos": 8677, + "end": 8696, + "flags": 0, + "parent": { + "$ref": "1350" + }, + "symbol": { + "declarations": [ + { + "$ref": "1362" + } + ], + "name": "tag", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 285 + } + } + ], + "pos": 8436, + "end": 8698, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1367", + "kind": 51, + "content": [ + { + "$id": "1368", + "kind": 52, + "text": "Attaches a tag to an operation, interface, or namespace. Multiple `@tag` decorators can be specified to attach multiple tags to a TypeSpec element.", + "pos": 8439, + "end": 8594, + "flags": 0, + "parent": { + "$ref": "1367" + } + } + ], + "tags": [ + { + "$id": "1369", + "kind": 53, + "tagName": { + "$id": "1370", + "kind": 3, + "sv": "param", + "pos": 8595, + "end": 8600, + "flags": 0, + "parent": { + "$ref": "1369" + } + }, + "paramName": { + "$id": "1371", + "kind": 3, + "sv": "tag", + "pos": 8601, + "end": 8604, + "flags": 0, + "parent": { + "$ref": "1369" + } + }, + "content": [ + { + "$id": "1372", + "kind": 52, + "text": "Tag value", + "pos": 8605, + "end": 8616, + "flags": 0, + "parent": { + "$ref": "1369" + } + } + ], + "pos": 8594, + "end": 8616, + "flags": 0, + "parent": { + "$ref": "1367" + } + } + ], + "pos": 8436, + "end": 8618, + "flags": 0, + "parent": { + "$ref": "1350" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1350" + } + ], + "name": "@tag", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1373", + "kind": 25, + "modifiers": [ + { + "$id": "1374", + "kind": 40, + "pos": 9037, + "end": 9043, + "flags": 0, + "parent": { + "$ref": "1373" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1375", + "kind": 3, + "sv": "friendlyName", + "pos": 9048, + "end": 9060, + "flags": 0, + "parent": { + "$ref": "1373" + }, + "_id": 437 + }, + "target": { + "$id": "1376", + "kind": 27, + "id": { + "$id": "1377", + "kind": 3, + "sv": "target", + "pos": 9061, + "end": 9067, + "flags": 0, + "parent": { + "$ref": "1376" + }, + "_id": 438 + }, + "type": { + "$id": "1378", + "kind": 43, + "pos": 9069, + "end": 9076, + "flags": 0, + "parent": { + "$ref": "1376" + } + }, + "optional": false, + "rest": false, + "pos": 9061, + "end": 9076, + "flags": 0, + "parent": { + "$ref": "1373" + }, + "symbol": { + "declarations": [ + { + "$ref": "1376" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 287 + } + }, + "parameters": [ + { + "$id": "1379", + "kind": 27, + "id": { + "$id": "1380", + "kind": 3, + "sv": "name", + "pos": 9078, + "end": 9082, + "flags": 0, + "parent": { + "$ref": "1379" + }, + "_id": 439 + }, + "type": { + "$id": "1381", + "kind": 44, + "target": { + "$id": "1382", + "kind": 45, + "target": { + "$id": "1383", + "kind": 3, + "sv": "string", + "pos": 9092, + "end": 9098, + "flags": 1, + "parent": { + "$ref": "1382" + }, + "_id": 441 + }, + "arguments": [], + "pos": 9092, + "end": 9098, + "flags": 1, + "parent": { + "$ref": "1381" + }, + "_id": 440 + }, + "pos": 9084, + "end": 9098, + "flags": 0, + "parent": { + "$ref": "1379" + } + }, + "optional": false, + "rest": false, + "pos": 9078, + "end": 9098, + "flags": 0, + "parent": { + "$ref": "1373" + }, + "symbol": { + "declarations": [ + { + "$ref": "1379" + } + ], + "name": "name", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 288 + } + }, + { + "$id": "1384", + "kind": 27, + "id": { + "$id": "1385", + "kind": 3, + "sv": "formatArgs", + "pos": 9100, + "end": 9110, + "flags": 0, + "parent": { + "$ref": "1384" + }, + "_id": 442 + }, + "type": { + "$id": "1386", + "kind": 43, + "pos": 9113, + "end": 9120, + "flags": 0, + "parent": { + "$ref": "1384" + } + }, + "optional": true, + "rest": false, + "pos": 9100, + "end": 9120, + "flags": 0, + "parent": { + "$ref": "1373" + }, + "symbol": { + "declarations": [ + { + "$ref": "1384" + } + ], + "name": "formatArgs", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 289 + } + } + ], + "pos": 8700, + "end": 9122, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1387", + "kind": 51, + "content": [ + { + "$id": "1388", + "kind": 52, + "text": "Specifies how a templated type should name their instances.", + "pos": 8703, + "end": 8770, + "flags": 0, + "parent": { + "$ref": "1387" + } + } + ], + "tags": [ + { + "$id": "1389", + "kind": 53, + "tagName": { + "$id": "1390", + "kind": 3, + "sv": "param", + "pos": 8771, + "end": 8776, + "flags": 0, + "parent": { + "$ref": "1389" + } + }, + "paramName": { + "$id": "1391", + "kind": 3, + "sv": "name", + "pos": 8777, + "end": 8781, + "flags": 0, + "parent": { + "$ref": "1389" + } + }, + "content": [ + { + "$id": "1392", + "kind": 52, + "text": "name the template instance should take", + "pos": 8782, + "end": 8824, + "flags": 0, + "parent": { + "$ref": "1389" + } + } + ], + "pos": 8770, + "end": 8824, + "flags": 0, + "parent": { + "$ref": "1387" + } + }, + { + "$id": "1393", + "kind": 53, + "tagName": { + "$id": "1394", + "kind": 3, + "sv": "param", + "pos": 8825, + "end": 8830, + "flags": 0, + "parent": { + "$ref": "1393" + } + }, + "paramName": { + "$id": "1395", + "kind": 3, + "sv": "formatArgs", + "pos": 8831, + "end": 8841, + "flags": 0, + "parent": { + "$ref": "1393" + } + }, + "content": [ + { + "$id": "1396", + "kind": 52, + "text": "Model with key value used to interpolate the name", + "pos": 8842, + "end": 8898, + "flags": 0, + "parent": { + "$ref": "1393" + } + } + ], + "pos": 8824, + "end": 8898, + "flags": 0, + "parent": { + "$ref": "1387" + } + }, + { + "$id": "1397", + "kind": 58, + "tagName": { + "$id": "1398", + "kind": 3, + "sv": "example", + "pos": 8899, + "end": 8906, + "flags": 0, + "parent": { + "$ref": "1397" + } + }, + "content": [ + { + "$id": "1399", + "kind": 52, + "text": "```typespec\n@friendlyName(\"{name}List\", T)\nmodel List {\n value: Item[];\n nextLink: string;\n}\n```", + "pos": 8906, + "end": 9034, + "flags": 0, + "parent": { + "$ref": "1397" + } + } + ], + "pos": 8898, + "end": 9034, + "flags": 0, + "parent": { + "$ref": "1387" + } + } + ], + "pos": 8700, + "end": 9036, + "flags": 0, + "parent": { + "$ref": "1373" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1373" + } + ], + "name": "@friendlyName", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1400", + "kind": 25, + "modifiers": [ + { + "$id": "1401", + "kind": 40, + "pos": 9377, + "end": 9383, + "flags": 0, + "parent": { + "$ref": "1400" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1402", + "kind": 3, + "sv": "key", + "pos": 9388, + "end": 9391, + "flags": 0, + "parent": { + "$ref": "1400" + }, + "_id": 443 + }, + "target": { + "$id": "1403", + "kind": 27, + "id": { + "$id": "1404", + "kind": 3, + "sv": "target", + "pos": 9392, + "end": 9398, + "flags": 0, + "parent": { + "$ref": "1403" + }, + "_id": 444 + }, + "type": { + "$id": "1405", + "kind": 45, + "target": { + "$id": "1406", + "kind": 3, + "sv": "ModelProperty", + "pos": 9400, + "end": 9413, + "flags": 1, + "parent": { + "$ref": "1405" + }, + "_id": 446 + }, + "arguments": [], + "pos": 9400, + "end": 9413, + "flags": 1, + "parent": { + "$ref": "1403" + }, + "_id": 445 + }, + "optional": false, + "rest": false, + "pos": 9392, + "end": 9413, + "flags": 0, + "parent": { + "$ref": "1400" + }, + "symbol": { + "declarations": [ + { + "$ref": "1403" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 291 + } + }, + "parameters": [ + { + "$id": "1407", + "kind": 27, + "id": { + "$id": "1408", + "kind": 3, + "sv": "altName", + "pos": 9415, + "end": 9422, + "flags": 0, + "parent": { + "$ref": "1407" + }, + "_id": 447 + }, + "type": { + "$id": "1409", + "kind": 44, + "target": { + "$id": "1410", + "kind": 45, + "target": { + "$id": "1411", + "kind": 3, + "sv": "string", + "pos": 9433, + "end": 9439, + "flags": 1, + "parent": { + "$ref": "1410" + }, + "_id": 449 + }, + "arguments": [], + "pos": 9433, + "end": 9439, + "flags": 1, + "parent": { + "$ref": "1409" + }, + "_id": 448 + }, + "pos": 9425, + "end": 9439, + "flags": 0, + "parent": { + "$ref": "1407" + } + }, + "optional": true, + "rest": false, + "pos": 9415, + "end": 9439, + "flags": 0, + "parent": { + "$ref": "1400" + }, + "symbol": { + "declarations": [ + { + "$ref": "1407" + } + ], + "name": "altName", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 292 + } + } + ], + "pos": 9124, + "end": 9441, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1412", + "kind": 51, + "content": [ + { + "$id": "1413", + "kind": 52, + "text": "Mark a model property as the key to identify instances of that type", + "pos": 9127, + "end": 9202, + "flags": 0, + "parent": { + "$ref": "1412" + } + } + ], + "tags": [ + { + "$id": "1414", + "kind": 53, + "tagName": { + "$id": "1415", + "kind": 3, + "sv": "param", + "pos": 9203, + "end": 9208, + "flags": 0, + "parent": { + "$ref": "1414" + } + }, + "paramName": { + "$id": "1416", + "kind": 3, + "sv": "altName", + "pos": 9209, + "end": 9216, + "flags": 0, + "parent": { + "$ref": "1414" + } + }, + "content": [ + { + "$id": "1417", + "kind": 52, + "text": "Name of the property. If not specified, the decorated property name is used.", + "pos": 9217, + "end": 9300, + "flags": 0, + "parent": { + "$ref": "1414" + } + } + ], + "pos": 9202, + "end": 9300, + "flags": 0, + "parent": { + "$ref": "1412" + } + }, + { + "$id": "1418", + "kind": 58, + "tagName": { + "$id": "1419", + "kind": 3, + "sv": "example", + "pos": 9301, + "end": 9308, + "flags": 0, + "parent": { + "$ref": "1418" + } + }, + "content": [ + { + "$id": "1420", + "kind": 52, + "text": "```typespec\nmodel Pet {\n @key id: string;\n}\n```", + "pos": 9308, + "end": 9374, + "flags": 0, + "parent": { + "$ref": "1418" + } + } + ], + "pos": 9300, + "end": 9374, + "flags": 0, + "parent": { + "$ref": "1412" + } + } + ], + "pos": 9124, + "end": 9376, + "flags": 0, + "parent": { + "$ref": "1400" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1400" + } + ], + "name": "@key", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1421", + "kind": 25, + "modifiers": [ + { + "$id": "1422", + "kind": 40, + "pos": 9942, + "end": 9948, + "flags": 0, + "parent": { + "$ref": "1421" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1423", + "kind": 3, + "sv": "overload", + "pos": 9953, + "end": 9961, + "flags": 0, + "parent": { + "$ref": "1421" + }, + "_id": 450 + }, + "target": { + "$id": "1424", + "kind": 27, + "id": { + "$id": "1425", + "kind": 3, + "sv": "target", + "pos": 9962, + "end": 9968, + "flags": 0, + "parent": { + "$ref": "1424" + }, + "_id": 451 + }, + "type": { + "$id": "1426", + "kind": 45, + "target": { + "$id": "1427", + "kind": 3, + "sv": "Operation", + "pos": 9970, + "end": 9979, + "flags": 1, + "parent": { + "$ref": "1426" + }, + "_id": 453 + }, + "arguments": [], + "pos": 9970, + "end": 9979, + "flags": 1, + "parent": { + "$ref": "1424" + }, + "_id": 452 + }, + "optional": false, + "rest": false, + "pos": 9962, + "end": 9979, + "flags": 0, + "parent": { + "$ref": "1421" + }, + "symbol": { + "declarations": [ + { + "$ref": "1424" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 294 + } + }, + "parameters": [ + { + "$id": "1428", + "kind": 27, + "id": { + "$id": "1429", + "kind": 3, + "sv": "overloadbase", + "pos": 9981, + "end": 9993, + "flags": 0, + "parent": { + "$ref": "1428" + }, + "_id": 454 + }, + "type": { + "$id": "1430", + "kind": 45, + "target": { + "$id": "1431", + "kind": 3, + "sv": "Operation", + "pos": 9995, + "end": 10004, + "flags": 1, + "parent": { + "$ref": "1430" + }, + "_id": 456 + }, + "arguments": [], + "pos": 9995, + "end": 10004, + "flags": 1, + "parent": { + "$ref": "1428" + }, + "_id": 455 + }, + "optional": false, + "rest": false, + "pos": 9981, + "end": 10004, + "flags": 0, + "parent": { + "$ref": "1421" + }, + "symbol": { + "declarations": [ + { + "$ref": "1428" + } + ], + "name": "overloadbase", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 295 + } + } + ], + "pos": 9443, + "end": 10006, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1432", + "kind": 51, + "content": [ + { + "$id": "1433", + "kind": 52, + "text": "Specify this operation is an overload of the given operation.", + "pos": 9446, + "end": 9515, + "flags": 0, + "parent": { + "$ref": "1432" + } + } + ], + "tags": [ + { + "$id": "1434", + "kind": 53, + "tagName": { + "$id": "1435", + "kind": 3, + "sv": "param", + "pos": 9516, + "end": 9521, + "flags": 0, + "parent": { + "$ref": "1434" + } + }, + "paramName": { + "$id": "1436", + "kind": 3, + "sv": "overloadbase", + "pos": 9522, + "end": 9534, + "flags": 0, + "parent": { + "$ref": "1434" + } + }, + "content": [ + { + "$id": "1437", + "kind": 52, + "text": "Base operation that should be a union of all overloads", + "pos": 9535, + "end": 9596, + "flags": 0, + "parent": { + "$ref": "1434" + } + } + ], + "pos": 9515, + "end": 9596, + "flags": 0, + "parent": { + "$ref": "1432" + } + }, + { + "$id": "1438", + "kind": 58, + "tagName": { + "$id": "1439", + "kind": 3, + "sv": "example", + "pos": 9597, + "end": 9604, + "flags": 0, + "parent": { + "$ref": "1438" + } + }, + "content": [ + { + "$id": "1440", + "kind": 52, + "text": "```typespec\nop upload(data: string | bytes, @header contentType: \"text/plain\" | \"application/octet-stream\"): void;\n@overload(upload)\nop uploadString(data: string, @header contentType: \"text/plain\" ): void;\n@overload(upload)\nop uploadBytes(data: bytes, @header contentType: \"application/octet-stream\"): void;\n```", + "pos": 9604, + "end": 9939, + "flags": 0, + "parent": { + "$ref": "1438" + } + } + ], + "pos": 9596, + "end": 9939, + "flags": 0, + "parent": { + "$ref": "1432" + } + } + ], + "pos": 9443, + "end": 9941, + "flags": 0, + "parent": { + "$ref": "1421" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1421" + } + ], + "name": "@overload", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1441", + "kind": 25, + "modifiers": [ + { + "$id": "1442", + "kind": 40, + "pos": 10702, + "end": 10708, + "flags": 0, + "parent": { + "$ref": "1441" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1443", + "kind": 3, + "sv": "encodedName", + "pos": 10713, + "end": 10724, + "flags": 0, + "parent": { + "$ref": "1441" + }, + "_id": 457 + }, + "target": { + "$id": "1444", + "kind": 27, + "id": { + "$id": "1445", + "kind": 3, + "sv": "target", + "pos": 10725, + "end": 10731, + "flags": 0, + "parent": { + "$ref": "1444" + }, + "_id": 458 + }, + "type": { + "$id": "1446", + "kind": 43, + "pos": 10733, + "end": 10740, + "flags": 0, + "parent": { + "$ref": "1444" + } + }, + "optional": false, + "rest": false, + "pos": 10725, + "end": 10740, + "flags": 0, + "parent": { + "$ref": "1441" + }, + "symbol": { + "declarations": [ + { + "$ref": "1444" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 297 + } + }, + "parameters": [ + { + "$id": "1447", + "kind": 27, + "id": { + "$id": "1448", + "kind": 3, + "sv": "mimeType", + "pos": 10742, + "end": 10750, + "flags": 0, + "parent": { + "$ref": "1447" + }, + "_id": 459 + }, + "type": { + "$id": "1449", + "kind": 44, + "target": { + "$id": "1450", + "kind": 45, + "target": { + "$id": "1451", + "kind": 3, + "sv": "string", + "pos": 10760, + "end": 10766, + "flags": 1, + "parent": { + "$ref": "1450" + }, + "_id": 461 + }, + "arguments": [], + "pos": 10760, + "end": 10766, + "flags": 1, + "parent": { + "$ref": "1449" + }, + "_id": 460 + }, + "pos": 10752, + "end": 10766, + "flags": 0, + "parent": { + "$ref": "1447" + } + }, + "optional": false, + "rest": false, + "pos": 10742, + "end": 10766, + "flags": 0, + "parent": { + "$ref": "1441" + }, + "symbol": { + "declarations": [ + { + "$ref": "1447" + } + ], + "name": "mimeType", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 298 + } + }, + { + "$id": "1452", + "kind": 27, + "id": { + "$id": "1453", + "kind": 3, + "sv": "name", + "pos": 10768, + "end": 10772, + "flags": 0, + "parent": { + "$ref": "1452" + }, + "_id": 462 + }, + "type": { + "$id": "1454", + "kind": 44, + "target": { + "$id": "1455", + "kind": 45, + "target": { + "$id": "1456", + "kind": 3, + "sv": "string", + "pos": 10782, + "end": 10788, + "flags": 1, + "parent": { + "$ref": "1455" + }, + "_id": 464 + }, + "arguments": [], + "pos": 10782, + "end": 10788, + "flags": 1, + "parent": { + "$ref": "1454" + }, + "_id": 463 + }, + "pos": 10774, + "end": 10788, + "flags": 0, + "parent": { + "$ref": "1452" + } + }, + "optional": false, + "rest": false, + "pos": 10768, + "end": 10788, + "flags": 0, + "parent": { + "$ref": "1441" + }, + "symbol": { + "declarations": [ + { + "$ref": "1452" + } + ], + "name": "name", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 299 + } + } + ], + "pos": 10008, + "end": 10790, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1457", + "kind": 51, + "content": [ + { + "$id": "1458", + "kind": 52, + "text": "Provide an alternative name for this type when serialized to the given mime type.", + "pos": 10011, + "end": 10100, + "flags": 0, + "parent": { + "$ref": "1457" + } + } + ], + "tags": [ + { + "$id": "1459", + "kind": 53, + "tagName": { + "$id": "1460", + "kind": 3, + "sv": "param", + "pos": 10101, + "end": 10106, + "flags": 0, + "parent": { + "$ref": "1459" + } + }, + "paramName": { + "$id": "1461", + "kind": 3, + "sv": "mimeType", + "pos": 10107, + "end": 10115, + "flags": 0, + "parent": { + "$ref": "1459" + } + }, + "content": [ + { + "$id": "1462", + "kind": 52, + "text": "Mime type this should apply to. The mime type should be a known mime type as described here https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types without any suffix (e.g. `+json`)", + "pos": 10116, + "end": 10334, + "flags": 0, + "parent": { + "$ref": "1459" + } + } + ], + "pos": 10100, + "end": 10334, + "flags": 0, + "parent": { + "$ref": "1457" + } + }, + { + "$id": "1463", + "kind": 53, + "tagName": { + "$id": "1464", + "kind": 3, + "sv": "param", + "pos": 10335, + "end": 10340, + "flags": 0, + "parent": { + "$ref": "1463" + } + }, + "paramName": { + "$id": "1465", + "kind": 3, + "sv": "name", + "pos": 10341, + "end": 10345, + "flags": 0, + "parent": { + "$ref": "1463" + } + }, + "content": [ + { + "$id": "1466", + "kind": 52, + "text": "Alternative name", + "pos": 10346, + "end": 10369, + "flags": 0, + "parent": { + "$ref": "1463" + } + } + ], + "pos": 10334, + "end": 10369, + "flags": 0, + "parent": { + "$ref": "1457" + } + }, + { + "$id": "1467", + "kind": 58, + "tagName": { + "$id": "1468", + "kind": 3, + "sv": "example", + "pos": 10370, + "end": 10377, + "flags": 0, + "parent": { + "$ref": "1467" + } + }, + "content": [ + { + "$id": "1469", + "kind": 52, + "text": "```typespec\nmodel Certificate {\n @encodedName(\"application/json\", \"exp\")\n @encodedName(\"application/xml\", \"expiry\")\n expireAt: int32;\n}\n```", + "pos": 10377, + "end": 10551, + "flags": 0, + "parent": { + "$ref": "1467" + } + } + ], + "pos": 10369, + "end": 10551, + "flags": 0, + "parent": { + "$ref": "1457" + } + }, + { + "$id": "1470", + "kind": 58, + "tagName": { + "$id": "1471", + "kind": 3, + "sv": "example", + "pos": 10552, + "end": 10559, + "flags": 0, + "parent": { + "$ref": "1470" + } + }, + "content": [ + { + "$id": "1472", + "kind": 52, + "text": "Invalid values\n\n```typespec\n@encodedName(\"application/merge-patch+json\", \"exp\")\n ^ error cannot use subtype\n```", + "pos": 10559, + "end": 10699, + "flags": 0, + "parent": { + "$ref": "1470" + } + } + ], + "pos": 10551, + "end": 10699, + "flags": 0, + "parent": { + "$ref": "1457" + } + } + ], + "pos": 10008, + "end": 10701, + "flags": 0, + "parent": { + "$ref": "1441" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1441" + } + ], + "name": "@encodedName", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1473", + "kind": 13, + "id": { + "$id": "1474", + "kind": 3, + "sv": "DiscriminatedOptions", + "pos": 10849, + "end": 10869, + "flags": 0, + "parent": { + "$ref": "1473" + }, + "_id": 465 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "1475", + "kind": 15, + "id": { + "$id": "1476", + "kind": 3, + "sv": "envelope", + "pos": 10955, + "end": 10963, + "flags": 0, + "parent": { + "$ref": "1475" + }, + "_id": 466 + }, + "decorators": [], + "value": { + "$id": "1477", + "kind": 28, + "options": [ + { + "$id": "1478", + "kind": 32, + "value": "object", + "pos": 10966, + "end": 10974, + "flags": 0, + "parent": { + "$ref": "1477" + } + }, + { + "$id": "1479", + "kind": 32, + "value": "none", + "pos": 10977, + "end": 10983, + "flags": 0, + "parent": { + "$ref": "1477" + } + } + ], + "pos": 10966, + "end": 10983, + "flags": 0, + "parent": { + "$ref": "1475" + } + }, + "optional": true, + "pos": 10874, + "end": 10983, + "flags": 0, + "docs": [ + { + "$id": "1480", + "kind": 51, + "content": [ + { + "$id": "1481", + "kind": 52, + "text": "How is the discriminated union serialized.", + "pos": 10877, + "end": 10931, + "flags": 0, + "parent": { + "$ref": "1480" + } + } + ], + "tags": [ + { + "$id": "1482", + "kind": 58, + "tagName": { + "$id": "1483", + "kind": 3, + "sv": "default", + "pos": 10932, + "end": 10939, + "flags": 0, + "parent": { + "$ref": "1482" + } + }, + "content": [ + { + "$id": "1484", + "kind": 52, + "text": "object", + "pos": 10939, + "end": 10950, + "flags": 0, + "parent": { + "$ref": "1482" + } + } + ], + "pos": 10931, + "end": 10950, + "flags": 0, + "parent": { + "$ref": "1480" + } + } + ], + "pos": 10874, + "end": 10952, + "flags": 0, + "parent": { + "$ref": "1475" + } + } + ], + "directives": [], + "parent": { + "$ref": "1473" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1475" + }, + "name": "envelope", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1473" + } + ], + "name": "DiscriminatedOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 65 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1485", + "kind": 15, + "id": { + "$id": "1486", + "kind": 3, + "sv": "discriminatorPropertyName", + "pos": 11032, + "end": 11057, + "flags": 0, + "parent": { + "$ref": "1485" + }, + "_id": 467 + }, + "decorators": [], + "value": { + "$id": "1487", + "kind": 45, + "target": { + "$id": "1488", + "kind": 3, + "sv": "string", + "pos": 11060, + "end": 11066, + "flags": 1, + "parent": { + "$ref": "1487" + }, + "_id": 469 + }, + "arguments": [], + "pos": 11060, + "end": 11066, + "flags": 1, + "parent": { + "$ref": "1485" + }, + "_id": 468 + }, + "optional": true, + "pos": 10988, + "end": 11066, + "flags": 0, + "docs": [ + { + "$id": "1489", + "kind": 51, + "content": [ + { + "$id": "1490", + "kind": 52, + "text": "Name of the discriminator property", + "pos": 10991, + "end": 11027, + "flags": 0, + "parent": { + "$ref": "1489" + } + } + ], + "tags": [], + "pos": 10988, + "end": 11029, + "flags": 0, + "parent": { + "$ref": "1485" + } + } + ], + "directives": [], + "parent": { + "$ref": "1473" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1485" + }, + "name": "discriminatorPropertyName", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1473" + } + ], + "name": "DiscriminatedOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 65 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1491", + "kind": 15, + "id": { + "$id": "1492", + "kind": 3, + "sv": "envelopePropertyName", + "pos": 11122, + "end": 11142, + "flags": 0, + "parent": { + "$ref": "1491" + }, + "_id": 470 + }, + "decorators": [], + "value": { + "$id": "1493", + "kind": 45, + "target": { + "$id": "1494", + "kind": 3, + "sv": "string", + "pos": 11145, + "end": 11151, + "flags": 1, + "parent": { + "$ref": "1493" + }, + "_id": 472 + }, + "arguments": [], + "pos": 11145, + "end": 11151, + "flags": 1, + "parent": { + "$ref": "1491" + }, + "_id": 471 + }, + "optional": true, + "pos": 11071, + "end": 11151, + "flags": 0, + "docs": [ + { + "$id": "1495", + "kind": 51, + "content": [ + { + "$id": "1496", + "kind": 52, + "text": "Name of the property envelopping the data", + "pos": 11074, + "end": 11117, + "flags": 0, + "parent": { + "$ref": "1495" + } + } + ], + "tags": [], + "pos": 11071, + "end": 11119, + "flags": 0, + "parent": { + "$ref": "1491" + } + } + ], + "directives": [], + "parent": { + "$ref": "1473" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1491" + }, + "name": "envelopePropertyName", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1473" + } + ], + "name": "DiscriminatedOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 65 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 10870, + "end": 11154 + }, + "pos": 10792, + "end": 11154, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1497", + "kind": 51, + "content": [ + { + "$id": "1498", + "kind": 52, + "text": "Options for `@discriminated` decorator.", + "pos": 10795, + "end": 10840, + "flags": 0, + "parent": { + "$ref": "1497" + } + } + ], + "tags": [], + "pos": 10792, + "end": 10842, + "flags": 0, + "parent": { + "$ref": "1473" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1473" + } + ], + "name": "DiscriminatedOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 65 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "1499", + "kind": 25, + "modifiers": [ + { + "$id": "1500", + "kind": 40, + "pos": 12232, + "end": 12238, + "flags": 0, + "parent": { + "$ref": "1499" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1501", + "kind": 3, + "sv": "discriminated", + "pos": 12243, + "end": 12256, + "flags": 0, + "parent": { + "$ref": "1499" + }, + "_id": 473 + }, + "target": { + "$id": "1502", + "kind": 27, + "id": { + "$id": "1503", + "kind": 3, + "sv": "target", + "pos": 12257, + "end": 12263, + "flags": 0, + "parent": { + "$ref": "1502" + }, + "_id": 474 + }, + "type": { + "$id": "1504", + "kind": 45, + "target": { + "$id": "1505", + "kind": 3, + "sv": "Union", + "pos": 12265, + "end": 12270, + "flags": 1, + "parent": { + "$ref": "1504" + }, + "_id": 476 + }, + "arguments": [], + "pos": 12265, + "end": 12270, + "flags": 1, + "parent": { + "$ref": "1502" + }, + "_id": 475 + }, + "optional": false, + "rest": false, + "pos": 12257, + "end": 12270, + "flags": 0, + "parent": { + "$ref": "1499" + }, + "symbol": { + "declarations": [ + { + "$ref": "1502" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 304 + } + }, + "parameters": [ + { + "$id": "1506", + "kind": 27, + "id": { + "$id": "1507", + "kind": 3, + "sv": "options", + "pos": 12272, + "end": 12279, + "flags": 0, + "parent": { + "$ref": "1506" + }, + "_id": 477 + }, + "type": { + "$id": "1508", + "kind": 44, + "target": { + "$id": "1509", + "kind": 45, + "target": { + "$id": "1510", + "kind": 3, + "sv": "DiscriminatedOptions", + "pos": 12290, + "end": 12310, + "flags": 1, + "parent": { + "$ref": "1509" + }, + "_id": 479 + }, + "arguments": [], + "pos": 12290, + "end": 12310, + "flags": 1, + "parent": { + "$ref": "1508" + }, + "_id": 478 + }, + "pos": 12282, + "end": 12310, + "flags": 0, + "parent": { + "$ref": "1506" + } + }, + "optional": true, + "rest": false, + "pos": 12272, + "end": 12310, + "flags": 0, + "parent": { + "$ref": "1499" + }, + "symbol": { + "declarations": [ + { + "$ref": "1506" + } + ], + "name": "options", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 305 + } + } + ], + "pos": 11156, + "end": 12312, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1511", + "kind": 51, + "content": [ + { + "$id": "1512", + "kind": 52, + "text": "Specify that this union is discriminated.", + "pos": 11159, + "end": 11208, + "flags": 0, + "parent": { + "$ref": "1511" + } + } + ], + "tags": [ + { + "$id": "1513", + "kind": 53, + "tagName": { + "$id": "1514", + "kind": 3, + "sv": "param", + "pos": 11209, + "end": 11214, + "flags": 0, + "parent": { + "$ref": "1513" + } + }, + "paramName": { + "$id": "1515", + "kind": 3, + "sv": "options", + "pos": 11215, + "end": 11222, + "flags": 0, + "parent": { + "$ref": "1513" + } + }, + "content": [ + { + "$id": "1516", + "kind": 52, + "text": "Options to configure the serialization of the discriminated union.", + "pos": 11223, + "end": 11296, + "flags": 0, + "parent": { + "$ref": "1513" + } + } + ], + "pos": 11208, + "end": 11296, + "flags": 0, + "parent": { + "$ref": "1511" + } + }, + { + "$id": "1517", + "kind": 58, + "tagName": { + "$id": "1518", + "kind": 3, + "sv": "example", + "pos": 11297, + "end": 11304, + "flags": 0, + "parent": { + "$ref": "1517" + } + }, + "content": [ + { + "$id": "1519", + "kind": 52, + "text": "```typespec\n@discriminated\nunion Pet{ cat: Cat, dog: Dog }\n\nmodel Cat { name: string, meow: boolean }\nmodel Dog { name: string, bark: boolean }\n```\nSerialized as:\n```json\n{\n \"kind\": \"cat\",\n \"value\": {\n \"name\": \"Whiskers\",\n \"meow\": true\n }\n},\n{\n \"kind\": \"dog\",\n \"value\": {\n \"name\": \"Rex\",\n \"bark\": false\n }\n}\n```", + "pos": 11304, + "end": 11715, + "flags": 0, + "parent": { + "$ref": "1517" + } + } + ], + "pos": 11296, + "end": 11715, + "flags": 0, + "parent": { + "$ref": "1511" + } + }, + { + "$id": "1520", + "kind": 58, + "tagName": { + "$id": "1521", + "kind": 3, + "sv": "example", + "pos": 11716, + "end": 11723, + "flags": 0, + "parent": { + "$ref": "1520" + } + }, + "content": [ + { + "$id": "1522", + "kind": 52, + "text": "Custom property names\n\n```typespec\n@discriminated(#{discriminatorPropertyName: \"dataKind\", envelopePropertyName: \"data\"})\nunion Pet{ cat: Cat, dog: Dog }\n\nmodel Cat { name: string, meow: boolean }\nmodel Dog { name: string, bark: boolean }\n```\nSerialized as:\n```json\n{\n \"dataKind\": \"cat\",\n \"data\": {\n \"name\": \"Whiskers\",\n \"meow\": true\n }\n},\n{\n \"dataKind\": \"dog\",\n \"data\": {\n \"name\": \"Rex\",\n \"bark\": false\n }\n}\n```", + "pos": 11723, + "end": 12229, + "flags": 0, + "parent": { + "$ref": "1520" + } + } + ], + "pos": 11715, + "end": 12229, + "flags": 0, + "parent": { + "$ref": "1511" + } + } + ], + "pos": 11156, + "end": 12231, + "flags": 0, + "parent": { + "$ref": "1499" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1499" + } + ], + "name": "@discriminated", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1523", + "kind": 25, + "modifiers": [ + { + "$id": "1524", + "kind": 40, + "pos": 12658, + "end": 12664, + "flags": 0, + "parent": { + "$ref": "1523" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1525", + "kind": 3, + "sv": "discriminator", + "pos": 12669, + "end": 12682, + "flags": 0, + "parent": { + "$ref": "1523" + }, + "_id": 480 + }, + "target": { + "$id": "1526", + "kind": 27, + "id": { + "$id": "1527", + "kind": 3, + "sv": "target", + "pos": 12683, + "end": 12689, + "flags": 0, + "parent": { + "$ref": "1526" + }, + "_id": 481 + }, + "type": { + "$id": "1528", + "kind": 45, + "target": { + "$id": "1529", + "kind": 3, + "sv": "Model", + "pos": 12691, + "end": 12696, + "flags": 1, + "parent": { + "$ref": "1528" + }, + "_id": 483 + }, + "arguments": [], + "pos": 12691, + "end": 12696, + "flags": 1, + "parent": { + "$ref": "1526" + }, + "_id": 482 + }, + "optional": false, + "rest": false, + "pos": 12683, + "end": 12696, + "flags": 0, + "parent": { + "$ref": "1523" + }, + "symbol": { + "declarations": [ + { + "$ref": "1526" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 307 + } + }, + "parameters": [ + { + "$id": "1530", + "kind": 27, + "id": { + "$id": "1531", + "kind": 3, + "sv": "propertyName", + "pos": 12698, + "end": 12710, + "flags": 0, + "parent": { + "$ref": "1530" + }, + "_id": 484 + }, + "type": { + "$id": "1532", + "kind": 44, + "target": { + "$id": "1533", + "kind": 45, + "target": { + "$id": "1534", + "kind": 3, + "sv": "string", + "pos": 12720, + "end": 12726, + "flags": 1, + "parent": { + "$ref": "1533" + }, + "_id": 486 + }, + "arguments": [], + "pos": 12720, + "end": 12726, + "flags": 1, + "parent": { + "$ref": "1532" + }, + "_id": 485 + }, + "pos": 12712, + "end": 12726, + "flags": 0, + "parent": { + "$ref": "1530" + } + }, + "optional": false, + "rest": false, + "pos": 12698, + "end": 12726, + "flags": 0, + "parent": { + "$ref": "1523" + }, + "symbol": { + "declarations": [ + { + "$ref": "1530" + } + ], + "name": "propertyName", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 308 + } + } + ], + "pos": 12314, + "end": 12728, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1535", + "kind": 51, + "content": [ + { + "$id": "1536", + "kind": 52, + "text": "Specify the property to be used to discriminate this type.", + "pos": 12317, + "end": 12383, + "flags": 0, + "parent": { + "$ref": "1535" + } + } + ], + "tags": [ + { + "$id": "1537", + "kind": 53, + "tagName": { + "$id": "1538", + "kind": 3, + "sv": "param", + "pos": 12384, + "end": 12389, + "flags": 0, + "parent": { + "$ref": "1537" + } + }, + "paramName": { + "$id": "1539", + "kind": 3, + "sv": "propertyName", + "pos": 12390, + "end": 12402, + "flags": 0, + "parent": { + "$ref": "1537" + } + }, + "content": [ + { + "$id": "1540", + "kind": 52, + "text": "The property name to use for discrimination", + "pos": 12403, + "end": 12453, + "flags": 0, + "parent": { + "$ref": "1537" + } + } + ], + "pos": 12383, + "end": 12453, + "flags": 0, + "parent": { + "$ref": "1535" + } + }, + { + "$id": "1541", + "kind": 58, + "tagName": { + "$id": "1542", + "kind": 3, + "sv": "example", + "pos": 12454, + "end": 12461, + "flags": 0, + "parent": { + "$ref": "1541" + } + }, + "content": [ + { + "$id": "1543", + "kind": 52, + "text": "```typespec\n@discriminator(\"kind\")\nmodel Pet{ kind: string }\n\nmodel Cat extends Pet {kind: \"cat\", meow: boolean}\nmodel Dog extends Pet {kind: \"dog\", bark: boolean}\n```", + "pos": 12461, + "end": 12655, + "flags": 0, + "parent": { + "$ref": "1541" + } + } + ], + "pos": 12453, + "end": 12655, + "flags": 0, + "parent": { + "$ref": "1535" + } + } + ], + "pos": 12314, + "end": 12657, + "flags": 0, + "parent": { + "$ref": "1523" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1523" + } + ], + "name": "@discriminator", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1544", + "kind": 21, + "id": { + "$id": "1545", + "kind": 3, + "sv": "DateTimeKnownEncoding", + "pos": 12801, + "end": 12822, + "flags": 0, + "parent": { + "$ref": "1544" + }, + "_id": 487 + }, + "decorators": [], + "members": [ + { + "$id": "1546", + "kind": 22, + "id": { + "$id": "1547", + "kind": 3, + "sv": "rfc3339", + "pos": 12923, + "end": 12930, + "flags": 0, + "parent": { + "$ref": "1546" + }, + "_id": 488 + }, + "value": { + "$id": "1548", + "kind": 32, + "value": "rfc3339", + "pos": 12932, + "end": 12941, + "flags": 0, + "parent": { + "$ref": "1546" + } + }, + "decorators": [], + "pos": 12827, + "end": 12941, + "flags": 0, + "docs": [ + { + "$id": "1549", + "kind": 51, + "content": [ + { + "$id": "1550", + "kind": 52, + "text": "RFC 3339 standard. https://www.ietf.org/rfc/rfc3339.txt\nEncode to string.", + "pos": 12830, + "end": 12918, + "flags": 0, + "parent": { + "$ref": "1549" + } + } + ], + "tags": [], + "pos": 12827, + "end": 12920, + "flags": 0, + "parent": { + "$ref": "1546" + } + } + ], + "directives": [], + "parent": { + "$ref": "1544" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1546" + }, + "name": "rfc3339", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1544" + } + ], + "name": "DateTimeKnownEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 66 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1551", + "kind": 22, + "id": { + "$id": "1552", + "kind": 3, + "sv": "rfc7231", + "pos": 13042, + "end": 13049, + "flags": 0, + "parent": { + "$ref": "1551" + }, + "_id": 489 + }, + "value": { + "$id": "1553", + "kind": 32, + "value": "rfc7231", + "pos": 13051, + "end": 13060, + "flags": 0, + "parent": { + "$ref": "1551" + } + }, + "decorators": [], + "pos": 12946, + "end": 13060, + "flags": 0, + "docs": [ + { + "$id": "1554", + "kind": 51, + "content": [ + { + "$id": "1555", + "kind": 52, + "text": "RFC 7231 standard. https://www.ietf.org/rfc/rfc7231.txt\nEncode to string.", + "pos": 12949, + "end": 13037, + "flags": 0, + "parent": { + "$ref": "1554" + } + } + ], + "tags": [], + "pos": 12946, + "end": 13039, + "flags": 0, + "parent": { + "$ref": "1551" + } + } + ], + "directives": [], + "parent": { + "$ref": "1544" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1551" + }, + "name": "rfc7231", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1544" + } + ], + "name": "DateTimeKnownEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 66 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1556", + "kind": 22, + "id": { + "$id": "1557", + "kind": 3, + "sv": "unixTimestamp", + "pos": 13244, + "end": 13257, + "flags": 0, + "parent": { + "$ref": "1556" + }, + "_id": 490 + }, + "value": { + "$id": "1558", + "kind": 32, + "value": "unixTimestamp", + "pos": 13259, + "end": 13274, + "flags": 0, + "parent": { + "$ref": "1556" + } + }, + "decorators": [], + "pos": 13065, + "end": 13274, + "flags": 0, + "docs": [ + { + "$id": "1559", + "kind": 51, + "content": [ + { + "$id": "1560", + "kind": 52, + "text": "Encode a datetime to a unix timestamp.\nUnix timestamps are represented as an integer number of seconds since the Unix epoch and usually encoded as an int32.", + "pos": 13068, + "end": 13239, + "flags": 0, + "parent": { + "$ref": "1559" + } + } + ], + "tags": [], + "pos": 13065, + "end": 13241, + "flags": 0, + "parent": { + "$ref": "1556" + } + } + ], + "directives": [], + "parent": { + "$ref": "1544" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1556" + }, + "name": "unixTimestamp", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1544" + } + ], + "name": "DateTimeKnownEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 66 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "pos": 12730, + "end": 13277, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1561", + "kind": 51, + "content": [ + { + "$id": "1562", + "kind": 52, + "text": "Known encoding to use on utcDateTime or offsetDateTime", + "pos": 12733, + "end": 12793, + "flags": 0, + "parent": { + "$ref": "1561" + } + } + ], + "tags": [], + "pos": 12730, + "end": 12795, + "flags": 0, + "parent": { + "$ref": "1544" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1544" + } + ], + "name": "DateTimeKnownEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 66 + } + }, + { + "$id": "1563", + "kind": 21, + "id": { + "$id": "1564", + "kind": 3, + "sv": "DurationKnownEncoding", + "pos": 13329, + "end": 13350, + "flags": 0, + "parent": { + "$ref": "1563" + }, + "_id": 491 + }, + "decorators": [], + "members": [ + { + "$id": "1565", + "kind": 22, + "id": { + "$id": "1566", + "kind": 3, + "sv": "ISO8601", + "pos": 13389, + "end": 13396, + "flags": 0, + "parent": { + "$ref": "1565" + }, + "_id": 492 + }, + "value": { + "$id": "1567", + "kind": 32, + "value": "ISO8601", + "pos": 13398, + "end": 13407, + "flags": 0, + "parent": { + "$ref": "1565" + } + }, + "decorators": [], + "pos": 13355, + "end": 13407, + "flags": 0, + "docs": [ + { + "$id": "1568", + "kind": 51, + "content": [ + { + "$id": "1569", + "kind": 52, + "text": "ISO8601 duration", + "pos": 13358, + "end": 13384, + "flags": 0, + "parent": { + "$ref": "1568" + } + } + ], + "tags": [], + "pos": 13355, + "end": 13386, + "flags": 0, + "parent": { + "$ref": "1565" + } + } + ], + "directives": [], + "parent": { + "$ref": "1563" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1565" + }, + "name": "ISO8601", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1563" + } + ], + "name": "DurationKnownEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 67 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1570", + "kind": 22, + "id": { + "$id": "1571", + "kind": 3, + "sv": "seconds", + "pos": 13467, + "end": 13474, + "flags": 0, + "parent": { + "$ref": "1570" + }, + "_id": 493 + }, + "value": { + "$id": "1572", + "kind": 32, + "value": "seconds", + "pos": 13476, + "end": 13485, + "flags": 0, + "parent": { + "$ref": "1570" + } + }, + "decorators": [], + "pos": 13412, + "end": 13485, + "flags": 0, + "docs": [ + { + "$id": "1573", + "kind": 51, + "content": [ + { + "$id": "1574", + "kind": 52, + "text": "Encode to integer or float as seconds", + "pos": 13415, + "end": 13462, + "flags": 0, + "parent": { + "$ref": "1573" + } + } + ], + "tags": [], + "pos": 13412, + "end": 13464, + "flags": 0, + "parent": { + "$ref": "1570" + } + } + ], + "directives": [], + "parent": { + "$ref": "1563" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1570" + }, + "name": "seconds", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1563" + } + ], + "name": "DurationKnownEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 67 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1575", + "kind": 22, + "id": { + "$id": "1576", + "kind": 3, + "sv": "milliseconds", + "pos": 13550, + "end": 13562, + "flags": 0, + "parent": { + "$ref": "1575" + }, + "_id": 494 + }, + "value": { + "$id": "1577", + "kind": 32, + "value": "milliseconds", + "pos": 13564, + "end": 13578, + "flags": 0, + "parent": { + "$ref": "1575" + } + }, + "decorators": [], + "pos": 13490, + "end": 13578, + "flags": 0, + "docs": [ + { + "$id": "1578", + "kind": 51, + "content": [ + { + "$id": "1579", + "kind": 52, + "text": "Encode to integer or float as milliseconds", + "pos": 13493, + "end": 13545, + "flags": 0, + "parent": { + "$ref": "1578" + } + } + ], + "tags": [], + "pos": 13490, + "end": 13547, + "flags": 0, + "parent": { + "$ref": "1575" + } + } + ], + "directives": [], + "parent": { + "$ref": "1563" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1575" + }, + "name": "milliseconds", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1563" + } + ], + "name": "DurationKnownEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 67 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "pos": 13279, + "end": 13581, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1580", + "kind": 51, + "content": [ + { + "$id": "1581", + "kind": 52, + "text": "Known encoding to use on duration", + "pos": 13282, + "end": 13321, + "flags": 0, + "parent": { + "$ref": "1580" + } + } + ], + "tags": [], + "pos": 13279, + "end": 13323, + "flags": 0, + "parent": { + "$ref": "1563" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1563" + } + ], + "name": "DurationKnownEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 67 + } + }, + { + "$id": "1582", + "kind": 21, + "id": { + "$id": "1583", + "kind": 3, + "sv": "BytesKnownEncoding", + "pos": 13630, + "end": 13648, + "flags": 0, + "parent": { + "$ref": "1582" + }, + "_id": 495 + }, + "decorators": [], + "members": [ + { + "$id": "1584", + "kind": 22, + "id": { + "$id": "1585", + "kind": 3, + "sv": "base64", + "pos": 13687, + "end": 13693, + "flags": 0, + "parent": { + "$ref": "1584" + }, + "_id": 496 + }, + "value": { + "$id": "1586", + "kind": 32, + "value": "base64", + "pos": 13695, + "end": 13703, + "flags": 0, + "parent": { + "$ref": "1584" + } + }, + "decorators": [], + "pos": 13653, + "end": 13703, + "flags": 0, + "docs": [ + { + "$id": "1587", + "kind": 51, + "content": [ + { + "$id": "1588", + "kind": 52, + "text": "Encode to Base64", + "pos": 13656, + "end": 13682, + "flags": 0, + "parent": { + "$ref": "1587" + } + } + ], + "tags": [], + "pos": 13653, + "end": 13684, + "flags": 0, + "parent": { + "$ref": "1584" + } + } + ], + "directives": [], + "parent": { + "$ref": "1582" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1584" + }, + "name": "base64", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1582" + } + ], + "name": "BytesKnownEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 68 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1589", + "kind": 22, + "id": { + "$id": "1590", + "kind": 3, + "sv": "base64url", + "pos": 13746, + "end": 13755, + "flags": 0, + "parent": { + "$ref": "1589" + }, + "_id": 497 + }, + "value": { + "$id": "1591", + "kind": 32, + "value": "base64url", + "pos": 13757, + "end": 13768, + "flags": 0, + "parent": { + "$ref": "1589" + } + }, + "decorators": [], + "pos": 13708, + "end": 13768, + "flags": 0, + "docs": [ + { + "$id": "1592", + "kind": 51, + "content": [ + { + "$id": "1593", + "kind": 52, + "text": "Encode to Base64 Url", + "pos": 13711, + "end": 13741, + "flags": 0, + "parent": { + "$ref": "1592" + } + } + ], + "tags": [], + "pos": 13708, + "end": 13743, + "flags": 0, + "parent": { + "$ref": "1589" + } + } + ], + "directives": [], + "parent": { + "$ref": "1582" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1589" + }, + "name": "base64url", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1582" + } + ], + "name": "BytesKnownEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 68 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "pos": 13583, + "end": 13771, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1594", + "kind": 51, + "content": [ + { + "$id": "1595", + "kind": 52, + "text": "Known encoding to use on bytes", + "pos": 13586, + "end": 13622, + "flags": 0, + "parent": { + "$ref": "1594" + } + } + ], + "tags": [], + "pos": 13583, + "end": 13624, + "flags": 0, + "parent": { + "$ref": "1582" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1582" + } + ], + "name": "BytesKnownEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 68 + } + }, + { + "$id": "1596", + "kind": 21, + "id": { + "$id": "1597", + "kind": 3, + "sv": "ArrayEncoding", + "pos": 13821, + "end": 13834, + "flags": 0, + "parent": { + "$ref": "1596" + }, + "_id": 498 + }, + "decorators": [], + "members": [ + { + "$id": "1598", + "kind": 22, + "id": { + "$id": "1599", + "kind": 3, + "sv": "pipeDelimited", + "pos": 14040, + "end": 14053, + "flags": 0, + "parent": { + "$ref": "1598" + }, + "_id": 499 + }, + "decorators": [], + "pos": 13839, + "end": 14053, + "flags": 0, + "docs": [ + { + "$id": "1600", + "kind": 51, + "content": [ + { + "$id": "1601", + "kind": 52, + "text": "Each value of the array is separated by a pipe character (|).\nValues can only contain | if the underlying protocol supports encoding them.\n- json -> error\n- http -> %7C", + "pos": 13842, + "end": 14035, + "flags": 0, + "parent": { + "$ref": "1600" + } + } + ], + "tags": [], + "pos": 13839, + "end": 14037, + "flags": 0, + "parent": { + "$ref": "1598" + } + } + ], + "directives": [], + "parent": { + "$ref": "1596" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1598" + }, + "name": "pipeDelimited", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1596" + } + ], + "name": "ArrayEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 69 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1602", + "kind": 22, + "id": { + "$id": "1603", + "kind": 3, + "sv": "spaceDelimited", + "pos": 14261, + "end": 14275, + "flags": 0, + "parent": { + "$ref": "1602" + }, + "_id": 500 + }, + "decorators": [], + "pos": 14058, + "end": 14275, + "flags": 0, + "docs": [ + { + "$id": "1604", + "kind": 51, + "content": [ + { + "$id": "1605", + "kind": 52, + "text": "Each value of the array is separated by a space character.\nValues can only contain spaces if the underlying protocol supports encoding them.\n- json -> error\n- http -> %20", + "pos": 14061, + "end": 14256, + "flags": 0, + "parent": { + "$ref": "1604" + } + } + ], + "tags": [], + "pos": 14058, + "end": 14258, + "flags": 0, + "parent": { + "$ref": "1602" + } + } + ], + "directives": [], + "parent": { + "$ref": "1596" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1602" + }, + "name": "spaceDelimited", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1596" + } + ], + "name": "ArrayEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 69 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1606", + "kind": 22, + "id": { + "$id": "1607", + "kind": 3, + "sv": "commaDelimited", + "pos": 14477, + "end": 14491, + "flags": 0, + "parent": { + "$ref": "1606" + }, + "_id": 501 + }, + "decorators": [], + "pos": 14280, + "end": 14491, + "flags": 0, + "docs": [ + { + "$id": "1608", + "kind": 51, + "content": [ + { + "$id": "1609", + "kind": 52, + "text": "Each value of the array is separated by a comma (,).\nValues can only contain commas if the underlying protocol supports encoding them.\n- json -> error\n- http -> %2C", + "pos": 14283, + "end": 14472, + "flags": 0, + "parent": { + "$ref": "1608" + } + } + ], + "tags": [], + "pos": 14280, + "end": 14474, + "flags": 0, + "parent": { + "$ref": "1606" + } + } + ], + "directives": [], + "parent": { + "$ref": "1596" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1606" + }, + "name": "commaDelimited", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1596" + } + ], + "name": "ArrayEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 69 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1610", + "kind": 22, + "id": { + "$id": "1611", + "kind": 3, + "sv": "newlineDelimited", + "pos": 14708, + "end": 14724, + "flags": 0, + "parent": { + "$ref": "1610" + }, + "_id": 502 + }, + "decorators": [], + "pos": 14496, + "end": 14724, + "flags": 0, + "docs": [ + { + "$id": "1612", + "kind": 51, + "content": [ + { + "$id": "1613", + "kind": 52, + "text": "Each value of the array is separated by a newline character (\\n).\nValues can only contain newlines if the underlying protocol supports encoding them.\n- json -> error\n- http -> %0A", + "pos": 14499, + "end": 14703, + "flags": 0, + "parent": { + "$ref": "1612" + } + } + ], + "tags": [], + "pos": 14496, + "end": 14705, + "flags": 0, + "parent": { + "$ref": "1610" + } + } + ], + "directives": [], + "parent": { + "$ref": "1596" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1610" + }, + "name": "newlineDelimited", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1596" + } + ], + "name": "ArrayEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 69 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "pos": 13773, + "end": 14727, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1614", + "kind": 51, + "content": [ + { + "$id": "1615", + "kind": 52, + "text": "Encoding for serializing arrays", + "pos": 13776, + "end": 13813, + "flags": 0, + "parent": { + "$ref": "1614" + } + } + ], + "tags": [], + "pos": 13773, + "end": 13815, + "flags": 0, + "parent": { + "$ref": "1596" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1596" + } + ], + "name": "ArrayEncoding", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "metatypeMembers": { + "duplicates": {} + }, + "id": 69 + } + }, + { + "$id": "1616", + "kind": 25, + "modifiers": [ + { + "$id": "1617", + "kind": 40, + "pos": 15399, + "end": 15405, + "flags": 0, + "parent": { + "$ref": "1616" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1618", + "kind": 3, + "sv": "encode", + "pos": 15410, + "end": 15416, + "flags": 0, + "parent": { + "$ref": "1616" + }, + "_id": 132 + }, + "target": { + "$id": "1619", + "kind": 27, + "id": { + "$id": "1620", + "kind": 3, + "sv": "target", + "pos": 15420, + "end": 15426, + "flags": 0, + "parent": { + "$ref": "1619" + }, + "_id": 133 + }, + "type": { + "$id": "1621", + "kind": 28, + "options": [ + { + "$id": "1622", + "kind": 45, + "target": { + "$id": "1623", + "kind": 3, + "sv": "Scalar", + "pos": 15428, + "end": 15434, + "flags": 1, + "parent": { + "$ref": "1622" + }, + "_id": 135 + }, + "arguments": [], + "pos": 15428, + "end": 15434, + "flags": 1, + "parent": { + "$ref": "1621" + }, + "_id": 134 + }, + { + "$id": "1624", + "kind": 45, + "target": { + "$id": "1625", + "kind": 3, + "sv": "ModelProperty", + "pos": 15437, + "end": 15450, + "flags": 1, + "parent": { + "$ref": "1624" + }, + "_id": 138 + }, + "arguments": [], + "pos": 15437, + "end": 15450, + "flags": 1, + "parent": { + "$ref": "1621" + }, + "_id": 137 + } + ], + "pos": 15428, + "end": 15450, + "flags": 0, + "parent": { + "$ref": "1619" + } + }, + "optional": false, + "rest": false, + "pos": 15420, + "end": 15450, + "flags": 0, + "parent": { + "$ref": "1616" + }, + "symbol": { + "declarations": [ + { + "$ref": "1619" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 217 + } + }, + "parameters": [ + { + "$id": "1626", + "kind": 27, + "id": { + "$id": "1627", + "kind": 3, + "sv": "encodingOrEncodeAs", + "pos": 15454, + "end": 15472, + "flags": 0, + "parent": { + "$ref": "1626" + }, + "_id": 140 + }, + "type": { + "$id": "1628", + "kind": 28, + "options": [ + { + "$id": "1629", + "kind": 44, + "target": { + "$id": "1630", + "kind": 28, + "options": [ + { + "$id": "1631", + "kind": 45, + "target": { + "$id": "1632", + "kind": 3, + "sv": "string", + "pos": 15483, + "end": 15489, + "flags": 1, + "parent": { + "$ref": "1631" + }, + "_id": 142 + }, + "arguments": [], + "pos": 15483, + "end": 15489, + "flags": 1, + "parent": { + "$ref": "1630" + }, + "_id": 141 + }, + { + "$id": "1633", + "kind": 45, + "target": { + "$id": "1634", + "kind": 3, + "sv": "EnumMember", + "pos": 15492, + "end": 15502, + "flags": 1, + "parent": { + "$ref": "1633" + }, + "_id": 144 + }, + "arguments": [], + "pos": 15492, + "end": 15502, + "flags": 1, + "parent": { + "$ref": "1630" + }, + "_id": 143 + } + ], + "pos": 15483, + "end": 15502, + "flags": 0, + "parent": { + "$ref": "1629" + } + }, + "pos": 15475, + "end": 15502, + "flags": 0, + "parent": { + "$ref": "1628" + } + }, + { + "$id": "1635", + "kind": 45, + "target": { + "$id": "1636", + "kind": 3, + "sv": "Scalar", + "pos": 15506, + "end": 15512, + "flags": 1, + "parent": { + "$ref": "1635" + }, + "_id": 147 + }, + "arguments": [], + "pos": 15506, + "end": 15512, + "flags": 1, + "parent": { + "$ref": "1628" + }, + "_id": 146 + } + ], + "pos": 15474, + "end": 15512, + "flags": 0, + "parent": { + "$ref": "1626" + } + }, + "optional": false, + "rest": false, + "pos": 15454, + "end": 15512, + "flags": 0, + "parent": { + "$ref": "1616" + }, + "symbol": { + "declarations": [ + { + "$ref": "1626" + } + ], + "name": "encodingOrEncodeAs", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 218 + } + }, + { + "$id": "1637", + "kind": 27, + "id": { + "$id": "1638", + "kind": 3, + "sv": "encodedAs", + "pos": 15516, + "end": 15525, + "flags": 0, + "parent": { + "$ref": "1637" + }, + "_id": 148 + }, + "type": { + "$id": "1639", + "kind": 45, + "target": { + "$id": "1640", + "kind": 3, + "sv": "Scalar", + "pos": 15528, + "end": 15534, + "flags": 1, + "parent": { + "$ref": "1639" + }, + "_id": 150 + }, + "arguments": [], + "pos": 15528, + "end": 15534, + "flags": 1, + "parent": { + "$ref": "1637" + }, + "_id": 149 + }, + "optional": true, + "rest": false, + "pos": 15516, + "end": 15534, + "flags": 0, + "parent": { + "$ref": "1616" + }, + "symbol": { + "declarations": [ + { + "$ref": "1637" + } + ], + "name": "encodedAs", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 219 + } + } + ], + "pos": 14729, + "end": 15537, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1641", + "kind": 51, + "content": [ + { + "$id": "1642", + "kind": 52, + "text": "Specify how to encode the target type.", + "pos": 14732, + "end": 14778, + "flags": 0, + "parent": { + "$ref": "1641" + } + } + ], + "tags": [ + { + "$id": "1643", + "kind": 53, + "tagName": { + "$id": "1644", + "kind": 3, + "sv": "param", + "pos": 14779, + "end": 14784, + "flags": 0, + "parent": { + "$ref": "1643" + } + }, + "paramName": { + "$id": "1645", + "kind": 3, + "sv": "encodingOrEncodeAs", + "pos": 14785, + "end": 14803, + "flags": 0, + "parent": { + "$ref": "1643" + } + }, + "content": [ + { + "$id": "1646", + "kind": 52, + "text": "Known name of an encoding or a scalar type to encode as(Only for numeric types to encode as string).", + "pos": 14804, + "end": 14908, + "flags": 0, + "parent": { + "$ref": "1643" + } + } + ], + "pos": 14778, + "end": 14908, + "flags": 0, + "parent": { + "$ref": "1641" + } + }, + { + "$id": "1647", + "kind": 53, + "tagName": { + "$id": "1648", + "kind": 3, + "sv": "param", + "pos": 14909, + "end": 14914, + "flags": 0, + "parent": { + "$ref": "1647" + } + }, + "paramName": { + "$id": "1649", + "kind": 3, + "sv": "encodedAs", + "pos": 14915, + "end": 14924, + "flags": 0, + "parent": { + "$ref": "1647" + } + }, + "content": [ + { + "$id": "1650", + "kind": 52, + "text": "What target type is this being encoded as. Default to string.", + "pos": 14925, + "end": 14993, + "flags": 0, + "parent": { + "$ref": "1647" + } + } + ], + "pos": 14908, + "end": 14993, + "flags": 0, + "parent": { + "$ref": "1641" + } + }, + { + "$id": "1651", + "kind": 58, + "tagName": { + "$id": "1652", + "kind": 3, + "sv": "example", + "pos": 14994, + "end": 15001, + "flags": 0, + "parent": { + "$ref": "1651" + } + }, + "content": [ + { + "$id": "1653", + "kind": 52, + "text": "offsetDateTime encoded with rfc7231\n\n```tsp\n@encode(\"rfc7231\")\nscalar myDateTime extends offsetDateTime;\n```", + "pos": 15001, + "end": 15131, + "flags": 0, + "parent": { + "$ref": "1651" + } + } + ], + "pos": 14993, + "end": 15131, + "flags": 0, + "parent": { + "$ref": "1641" + } + }, + { + "$id": "1654", + "kind": 58, + "tagName": { + "$id": "1655", + "kind": 3, + "sv": "example", + "pos": 15132, + "end": 15139, + "flags": 0, + "parent": { + "$ref": "1654" + } + }, + "content": [ + { + "$id": "1656", + "kind": 52, + "text": "utcDateTime encoded with unixTimestamp\n\n```tsp\n@encode(\"unixTimestamp\", int32)\nscalar myDateTime extends unixTimestamp;\n```", + "pos": 15139, + "end": 15284, + "flags": 0, + "parent": { + "$ref": "1654" + } + } + ], + "pos": 15131, + "end": 15284, + "flags": 0, + "parent": { + "$ref": "1641" + } + }, + { + "$id": "1657", + "kind": 58, + "tagName": { + "$id": "1658", + "kind": 3, + "sv": "example", + "pos": 15285, + "end": 15292, + "flags": 0, + "parent": { + "$ref": "1657" + } + }, + "content": [ + { + "$id": "1659", + "kind": 52, + "text": "encode numeric type to string\n\n```tsp\nmodel Pet {\n @encode(string) id: int64;\n}\n```", + "pos": 15292, + "end": 15396, + "flags": 0, + "parent": { + "$ref": "1657" + } + } + ], + "pos": 15284, + "end": 15396, + "flags": 0, + "parent": { + "$ref": "1641" + } + } + ], + "pos": 14729, + "end": 15398, + "flags": 0, + "parent": { + "$ref": "1616" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1616" + } + ], + "name": "@encode", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1660", + "kind": 13, + "id": { + "$id": "1661", + "kind": 3, + "sv": "ExampleOptions", + "pos": 15583, + "end": 15597, + "flags": 0, + "parent": { + "$ref": "1660" + }, + "_id": 503 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "1662", + "kind": 15, + "id": { + "$id": "1663", + "kind": 3, + "sv": "title", + "pos": 15636, + "end": 15641, + "flags": 0, + "parent": { + "$ref": "1662" + }, + "_id": 504 + }, + "decorators": [], + "value": { + "$id": "1664", + "kind": 45, + "target": { + "$id": "1665", + "kind": 3, + "sv": "string", + "pos": 15644, + "end": 15650, + "flags": 1, + "parent": { + "$ref": "1664" + }, + "_id": 506 + }, + "arguments": [], + "pos": 15644, + "end": 15650, + "flags": 1, + "parent": { + "$ref": "1662" + }, + "_id": 505 + }, + "optional": true, + "pos": 15602, + "end": 15650, + "flags": 0, + "docs": [ + { + "$id": "1666", + "kind": 51, + "content": [ + { + "$id": "1667", + "kind": 52, + "text": "The title of the example", + "pos": 15605, + "end": 15631, + "flags": 0, + "parent": { + "$ref": "1666" + } + } + ], + "tags": [], + "pos": 15602, + "end": 15633, + "flags": 0, + "parent": { + "$ref": "1662" + } + } + ], + "directives": [], + "parent": { + "$ref": "1660" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1662" + }, + "name": "title", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1660" + } + ], + "name": "ExampleOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 70 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1668", + "kind": 15, + "id": { + "$id": "1669", + "kind": 3, + "sv": "description", + "pos": 15691, + "end": 15702, + "flags": 0, + "parent": { + "$ref": "1668" + }, + "_id": 507 + }, + "decorators": [], + "value": { + "$id": "1670", + "kind": 45, + "target": { + "$id": "1671", + "kind": 3, + "sv": "string", + "pos": 15705, + "end": 15711, + "flags": 1, + "parent": { + "$ref": "1670" + }, + "_id": 509 + }, + "arguments": [], + "pos": 15705, + "end": 15711, + "flags": 1, + "parent": { + "$ref": "1668" + }, + "_id": 508 + }, + "optional": true, + "pos": 15655, + "end": 15711, + "flags": 0, + "docs": [ + { + "$id": "1672", + "kind": 51, + "content": [ + { + "$id": "1673", + "kind": 52, + "text": "Description of the example", + "pos": 15658, + "end": 15686, + "flags": 0, + "parent": { + "$ref": "1672" + } + } + ], + "tags": [], + "pos": 15655, + "end": 15688, + "flags": 0, + "parent": { + "$ref": "1668" + } + } + ], + "directives": [], + "parent": { + "$ref": "1660" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1668" + }, + "name": "description", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1660" + } + ], + "name": "ExampleOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 70 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 15598, + "end": 15714 + }, + "pos": 15539, + "end": 15714, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1674", + "kind": 51, + "content": [ + { + "$id": "1675", + "kind": 52, + "text": "Options for example decorators", + "pos": 15542, + "end": 15574, + "flags": 0, + "parent": { + "$ref": "1674" + } + } + ], + "tags": [], + "pos": 15539, + "end": 15576, + "flags": 0, + "parent": { + "$ref": "1660" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1660" + } + ], + "name": "ExampleOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 70 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "1676", + "kind": 25, + "modifiers": [ + { + "$id": "1677", + "kind": 40, + "pos": 15986, + "end": 15992, + "flags": 0, + "parent": { + "$ref": "1676" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1678", + "kind": 3, + "sv": "example", + "pos": 15997, + "end": 16004, + "flags": 0, + "parent": { + "$ref": "1676" + }, + "_id": 510 + }, + "target": { + "$id": "1679", + "kind": 27, + "id": { + "$id": "1680", + "kind": 3, + "sv": "target", + "pos": 16008, + "end": 16014, + "flags": 0, + "parent": { + "$ref": "1679" + }, + "_id": 511 + }, + "type": { + "$id": "1681", + "kind": 28, + "options": [ + { + "$id": "1682", + "kind": 45, + "target": { + "$id": "1683", + "kind": 3, + "sv": "Model", + "pos": 16016, + "end": 16021, + "flags": 1, + "parent": { + "$ref": "1682" + }, + "_id": 513 + }, + "arguments": [], + "pos": 16016, + "end": 16021, + "flags": 1, + "parent": { + "$ref": "1681" + }, + "_id": 512 + }, + { + "$id": "1684", + "kind": 45, + "target": { + "$id": "1685", + "kind": 3, + "sv": "Enum", + "pos": 16024, + "end": 16028, + "flags": 1, + "parent": { + "$ref": "1684" + }, + "_id": 515 + }, + "arguments": [], + "pos": 16024, + "end": 16028, + "flags": 1, + "parent": { + "$ref": "1681" + }, + "_id": 514 + }, + { + "$id": "1686", + "kind": 45, + "target": { + "$id": "1687", + "kind": 3, + "sv": "Scalar", + "pos": 16031, + "end": 16037, + "flags": 1, + "parent": { + "$ref": "1686" + }, + "_id": 517 + }, + "arguments": [], + "pos": 16031, + "end": 16037, + "flags": 1, + "parent": { + "$ref": "1681" + }, + "_id": 516 + }, + { + "$id": "1688", + "kind": 45, + "target": { + "$id": "1689", + "kind": 3, + "sv": "Union", + "pos": 16040, + "end": 16045, + "flags": 1, + "parent": { + "$ref": "1688" + }, + "_id": 519 + }, + "arguments": [], + "pos": 16040, + "end": 16045, + "flags": 1, + "parent": { + "$ref": "1681" + }, + "_id": 518 + }, + { + "$id": "1690", + "kind": 45, + "target": { + "$id": "1691", + "kind": 3, + "sv": "ModelProperty", + "pos": 16048, + "end": 16061, + "flags": 1, + "parent": { + "$ref": "1690" + }, + "_id": 521 + }, + "arguments": [], + "pos": 16048, + "end": 16061, + "flags": 1, + "parent": { + "$ref": "1681" + }, + "_id": 520 + }, + { + "$id": "1692", + "kind": 45, + "target": { + "$id": "1693", + "kind": 3, + "sv": "UnionVariant", + "pos": 16064, + "end": 16076, + "flags": 1, + "parent": { + "$ref": "1692" + }, + "_id": 523 + }, + "arguments": [], + "pos": 16064, + "end": 16076, + "flags": 1, + "parent": { + "$ref": "1681" + }, + "_id": 522 + } + ], + "pos": 16016, + "end": 16076, + "flags": 0, + "parent": { + "$ref": "1679" + } + }, + "optional": false, + "rest": false, + "pos": 16008, + "end": 16076, + "flags": 0, + "parent": { + "$ref": "1676" + }, + "symbol": { + "declarations": [ + { + "$ref": "1679" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 324 + } + }, + "parameters": [ + { + "$id": "1694", + "kind": 27, + "id": { + "$id": "1695", + "kind": 3, + "sv": "example", + "pos": 16080, + "end": 16087, + "flags": 0, + "parent": { + "$ref": "1694" + }, + "_id": 525 + }, + "type": { + "$id": "1696", + "kind": 44, + "target": { + "$id": "1697", + "kind": 43, + "pos": 16097, + "end": 16104, + "flags": 0, + "parent": { + "$ref": "1696" + } + }, + "pos": 16089, + "end": 16104, + "flags": 0, + "parent": { + "$ref": "1694" + } + }, + "optional": false, + "rest": false, + "pos": 16080, + "end": 16104, + "flags": 0, + "parent": { + "$ref": "1676" + }, + "symbol": { + "declarations": [ + { + "$ref": "1694" + } + ], + "name": "example", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 325 + } + }, + { + "$id": "1698", + "kind": 27, + "id": { + "$id": "1699", + "kind": 3, + "sv": "options", + "pos": 16108, + "end": 16115, + "flags": 0, + "parent": { + "$ref": "1698" + }, + "_id": 526 + }, + "type": { + "$id": "1700", + "kind": 44, + "target": { + "$id": "1701", + "kind": 45, + "target": { + "$id": "1702", + "kind": 3, + "sv": "ExampleOptions", + "pos": 16126, + "end": 16140, + "flags": 1, + "parent": { + "$ref": "1701" + }, + "_id": 528 + }, + "arguments": [], + "pos": 16126, + "end": 16140, + "flags": 1, + "parent": { + "$ref": "1700" + }, + "_id": 527 + }, + "pos": 16118, + "end": 16140, + "flags": 0, + "parent": { + "$ref": "1698" + } + }, + "optional": true, + "rest": false, + "pos": 16108, + "end": 16140, + "flags": 0, + "parent": { + "$ref": "1676" + }, + "symbol": { + "declarations": [ + { + "$ref": "1698" + } + ], + "name": "options", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 326 + } + } + ], + "pos": 15716, + "end": 16143, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1703", + "kind": 51, + "content": [ + { + "$id": "1704", + "kind": 52, + "text": "Provide an example value for a data type.", + "pos": 15719, + "end": 15771, + "flags": 0, + "parent": { + "$ref": "1703" + } + } + ], + "tags": [ + { + "$id": "1705", + "kind": 53, + "tagName": { + "$id": "1706", + "kind": 3, + "sv": "param", + "pos": 15772, + "end": 15777, + "flags": 0, + "parent": { + "$ref": "1705" + } + }, + "paramName": { + "$id": "1707", + "kind": 3, + "sv": "example", + "pos": 15778, + "end": 15785, + "flags": 0, + "parent": { + "$ref": "1705" + } + }, + "content": [ + { + "$id": "1708", + "kind": 52, + "text": "Example value.", + "pos": 15786, + "end": 15804, + "flags": 0, + "parent": { + "$ref": "1705" + } + } + ], + "pos": 15771, + "end": 15804, + "flags": 0, + "parent": { + "$ref": "1703" + } + }, + { + "$id": "1709", + "kind": 53, + "tagName": { + "$id": "1710", + "kind": 3, + "sv": "param", + "pos": 15805, + "end": 15810, + "flags": 0, + "parent": { + "$ref": "1709" + } + }, + "paramName": { + "$id": "1711", + "kind": 3, + "sv": "options", + "pos": 15811, + "end": 15818, + "flags": 0, + "parent": { + "$ref": "1709" + } + }, + "content": [ + { + "$id": "1712", + "kind": 52, + "text": "Optional metadata for the example.", + "pos": 15819, + "end": 15860, + "flags": 0, + "parent": { + "$ref": "1709" + } + } + ], + "pos": 15804, + "end": 15860, + "flags": 0, + "parent": { + "$ref": "1703" + } + }, + { + "$id": "1713", + "kind": 58, + "tagName": { + "$id": "1714", + "kind": 3, + "sv": "example", + "pos": 15861, + "end": 15868, + "flags": 0, + "parent": { + "$ref": "1713" + } + }, + "content": [ + { + "$id": "1715", + "kind": 52, + "text": "```tsp\n@example(#{name: \"Fluffy\", age: 2})\nmodel Pet {\n name: string;\n age: int32;\n}\n```", + "pos": 15868, + "end": 15983, + "flags": 0, + "parent": { + "$ref": "1713" + } + } + ], + "pos": 15860, + "end": 15983, + "flags": 0, + "parent": { + "$ref": "1703" + } + } + ], + "pos": 15716, + "end": 15985, + "flags": 0, + "parent": { + "$ref": "1676" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1676" + } + ], + "name": "@example", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1716", + "kind": 13, + "id": { + "$id": "1717", + "kind": 3, + "sv": "OperationExample", + "pos": 16195, + "end": 16211, + "flags": 0, + "parent": { + "$ref": "1716" + }, + "_id": 529 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "1718", + "kind": 15, + "id": { + "$id": "1719", + "kind": 3, + "sv": "parameters", + "pos": 16247, + "end": 16257, + "flags": 0, + "parent": { + "$ref": "1718" + }, + "_id": 530 + }, + "decorators": [], + "value": { + "$id": "1720", + "kind": 43, + "pos": 16260, + "end": 16267, + "flags": 0, + "parent": { + "$ref": "1718" + } + }, + "optional": true, + "pos": 16216, + "end": 16267, + "flags": 0, + "docs": [ + { + "$id": "1721", + "kind": 51, + "content": [ + { + "$id": "1722", + "kind": 52, + "text": "Example request body.", + "pos": 16219, + "end": 16242, + "flags": 0, + "parent": { + "$ref": "1721" + } + } + ], + "tags": [], + "pos": 16216, + "end": 16244, + "flags": 0, + "parent": { + "$ref": "1718" + } + } + ], + "directives": [], + "parent": { + "$ref": "1716" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1718" + }, + "name": "parameters", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1716" + } + ], + "name": "OperationExample", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 72 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1723", + "kind": 15, + "id": { + "$id": "1724", + "kind": 3, + "sv": "returnType", + "pos": 16304, + "end": 16314, + "flags": 0, + "parent": { + "$ref": "1723" + }, + "_id": 531 + }, + "decorators": [], + "value": { + "$id": "1725", + "kind": 43, + "pos": 16317, + "end": 16324, + "flags": 0, + "parent": { + "$ref": "1723" + } + }, + "optional": true, + "pos": 16272, + "end": 16324, + "flags": 0, + "docs": [ + { + "$id": "1726", + "kind": 51, + "content": [ + { + "$id": "1727", + "kind": 52, + "text": "Example response body.", + "pos": 16275, + "end": 16299, + "flags": 0, + "parent": { + "$ref": "1726" + } + } + ], + "tags": [], + "pos": 16272, + "end": 16301, + "flags": 0, + "parent": { + "$ref": "1723" + } + } + ], + "directives": [], + "parent": { + "$ref": "1716" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "1723" + }, + "name": "returnType", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "1716" + } + ], + "name": "OperationExample", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 72 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 16212, + "end": 16327 + }, + "pos": 16145, + "end": 16327, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1728", + "kind": 51, + "content": [ + { + "$id": "1729", + "kind": 52, + "text": "Operation example configuration.", + "pos": 16148, + "end": 16186, + "flags": 0, + "parent": { + "$ref": "1728" + } + } + ], + "tags": [], + "pos": 16145, + "end": 16188, + "flags": 0, + "parent": { + "$ref": "1716" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1716" + } + ], + "name": "OperationExample", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 72 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "1730", + "kind": 25, + "modifiers": [ + { + "$id": "1731", + "kind": 40, + "pos": 16685, + "end": 16691, + "flags": 0, + "parent": { + "$ref": "1730" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1732", + "kind": 3, + "sv": "opExample", + "pos": 16696, + "end": 16705, + "flags": 0, + "parent": { + "$ref": "1730" + }, + "_id": 532 + }, + "target": { + "$id": "1733", + "kind": 27, + "id": { + "$id": "1734", + "kind": 3, + "sv": "target", + "pos": 16709, + "end": 16715, + "flags": 0, + "parent": { + "$ref": "1733" + }, + "_id": 533 + }, + "type": { + "$id": "1735", + "kind": 45, + "target": { + "$id": "1736", + "kind": 3, + "sv": "Operation", + "pos": 16717, + "end": 16726, + "flags": 1, + "parent": { + "$ref": "1735" + }, + "_id": 535 + }, + "arguments": [], + "pos": 16717, + "end": 16726, + "flags": 1, + "parent": { + "$ref": "1733" + }, + "_id": 534 + }, + "optional": false, + "rest": false, + "pos": 16709, + "end": 16726, + "flags": 0, + "parent": { + "$ref": "1730" + }, + "symbol": { + "declarations": [ + { + "$ref": "1733" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 330 + } + }, + "parameters": [ + { + "$id": "1737", + "kind": 27, + "id": { + "$id": "1738", + "kind": 3, + "sv": "example", + "pos": 16730, + "end": 16737, + "flags": 0, + "parent": { + "$ref": "1737" + }, + "_id": 536 + }, + "type": { + "$id": "1739", + "kind": 44, + "target": { + "$id": "1740", + "kind": 45, + "target": { + "$id": "1741", + "kind": 3, + "sv": "OperationExample", + "pos": 16747, + "end": 16763, + "flags": 1, + "parent": { + "$ref": "1740" + }, + "_id": 538 + }, + "arguments": [], + "pos": 16747, + "end": 16763, + "flags": 1, + "parent": { + "$ref": "1739" + }, + "_id": 537 + }, + "pos": 16739, + "end": 16763, + "flags": 0, + "parent": { + "$ref": "1737" + } + }, + "optional": false, + "rest": false, + "pos": 16730, + "end": 16763, + "flags": 0, + "parent": { + "$ref": "1730" + }, + "symbol": { + "declarations": [ + { + "$ref": "1737" + } + ], + "name": "example", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 331 + } + }, + { + "$id": "1742", + "kind": 27, + "id": { + "$id": "1743", + "kind": 3, + "sv": "options", + "pos": 16767, + "end": 16774, + "flags": 0, + "parent": { + "$ref": "1742" + }, + "_id": 539 + }, + "type": { + "$id": "1744", + "kind": 44, + "target": { + "$id": "1745", + "kind": 45, + "target": { + "$id": "1746", + "kind": 3, + "sv": "ExampleOptions", + "pos": 16785, + "end": 16799, + "flags": 1, + "parent": { + "$ref": "1745" + }, + "_id": 541 + }, + "arguments": [], + "pos": 16785, + "end": 16799, + "flags": 1, + "parent": { + "$ref": "1744" + }, + "_id": 540 + }, + "pos": 16777, + "end": 16799, + "flags": 0, + "parent": { + "$ref": "1742" + } + }, + "optional": true, + "rest": false, + "pos": 16767, + "end": 16799, + "flags": 0, + "parent": { + "$ref": "1730" + }, + "symbol": { + "declarations": [ + { + "$ref": "1742" + } + ], + "name": "options", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 332 + } + } + ], + "pos": 16329, + "end": 16802, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1747", + "kind": 51, + "content": [ + { + "$id": "1748", + "kind": 52, + "text": "Provide example values for an operation's parameters and corresponding return type.", + "pos": 16332, + "end": 16426, + "flags": 0, + "parent": { + "$ref": "1747" + } + } + ], + "tags": [ + { + "$id": "1749", + "kind": 53, + "tagName": { + "$id": "1750", + "kind": 3, + "sv": "param", + "pos": 16427, + "end": 16432, + "flags": 0, + "parent": { + "$ref": "1749" + } + }, + "paramName": { + "$id": "1751", + "kind": 3, + "sv": "example", + "pos": 16433, + "end": 16440, + "flags": 0, + "parent": { + "$ref": "1749" + } + }, + "content": [ + { + "$id": "1752", + "kind": 52, + "text": "Example value.", + "pos": 16441, + "end": 16459, + "flags": 0, + "parent": { + "$ref": "1749" + } + } + ], + "pos": 16426, + "end": 16459, + "flags": 0, + "parent": { + "$ref": "1747" + } + }, + { + "$id": "1753", + "kind": 53, + "tagName": { + "$id": "1754", + "kind": 3, + "sv": "param", + "pos": 16460, + "end": 16465, + "flags": 0, + "parent": { + "$ref": "1753" + } + }, + "paramName": { + "$id": "1755", + "kind": 3, + "sv": "options", + "pos": 16466, + "end": 16473, + "flags": 0, + "parent": { + "$ref": "1753" + } + }, + "content": [ + { + "$id": "1756", + "kind": 52, + "text": "Optional metadata for the example.", + "pos": 16474, + "end": 16515, + "flags": 0, + "parent": { + "$ref": "1753" + } + } + ], + "pos": 16459, + "end": 16515, + "flags": 0, + "parent": { + "$ref": "1747" + } + }, + { + "$id": "1757", + "kind": 58, + "tagName": { + "$id": "1758", + "kind": 3, + "sv": "example", + "pos": 16516, + "end": 16523, + "flags": 0, + "parent": { + "$ref": "1757" + } + }, + "content": [ + { + "$id": "1759", + "kind": 52, + "text": "```tsp\n@opExample(#{parameters: #{name: \"Fluffy\", age: 2}, returnType: #{name: \"Fluffy\", age: 2, id: \"abc\"})\nop createPet(pet: Pet): Pet;\n```", + "pos": 16523, + "end": 16682, + "flags": 0, + "parent": { + "$ref": "1757" + } + } + ], + "pos": 16515, + "end": 16682, + "flags": 0, + "parent": { + "$ref": "1747" + } + } + ], + "pos": 16329, + "end": 16684, + "flags": 0, + "parent": { + "$ref": "1730" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1730" + } + ], + "name": "@opExample", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1760", + "kind": 25, + "modifiers": [ + { + "$id": "1761", + "kind": 40, + "pos": 16867, + "end": 16873, + "flags": 0, + "parent": { + "$ref": "1760" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1762", + "kind": 3, + "sv": "withOptionalProperties", + "pos": 16878, + "end": 16900, + "flags": 0, + "parent": { + "$ref": "1760" + }, + "_id": 168 + }, + "target": { + "$id": "1763", + "kind": 27, + "id": { + "$id": "1764", + "kind": 3, + "sv": "target", + "pos": 16901, + "end": 16907, + "flags": 0, + "parent": { + "$ref": "1763" + }, + "_id": 169 + }, + "type": { + "$id": "1765", + "kind": 45, + "target": { + "$id": "1766", + "kind": 3, + "sv": "Model", + "pos": 16909, + "end": 16914, + "flags": 1, + "parent": { + "$ref": "1765" + }, + "_id": 171 + }, + "arguments": [], + "pos": 16909, + "end": 16914, + "flags": 1, + "parent": { + "$ref": "1763" + }, + "_id": 170 + }, + "optional": false, + "rest": false, + "pos": 16901, + "end": 16914, + "flags": 0, + "parent": { + "$ref": "1760" + }, + "symbol": { + "declarations": [ + { + "$ref": "1763" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 221 + } + }, + "parameters": [], + "pos": 16804, + "end": 16916, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1767", + "kind": 51, + "content": [ + { + "$id": "1768", + "kind": 52, + "text": "Returns the model with required properties removed.", + "pos": 16807, + "end": 16864, + "flags": 0, + "parent": { + "$ref": "1767" + } + } + ], + "tags": [], + "pos": 16804, + "end": 16866, + "flags": 0, + "parent": { + "$ref": "1760" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1760" + } + ], + "name": "@withOptionalProperties", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1769", + "kind": 25, + "modifiers": [ + { + "$id": "1770", + "kind": 40, + "pos": 16980, + "end": 16986, + "flags": 0, + "parent": { + "$ref": "1769" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1771", + "kind": 3, + "sv": "withoutDefaultValues", + "pos": 16991, + "end": 17011, + "flags": 0, + "parent": { + "$ref": "1769" + }, + "_id": 229 + }, + "target": { + "$id": "1772", + "kind": 27, + "id": { + "$id": "1773", + "kind": 3, + "sv": "target", + "pos": 17012, + "end": 17018, + "flags": 0, + "parent": { + "$ref": "1772" + }, + "_id": 230 + }, + "type": { + "$id": "1774", + "kind": 45, + "target": { + "$id": "1775", + "kind": 3, + "sv": "Model", + "pos": 17020, + "end": 17025, + "flags": 1, + "parent": { + "$ref": "1774" + }, + "_id": 232 + }, + "arguments": [], + "pos": 17020, + "end": 17025, + "flags": 1, + "parent": { + "$ref": "1772" + }, + "_id": 231 + }, + "optional": false, + "rest": false, + "pos": 17012, + "end": 17025, + "flags": 0, + "parent": { + "$ref": "1769" + }, + "symbol": { + "declarations": [ + { + "$ref": "1772" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 231 + } + }, + "parameters": [], + "pos": 16918, + "end": 17027, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1776", + "kind": 51, + "content": [ + { + "$id": "1777", + "kind": 52, + "text": "Returns the model with any default values removed.", + "pos": 16921, + "end": 16977, + "flags": 0, + "parent": { + "$ref": "1776" + } + } + ], + "tags": [], + "pos": 16918, + "end": 16979, + "flags": 0, + "parent": { + "$ref": "1769" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1769" + } + ], + "name": "@withoutDefaultValues", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1778", + "kind": 25, + "modifiers": [ + { + "$id": "1779", + "kind": 40, + "pos": 17135, + "end": 17141, + "flags": 0, + "parent": { + "$ref": "1778" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1780", + "kind": 3, + "sv": "withoutOmittedProperties", + "pos": 17146, + "end": 17170, + "flags": 0, + "parent": { + "$ref": "1778" + }, + "_id": 189 + }, + "target": { + "$id": "1781", + "kind": 27, + "id": { + "$id": "1782", + "kind": 3, + "sv": "target", + "pos": 17171, + "end": 17177, + "flags": 0, + "parent": { + "$ref": "1781" + }, + "_id": 190 + }, + "type": { + "$id": "1783", + "kind": 45, + "target": { + "$id": "1784", + "kind": 3, + "sv": "Model", + "pos": 17179, + "end": 17184, + "flags": 1, + "parent": { + "$ref": "1783" + }, + "_id": 192 + }, + "arguments": [], + "pos": 17179, + "end": 17184, + "flags": 1, + "parent": { + "$ref": "1781" + }, + "_id": 191 + }, + "optional": false, + "rest": false, + "pos": 17171, + "end": 17184, + "flags": 0, + "parent": { + "$ref": "1778" + }, + "symbol": { + "declarations": [ + { + "$ref": "1781" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 225 + } + }, + "parameters": [ + { + "$id": "1785", + "kind": 27, + "id": { + "$id": "1786", + "kind": 3, + "sv": "omit", + "pos": 17186, + "end": 17190, + "flags": 0, + "parent": { + "$ref": "1785" + }, + "_id": 193 + }, + "type": { + "$id": "1787", + "kind": 28, + "options": [ + { + "$id": "1788", + "kind": 45, + "target": { + "$id": "1789", + "kind": 3, + "sv": "string", + "pos": 17192, + "end": 17198, + "flags": 1, + "parent": { + "$ref": "1788" + }, + "_id": 195 + }, + "arguments": [], + "pos": 17192, + "end": 17198, + "flags": 1, + "parent": { + "$ref": "1787" + }, + "_id": 194 + }, + { + "$id": "1790", + "kind": 45, + "target": { + "$id": "1791", + "kind": 3, + "sv": "Union", + "pos": 17201, + "end": 17206, + "flags": 1, + "parent": { + "$ref": "1790" + }, + "_id": 197 + }, + "arguments": [], + "pos": 17201, + "end": 17206, + "flags": 1, + "parent": { + "$ref": "1787" + }, + "_id": 196 + } + ], + "pos": 17192, + "end": 17206, + "flags": 0, + "parent": { + "$ref": "1785" + } + }, + "optional": false, + "rest": false, + "pos": 17186, + "end": 17206, + "flags": 0, + "parent": { + "$ref": "1778" + }, + "symbol": { + "declarations": [ + { + "$ref": "1785" + } + ], + "name": "omit", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 226 + } + } + ], + "pos": 17029, + "end": 17208, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1792", + "kind": 51, + "content": [ + { + "$id": "1793", + "kind": 52, + "text": "Returns the model with the given properties omitted.", + "pos": 17032, + "end": 17092, + "flags": 0, + "parent": { + "$ref": "1792" + } + } + ], + "tags": [ + { + "$id": "1794", + "kind": 53, + "tagName": { + "$id": "1795", + "kind": 3, + "sv": "param", + "pos": 17093, + "end": 17098, + "flags": 0, + "parent": { + "$ref": "1794" + } + }, + "paramName": { + "$id": "1796", + "kind": 3, + "sv": "omit", + "pos": 17099, + "end": 17103, + "flags": 0, + "parent": { + "$ref": "1794" + } + }, + "content": [ + { + "$id": "1797", + "kind": 52, + "text": "List of properties to omit", + "pos": 17104, + "end": 17132, + "flags": 0, + "parent": { + "$ref": "1794" + } + } + ], + "pos": 17092, + "end": 17132, + "flags": 0, + "parent": { + "$ref": "1792" + } + } + ], + "pos": 17029, + "end": 17134, + "flags": 0, + "parent": { + "$ref": "1778" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1778" + } + ], + "name": "@withoutOmittedProperties", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1798", + "kind": 25, + "modifiers": [ + { + "$id": "1799", + "kind": 40, + "pos": 17325, + "end": 17331, + "flags": 0, + "parent": { + "$ref": "1798" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1800", + "kind": 3, + "sv": "withPickedProperties", + "pos": 17336, + "end": 17356, + "flags": 0, + "parent": { + "$ref": "1798" + }, + "_id": 210 + }, + "target": { + "$id": "1801", + "kind": 27, + "id": { + "$id": "1802", + "kind": 3, + "sv": "target", + "pos": 17357, + "end": 17363, + "flags": 0, + "parent": { + "$ref": "1801" + }, + "_id": 211 + }, + "type": { + "$id": "1803", + "kind": 45, + "target": { + "$id": "1804", + "kind": 3, + "sv": "Model", + "pos": 17365, + "end": 17370, + "flags": 1, + "parent": { + "$ref": "1803" + }, + "_id": 213 + }, + "arguments": [], + "pos": 17365, + "end": 17370, + "flags": 1, + "parent": { + "$ref": "1801" + }, + "_id": 212 + }, + "optional": false, + "rest": false, + "pos": 17357, + "end": 17370, + "flags": 0, + "parent": { + "$ref": "1798" + }, + "symbol": { + "declarations": [ + { + "$ref": "1801" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 228 + } + }, + "parameters": [ + { + "$id": "1805", + "kind": 27, + "id": { + "$id": "1806", + "kind": 3, + "sv": "pick", + "pos": 17372, + "end": 17376, + "flags": 0, + "parent": { + "$ref": "1805" + }, + "_id": 214 + }, + "type": { + "$id": "1807", + "kind": 28, + "options": [ + { + "$id": "1808", + "kind": 45, + "target": { + "$id": "1809", + "kind": 3, + "sv": "string", + "pos": 17378, + "end": 17384, + "flags": 1, + "parent": { + "$ref": "1808" + }, + "_id": 216 + }, + "arguments": [], + "pos": 17378, + "end": 17384, + "flags": 1, + "parent": { + "$ref": "1807" + }, + "_id": 215 + }, + { + "$id": "1810", + "kind": 45, + "target": { + "$id": "1811", + "kind": 3, + "sv": "Union", + "pos": 17387, + "end": 17392, + "flags": 1, + "parent": { + "$ref": "1810" + }, + "_id": 218 + }, + "arguments": [], + "pos": 17387, + "end": 17392, + "flags": 1, + "parent": { + "$ref": "1807" + }, + "_id": 217 + } + ], + "pos": 17378, + "end": 17392, + "flags": 0, + "parent": { + "$ref": "1805" + } + }, + "optional": false, + "rest": false, + "pos": 17372, + "end": 17392, + "flags": 0, + "parent": { + "$ref": "1798" + }, + "symbol": { + "declarations": [ + { + "$ref": "1805" + } + ], + "name": "pick", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 229 + } + } + ], + "pos": 17210, + "end": 17394, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1812", + "kind": 51, + "content": [ + { + "$id": "1813", + "kind": 52, + "text": "Returns the model with only the given properties included.", + "pos": 17213, + "end": 17279, + "flags": 0, + "parent": { + "$ref": "1812" + } + } + ], + "tags": [ + { + "$id": "1814", + "kind": 53, + "tagName": { + "$id": "1815", + "kind": 3, + "sv": "param", + "pos": 17280, + "end": 17285, + "flags": 0, + "parent": { + "$ref": "1814" + } + }, + "paramName": { + "$id": "1816", + "kind": 3, + "sv": "pick", + "pos": 17286, + "end": 17290, + "flags": 0, + "parent": { + "$ref": "1814" + } + }, + "content": [ + { + "$id": "1817", + "kind": 52, + "text": "List of properties to include", + "pos": 17291, + "end": 17322, + "flags": 0, + "parent": { + "$ref": "1814" + } + } + ], + "pos": 17279, + "end": 17322, + "flags": 0, + "parent": { + "$ref": "1812" + } + } + ], + "pos": 17210, + "end": 17324, + "flags": 0, + "parent": { + "$ref": "1798" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1798" + } + ], + "name": "@withPickedProperties", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1818", + "kind": 25, + "modifiers": [ + { + "$id": "1819", + "kind": 40, + "pos": 17656, + "end": 17662, + "flags": 0, + "parent": { + "$ref": "1818" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1820", + "kind": 3, + "sv": "list", + "pos": 17667, + "end": 17671, + "flags": 0, + "parent": { + "$ref": "1818" + }, + "_id": 542 + }, + "target": { + "$id": "1821", + "kind": 27, + "id": { + "$id": "1822", + "kind": 3, + "sv": "target", + "pos": 17672, + "end": 17678, + "flags": 0, + "parent": { + "$ref": "1821" + }, + "_id": 543 + }, + "type": { + "$id": "1823", + "kind": 45, + "target": { + "$id": "1824", + "kind": 3, + "sv": "Operation", + "pos": 17680, + "end": 17689, + "flags": 1, + "parent": { + "$ref": "1823" + }, + "_id": 545 + }, + "arguments": [], + "pos": 17680, + "end": 17689, + "flags": 1, + "parent": { + "$ref": "1821" + }, + "_id": 544 + }, + "optional": false, + "rest": false, + "pos": 17672, + "end": 17689, + "flags": 0, + "parent": { + "$ref": "1818" + }, + "symbol": { + "declarations": [ + { + "$ref": "1821" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 334 + } + }, + "parameters": [], + "pos": 17563, + "end": 17691, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1825", + "kind": 51, + "content": [ + { + "$id": "1826", + "kind": 52, + "text": "Mark this operation as a `list` operation that returns a paginated list of items.", + "pos": 17566, + "end": 17653, + "flags": 0, + "parent": { + "$ref": "1825" + } + } + ], + "tags": [], + "pos": 17563, + "end": 17655, + "flags": 0, + "parent": { + "$ref": "1818" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1818" + } + ], + "name": "@list", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1827", + "kind": 25, + "modifiers": [ + { + "$id": "1828", + "kind": 40, + "pos": 17923, + "end": 17929, + "flags": 0, + "parent": { + "$ref": "1827" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1829", + "kind": 3, + "sv": "offset", + "pos": 17934, + "end": 17940, + "flags": 0, + "parent": { + "$ref": "1827" + }, + "_id": 546 + }, + "target": { + "$id": "1830", + "kind": 27, + "id": { + "$id": "1831", + "kind": 3, + "sv": "target", + "pos": 17941, + "end": 17947, + "flags": 0, + "parent": { + "$ref": "1830" + }, + "_id": 547 + }, + "type": { + "$id": "1832", + "kind": 45, + "target": { + "$id": "1833", + "kind": 3, + "sv": "ModelProperty", + "pos": 17949, + "end": 17962, + "flags": 1, + "parent": { + "$ref": "1832" + }, + "_id": 549 + }, + "arguments": [], + "pos": 17949, + "end": 17962, + "flags": 1, + "parent": { + "$ref": "1830" + }, + "_id": 548 + }, + "optional": false, + "rest": false, + "pos": 17941, + "end": 17962, + "flags": 0, + "parent": { + "$ref": "1827" + }, + "symbol": { + "declarations": [ + { + "$ref": "1830" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 336 + } + }, + "parameters": [], + "pos": 17693, + "end": 17964, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1834", + "kind": 51, + "content": [ + { + "$id": "1835", + "kind": 52, + "text": "Pagination property defining the number of items to skip.", + "pos": 17696, + "end": 17761, + "flags": 0, + "parent": { + "$ref": "1834" + } + } + ], + "tags": [ + { + "$id": "1836", + "kind": 58, + "tagName": { + "$id": "1837", + "kind": 3, + "sv": "example", + "pos": 17762, + "end": 17769, + "flags": 0, + "parent": { + "$ref": "1836" + } + }, + "content": [ + { + "$id": "1838", + "kind": 52, + "text": "```tsp\nmodel Page {\n @pageItems items: T[];\n}\n@list op listPets(@offset skip: int32, @pageSize pageSize: int8): Page;\n```", + "pos": 17769, + "end": 17920, + "flags": 0, + "parent": { + "$ref": "1836" + } + } + ], + "pos": 17761, + "end": 17920, + "flags": 0, + "parent": { + "$ref": "1834" + } + } + ], + "pos": 17693, + "end": 17922, + "flags": 0, + "parent": { + "$ref": "1827" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1827" + } + ], + "name": "@offset", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1839", + "kind": 25, + "modifiers": [ + { + "$id": "1840", + "kind": 40, + "pos": 18189, + "end": 18195, + "flags": 0, + "parent": { + "$ref": "1839" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1841", + "kind": 3, + "sv": "pageIndex", + "pos": 18200, + "end": 18209, + "flags": 0, + "parent": { + "$ref": "1839" + }, + "_id": 550 + }, + "target": { + "$id": "1842", + "kind": 27, + "id": { + "$id": "1843", + "kind": 3, + "sv": "target", + "pos": 18210, + "end": 18216, + "flags": 0, + "parent": { + "$ref": "1842" + }, + "_id": 551 + }, + "type": { + "$id": "1844", + "kind": 45, + "target": { + "$id": "1845", + "kind": 3, + "sv": "ModelProperty", + "pos": 18218, + "end": 18231, + "flags": 1, + "parent": { + "$ref": "1844" + }, + "_id": 553 + }, + "arguments": [], + "pos": 18218, + "end": 18231, + "flags": 1, + "parent": { + "$ref": "1842" + }, + "_id": 552 + }, + "optional": false, + "rest": false, + "pos": 18210, + "end": 18231, + "flags": 0, + "parent": { + "$ref": "1839" + }, + "symbol": { + "declarations": [ + { + "$ref": "1842" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 338 + } + }, + "parameters": [], + "pos": 17966, + "end": 18233, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1846", + "kind": 51, + "content": [ + { + "$id": "1847", + "kind": 52, + "text": "Pagination property defining the page index.", + "pos": 17969, + "end": 18024, + "flags": 0, + "parent": { + "$ref": "1846" + } + } + ], + "tags": [ + { + "$id": "1848", + "kind": 58, + "tagName": { + "$id": "1849", + "kind": 3, + "sv": "example", + "pos": 18025, + "end": 18032, + "flags": 0, + "parent": { + "$ref": "1848" + } + }, + "content": [ + { + "$id": "1850", + "kind": 52, + "text": "```tsp\nmodel Page {\n @pageItems items: T[];\n}\n@list op listPets(@pageIndex page: int32, @pageSize pageSize: int8): Page;\n```", + "pos": 18032, + "end": 18186, + "flags": 0, + "parent": { + "$ref": "1848" + } + } + ], + "pos": 18024, + "end": 18186, + "flags": 0, + "parent": { + "$ref": "1846" + } + } + ], + "pos": 17966, + "end": 18188, + "flags": 0, + "parent": { + "$ref": "1839" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1839" + } + ], + "name": "@pageIndex", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1851", + "kind": 25, + "modifiers": [ + { + "$id": "1852", + "kind": 40, + "pos": 18510, + "end": 18516, + "flags": 0, + "parent": { + "$ref": "1851" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1853", + "kind": 3, + "sv": "pageSize", + "pos": 18521, + "end": 18529, + "flags": 0, + "parent": { + "$ref": "1851" + }, + "_id": 554 + }, + "target": { + "$id": "1854", + "kind": 27, + "id": { + "$id": "1855", + "kind": 3, + "sv": "target", + "pos": 18530, + "end": 18536, + "flags": 0, + "parent": { + "$ref": "1854" + }, + "_id": 555 + }, + "type": { + "$id": "1856", + "kind": 45, + "target": { + "$id": "1857", + "kind": 3, + "sv": "ModelProperty", + "pos": 18538, + "end": 18551, + "flags": 1, + "parent": { + "$ref": "1856" + }, + "_id": 557 + }, + "arguments": [], + "pos": 18538, + "end": 18551, + "flags": 1, + "parent": { + "$ref": "1854" + }, + "_id": 556 + }, + "optional": false, + "rest": false, + "pos": 18530, + "end": 18551, + "flags": 0, + "parent": { + "$ref": "1851" + }, + "symbol": { + "declarations": [ + { + "$ref": "1854" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 340 + } + }, + "parameters": [], + "pos": 18235, + "end": 18553, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1858", + "kind": 51, + "content": [ + { + "$id": "1859", + "kind": 52, + "text": "Specify the pagination parameter that controls the maximum number of items to include in a page.", + "pos": 18238, + "end": 18345, + "flags": 0, + "parent": { + "$ref": "1858" + } + } + ], + "tags": [ + { + "$id": "1860", + "kind": 58, + "tagName": { + "$id": "1861", + "kind": 3, + "sv": "example", + "pos": 18346, + "end": 18353, + "flags": 0, + "parent": { + "$ref": "1860" + } + }, + "content": [ + { + "$id": "1862", + "kind": 52, + "text": "```tsp\nmodel Page {\n @pageItems items: T[];\n}\n@list op listPets(@pageIndex page: int32, @pageSize pageSize: int8): Page;\n```", + "pos": 18353, + "end": 18507, + "flags": 0, + "parent": { + "$ref": "1860" + } + } + ], + "pos": 18345, + "end": 18507, + "flags": 0, + "parent": { + "$ref": "1858" + } + } + ], + "pos": 18235, + "end": 18509, + "flags": 0, + "parent": { + "$ref": "1851" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1851" + } + ], + "name": "@pageSize", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1863", + "kind": 25, + "modifiers": [ + { + "$id": "1864", + "kind": 40, + "pos": 18797, + "end": 18803, + "flags": 0, + "parent": { + "$ref": "1863" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1865", + "kind": 3, + "sv": "pageItems", + "pos": 18808, + "end": 18817, + "flags": 0, + "parent": { + "$ref": "1863" + }, + "_id": 558 + }, + "target": { + "$id": "1866", + "kind": 27, + "id": { + "$id": "1867", + "kind": 3, + "sv": "target", + "pos": 18818, + "end": 18824, + "flags": 0, + "parent": { + "$ref": "1866" + }, + "_id": 559 + }, + "type": { + "$id": "1868", + "kind": 45, + "target": { + "$id": "1869", + "kind": 3, + "sv": "ModelProperty", + "pos": 18826, + "end": 18839, + "flags": 1, + "parent": { + "$ref": "1868" + }, + "_id": 561 + }, + "arguments": [], + "pos": 18826, + "end": 18839, + "flags": 1, + "parent": { + "$ref": "1866" + }, + "_id": 560 + }, + "optional": false, + "rest": false, + "pos": 18818, + "end": 18839, + "flags": 0, + "parent": { + "$ref": "1863" + }, + "symbol": { + "declarations": [ + { + "$ref": "1866" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 342 + } + }, + "parameters": [], + "pos": 18555, + "end": 18841, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1870", + "kind": 51, + "content": [ + { + "$id": "1871", + "kind": 52, + "text": "Specify the the property that contains the array of page items.", + "pos": 18558, + "end": 18632, + "flags": 0, + "parent": { + "$ref": "1870" + } + } + ], + "tags": [ + { + "$id": "1872", + "kind": 58, + "tagName": { + "$id": "1873", + "kind": 3, + "sv": "example", + "pos": 18633, + "end": 18640, + "flags": 0, + "parent": { + "$ref": "1872" + } + }, + "content": [ + { + "$id": "1874", + "kind": 52, + "text": "```tsp\nmodel Page {\n @pageItems items: T[];\n}\n@list op listPets(@pageIndex page: int32, @pageSize pageSize: int8): Page;\n```", + "pos": 18640, + "end": 18794, + "flags": 0, + "parent": { + "$ref": "1872" + } + } + ], + "pos": 18632, + "end": 18794, + "flags": 0, + "parent": { + "$ref": "1870" + } + } + ], + "pos": 18555, + "end": 18796, + "flags": 0, + "parent": { + "$ref": "1863" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1863" + } + ], + "name": "@pageItems", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1875", + "kind": 25, + "modifiers": [ + { + "$id": "1876", + "kind": 40, + "pos": 19204, + "end": 19210, + "flags": 0, + "parent": { + "$ref": "1875" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1877", + "kind": 3, + "sv": "continuationToken", + "pos": 19215, + "end": 19232, + "flags": 0, + "parent": { + "$ref": "1875" + }, + "_id": 562 + }, + "target": { + "$id": "1878", + "kind": 27, + "id": { + "$id": "1879", + "kind": 3, + "sv": "target", + "pos": 19233, + "end": 19239, + "flags": 0, + "parent": { + "$ref": "1878" + }, + "_id": 563 + }, + "type": { + "$id": "1880", + "kind": 45, + "target": { + "$id": "1881", + "kind": 3, + "sv": "ModelProperty", + "pos": 19241, + "end": 19254, + "flags": 1, + "parent": { + "$ref": "1880" + }, + "_id": 565 + }, + "arguments": [], + "pos": 19241, + "end": 19254, + "flags": 1, + "parent": { + "$ref": "1878" + }, + "_id": 564 + }, + "optional": false, + "rest": false, + "pos": 19233, + "end": 19254, + "flags": 0, + "parent": { + "$ref": "1875" + }, + "symbol": { + "declarations": [ + { + "$ref": "1878" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 344 + } + }, + "parameters": [], + "pos": 18843, + "end": 19256, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1882", + "kind": 51, + "content": [ + { + "$id": "1883", + "kind": 52, + "text": "Pagination property defining the token to get to the next page.\nIt MUST be specified both on the request parameter and the response.", + "pos": 18846, + "end": 18992, + "flags": 0, + "parent": { + "$ref": "1882" + } + } + ], + "tags": [ + { + "$id": "1884", + "kind": 58, + "tagName": { + "$id": "1885", + "kind": 3, + "sv": "example", + "pos": 18993, + "end": 19000, + "flags": 0, + "parent": { + "$ref": "1884" + } + }, + "content": [ + { + "$id": "1886", + "kind": 52, + "text": "```tsp\nmodel Page {\n @pageItems items: T[];\n @continuationToken continuationToken: string;\n}\n@list op listPets(@continuationToken continuationToken: string): Page;\n```", + "pos": 19000, + "end": 19201, + "flags": 0, + "parent": { + "$ref": "1884" + } + } + ], + "pos": 18992, + "end": 19201, + "flags": 0, + "parent": { + "$ref": "1882" + } + } + ], + "pos": 18843, + "end": 19203, + "flags": 0, + "parent": { + "$ref": "1875" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1875" + } + ], + "name": "@continuationToken", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1887", + "kind": 25, + "modifiers": [ + { + "$id": "1888", + "kind": 40, + "pos": 19684, + "end": 19690, + "flags": 0, + "parent": { + "$ref": "1887" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1889", + "kind": 3, + "sv": "nextLink", + "pos": 19695, + "end": 19703, + "flags": 0, + "parent": { + "$ref": "1887" + }, + "_id": 566 + }, + "target": { + "$id": "1890", + "kind": 27, + "id": { + "$id": "1891", + "kind": 3, + "sv": "target", + "pos": 19704, + "end": 19710, + "flags": 0, + "parent": { + "$ref": "1890" + }, + "_id": 567 + }, + "type": { + "$id": "1892", + "kind": 45, + "target": { + "$id": "1893", + "kind": 3, + "sv": "ModelProperty", + "pos": 19712, + "end": 19725, + "flags": 1, + "parent": { + "$ref": "1892" + }, + "_id": 569 + }, + "arguments": [], + "pos": 19712, + "end": 19725, + "flags": 1, + "parent": { + "$ref": "1890" + }, + "_id": 568 + }, + "optional": false, + "rest": false, + "pos": 19704, + "end": 19725, + "flags": 0, + "parent": { + "$ref": "1887" + }, + "symbol": { + "declarations": [ + { + "$ref": "1890" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 346 + } + }, + "parameters": [], + "pos": 19258, + "end": 19727, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1894", + "kind": 51, + "content": [ + { + "$id": "1895", + "kind": 52, + "text": "Pagination property defining a link to the next page.\n\nIt is expected that navigating to the link will return the same set of responses as the operation that returned the current page.", + "pos": 19261, + "end": 19461, + "flags": 0, + "parent": { + "$ref": "1894" + } + } + ], + "tags": [ + { + "$id": "1896", + "kind": 58, + "tagName": { + "$id": "1897", + "kind": 3, + "sv": "example", + "pos": 19462, + "end": 19469, + "flags": 0, + "parent": { + "$ref": "1896" + } + }, + "content": [ + { + "$id": "1898", + "kind": 52, + "text": "```tsp\nmodel Page {\n @pageItems items: T[];\n @nextLink next: url;\n @prevLink prev: url;\n @firstLink first: url;\n @lastLink last: url;\n}\n@list op listPets(): Page;\n```", + "pos": 19469, + "end": 19681, + "flags": 0, + "parent": { + "$ref": "1896" + } + } + ], + "pos": 19461, + "end": 19681, + "flags": 0, + "parent": { + "$ref": "1894" + } + } + ], + "pos": 19258, + "end": 19683, + "flags": 0, + "parent": { + "$ref": "1887" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1887" + } + ], + "name": "@nextLink", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1899", + "kind": 25, + "modifiers": [ + { + "$id": "1900", + "kind": 40, + "pos": 20159, + "end": 20165, + "flags": 0, + "parent": { + "$ref": "1899" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1901", + "kind": 3, + "sv": "prevLink", + "pos": 20170, + "end": 20178, + "flags": 0, + "parent": { + "$ref": "1899" + }, + "_id": 570 + }, + "target": { + "$id": "1902", + "kind": 27, + "id": { + "$id": "1903", + "kind": 3, + "sv": "target", + "pos": 20179, + "end": 20185, + "flags": 0, + "parent": { + "$ref": "1902" + }, + "_id": 571 + }, + "type": { + "$id": "1904", + "kind": 45, + "target": { + "$id": "1905", + "kind": 3, + "sv": "ModelProperty", + "pos": 20187, + "end": 20200, + "flags": 1, + "parent": { + "$ref": "1904" + }, + "_id": 573 + }, + "arguments": [], + "pos": 20187, + "end": 20200, + "flags": 1, + "parent": { + "$ref": "1902" + }, + "_id": 572 + }, + "optional": false, + "rest": false, + "pos": 20179, + "end": 20200, + "flags": 0, + "parent": { + "$ref": "1899" + }, + "symbol": { + "declarations": [ + { + "$ref": "1902" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 348 + } + }, + "parameters": [], + "pos": 19729, + "end": 20202, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1906", + "kind": 51, + "content": [ + { + "$id": "1907", + "kind": 52, + "text": "Pagination property defining a link to the previous page.\n\nIt is expected that navigating to the link will return the same set of responses as the operation that returned the current page.", + "pos": 19732, + "end": 19936, + "flags": 0, + "parent": { + "$ref": "1906" + } + } + ], + "tags": [ + { + "$id": "1908", + "kind": 58, + "tagName": { + "$id": "1909", + "kind": 3, + "sv": "example", + "pos": 19937, + "end": 19944, + "flags": 0, + "parent": { + "$ref": "1908" + } + }, + "content": [ + { + "$id": "1910", + "kind": 52, + "text": "```tsp\nmodel Page {\n @pageItems items: T[];\n @nextLink next: url;\n @prevLink prev: url;\n @firstLink first: url;\n @lastLink last: url;\n}\n@list op listPets(): Page;\n```", + "pos": 19944, + "end": 20156, + "flags": 0, + "parent": { + "$ref": "1908" + } + } + ], + "pos": 19936, + "end": 20156, + "flags": 0, + "parent": { + "$ref": "1906" + } + } + ], + "pos": 19729, + "end": 20158, + "flags": 0, + "parent": { + "$ref": "1899" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1899" + } + ], + "name": "@prevLink", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1911", + "kind": 25, + "modifiers": [ + { + "$id": "1912", + "kind": 40, + "pos": 20631, + "end": 20637, + "flags": 0, + "parent": { + "$ref": "1911" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1913", + "kind": 3, + "sv": "firstLink", + "pos": 20642, + "end": 20651, + "flags": 0, + "parent": { + "$ref": "1911" + }, + "_id": 574 + }, + "target": { + "$id": "1914", + "kind": 27, + "id": { + "$id": "1915", + "kind": 3, + "sv": "target", + "pos": 20652, + "end": 20658, + "flags": 0, + "parent": { + "$ref": "1914" + }, + "_id": 575 + }, + "type": { + "$id": "1916", + "kind": 45, + "target": { + "$id": "1917", + "kind": 3, + "sv": "ModelProperty", + "pos": 20660, + "end": 20673, + "flags": 1, + "parent": { + "$ref": "1916" + }, + "_id": 577 + }, + "arguments": [], + "pos": 20660, + "end": 20673, + "flags": 1, + "parent": { + "$ref": "1914" + }, + "_id": 576 + }, + "optional": false, + "rest": false, + "pos": 20652, + "end": 20673, + "flags": 0, + "parent": { + "$ref": "1911" + }, + "symbol": { + "declarations": [ + { + "$ref": "1914" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 350 + } + }, + "parameters": [], + "pos": 20204, + "end": 20675, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1918", + "kind": 51, + "content": [ + { + "$id": "1919", + "kind": 52, + "text": "Pagination property defining a link to the first page.\n\nIt is expected that navigating to the link will return the same set of responses as the operation that returned the current page.", + "pos": 20207, + "end": 20408, + "flags": 0, + "parent": { + "$ref": "1918" + } + } + ], + "tags": [ + { + "$id": "1920", + "kind": 58, + "tagName": { + "$id": "1921", + "kind": 3, + "sv": "example", + "pos": 20409, + "end": 20416, + "flags": 0, + "parent": { + "$ref": "1920" + } + }, + "content": [ + { + "$id": "1922", + "kind": 52, + "text": "```tsp\nmodel Page {\n @pageItems items: T[];\n @nextLink next: url;\n @prevLink prev: url;\n @firstLink first: url;\n @lastLink last: url;\n}\n@list op listPets(): Page;\n```", + "pos": 20416, + "end": 20628, + "flags": 0, + "parent": { + "$ref": "1920" + } + } + ], + "pos": 20408, + "end": 20628, + "flags": 0, + "parent": { + "$ref": "1918" + } + } + ], + "pos": 20204, + "end": 20630, + "flags": 0, + "parent": { + "$ref": "1911" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1911" + } + ], + "name": "@firstLink", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1923", + "kind": 25, + "modifiers": [ + { + "$id": "1924", + "kind": 40, + "pos": 21103, + "end": 21109, + "flags": 0, + "parent": { + "$ref": "1923" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1925", + "kind": 3, + "sv": "lastLink", + "pos": 21114, + "end": 21122, + "flags": 0, + "parent": { + "$ref": "1923" + }, + "_id": 578 + }, + "target": { + "$id": "1926", + "kind": 27, + "id": { + "$id": "1927", + "kind": 3, + "sv": "target", + "pos": 21123, + "end": 21129, + "flags": 0, + "parent": { + "$ref": "1926" + }, + "_id": 579 + }, + "type": { + "$id": "1928", + "kind": 45, + "target": { + "$id": "1929", + "kind": 3, + "sv": "ModelProperty", + "pos": 21131, + "end": 21144, + "flags": 1, + "parent": { + "$ref": "1928" + }, + "_id": 581 + }, + "arguments": [], + "pos": 21131, + "end": 21144, + "flags": 1, + "parent": { + "$ref": "1926" + }, + "_id": 580 + }, + "optional": false, + "rest": false, + "pos": 21123, + "end": 21144, + "flags": 0, + "parent": { + "$ref": "1923" + }, + "symbol": { + "declarations": [ + { + "$ref": "1926" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 352 + } + }, + "parameters": [], + "pos": 20677, + "end": 21146, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1930", + "kind": 51, + "content": [ + { + "$id": "1931", + "kind": 52, + "text": "Pagination property defining a link to the last page.\n\nIt is expected that navigating to the link will return the same set of responses as the operation that returned the current page.", + "pos": 20680, + "end": 20880, + "flags": 0, + "parent": { + "$ref": "1930" + } + } + ], + "tags": [ + { + "$id": "1932", + "kind": 58, + "tagName": { + "$id": "1933", + "kind": 3, + "sv": "example", + "pos": 20881, + "end": 20888, + "flags": 0, + "parent": { + "$ref": "1932" + } + }, + "content": [ + { + "$id": "1934", + "kind": 52, + "text": "```tsp\nmodel Page {\n @pageItems items: T[];\n @nextLink next: url;\n @prevLink prev: url;\n @firstLink first: url;\n @lastLink last: url;\n}\n@list op listPets(): Page;\n```", + "pos": 20888, + "end": 21100, + "flags": 0, + "parent": { + "$ref": "1932" + } + } + ], + "pos": 20880, + "end": 21100, + "flags": 0, + "parent": { + "$ref": "1930" + } + } + ], + "pos": 20677, + "end": 21102, + "flags": 0, + "parent": { + "$ref": "1923" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1923" + } + ], + "name": "@lastLink", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1935", + "kind": 25, + "modifiers": [ + { + "$id": "1936", + "kind": 40, + "pos": 21409, + "end": 21415, + "flags": 0, + "parent": { + "$ref": "1935" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1937", + "kind": 3, + "sv": "inspectType", + "pos": 21420, + "end": 21431, + "flags": 0, + "parent": { + "$ref": "1935" + }, + "_id": 582 + }, + "target": { + "$id": "1938", + "kind": 27, + "id": { + "$id": "1939", + "kind": 3, + "sv": "target", + "pos": 21432, + "end": 21438, + "flags": 0, + "parent": { + "$ref": "1938" + }, + "_id": 583 + }, + "type": { + "$id": "1940", + "kind": 43, + "pos": 21440, + "end": 21447, + "flags": 0, + "parent": { + "$ref": "1938" + } + }, + "optional": false, + "rest": false, + "pos": 21432, + "end": 21447, + "flags": 0, + "parent": { + "$ref": "1935" + }, + "symbol": { + "declarations": [ + { + "$ref": "1938" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 354 + } + }, + "parameters": [ + { + "$id": "1941", + "kind": 27, + "id": { + "$id": "1942", + "kind": 3, + "sv": "text", + "pos": 21449, + "end": 21453, + "flags": 0, + "parent": { + "$ref": "1941" + }, + "_id": 584 + }, + "type": { + "$id": "1943", + "kind": 44, + "target": { + "$id": "1944", + "kind": 45, + "target": { + "$id": "1945", + "kind": 3, + "sv": "string", + "pos": 21463, + "end": 21469, + "flags": 1, + "parent": { + "$ref": "1944" + }, + "_id": 586 + }, + "arguments": [], + "pos": 21463, + "end": 21469, + "flags": 1, + "parent": { + "$ref": "1943" + }, + "_id": 585 + }, + "pos": 21455, + "end": 21469, + "flags": 0, + "parent": { + "$ref": "1941" + } + }, + "optional": false, + "rest": false, + "pos": 21449, + "end": 21469, + "flags": 0, + "parent": { + "$ref": "1935" + }, + "symbol": { + "declarations": [ + { + "$ref": "1941" + } + ], + "name": "text", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 355 + } + } + ], + "pos": 21318, + "end": 21471, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1946", + "kind": 51, + "content": [ + { + "$id": "1947", + "kind": 52, + "text": "A debugging decorator used to inspect a type.", + "pos": 21321, + "end": 21374, + "flags": 0, + "parent": { + "$ref": "1946" + } + } + ], + "tags": [ + { + "$id": "1948", + "kind": 53, + "tagName": { + "$id": "1949", + "kind": 3, + "sv": "param", + "pos": 21375, + "end": 21380, + "flags": 0, + "parent": { + "$ref": "1948" + } + }, + "paramName": { + "$id": "1950", + "kind": 3, + "sv": "text", + "pos": 21381, + "end": 21385, + "flags": 0, + "parent": { + "$ref": "1948" + } + }, + "content": [ + { + "$id": "1951", + "kind": 52, + "text": "Custom text to log", + "pos": 21386, + "end": 21406, + "flags": 0, + "parent": { + "$ref": "1948" + } + } + ], + "pos": 21374, + "end": 21406, + "flags": 0, + "parent": { + "$ref": "1946" + } + } + ], + "pos": 21318, + "end": 21408, + "flags": 0, + "parent": { + "$ref": "1935" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1935" + } + ], + "name": "@inspectType", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "1952", + "kind": 25, + "modifiers": [ + { + "$id": "1953", + "kind": 40, + "pos": 21569, + "end": 21575, + "flags": 0, + "parent": { + "$ref": "1952" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "1954", + "kind": 3, + "sv": "inspectTypeName", + "pos": 21580, + "end": 21595, + "flags": 0, + "parent": { + "$ref": "1952" + }, + "_id": 587 + }, + "target": { + "$id": "1955", + "kind": 27, + "id": { + "$id": "1956", + "kind": 3, + "sv": "target", + "pos": 21596, + "end": 21602, + "flags": 0, + "parent": { + "$ref": "1955" + }, + "_id": 588 + }, + "type": { + "$id": "1957", + "kind": 43, + "pos": 21604, + "end": 21611, + "flags": 0, + "parent": { + "$ref": "1955" + } + }, + "optional": false, + "rest": false, + "pos": 21596, + "end": 21611, + "flags": 0, + "parent": { + "$ref": "1952" + }, + "symbol": { + "declarations": [ + { + "$ref": "1955" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 357 + } + }, + "parameters": [ + { + "$id": "1958", + "kind": 27, + "id": { + "$id": "1959", + "kind": 3, + "sv": "text", + "pos": 21613, + "end": 21617, + "flags": 0, + "parent": { + "$ref": "1958" + }, + "_id": 589 + }, + "type": { + "$id": "1960", + "kind": 44, + "target": { + "$id": "1961", + "kind": 45, + "target": { + "$id": "1962", + "kind": 3, + "sv": "string", + "pos": 21627, + "end": 21633, + "flags": 1, + "parent": { + "$ref": "1961" + }, + "_id": 591 + }, + "arguments": [], + "pos": 21627, + "end": 21633, + "flags": 1, + "parent": { + "$ref": "1960" + }, + "_id": 590 + }, + "pos": 21619, + "end": 21633, + "flags": 0, + "parent": { + "$ref": "1958" + } + }, + "optional": false, + "rest": false, + "pos": 21613, + "end": 21633, + "flags": 0, + "parent": { + "$ref": "1952" + }, + "symbol": { + "declarations": [ + { + "$ref": "1958" + } + ], + "name": "text", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 358 + } + } + ], + "pos": 21473, + "end": 21635, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1963", + "kind": 51, + "content": [ + { + "$id": "1964", + "kind": 52, + "text": "A debugging decorator used to inspect a type name.", + "pos": 21476, + "end": 21534, + "flags": 0, + "parent": { + "$ref": "1963" + } + } + ], + "tags": [ + { + "$id": "1965", + "kind": 53, + "tagName": { + "$id": "1966", + "kind": 3, + "sv": "param", + "pos": 21535, + "end": 21540, + "flags": 0, + "parent": { + "$ref": "1965" + } + }, + "paramName": { + "$id": "1967", + "kind": 3, + "sv": "text", + "pos": 21541, + "end": 21545, + "flags": 0, + "parent": { + "$ref": "1965" + } + }, + "content": [ + { + "$id": "1968", + "kind": 52, + "text": "Custom text to log", + "pos": 21546, + "end": 21566, + "flags": 0, + "parent": { + "$ref": "1965" + } + } + ], + "pos": 21534, + "end": 21566, + "flags": 0, + "parent": { + "$ref": "1963" + } + } + ], + "pos": 21473, + "end": 21568, + "flags": 0, + "parent": { + "$ref": "1952" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "1952" + } + ], + "name": "@inspectTypeName", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "file": { + "text": "import \"../../dist/src/lib/tsp-index.js\";\n\nusing TypeSpec.Reflection;\n\nnamespace TypeSpec;\n\n/**\n * Typically a short, single-line description.\n * @param summary Summary string.\n *\n * @example\n * ```typespec\n * @summary(\"This is a pet\")\n * model Pet {}\n * ```\n */\nextern dec summary(target: unknown, summary: valueof string);\n\n/**\n * Attach a documentation string. Content support CommonMark markdown formatting.\n * @param doc Documentation string\n * @param formatArgs Record with key value pair that can be interpolated in the doc.\n *\n * @example\n * ```typespec\n * @doc(\"Represent a Pet available in the PetStore\")\n * model Pet {}\n * ```\n */\nextern dec doc(target: unknown, doc: valueof string, formatArgs?: {});\n\n/**\n * Attach a documentation string to describe the successful return types of an operation.\n * If an operation returns a union of success and errors it only describes the success. See `@errorsDoc` for error documentation.\n * @param doc Documentation string\n *\n * @example\n * ```typespec\n * @returnsDoc(\"Returns doc\")\n * op get(): Pet | NotFound;\n * ```\n */\nextern dec returnsDoc(target: Operation, doc: valueof string);\n\n/**\n * Attach a documentation string to describe the error return types of an operation.\n * If an operation returns a union of success and errors it only describes the errors. See `@returnsDoc` for success documentation.\n * @param doc Documentation string\n *\n * @example\n * ```typespec\n * @errorsDoc(\"Errors doc\")\n * op get(): Pet | NotFound;\n * ```\n */\nextern dec errorsDoc(target: Operation, doc: valueof string);\n\n/**\n * Service options.\n */\nmodel ServiceOptions {\n /**\n * Title of the service.\n */\n title?: string;\n}\n\n/**\n * Mark this namespace as describing a service and configure service properties.\n * @param options Optional configuration for the service.\n *\n * @example\n * ```typespec\n * @service\n * namespace PetStore;\n * ```\n *\n * @example Setting service title\n * ```typespec\n * @service(#{title: \"Pet store\"})\n * namespace PetStore;\n * ```\n */\nextern dec service(target: Namespace, options?: valueof ServiceOptions);\n\n/**\n * Specify that this model is an error type. Operations return error types when the operation has failed.\n *\n * @example\n * ```typespec\n * @error\n * model PetStoreError {\n * code: string;\n * message: string;\n * }\n * ```\n */\nextern dec error(target: Model);\n\n/**\n * Applies a media type hint to a TypeSpec type. Emitters and libraries may choose to use this hint to determine how a\n * type should be serialized. For example, the `@typespec/http` library will use the media type hint of the response\n * body type as a default `Content-Type` if one is not explicitly specified in the operation.\n *\n * Media types (also known as MIME types) are defined by RFC 6838. The media type hint should be a valid media type\n * string as defined by the RFC, but the decorator does not enforce or validate this constraint.\n *\n * Notes: the applied media type is _only_ a hint. It may be overridden or not used at all. Media type hints are\n * inherited by subtypes. If a media type hint is applied to a model, it will be inherited by all other models that\n * `extend` it unless they delcare their own media type hint.\n *\n * @param mediaType The media type hint to apply to the target type.\n *\n * @example create a model that serializes as XML by default\n *\n * ```tsp\n * @mediaTypeHint(\"application/xml\")\n * model Example {\n * @visibility(Lifecycle.Read)\n * id: string;\n *\n * name: string;\n * }\n * ```\n */\nextern dec mediaTypeHint(target: Model | Scalar | Enum | Union, mediaType: valueof string);\n\n// Cannot apply this to the scalar itself. Needs to be applied here so that we don't crash nostdlib scenarios\n@@mediaTypeHint(TypeSpec.bytes, \"application/octet-stream\");\n\n// @@mediaTypeHint(TypeSpec.string \"text/plain\") -- This is hardcoded in the compiler to avoid circularity\n// between the initialization of the string scalar and the `valueof string` required to call the\n// `mediaTypeHint` decorator.\n\n/**\n * Specify a known data format hint for this string type. For example `uuid`, `uri`, etc.\n * This differs from the `@pattern` decorator which is meant to specify a regular expression while `@format` accepts a known format name.\n * The format names are open ended and are left to emitter to interpret.\n *\n * @param format format name.\n *\n * @example\n * ```typespec\n * @format(\"uuid\")\n * scalar uuid extends string;\n * ```\n */\nextern dec format(target: string | ModelProperty, format: valueof string);\n\n/**\n * Specify the the pattern this string should respect using simple regular expression syntax.\n * The following syntax is allowed: alternations (`|`), quantifiers (`?`, `*`, `+`, and `{ }`), wildcard (`.`), and grouping parentheses.\n * Advanced features like look-around, capture groups, and references are not supported.\n *\n * This decorator may optionally provide a custom validation _message_. Emitters may choose to use the message to provide\n * context when pattern validation fails. For the sake of consistency, the message should be a phrase that describes in\n * plain language what sort of content the pattern attempts to validate. For example, a complex regular expression that\n * validates a GUID string might have a message like \"Must be a valid GUID.\"\n *\n * @param pattern Regular expression.\n * @param validationMessage Optional validation message that may provide context when validation fails.\n *\n * @example\n * ```typespec\n * @pattern(\"[a-z]+\", \"Must be a string consisting of only lower case letters and of at least one character.\")\n * scalar LowerAlpha extends string;\n * ```\n */\nextern dec pattern(\n target: string | bytes | ModelProperty,\n pattern: valueof string,\n validationMessage?: valueof string\n);\n\n/**\n * Specify the minimum length this string type should be.\n * @param value Minimum length\n *\n * @example\n * ```typespec\n * @minLength(2)\n * scalar Username extends string;\n * ```\n */\nextern dec minLength(target: string | ModelProperty, value: valueof integer);\n\n/**\n * Specify the maximum length this string type should be.\n * @param value Maximum length\n *\n * @example\n * ```typespec\n * @maxLength(20)\n * scalar Username extends string;\n * ```\n */\nextern dec maxLength(target: string | ModelProperty, value: valueof integer);\n\n/** Types that can have range limits */\nalias RangeLimitableTypes =\n | numeric\n | utcDateTime\n | offsetDateTime\n | plainDate\n | plainTime\n | duration;\n\n/**\n * Specify the minimum number of items this array should have.\n * @param value Minimum number\n *\n * @example\n * ```typespec\n * @minItems(1)\n * model Endpoints is string[];\n * ```\n */\nextern dec minItems(target: unknown[] | ModelProperty, value: valueof integer);\n\n/**\n * Specify the maximum number of items this array should have.\n * @param value Maximum number\n *\n * @example\n * ```typespec\n * @maxItems(5)\n * model Endpoints is string[];\n * ```\n */\nextern dec maxItems(target: unknown[] | ModelProperty, value: valueof integer);\n\n/**\n * Specify the minimum value this numeric type should be.\n * @param value Minimum value\n *\n * @example\n * ```typespec\n * @minValue(18)\n * scalar Age is int32;\n * ```\n */\nextern dec minValue(\n target: RangeLimitableTypes | ModelProperty,\n value: valueof RangeLimitableTypes\n);\n\n/**\n * Specify the maximum value this numeric type should be.\n * @param value Maximum value\n *\n * @example\n * ```typespec\n * @maxValue(200)\n * scalar Age is int32;\n * ```\n */\nextern dec maxValue(\n target: RangeLimitableTypes | ModelProperty,\n value: valueof RangeLimitableTypes\n);\n\n/**\n * Specify the minimum value this numeric type should be, exclusive of the given\n * value.\n * @param value Minimum value\n *\n * @example\n * ```typespec\n * @minValueExclusive(0)\n * scalar distance is float64;\n * ```\n */\nextern dec minValueExclusive(\n target: RangeLimitableTypes | ModelProperty,\n value: valueof RangeLimitableTypes\n);\n\n/**\n * Specify the maximum value this numeric type should be, exclusive of the given\n * value.\n * @param value Maximum value\n *\n * @example\n * ```typespec\n * @maxValueExclusive(50)\n * scalar distance is float64;\n * ```\n */\nextern dec maxValueExclusive(\n target: RangeLimitableTypes | ModelProperty,\n value: valueof RangeLimitableTypes\n);\n\n/**\n * Mark this value as a secret value that should be treated carefully to avoid exposure\n *\n * @example\n * ```typespec\n * @secret\n * scalar Password is string;\n * ```\n */\nextern dec secret(target: Scalar | ModelProperty | Model | Union | Enum);\n\n/**\n * Attaches a tag to an operation, interface, or namespace. Multiple `@tag` decorators can be specified to attach multiple tags to a TypeSpec element.\n * @param tag Tag value\n */\nextern dec tag(target: Namespace | Interface | Operation, tag: valueof string);\n\n/**\n * Specifies how a templated type should name their instances.\n * @param name name the template instance should take\n * @param formatArgs Model with key value used to interpolate the name\n *\n * @example\n * ```typespec\n * @friendlyName(\"{name}List\", T)\n * model List {\n * value: Item[];\n * nextLink: string;\n * }\n * ```\n */\nextern dec friendlyName(target: unknown, name: valueof string, formatArgs?: unknown);\n\n/**\n * Mark a model property as the key to identify instances of that type\n * @param altName Name of the property. If not specified, the decorated property name is used.\n *\n * @example\n * ```typespec\n * model Pet {\n * @key id: string;\n * }\n * ```\n */\nextern dec key(target: ModelProperty, altName?: valueof string);\n\n/**\n * Specify this operation is an overload of the given operation.\n * @param overloadbase Base operation that should be a union of all overloads\n *\n * @example\n * ```typespec\n * op upload(data: string | bytes, @header contentType: \"text/plain\" | \"application/octet-stream\"): void;\n * @overload(upload)\n * op uploadString(data: string, @header contentType: \"text/plain\" ): void;\n * @overload(upload)\n * op uploadBytes(data: bytes, @header contentType: \"application/octet-stream\"): void;\n * ```\n */\nextern dec overload(target: Operation, overloadbase: Operation);\n\n/**\n * Provide an alternative name for this type when serialized to the given mime type.\n * @param mimeType Mime type this should apply to. The mime type should be a known mime type as described here https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types without any suffix (e.g. `+json`)\n * @param name Alternative name\n *\n * @example\n *\n * ```typespec\n * model Certificate {\n * @encodedName(\"application/json\", \"exp\")\n * @encodedName(\"application/xml\", \"expiry\")\n * expireAt: int32;\n * }\n * ```\n *\n * @example Invalid values\n *\n * ```typespec\n * @encodedName(\"application/merge-patch+json\", \"exp\")\n * ^ error cannot use subtype\n * ```\n */\nextern dec encodedName(target: unknown, mimeType: valueof string, name: valueof string);\n\n/**\n * Options for `@discriminated` decorator.\n */\nmodel DiscriminatedOptions {\n /**\n * How is the discriminated union serialized.\n * @default object\n */\n envelope?: \"object\" | \"none\";\n\n /** Name of the discriminator property */\n discriminatorPropertyName?: string;\n\n /** Name of the property envelopping the data */\n envelopePropertyName?: string;\n}\n\n/**\n * Specify that this union is discriminated.\n * @param options Options to configure the serialization of the discriminated union.\n *\n * @example\n *\n * ```typespec\n * @discriminated\n * union Pet{ cat: Cat, dog: Dog }\n *\n * model Cat { name: string, meow: boolean }\n * model Dog { name: string, bark: boolean }\n * ```\n * Serialized as:\n * ```json\n * {\n * \"kind\": \"cat\",\n * \"value\": {\n * \"name\": \"Whiskers\",\n * \"meow\": true\n * }\n * },\n * {\n * \"kind\": \"dog\",\n * \"value\": {\n * \"name\": \"Rex\",\n * \"bark\": false\n * }\n * }\n * ```\n *\n * @example Custom property names\n *\n * ```typespec\n * @discriminated(#{discriminatorPropertyName: \"dataKind\", envelopePropertyName: \"data\"})\n * union Pet{ cat: Cat, dog: Dog }\n *\n * model Cat { name: string, meow: boolean }\n * model Dog { name: string, bark: boolean }\n * ```\n * Serialized as:\n * ```json\n * {\n * \"dataKind\": \"cat\",\n * \"data\": {\n * \"name\": \"Whiskers\",\n * \"meow\": true\n * }\n * },\n * {\n * \"dataKind\": \"dog\",\n * \"data\": {\n * \"name\": \"Rex\",\n * \"bark\": false\n * }\n * }\n * ```\n */\nextern dec discriminated(target: Union, options?: valueof DiscriminatedOptions);\n\n/**\n * Specify the property to be used to discriminate this type.\n * @param propertyName The property name to use for discrimination\n *\n * @example\n *\n * ```typespec\n * @discriminator(\"kind\")\n * model Pet{ kind: string }\n *\n * model Cat extends Pet {kind: \"cat\", meow: boolean}\n * model Dog extends Pet {kind: \"dog\", bark: boolean}\n * ```\n */\nextern dec discriminator(target: Model, propertyName: valueof string);\n\n/**\n * Known encoding to use on utcDateTime or offsetDateTime\n */\nenum DateTimeKnownEncoding {\n /**\n * RFC 3339 standard. https://www.ietf.org/rfc/rfc3339.txt\n * Encode to string.\n */\n rfc3339: \"rfc3339\",\n\n /**\n * RFC 7231 standard. https://www.ietf.org/rfc/rfc7231.txt\n * Encode to string.\n */\n rfc7231: \"rfc7231\",\n\n /**\n * Encode a datetime to a unix timestamp.\n * Unix timestamps are represented as an integer number of seconds since the Unix epoch and usually encoded as an int32.\n */\n unixTimestamp: \"unixTimestamp\",\n}\n\n/**\n * Known encoding to use on duration\n */\nenum DurationKnownEncoding {\n /**\n * ISO8601 duration\n */\n ISO8601: \"ISO8601\",\n\n /**\n * Encode to integer or float as seconds\n */\n seconds: \"seconds\",\n\n /**\n * Encode to integer or float as milliseconds\n */\n milliseconds: \"milliseconds\",\n}\n\n/**\n * Known encoding to use on bytes\n */\nenum BytesKnownEncoding {\n /**\n * Encode to Base64\n */\n base64: \"base64\",\n\n /**\n * Encode to Base64 Url\n */\n base64url: \"base64url\",\n}\n\n/**\n * Encoding for serializing arrays\n */\nenum ArrayEncoding {\n /**\n * Each value of the array is separated by a pipe character (|).\n * Values can only contain | if the underlying protocol supports encoding them.\n * - json -> error\n * - http -> %7C\n */\n pipeDelimited,\n\n /**\n * Each value of the array is separated by a space character.\n * Values can only contain spaces if the underlying protocol supports encoding them.\n * - json -> error\n * - http -> %20\n */\n spaceDelimited,\n\n /**\n * Each value of the array is separated by a comma (,).\n * Values can only contain commas if the underlying protocol supports encoding them.\n * - json -> error\n * - http -> %2C\n */\n commaDelimited,\n\n /**\n * Each value of the array is separated by a newline character (\\n).\n * Values can only contain newlines if the underlying protocol supports encoding them.\n * - json -> error\n * - http -> %0A\n */\n newlineDelimited,\n}\n\n/**\n * Specify how to encode the target type.\n * @param encodingOrEncodeAs Known name of an encoding or a scalar type to encode as(Only for numeric types to encode as string).\n * @param encodedAs What target type is this being encoded as. Default to string.\n *\n * @example offsetDateTime encoded with rfc7231\n *\n * ```tsp\n * @encode(\"rfc7231\")\n * scalar myDateTime extends offsetDateTime;\n * ```\n *\n * @example utcDateTime encoded with unixTimestamp\n *\n * ```tsp\n * @encode(\"unixTimestamp\", int32)\n * scalar myDateTime extends unixTimestamp;\n * ```\n *\n * @example encode numeric type to string\n *\n * ```tsp\n * model Pet {\n * @encode(string) id: int64;\n * }\n * ```\n */\nextern dec encode(\n target: Scalar | ModelProperty,\n encodingOrEncodeAs: (valueof string | EnumMember) | Scalar,\n encodedAs?: Scalar\n);\n\n/** Options for example decorators */\nmodel ExampleOptions {\n /** The title of the example */\n title?: string;\n\n /** Description of the example */\n description?: string;\n}\n\n/**\n * Provide an example value for a data type.\n *\n * @param example Example value.\n * @param options Optional metadata for the example.\n *\n * @example\n *\n * ```tsp\n * @example(#{name: \"Fluffy\", age: 2})\n * model Pet {\n * name: string;\n * age: int32;\n * }\n * ```\n */\nextern dec example(\n target: Model | Enum | Scalar | Union | ModelProperty | UnionVariant,\n example: valueof unknown,\n options?: valueof ExampleOptions\n);\n\n/**\n * Operation example configuration.\n */\nmodel OperationExample {\n /** Example request body. */\n parameters?: unknown;\n\n /** Example response body. */\n returnType?: unknown;\n}\n\n/**\n * Provide example values for an operation's parameters and corresponding return type.\n *\n * @param example Example value.\n * @param options Optional metadata for the example.\n *\n * @example\n *\n * ```tsp\n * @opExample(#{parameters: #{name: \"Fluffy\", age: 2}, returnType: #{name: \"Fluffy\", age: 2, id: \"abc\"})\n * op createPet(pet: Pet): Pet;\n * ```\n */\nextern dec opExample(\n target: Operation,\n example: valueof OperationExample,\n options?: valueof ExampleOptions\n);\n\n/**\n * Returns the model with required properties removed.\n */\nextern dec withOptionalProperties(target: Model);\n\n/**\n * Returns the model with any default values removed.\n */\nextern dec withoutDefaultValues(target: Model);\n\n/**\n * Returns the model with the given properties omitted.\n * @param omit List of properties to omit\n */\nextern dec withoutOmittedProperties(target: Model, omit: string | Union);\n\n/**\n * Returns the model with only the given properties included.\n * @param pick List of properties to include\n */\nextern dec withPickedProperties(target: Model, pick: string | Union);\n\n//---------------------------------------------------------------------------\n// Paging\n//---------------------------------------------------------------------------\n\n/**\n * Mark this operation as a `list` operation that returns a paginated list of items.\n */\nextern dec list(target: Operation);\n\n/**\n * Pagination property defining the number of items to skip.\n * @example\n * ```tsp\n * model Page {\n * @pageItems items: T[];\n * }\n * @list op listPets(@offset skip: int32, @pageSize pageSize: int8): Page;\n * ```\n */\nextern dec offset(target: ModelProperty);\n\n/**\n * Pagination property defining the page index.\n *\n * @example\n * ```tsp\n * model Page {\n * @pageItems items: T[];\n * }\n * @list op listPets(@pageIndex page: int32, @pageSize pageSize: int8): Page;\n * ```\n */\nextern dec pageIndex(target: ModelProperty);\n\n/**\n * Specify the pagination parameter that controls the maximum number of items to include in a page.\n *\n * @example\n * ```tsp\n * model Page {\n * @pageItems items: T[];\n * }\n * @list op listPets(@pageIndex page: int32, @pageSize pageSize: int8): Page;\n * ```\n */\nextern dec pageSize(target: ModelProperty);\n\n/**\n * Specify the the property that contains the array of page items.\n *\n * @example\n * ```tsp\n * model Page {\n * @pageItems items: T[];\n * }\n * @list op listPets(@pageIndex page: int32, @pageSize pageSize: int8): Page;\n * ```\n */\nextern dec pageItems(target: ModelProperty);\n\n/**\n * Pagination property defining the token to get to the next page.\n * It MUST be specified both on the request parameter and the response.\n *\n * @example\n * ```tsp\n * model Page {\n * @pageItems items: T[];\n * @continuationToken continuationToken: string;\n * }\n * @list op listPets(@continuationToken continuationToken: string): Page;\n * ```\n */\nextern dec continuationToken(target: ModelProperty);\n\n/**\n * Pagination property defining a link to the next page.\n *\n * It is expected that navigating to the link will return the same set of responses as the operation that returned the current page.\n *\n * @example\n * ```tsp\n * model Page {\n * @pageItems items: T[];\n * @nextLink next: url;\n * @prevLink prev: url;\n * @firstLink first: url;\n * @lastLink last: url;\n * }\n * @list op listPets(): Page;\n * ```\n */\nextern dec nextLink(target: ModelProperty);\n\n/**\n * Pagination property defining a link to the previous page.\n *\n * It is expected that navigating to the link will return the same set of responses as the operation that returned the current page.\n *\n * @example\n * ```tsp\n * model Page {\n * @pageItems items: T[];\n * @nextLink next: url;\n * @prevLink prev: url;\n * @firstLink first: url;\n * @lastLink last: url;\n * }\n * @list op listPets(): Page;\n * ```\n */\nextern dec prevLink(target: ModelProperty);\n\n/**\n * Pagination property defining a link to the first page.\n *\n * It is expected that navigating to the link will return the same set of responses as the operation that returned the current page.\n *\n * @example\n * ```tsp\n * model Page {\n * @pageItems items: T[];\n * @nextLink next: url;\n * @prevLink prev: url;\n * @firstLink first: url;\n * @lastLink last: url;\n * }\n * @list op listPets(): Page;\n * ```\n */\nextern dec firstLink(target: ModelProperty);\n\n/**\n * Pagination property defining a link to the last page.\n *\n * It is expected that navigating to the link will return the same set of responses as the operation that returned the current page.\n *\n * @example\n * ```tsp\n * model Page {\n * @pageItems items: T[];\n * @nextLink next: url;\n * @prevLink prev: url;\n * @firstLink first: url;\n * @lastLink last: url;\n * }\n * @list op listPets(): Page;\n * ```\n */\nextern dec lastLink(target: ModelProperty);\n\n//---------------------------------------------------------------------------\n// Debugging\n//---------------------------------------------------------------------------\n\n/**\n * A debugging decorator used to inspect a type.\n * @param text Custom text to log\n */\nextern dec inspectType(target: unknown, text: valueof string);\n\n/**\n * A debugging decorator used to inspect a type name.\n * @param text Custom text to log\n */\nextern dec inspectTypeName(target: unknown, text: valueof string);\n", + "path": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/compiler/lib/std/decorators.tsp" + }, + "id": { + "$id": "1969", + "kind": 3, + "sv": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/compiler/lib/std/decorators.tsp", + "pos": 0, + "end": 0, + "flags": 8, + "parent": { + "$ref": "904" + } + }, + "namespaces": [ + { + "$ref": "902" + } + ], + "usings": [ + { + "$ref": "907" + } + ], + "locals": { + "duplicates": {} + }, + "inScopeNamespaces": [ + { + "$ref": "902" + } + ], + "parseDiagnostics": [], + "comments": [], + "printable": true, + "parseOptions": {}, + "pos": 0, + "end": 21635, + "flags": 0, + "symbol": { + "declarations": [], + "node": { + "$ref": "904" + }, + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/compiler/lib/std/decorators.tsp", + "exports": { + "duplicates": {} + }, + "flags": 32768, + "metatypeMembers": { + "duplicates": {} + } + } + } + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 236 + } + }, + "parameters": [ + { + "$id": "1970", + "kind": 27, + "id": { + "$id": "1971", + "kind": 3, + "sv": "summary", + "pos": 299, + "end": 306, + "flags": 0, + "parent": { + "$ref": "1970" + }, + "_id": 256 + }, + "type": { + "$id": "1972", + "kind": 44, + "target": { + "$id": "1973", + "kind": 45, + "target": { + "$id": "1974", + "kind": 3, + "sv": "string", + "pos": 316, + "end": 322, + "flags": 1, + "parent": { + "$ref": "1973" + }, + "_id": 258 + }, + "arguments": [], + "pos": 316, + "end": 322, + "flags": 1, + "parent": { + "$ref": "1972" + }, + "_id": 257 + }, + "pos": 308, + "end": 322, + "flags": 0, + "parent": { + "$ref": "1970" + } + }, + "optional": false, + "rest": false, + "pos": 299, + "end": 322, + "flags": 0, + "parent": { + "$ref": "896" + }, + "symbol": { + "declarations": [ + { + "$ref": "1970" + } + ], + "name": "summary", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "902" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 237 + } + } + ], + "pos": 92, + "end": 324, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "1975", + "kind": 51, + "content": [ + { + "$id": "1976", + "kind": 52, + "text": "Typically a short, single-line description.", + "pos": 95, + "end": 146, + "flags": 0, + "parent": { + "$ref": "1975" + } + } + ], + "tags": [ + { + "$id": "1977", + "kind": 53, + "tagName": { + "$id": "1978", + "kind": 3, + "sv": "param", + "pos": 147, + "end": 152, + "flags": 0, + "parent": { + "$ref": "1977" + } + }, + "paramName": { + "$id": "1979", + "kind": 3, + "sv": "summary", + "pos": 153, + "end": 160, + "flags": 0, + "parent": { + "$ref": "1977" + } + }, + "content": [ + { + "$id": "1980", + "kind": 52, + "text": "Summary string.", + "pos": 161, + "end": 183, + "flags": 0, + "parent": { + "$ref": "1977" + } + } + ], + "pos": 146, + "end": 183, + "flags": 0, + "parent": { + "$ref": "1975" + } + }, + { + "$id": "1981", + "kind": 58, + "tagName": { + "$id": "1982", + "kind": 3, + "sv": "example", + "pos": 184, + "end": 191, + "flags": 0, + "parent": { + "$ref": "1981" + } + }, + "content": [ + { + "$id": "1983", + "kind": 52, + "text": "```typespec\n@summary(\"This is a pet\")\nmodel Pet {}\n```", + "pos": 191, + "end": 260, + "flags": 0, + "parent": { + "$ref": "1981" + } + } + ], + "pos": 183, + "end": 260, + "flags": 0, + "parent": { + "$ref": "1975" + } + } + ], + "pos": 92, + "end": 262, + "flags": 0, + "parent": { + "$ref": "896" + } + } + ], + "parent": { + "$ref": "904" + }, + "symbol": { + "declarations": [ + { + "$ref": "896" + } + ], + "name": "@summary", + "flags": 1049088, + "parent": { + "declarations": [ + { + "$ref": "902" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "target": { + "$id": "1984", + "kind": "FunctionParameter", + "node": { + "$ref": "899" + }, + "name": "target", + "optional": false, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "901" + }, + "type": { + "$id": "1985", + "kind": "Intrinsic", + "name": "unknown", + "isFinished": true, + "entityKind": "Type" + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + "parameters": [ + { + "$id": "1986", + "kind": "FunctionParameter", + "node": { + "$ref": "1970" + }, + "name": "summary", + "optional": false, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "1972" + }, + "valueType": { + "$ref": "463" + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + } + ], + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + "node": { + "$ref": "33" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "The name of the file, if any.", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "34" + }, + "jsValue": "The name of the file, if any." + } + ] + } + ], + "isFinished": true, + "entityKind": "Type", + "templateMapper": { + "partial": false, + "args": [ + { + "entityKind": "Indeterminate", + "type": { + "$id": "1987", + "kind": "String", + "value": "image/png", + "isFinished": true, + "entityKind": "Type" + } + }, + { + "$id": "1988", + "kind": "Scalar", + "name": "bytes", + "node": { + "$ref": "475" + }, + "constructors": {}, + "namespace": { + "$ref": "719" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$id": "1989", + "kind": "String", + "value": "Represent a byte array", + "isFinished": true, + "entityKind": "Type" + }, + "jsValue": "Represent a byte array" + } + ] + }, + { + "definition": { + "$id": "1990", + "kind": "Decorator", + "name": "@mediaTypeHint", + "namespace": { + "$ref": "719" + }, + "node": { + "$ref": "1026" + }, + "target": { + "$id": "1991", + "kind": "FunctionParameter", + "node": { + "$ref": "1029" + }, + "name": "target", + "optional": false, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "1031" + }, + "type": { + "$id": "1992", + "kind": "Union", + "node": { + "$ref": "1031" + }, + "options": [ + { + "$id": "1993", + "kind": "Model", + "name": "Model", + "node": { + "$id": "1994", + "kind": 13, + "id": { + "$id": "1995", + "kind": 3, + "sv": "Model", + "pos": 91, + "end": 96, + "flags": 0, + "parent": { + "$ref": "1994" + }, + "_id": 172 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": 97, + "end": 99 + }, + "pos": 85, + "end": 99, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$id": "1996", + "kind": 0, + "statements": [ + { + "$id": "1997", + "kind": 8, + "decorators": [], + "directives": [], + "id": { + "$id": "1998", + "kind": 3, + "sv": "TypeSpec", + "pos": 10, + "end": 18, + "flags": 0, + "parent": { + "$ref": "1997" + }, + "_id": 592 + }, + "statements": { + "$id": "1999", + "kind": 8, + "decorators": [], + "docs": [], + "id": { + "$id": "2000", + "kind": 3, + "sv": "Reflection", + "pos": 19, + "end": 29, + "flags": 0, + "parent": { + "$ref": "1999" + }, + "_id": 593 + }, + "locals": { + "duplicates": {} + }, + "directives": [], + "pos": 0, + "end": 30, + "flags": 0, + "parent": { + "$ref": "1997" + }, + "symbol": { + "declarations": [ + { + "$ref": "1999" + } + ], + "name": "Reflection", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "locals": { + "duplicates": {} + }, + "pos": 0, + "end": 30, + "flags": 0, + "parent": { + "$ref": "1996" + }, + "symbol": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2001", + "kind": 13, + "id": { + "$id": "2002", + "kind": 3, + "sv": "Enum", + "pos": 38, + "end": 42, + "flags": 0, + "parent": { + "$ref": "2001" + }, + "_id": 298 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": 43, + "end": 45 + }, + "pos": 32, + "end": 45, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "1996" + }, + "symbol": { + "declarations": [ + { + "$ref": "2001" + } + ], + "name": "Enum", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "1999" + } + ], + "name": "Reflection", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 62 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2003", + "kind": 13, + "id": { + "$id": "2004", + "kind": 3, + "sv": "EnumMember", + "pos": 52, + "end": 62, + "flags": 0, + "parent": { + "$ref": "2003" + }, + "_id": 145 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": 63, + "end": 65 + }, + "pos": 46, + "end": 65, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "1996" + }, + "symbol": { + "declarations": [ + { + "$ref": "2003" + } + ], + "name": "EnumMember", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "1999" + } + ], + "name": "Reflection", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 39 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2005", + "kind": 13, + "id": { + "$id": "2006", + "kind": 3, + "sv": "Interface", + "pos": 72, + "end": 81, + "flags": 0, + "parent": { + "$ref": "2005" + }, + "_id": 431 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": 82, + "end": 84 + }, + "pos": 66, + "end": 84, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "1996" + }, + "symbol": { + "declarations": [ + { + "$ref": "2005" + } + ], + "name": "Interface", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "1999" + } + ], + "name": "Reflection", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 64 + }, + "locals": { + "duplicates": {} + } + }, + { + "$ref": "1994" + }, + { + "$id": "2007", + "kind": 13, + "id": { + "$id": "2008", + "kind": 3, + "sv": "ModelProperty", + "pos": 106, + "end": 119, + "flags": 0, + "parent": { + "$ref": "2007" + }, + "_id": 139 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": 120, + "end": 122 + }, + "pos": 100, + "end": 122, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "1996" + }, + "symbol": { + "declarations": [ + { + "$ref": "2007" + } + ], + "name": "ModelProperty", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "1999" + } + ], + "name": "Reflection", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 38 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2009", + "kind": 13, + "id": { + "$id": "2010", + "kind": 3, + "sv": "Namespace", + "pos": 129, + "end": 138, + "flags": 0, + "parent": { + "$ref": "2009" + }, + "_id": 282 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": 139, + "end": 141 + }, + "pos": 123, + "end": 141, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "1996" + }, + "symbol": { + "declarations": [ + { + "$ref": "2009" + } + ], + "name": "Namespace", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "1999" + } + ], + "name": "Reflection", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 61 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2011", + "kind": 13, + "id": { + "$id": "2012", + "kind": 3, + "sv": "Operation", + "pos": 148, + "end": 157, + "flags": 0, + "parent": { + "$ref": "2011" + }, + "_id": 263 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": 158, + "end": 160 + }, + "pos": 142, + "end": 160, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "1996" + }, + "symbol": { + "declarations": [ + { + "$ref": "2011" + } + ], + "name": "Operation", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "1999" + } + ], + "name": "Reflection", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 59 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2013", + "kind": 13, + "id": { + "$id": "2014", + "kind": 3, + "sv": "Scalar", + "pos": 167, + "end": 173, + "flags": 0, + "parent": { + "$ref": "2013" + }, + "_id": 136 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": 174, + "end": 176 + }, + "pos": 161, + "end": 176, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "1996" + }, + "symbol": { + "declarations": [ + { + "$ref": "2013" + } + ], + "name": "Scalar", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "1999" + } + ], + "name": "Reflection", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 37 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2015", + "kind": 13, + "id": { + "$id": "2016", + "kind": 3, + "sv": "Union", + "pos": 183, + "end": 188, + "flags": 0, + "parent": { + "$ref": "2015" + }, + "_id": 198 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": 189, + "end": 191 + }, + "pos": 177, + "end": 191, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "1996" + }, + "symbol": { + "declarations": [ + { + "$ref": "2015" + } + ], + "name": "Union", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "1999" + } + ], + "name": "Reflection", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 49 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2017", + "kind": 13, + "id": { + "$id": "2018", + "kind": 3, + "sv": "UnionVariant", + "pos": 198, + "end": 210, + "flags": 0, + "parent": { + "$ref": "2017" + }, + "_id": 524 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": 211, + "end": 213 + }, + "pos": 192, + "end": 213, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "1996" + }, + "symbol": { + "declarations": [ + { + "$ref": "2017" + } + ], + "name": "UnionVariant", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "1999" + } + ], + "name": "Reflection", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 71 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2019", + "kind": 13, + "id": { + "$id": "2020", + "kind": 3, + "sv": "StringTemplate", + "pos": 220, + "end": 234, + "flags": 0, + "parent": { + "$ref": "2019" + }, + "_id": 594 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [], + "bodyRange": { + "pos": 235, + "end": 237 + }, + "pos": 214, + "end": 237, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "1996" + }, + "symbol": { + "declarations": [ + { + "$ref": "2019" + } + ], + "name": "StringTemplate", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "1999" + } + ], + "name": "Reflection", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 73 + }, + "locals": { + "duplicates": {} + } + } + ], + "file": { + "text": "namespace TypeSpec.Reflection;\n\nmodel Enum {}\nmodel EnumMember {}\nmodel Interface {}\nmodel Model {}\nmodel ModelProperty {}\nmodel Namespace {}\nmodel Operation {}\nmodel Scalar {}\nmodel Union {}\nmodel UnionVariant {}\nmodel StringTemplate {}\n", + "path": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/compiler/lib/std/reflection.tsp" + }, + "id": { + "$id": "2021", + "kind": 3, + "sv": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/compiler/lib/std/reflection.tsp", + "pos": 0, + "end": 0, + "flags": 8, + "parent": { + "$ref": "1996" + } + }, + "namespaces": [ + { + "$ref": "1997" + }, + { + "$ref": "1999" + } + ], + "usings": [], + "locals": { + "duplicates": {} + }, + "inScopeNamespaces": [ + { + "$ref": "1999" + }, + { + "$ref": "1997" + } + ], + "parseDiagnostics": [], + "comments": [], + "printable": true, + "parseOptions": {}, + "pos": 0, + "end": 237, + "flags": 0, + "symbol": { + "declarations": [], + "node": { + "$ref": "1996" + }, + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/compiler/lib/std/reflection.tsp", + "exports": { + "duplicates": {} + }, + "flags": 32768, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "symbol": { + "declarations": [ + { + "$ref": "1994" + } + ], + "name": "Model", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "1999" + } + ], + "name": "Reflection", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "1997" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 44 + }, + "locals": { + "duplicates": {} + } + }, + "properties": {}, + "namespace": { + "$id": "2022", + "kind": "Namespace", + "name": "Reflection", + "namespace": { + "$ref": "719" + }, + "node": { + "$ref": "1999" + }, + "models": {}, + "scalars": {}, + "operations": {}, + "namespaces": {}, + "interfaces": {}, + "unions": {}, + "enums": {}, + "decoratorDeclarations": {}, + "functionDeclarations": {}, + "decorators": [], + "isFinished": true, + "entityKind": "Type" + }, + "decorators": [], + "sourceModels": [], + "derivedModels": [], + "isFinished": true, + "entityKind": "Type", + "symbol": { + "declarations": [], + "node": { + "$ref": "1994" + }, + "name": "Model", + "members": { + "duplicates": {} + }, + "flags": 4194306, + "metatypeMembers": { + "duplicates": {} + }, + "type": { + "$ref": "1993" + } + } + }, + { + "$id": "2023", + "kind": "Model", + "name": "Scalar", + "node": { + "$ref": "2013" + }, + "properties": {}, + "namespace": { + "$ref": "2022" + }, + "decorators": [], + "sourceModels": [], + "derivedModels": [], + "isFinished": true, + "entityKind": "Type", + "symbol": { + "declarations": [], + "node": { + "$ref": "2013" + }, + "name": "Scalar", + "members": { + "duplicates": {} + }, + "flags": 4194306, + "metatypeMembers": { + "duplicates": {} + }, + "type": { + "$ref": "2023" + } + } + }, + { + "$id": "2024", + "kind": "Model", + "name": "Enum", + "node": { + "$ref": "2001" + }, + "properties": {}, + "namespace": { + "$ref": "2022" + }, + "decorators": [], + "sourceModels": [], + "derivedModels": [], + "isFinished": true, + "entityKind": "Type", + "symbol": { + "declarations": [], + "node": { + "$ref": "2001" + }, + "name": "Enum", + "members": { + "duplicates": {} + }, + "flags": 4194306, + "metatypeMembers": { + "duplicates": {} + }, + "type": { + "$ref": "2024" + } + } + }, + { + "$id": "2025", + "kind": "Model", + "name": "Union", + "node": { + "$ref": "2015" + }, + "properties": {}, + "namespace": { + "$ref": "2022" + }, + "decorators": [], + "sourceModels": [], + "derivedModels": [], + "isFinished": true, + "entityKind": "Type", + "symbol": { + "declarations": [], + "node": { + "$ref": "2015" + }, + "name": "Union", + "members": { + "duplicates": {} + }, + "flags": 4194306, + "metatypeMembers": { + "duplicates": {} + }, + "type": { + "$ref": "2025" + } + } + } + ], + "decorators": [], + "variants": {}, + "expression": true, + "isFinished": true, + "entityKind": "Type" + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + "parameters": [ + { + "$id": "2026", + "kind": "FunctionParameter", + "node": { + "$ref": "1040" + }, + "name": "mediaType", + "optional": false, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "1042" + }, + "valueType": { + "$ref": "463" + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + } + ], + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + "node": { + "$ref": "1054" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "application/octet-stream", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "1060" + }, + "jsValue": "application/octet-stream" + } + ] + } + ], + "derivedScalars": [], + "isFinished": true, + "entityKind": "Type" + } + ], + "source": { + "node": { + "$id": "2027", + "kind": 45, + "target": { + "$id": "2028", + "kind": 7, + "base": { + "$id": "2029", + "kind": 3, + "sv": "Http", + "pos": 646, + "end": 650, + "flags": 1, + "parent": { + "$ref": "2028" + }, + "_id": 900 + }, + "id": { + "$id": "2030", + "kind": 3, + "sv": "File", + "pos": 651, + "end": 655, + "flags": 1, + "parent": { + "$ref": "2028" + }, + "_id": 901 + }, + "selector": ".", + "pos": 646, + "end": 655, + "flags": 1, + "parent": { + "$ref": "2027" + }, + "_id": 899 + }, + "arguments": [ + { + "$id": "2031", + "kind": 61, + "argument": { + "$id": "2032", + "kind": 32, + "value": "image/png", + "pos": 656, + "end": 667, + "flags": 1, + "parent": { + "$ref": "2031" + } + }, + "pos": 656, + "end": 667, + "flags": 1, + "parent": { + "$ref": "2027" + } + } + ], + "pos": 646, + "end": 668, + "flags": 1, + "parent": { + "$id": "2033", + "kind": 15, + "id": { + "$id": "2034", + "kind": 3, + "sv": "file", + "pos": 640, + "end": 644, + "flags": 0, + "parent": { + "$ref": "2033" + }, + "_id": 892 + }, + "decorators": [ + { + "$id": "2035", + "kind": 5, + "arguments": [], + "target": { + "$id": "2036", + "kind": 3, + "sv": "bodyRoot", + "pos": 631, + "end": 639, + "flags": 1, + "parent": { + "$ref": "2035" + }, + "_id": 893 + }, + "pos": 630, + "end": 639, + "flags": 0, + "parent": { + "$ref": "2033" + } + } + ], + "value": { + "$ref": "2027" + }, + "optional": false, + "pos": 630, + "end": 668, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$id": "2037", + "kind": 14, + "properties": [ + { + "$ref": "2033" + } + ], + "bodyRange": { + "pos": 629, + "end": 669 + }, + "pos": 629, + "end": 669, + "flags": 0, + "parent": { + "$id": "2038", + "kind": 11, + "parameters": { + "$ref": "2037" + }, + "returnType": { + "$id": "2039", + "kind": 45, + "target": { + "$id": "2040", + "kind": 3, + "sv": "NoContentResponse", + "pos": 671, + "end": 688, + "flags": 1, + "parent": { + "$ref": "2039" + }, + "_id": 940 + }, + "arguments": [], + "pos": 671, + "end": 688, + "flags": 1, + "parent": { + "$ref": "2038" + }, + "_id": 939 + }, + "pos": 629, + "end": 688, + "flags": 0, + "parent": { + "$id": "2041", + "kind": 10, + "id": { + "$id": "2042", + "kind": 3, + "sv": "uploadFileSpecificContentType", + "pos": 600, + "end": 629, + "flags": 0, + "parent": { + "$ref": "2041" + }, + "_id": 858 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "signature": { + "$ref": "2038" + }, + "decorators": [ + { + "$id": "2043", + "kind": 5, + "arguments": [], + "target": { + "$id": "2044", + "kind": 3, + "sv": "scenario", + "pos": 312, + "end": 320, + "flags": 1, + "parent": { + "$ref": "2043" + }, + "_id": 859 + }, + "pos": 311, + "end": 320, + "flags": 0, + "parent": { + "$ref": "2041" + } + }, + { + "$id": "2045", + "kind": 5, + "arguments": [ + { + "$id": "2046", + "kind": 32, + "value": "Test File type as request body with specific content type.\nExpected request:\n- Content-Type header: image/png\n- Body: binary content matching packages/http-specs/assets/image.png", + "pos": 336, + "end": 542, + "flags": 0, + "parent": { + "$ref": "2045" + } + } + ], + "target": { + "$id": "2047", + "kind": 3, + "sv": "scenarioDoc", + "pos": 324, + "end": 335, + "flags": 1, + "parent": { + "$ref": "2045" + }, + "_id": 871 + }, + "pos": 323, + "end": 543, + "flags": 0, + "parent": { + "$ref": "2041" + } + }, + { + "$id": "2048", + "kind": 5, + "arguments": [], + "target": { + "$id": "2049", + "kind": 3, + "sv": "post", + "pos": 547, + "end": 551, + "flags": 1, + "parent": { + "$ref": "2048" + }, + "_id": 886 + }, + "pos": 546, + "end": 551, + "flags": 0, + "parent": { + "$ref": "2041" + } + }, + { + "$id": "2050", + "kind": 5, + "arguments": [ + { + "$id": "2051", + "kind": 32, + "value": "/request/specific-content-type", + "pos": 561, + "end": 593, + "flags": 0, + "parent": { + "$ref": "2050" + } + } + ], + "target": { + "$id": "2052", + "kind": 3, + "sv": "route", + "pos": 555, + "end": 560, + "flags": 1, + "parent": { + "$ref": "2050" + }, + "_id": 891 + }, + "pos": 554, + "end": 594, + "flags": 0, + "parent": { + "$ref": "2041" + } + } + ], + "pos": 311, + "end": 689, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$id": "2053", + "kind": 8, + "decorators": [ + { + "$id": "2054", + "kind": 5, + "arguments": [ + { + "$id": "2055", + "kind": 32, + "value": "/body", + "pos": 283, + "end": 290, + "flags": 0, + "parent": { + "$ref": "2054" + } + } + ], + "target": { + "$id": "2056", + "kind": 3, + "sv": "route", + "pos": 277, + "end": 282, + "flags": 1, + "parent": { + "$ref": "2054" + }, + "_id": 846 + }, + "pos": 276, + "end": 291, + "flags": 0, + "parent": { + "$ref": "2053" + } + } + ], + "docs": [ + { + "$id": "2057", + "kind": 51, + "content": [ + { + "$id": "2058", + "kind": 52, + "text": "Test File as request and response body with specific content type", + "pos": 202, + "end": 273, + "flags": 0, + "parent": { + "$ref": "2057" + } + } + ], + "tags": [], + "pos": 199, + "end": 275, + "flags": 0, + "parent": { + "$ref": "2053" + } + } + ], + "id": { + "$id": "2059", + "kind": 3, + "sv": "Body", + "pos": 302, + "end": 306, + "flags": 0, + "parent": { + "$ref": "2053" + }, + "_id": 845 + }, + "locals": { + "duplicates": {} + }, + "statements": [ + { + "$ref": "2041" + }, + { + "$id": "2060", + "kind": 10, + "id": { + "$id": "2061", + "kind": 3, + "sv": "uploadFileJsonContentType", + "pos": 948, + "end": 973, + "flags": 0, + "parent": { + "$ref": "2060" + }, + "_id": 956 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "signature": { + "$id": "2062", + "kind": 11, + "parameters": { + "$id": "2063", + "kind": 14, + "properties": [ + { + "$id": "2064", + "kind": 15, + "id": { + "$id": "2065", + "kind": 3, + "sv": "file", + "pos": 984, + "end": 988, + "flags": 0, + "parent": { + "$ref": "2064" + }, + "_id": 961 + }, + "decorators": [ + { + "$id": "2066", + "kind": 5, + "arguments": [], + "target": { + "$id": "2067", + "kind": 3, + "sv": "bodyRoot", + "pos": 975, + "end": 983, + "flags": 1, + "parent": { + "$ref": "2066" + }, + "_id": 962 + }, + "pos": 974, + "end": 983, + "flags": 0, + "parent": { + "$ref": "2064" + } + } + ], + "value": { + "$id": "2068", + "kind": 45, + "target": { + "$id": "2069", + "kind": 7, + "base": { + "$id": "2070", + "kind": 3, + "sv": "Http", + "pos": 990, + "end": 994, + "flags": 1, + "parent": { + "$ref": "2069" + }, + "_id": 965 + }, + "id": { + "$id": "2071", + "kind": 3, + "sv": "File", + "pos": 995, + "end": 999, + "flags": 1, + "parent": { + "$ref": "2069" + }, + "_id": 966 + }, + "selector": ".", + "pos": 990, + "end": 999, + "flags": 1, + "parent": { + "$ref": "2068" + }, + "_id": 964 + }, + "arguments": [ + { + "$id": "2072", + "kind": 61, + "argument": { + "$id": "2073", + "kind": 32, + "value": "application/json", + "pos": 1000, + "end": 1018, + "flags": 1, + "parent": { + "$ref": "2072" + } + }, + "pos": 1000, + "end": 1018, + "flags": 1, + "parent": { + "$ref": "2068" + } + } + ], + "pos": 990, + "end": 1019, + "flags": 1, + "parent": { + "$ref": "2064" + }, + "_id": 963 + }, + "optional": false, + "pos": 974, + "end": 1019, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "2063" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2064" + }, + "name": "file", + "flags": 65536, + "parent": { + "declarations": [], + "node": { + "$ref": "2063" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2060" + } + ], + "name": "uploadFileJsonContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$id": "2074", + "kind": 8, + "decorators": [ + { + "$id": "2075", + "kind": 5, + "arguments": [ + { + "$id": "2076", + "kind": 32, + "value": "Test for File type usage in request and response bodies", + "pos": 87, + "end": 144, + "flags": 0, + "parent": { + "$ref": "2075" + } + } + ], + "target": { + "$id": "2077", + "kind": 3, + "sv": "doc", + "pos": 83, + "end": 86, + "flags": 1, + "parent": { + "$ref": "2075" + }, + "_id": 829 + }, + "pos": 82, + "end": 145, + "flags": 0, + "parent": { + "$ref": "2074" + } + }, + { + "$id": "2078", + "kind": 5, + "arguments": [ + { + "$id": "2079", + "kind": 32, + "value": "/type/file", + "pos": 163, + "end": 175, + "flags": 0, + "parent": { + "$ref": "2078" + } + } + ], + "target": { + "$id": "2080", + "kind": 3, + "sv": "scenarioService", + "pos": 147, + "end": 162, + "flags": 1, + "parent": { + "$ref": "2078" + }, + "_id": 830 + }, + "pos": 146, + "end": 176, + "flags": 0, + "parent": { + "$ref": "2074" + } + } + ], + "docs": [], + "id": { + "$id": "2081", + "kind": 3, + "sv": "File", + "pos": 192, + "end": 196, + "flags": 0, + "parent": { + "$ref": "2074" + }, + "_id": 828 + }, + "locals": { + "duplicates": {} + }, + "directives": [], + "pos": 82, + "end": 197, + "flags": 0, + "parent": { + "$id": "2082", + "kind": 8, + "decorators": [], + "directives": [], + "id": { + "$id": "2083", + "kind": 3, + "sv": "Type", + "pos": 187, + "end": 191, + "flags": 0, + "parent": { + "$ref": "2082" + }, + "_id": 827 + }, + "statements": { + "$ref": "2074" + }, + "locals": { + "duplicates": {} + }, + "pos": 82, + "end": 197, + "flags": 0, + "parent": { + "$id": "2084", + "kind": 0, + "statements": [ + { + "$id": "2085", + "kind": 2, + "path": { + "$id": "2086", + "kind": 32, + "value": "@typespec/http", + "pos": 7, + "end": 23, + "flags": 0, + "parent": { + "$ref": "2085" + } + }, + "pos": 0, + "end": 24, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2084" + } + }, + { + "$id": "2087", + "kind": 2, + "path": { + "$id": "2088", + "kind": 32, + "value": "@typespec/spector", + "pos": 32, + "end": 51, + "flags": 0, + "parent": { + "$ref": "2087" + } + }, + "pos": 25, + "end": 52, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2084" + } + }, + { + "$id": "2089", + "kind": 9, + "name": { + "$id": "2090", + "kind": 3, + "sv": "Http", + "pos": 60, + "end": 64, + "flags": 1, + "parent": { + "$ref": "2089" + }, + "_id": 6 + }, + "pos": 54, + "end": 65, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2084" + } + }, + { + "$id": "2091", + "kind": 9, + "name": { + "$id": "2092", + "kind": 3, + "sv": "Spector", + "pos": 72, + "end": 79, + "flags": 1, + "parent": { + "$ref": "2091" + }, + "_id": 7 + }, + "pos": 66, + "end": 80, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2084" + } + }, + { + "$ref": "2082" + }, + { + "$ref": "2053" + } + ], + "file": { + "text": "import \"@typespec/http\";\nimport \"@typespec/spector\";\n\nusing Http;\nusing Spector;\n\n@doc(\"Test for File type usage in request and response bodies\")\n@scenarioService(\"/type/file\")\nnamespace Type.File;\n\n/**\n * Test File as request and response body with specific content type\n */\n@route(\"/body\")\nnamespace Body {\n @scenario\n @scenarioDoc(\"\"\"\n Test File type as request body with specific content type.\n Expected request:\n - Content-Type header: image/png\n - Body: binary content matching packages/http-specs/assets/image.png\n \"\"\")\n @post\n @route(\"/request/specific-content-type\")\n op uploadFileSpecificContentType(@bodyRoot file: Http.File<\"image/png\">): NoContentResponse;\n\n @scenario\n @scenarioDoc(\"\"\"\n Test File type as request body with JSON content type.\n Expected request:\n - Content-Type header: application/json\n - Body: JSON content with file data\n \"\"\")\n @post\n @route(\"/request/json-content-type\")\n op uploadFileJsonContentType(@bodyRoot file: Http.File<\"application/json\">): NoContentResponse;\n\n @scenario\n @scenarioDoc(\"\"\"\n Test File type as response body with JSON content type.\n Expected response:\n - Content-Type header: application/json\n - Body: JSON content with file data\n \"\"\")\n @get\n @route(\"/response/json-content-type\")\n op downloadFileJsonContentType(): Http.File<\"application/json\">;\n\n @scenario\n @scenarioDoc(\"\"\"\n Test File type as response body with specific content type.\n Expected response:\n - Content-Type header: image/png\n - Body: binary content matching packages/http-specs/assets/image.png\n \"\"\")\n @get\n @route(\"/response/specific-content-type\")\n op downloadFileSpecificContentType(): Http.File<\"image/png\">;\n\n @scenario\n @scenarioDoc(\"\"\"\n Test File type as request body with multiple allowed content types (image/png or image/jpeg).\n Client should send image/png.\n Expected request:\n - Content-Type header: image/png\n - Body: binary content matching packages/http-specs/assets/image.png\n \"\"\")\n @post\n @route(\"/request/multiple-content-types\")\n op uploadFileMultipleContentTypes(\n @bodyRoot file: Http.File<\"image/png\" | \"image/jpeg\">,\n ): NoContentResponse;\n\n @scenario\n @scenarioDoc(\"\"\"\n Test File type as response body with multiple allowed content types.\n Service will return image/png.\n Expected response:\n - Content-Type header: image/png\n - Body: binary content matching packages/http-specs/assets/image.png\n \"\"\")\n @get\n @route(\"/response/multiple-content-types\")\n op downloadFileMultipleContentTypes(): Http.File<\"image/png\" | \"image/jpeg\">;\n\n @scenario\n @scenarioDoc(\"\"\"\n Test File type as request body with unspecified content type.\n The File type accepts any content type. For testing, sender will use image/png.\n Expected request:\n - Content-Type header: image/png\n - Body: binary content matching packages/http-specs/assets/image.png\n \"\"\")\n @post\n @route(\"/request/default-content-type\")\n op uploadFileDefaultContentType(@bodyRoot file: Http.File): NoContentResponse;\n\n @scenario\n @scenarioDoc(\"\"\"\n Test File type as response body with unspecified content type.\n The File type accepts any content type. For testing, server will return image/png.\n Expected response:\n - Content-Type header: image/png\n - Body: binary content matching packages/http-specs/assets/image.png\n \"\"\")\n @get\n @route(\"/response/default-content-type\")\n op downloadFileDefaultContentType(): Http.File;\n}\n", + "path": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http-specs/specs/type/file/main.tsp" + }, + "id": { + "$id": "2093", + "kind": 3, + "sv": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http-specs/specs/type/file/main.tsp", + "pos": 0, + "end": 0, + "flags": 8, + "parent": { + "$ref": "2084" + } + }, + "namespaces": [ + { + "$ref": "2082" + }, + { + "$ref": "2074" + }, + { + "$ref": "2053" + } + ], + "usings": [ + { + "$ref": "2089" + }, + { + "$ref": "2091" + } + ], + "locals": { + "duplicates": {} + }, + "inScopeNamespaces": [ + { + "$ref": "2074" + }, + { + "$ref": "2082" + } + ], + "parseDiagnostics": [], + "comments": [], + "printable": true, + "parseOptions": {}, + "pos": 0, + "end": 3490, + "flags": 0, + "symbol": { + "declarations": [], + "node": { + "$ref": "2084" + }, + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http-specs/specs/type/file/main.tsp", + "exports": { + "duplicates": {} + }, + "flags": 32768, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "symbol": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + } + } + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 417 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 103 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 973, + "end": 1020 + }, + "pos": 973, + "end": 1020, + "flags": 0, + "parent": { + "$ref": "2062" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2063" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2060" + } + ], + "name": "uploadFileJsonContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 417 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 103 + } + }, + "returnType": { + "$id": "2094", + "kind": 45, + "target": { + "$id": "2095", + "kind": 3, + "sv": "NoContentResponse", + "pos": 1022, + "end": 1039, + "flags": 1, + "parent": { + "$ref": "2094" + }, + "_id": 968 + }, + "arguments": [], + "pos": 1022, + "end": 1039, + "flags": 1, + "parent": { + "$ref": "2062" + }, + "_id": 967 + }, + "pos": 973, + "end": 1039, + "flags": 0, + "parent": { + "$ref": "2060" + } + }, + "decorators": [ + { + "$id": "2096", + "kind": 5, + "arguments": [], + "target": { + "$id": "2097", + "kind": 3, + "sv": "scenario", + "pos": 694, + "end": 702, + "flags": 1, + "parent": { + "$ref": "2096" + }, + "_id": 957 + }, + "pos": 693, + "end": 702, + "flags": 0, + "parent": { + "$ref": "2060" + } + }, + { + "$id": "2098", + "kind": 5, + "arguments": [ + { + "$id": "2099", + "kind": 32, + "value": "Test File type as request body with JSON content type.\nExpected request:\n- Content-Type header: application/json\n- Body: JSON content with file data", + "pos": 718, + "end": 894, + "flags": 0, + "parent": { + "$ref": "2098" + } + } + ], + "target": { + "$id": "2100", + "kind": 3, + "sv": "scenarioDoc", + "pos": 706, + "end": 717, + "flags": 1, + "parent": { + "$ref": "2098" + }, + "_id": 958 + }, + "pos": 705, + "end": 895, + "flags": 0, + "parent": { + "$ref": "2060" + } + }, + { + "$id": "2101", + "kind": 5, + "arguments": [], + "target": { + "$id": "2102", + "kind": 3, + "sv": "post", + "pos": 899, + "end": 903, + "flags": 1, + "parent": { + "$ref": "2101" + }, + "_id": 959 + }, + "pos": 898, + "end": 903, + "flags": 0, + "parent": { + "$ref": "2060" + } + }, + { + "$id": "2103", + "kind": 5, + "arguments": [ + { + "$id": "2104", + "kind": 32, + "value": "/request/json-content-type", + "pos": 913, + "end": 941, + "flags": 0, + "parent": { + "$ref": "2103" + } + } + ], + "target": { + "$id": "2105", + "kind": 3, + "sv": "route", + "pos": 907, + "end": 912, + "flags": 1, + "parent": { + "$ref": "2103" + }, + "_id": 960 + }, + "pos": 906, + "end": 942, + "flags": 0, + "parent": { + "$ref": "2060" + } + } + ], + "pos": 693, + "end": 1040, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2053" + }, + "symbol": { + "declarations": [ + { + "$ref": "2060" + } + ], + "name": "uploadFileJsonContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 417 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2106", + "kind": 10, + "id": { + "$id": "2107", + "kind": 3, + "sv": "downloadFileJsonContentType", + "pos": 1301, + "end": 1328, + "flags": 0, + "parent": { + "$ref": "2106" + }, + "_id": 969 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "signature": { + "$id": "2108", + "kind": 11, + "parameters": { + "$id": "2109", + "kind": 14, + "properties": [], + "bodyRange": { + "pos": 1328, + "end": 1330 + }, + "pos": 1328, + "end": 1330, + "flags": 0, + "parent": { + "$ref": "2108" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2109" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2106" + } + ], + "name": "downloadFileJsonContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 419 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 104 + } + }, + "returnType": { + "$id": "2110", + "kind": 45, + "target": { + "$id": "2111", + "kind": 7, + "base": { + "$id": "2112", + "kind": 3, + "sv": "Http", + "pos": 1332, + "end": 1336, + "flags": 1, + "parent": { + "$ref": "2111" + }, + "_id": 980 + }, + "id": { + "$id": "2113", + "kind": 3, + "sv": "File", + "pos": 1337, + "end": 1341, + "flags": 1, + "parent": { + "$ref": "2111" + }, + "_id": 981 + }, + "selector": ".", + "pos": 1332, + "end": 1341, + "flags": 1, + "parent": { + "$ref": "2110" + }, + "_id": 979 + }, + "arguments": [ + { + "$id": "2114", + "kind": 61, + "argument": { + "$id": "2115", + "kind": 32, + "value": "application/json", + "pos": 1342, + "end": 1360, + "flags": 1, + "parent": { + "$ref": "2114" + } + }, + "pos": 1342, + "end": 1360, + "flags": 1, + "parent": { + "$ref": "2110" + } + } + ], + "pos": 1332, + "end": 1361, + "flags": 1, + "parent": { + "$ref": "2108" + }, + "_id": 978 + }, + "pos": 1328, + "end": 1361, + "flags": 0, + "parent": { + "$ref": "2106" + } + }, + "decorators": [ + { + "$id": "2116", + "kind": 5, + "arguments": [], + "target": { + "$id": "2117", + "kind": 3, + "sv": "scenario", + "pos": 1045, + "end": 1053, + "flags": 1, + "parent": { + "$ref": "2116" + }, + "_id": 970 + }, + "pos": 1044, + "end": 1053, + "flags": 0, + "parent": { + "$ref": "2106" + } + }, + { + "$id": "2118", + "kind": 5, + "arguments": [ + { + "$id": "2119", + "kind": 32, + "value": "Test File type as response body with JSON content type.\nExpected response:\n- Content-Type header: application/json\n- Body: JSON content with file data", + "pos": 1069, + "end": 1247, + "flags": 0, + "parent": { + "$ref": "2118" + } + } + ], + "target": { + "$id": "2120", + "kind": 3, + "sv": "scenarioDoc", + "pos": 1057, + "end": 1068, + "flags": 1, + "parent": { + "$ref": "2118" + }, + "_id": 971 + }, + "pos": 1056, + "end": 1248, + "flags": 0, + "parent": { + "$ref": "2106" + } + }, + { + "$id": "2121", + "kind": 5, + "arguments": [], + "target": { + "$id": "2122", + "kind": 3, + "sv": "get", + "pos": 1252, + "end": 1255, + "flags": 1, + "parent": { + "$ref": "2121" + }, + "_id": 972 + }, + "pos": 1251, + "end": 1255, + "flags": 0, + "parent": { + "$ref": "2106" + } + }, + { + "$id": "2123", + "kind": 5, + "arguments": [ + { + "$id": "2124", + "kind": 32, + "value": "/response/json-content-type", + "pos": 1265, + "end": 1294, + "flags": 0, + "parent": { + "$ref": "2123" + } + } + ], + "target": { + "$id": "2125", + "kind": 3, + "sv": "route", + "pos": 1259, + "end": 1264, + "flags": 1, + "parent": { + "$ref": "2123" + }, + "_id": 977 + }, + "pos": 1258, + "end": 1295, + "flags": 0, + "parent": { + "$ref": "2106" + } + } + ], + "pos": 1044, + "end": 1362, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2053" + }, + "symbol": { + "declarations": [ + { + "$ref": "2106" + } + ], + "name": "downloadFileJsonContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 419 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2126", + "kind": 10, + "id": { + "$id": "2127", + "kind": 3, + "sv": "downloadFileSpecificContentType", + "pos": 1657, + "end": 1688, + "flags": 0, + "parent": { + "$ref": "2126" + }, + "_id": 982 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "signature": { + "$id": "2128", + "kind": 11, + "parameters": { + "$id": "2129", + "kind": 14, + "properties": [], + "bodyRange": { + "pos": 1688, + "end": 1690 + }, + "pos": 1688, + "end": 1690, + "flags": 0, + "parent": { + "$ref": "2128" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2129" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2126" + } + ], + "name": "downloadFileSpecificContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 422 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 105 + } + }, + "returnType": { + "$id": "2130", + "kind": 45, + "target": { + "$id": "2131", + "kind": 7, + "base": { + "$id": "2132", + "kind": 3, + "sv": "Http", + "pos": 1692, + "end": 1696, + "flags": 1, + "parent": { + "$ref": "2131" + }, + "_id": 989 + }, + "id": { + "$id": "2133", + "kind": 3, + "sv": "File", + "pos": 1697, + "end": 1701, + "flags": 1, + "parent": { + "$ref": "2131" + }, + "_id": 990 + }, + "selector": ".", + "pos": 1692, + "end": 1701, + "flags": 1, + "parent": { + "$ref": "2130" + }, + "_id": 988 + }, + "arguments": [ + { + "$id": "2134", + "kind": 61, + "argument": { + "$id": "2135", + "kind": 32, + "value": "image/png", + "pos": 1702, + "end": 1713, + "flags": 1, + "parent": { + "$ref": "2134" + } + }, + "pos": 1702, + "end": 1713, + "flags": 1, + "parent": { + "$ref": "2130" + } + } + ], + "pos": 1692, + "end": 1714, + "flags": 1, + "parent": { + "$ref": "2128" + }, + "_id": 987 + }, + "pos": 1688, + "end": 1714, + "flags": 0, + "parent": { + "$ref": "2126" + } + }, + "decorators": [ + { + "$id": "2136", + "kind": 5, + "arguments": [], + "target": { + "$id": "2137", + "kind": 3, + "sv": "scenario", + "pos": 1367, + "end": 1375, + "flags": 1, + "parent": { + "$ref": "2136" + }, + "_id": 983 + }, + "pos": 1366, + "end": 1375, + "flags": 0, + "parent": { + "$ref": "2126" + } + }, + { + "$id": "2138", + "kind": 5, + "arguments": [ + { + "$id": "2139", + "kind": 32, + "value": "Test File type as response body with specific content type.\nExpected response:\n- Content-Type header: image/png\n- Body: binary content matching packages/http-specs/assets/image.png", + "pos": 1391, + "end": 1599, + "flags": 0, + "parent": { + "$ref": "2138" + } + } + ], + "target": { + "$id": "2140", + "kind": 3, + "sv": "scenarioDoc", + "pos": 1379, + "end": 1390, + "flags": 1, + "parent": { + "$ref": "2138" + }, + "_id": 984 + }, + "pos": 1378, + "end": 1600, + "flags": 0, + "parent": { + "$ref": "2126" + } + }, + { + "$id": "2141", + "kind": 5, + "arguments": [], + "target": { + "$id": "2142", + "kind": 3, + "sv": "get", + "pos": 1604, + "end": 1607, + "flags": 1, + "parent": { + "$ref": "2141" + }, + "_id": 985 + }, + "pos": 1603, + "end": 1607, + "flags": 0, + "parent": { + "$ref": "2126" + } + }, + { + "$id": "2143", + "kind": 5, + "arguments": [ + { + "$id": "2144", + "kind": 32, + "value": "/response/specific-content-type", + "pos": 1617, + "end": 1650, + "flags": 0, + "parent": { + "$ref": "2143" + } + } + ], + "target": { + "$id": "2145", + "kind": 3, + "sv": "route", + "pos": 1611, + "end": 1616, + "flags": 1, + "parent": { + "$ref": "2143" + }, + "_id": 986 + }, + "pos": 1610, + "end": 1651, + "flags": 0, + "parent": { + "$ref": "2126" + } + } + ], + "pos": 1366, + "end": 1715, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2053" + }, + "symbol": { + "declarations": [ + { + "$ref": "2126" + } + ], + "name": "downloadFileSpecificContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 422 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2146", + "kind": 10, + "id": { + "$id": "2147", + "kind": 3, + "sv": "uploadFileMultipleContentTypes", + "pos": 2078, + "end": 2108, + "flags": 0, + "parent": { + "$ref": "2146" + }, + "_id": 991 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "signature": { + "$id": "2148", + "kind": 11, + "parameters": { + "$id": "2149", + "kind": 14, + "properties": [ + { + "$id": "2150", + "kind": 15, + "id": { + "$id": "2151", + "kind": 3, + "sv": "file", + "pos": 2124, + "end": 2128, + "flags": 0, + "parent": { + "$ref": "2150" + }, + "_id": 996 + }, + "decorators": [ + { + "$id": "2152", + "kind": 5, + "arguments": [], + "target": { + "$id": "2153", + "kind": 3, + "sv": "bodyRoot", + "pos": 2115, + "end": 2123, + "flags": 1, + "parent": { + "$ref": "2152" + }, + "_id": 997 + }, + "pos": 2114, + "end": 2123, + "flags": 0, + "parent": { + "$ref": "2150" + } + } + ], + "value": { + "$id": "2154", + "kind": 45, + "target": { + "$id": "2155", + "kind": 7, + "base": { + "$id": "2156", + "kind": 3, + "sv": "Http", + "pos": 2130, + "end": 2134, + "flags": 1, + "parent": { + "$ref": "2155" + }, + "_id": 1000 + }, + "id": { + "$id": "2157", + "kind": 3, + "sv": "File", + "pos": 2135, + "end": 2139, + "flags": 1, + "parent": { + "$ref": "2155" + }, + "_id": 1001 + }, + "selector": ".", + "pos": 2130, + "end": 2139, + "flags": 1, + "parent": { + "$ref": "2154" + }, + "_id": 999 + }, + "arguments": [ + { + "$id": "2158", + "kind": 61, + "argument": { + "$id": "2159", + "kind": 28, + "options": [ + { + "$id": "2160", + "kind": 32, + "value": "image/png", + "pos": 2140, + "end": 2151, + "flags": 1, + "parent": { + "$ref": "2159" + } + }, + { + "$id": "2161", + "kind": 32, + "value": "image/jpeg", + "pos": 2154, + "end": 2166, + "flags": 1, + "parent": { + "$ref": "2159" + } + } + ], + "pos": 2140, + "end": 2166, + "flags": 1, + "parent": { + "$ref": "2158" + } + }, + "pos": 2140, + "end": 2166, + "flags": 1, + "parent": { + "$ref": "2154" + } + } + ], + "pos": 2130, + "end": 2167, + "flags": 1, + "parent": { + "$ref": "2150" + }, + "_id": 998 + }, + "optional": false, + "pos": 2114, + "end": 2167, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "2149" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2150" + }, + "name": "file", + "flags": 65536, + "parent": { + "declarations": [], + "node": { + "$ref": "2149" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2146" + } + ], + "name": "uploadFileMultipleContentTypes", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 423 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 106 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 2108, + "end": 2172 + }, + "pos": 2108, + "end": 2172, + "flags": 0, + "parent": { + "$ref": "2148" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2149" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2146" + } + ], + "name": "uploadFileMultipleContentTypes", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 423 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 106 + } + }, + "returnType": { + "$id": "2162", + "kind": 45, + "target": { + "$id": "2163", + "kind": 3, + "sv": "NoContentResponse", + "pos": 2174, + "end": 2191, + "flags": 1, + "parent": { + "$ref": "2162" + }, + "_id": 1003 + }, + "arguments": [], + "pos": 2174, + "end": 2191, + "flags": 1, + "parent": { + "$ref": "2148" + }, + "_id": 1002 + }, + "pos": 2108, + "end": 2191, + "flags": 0, + "parent": { + "$ref": "2146" + } + }, + "decorators": [ + { + "$id": "2164", + "kind": 5, + "arguments": [], + "target": { + "$id": "2165", + "kind": 3, + "sv": "scenario", + "pos": 1720, + "end": 1728, + "flags": 1, + "parent": { + "$ref": "2164" + }, + "_id": 992 + }, + "pos": 1719, + "end": 1728, + "flags": 0, + "parent": { + "$ref": "2146" + } + }, + { + "$id": "2166", + "kind": 5, + "arguments": [ + { + "$id": "2167", + "kind": 32, + "value": "Test File type as request body with multiple allowed content types (image/png or image/jpeg).\nClient should send image/png.\nExpected request:\n- Content-Type header: image/png\n- Body: binary content matching packages/http-specs/assets/image.png", + "pos": 1744, + "end": 2019, + "flags": 0, + "parent": { + "$ref": "2166" + } + } + ], + "target": { + "$id": "2168", + "kind": 3, + "sv": "scenarioDoc", + "pos": 1732, + "end": 1743, + "flags": 1, + "parent": { + "$ref": "2166" + }, + "_id": 993 + }, + "pos": 1731, + "end": 2020, + "flags": 0, + "parent": { + "$ref": "2146" + } + }, + { + "$id": "2169", + "kind": 5, + "arguments": [], + "target": { + "$id": "2170", + "kind": 3, + "sv": "post", + "pos": 2024, + "end": 2028, + "flags": 1, + "parent": { + "$ref": "2169" + }, + "_id": 994 + }, + "pos": 2023, + "end": 2028, + "flags": 0, + "parent": { + "$ref": "2146" + } + }, + { + "$id": "2171", + "kind": 5, + "arguments": [ + { + "$id": "2172", + "kind": 32, + "value": "/request/multiple-content-types", + "pos": 2038, + "end": 2071, + "flags": 0, + "parent": { + "$ref": "2171" + } + } + ], + "target": { + "$id": "2173", + "kind": 3, + "sv": "route", + "pos": 2032, + "end": 2037, + "flags": 1, + "parent": { + "$ref": "2171" + }, + "_id": 995 + }, + "pos": 2031, + "end": 2072, + "flags": 0, + "parent": { + "$ref": "2146" + } + } + ], + "pos": 1719, + "end": 2192, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2053" + }, + "symbol": { + "declarations": [ + { + "$ref": "2146" + } + ], + "name": "uploadFileMultipleContentTypes", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 423 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2174", + "kind": 10, + "id": { + "$id": "2175", + "kind": 3, + "sv": "downloadFileMultipleContentTypes", + "pos": 2532, + "end": 2564, + "flags": 0, + "parent": { + "$ref": "2174" + }, + "_id": 1004 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "signature": { + "$id": "2176", + "kind": 11, + "parameters": { + "$id": "2177", + "kind": 14, + "properties": [], + "bodyRange": { + "pos": 2564, + "end": 2566 + }, + "pos": 2564, + "end": 2566, + "flags": 0, + "parent": { + "$ref": "2176" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2177" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2174" + } + ], + "name": "downloadFileMultipleContentTypes", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 425 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 107 + } + }, + "returnType": { + "$id": "2178", + "kind": 45, + "target": { + "$id": "2179", + "kind": 7, + "base": { + "$id": "2180", + "kind": 3, + "sv": "Http", + "pos": 2568, + "end": 2572, + "flags": 1, + "parent": { + "$ref": "2179" + }, + "_id": 1011 + }, + "id": { + "$id": "2181", + "kind": 3, + "sv": "File", + "pos": 2573, + "end": 2577, + "flags": 1, + "parent": { + "$ref": "2179" + }, + "_id": 1012 + }, + "selector": ".", + "pos": 2568, + "end": 2577, + "flags": 1, + "parent": { + "$ref": "2178" + }, + "_id": 1010 + }, + "arguments": [ + { + "$id": "2182", + "kind": 61, + "argument": { + "$id": "2183", + "kind": 28, + "options": [ + { + "$id": "2184", + "kind": 32, + "value": "image/png", + "pos": 2578, + "end": 2589, + "flags": 1, + "parent": { + "$ref": "2183" + } + }, + { + "$id": "2185", + "kind": 32, + "value": "image/jpeg", + "pos": 2592, + "end": 2604, + "flags": 1, + "parent": { + "$ref": "2183" + } + } + ], + "pos": 2578, + "end": 2604, + "flags": 1, + "parent": { + "$ref": "2182" + } + }, + "pos": 2578, + "end": 2604, + "flags": 1, + "parent": { + "$ref": "2178" + } + } + ], + "pos": 2568, + "end": 2605, + "flags": 1, + "parent": { + "$ref": "2176" + }, + "_id": 1009 + }, + "pos": 2564, + "end": 2605, + "flags": 0, + "parent": { + "$ref": "2174" + } + }, + "decorators": [ + { + "$id": "2186", + "kind": 5, + "arguments": [], + "target": { + "$id": "2187", + "kind": 3, + "sv": "scenario", + "pos": 2197, + "end": 2205, + "flags": 1, + "parent": { + "$ref": "2186" + }, + "_id": 1005 + }, + "pos": 2196, + "end": 2205, + "flags": 0, + "parent": { + "$ref": "2174" + } + }, + { + "$id": "2188", + "kind": 5, + "arguments": [ + { + "$id": "2189", + "kind": 32, + "value": "Test File type as response body with multiple allowed content types.\nService will return image/png.\nExpected response:\n- Content-Type header: image/png\n- Body: binary content matching packages/http-specs/assets/image.png", + "pos": 2221, + "end": 2473, + "flags": 0, + "parent": { + "$ref": "2188" + } + } + ], + "target": { + "$id": "2190", + "kind": 3, + "sv": "scenarioDoc", + "pos": 2209, + "end": 2220, + "flags": 1, + "parent": { + "$ref": "2188" + }, + "_id": 1006 + }, + "pos": 2208, + "end": 2474, + "flags": 0, + "parent": { + "$ref": "2174" + } + }, + { + "$id": "2191", + "kind": 5, + "arguments": [], + "target": { + "$id": "2192", + "kind": 3, + "sv": "get", + "pos": 2478, + "end": 2481, + "flags": 1, + "parent": { + "$ref": "2191" + }, + "_id": 1007 + }, + "pos": 2477, + "end": 2481, + "flags": 0, + "parent": { + "$ref": "2174" + } + }, + { + "$id": "2193", + "kind": 5, + "arguments": [ + { + "$id": "2194", + "kind": 32, + "value": "/response/multiple-content-types", + "pos": 2491, + "end": 2525, + "flags": 0, + "parent": { + "$ref": "2193" + } + } + ], + "target": { + "$id": "2195", + "kind": 3, + "sv": "route", + "pos": 2485, + "end": 2490, + "flags": 1, + "parent": { + "$ref": "2193" + }, + "_id": 1008 + }, + "pos": 2484, + "end": 2526, + "flags": 0, + "parent": { + "$ref": "2174" + } + } + ], + "pos": 2196, + "end": 2606, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2053" + }, + "symbol": { + "declarations": [ + { + "$ref": "2174" + } + ], + "name": "downloadFileMultipleContentTypes", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 425 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2196", + "kind": 10, + "id": { + "$id": "2197", + "kind": 3, + "sv": "uploadFileDefaultContentType", + "pos": 2985, + "end": 3013, + "flags": 0, + "parent": { + "$ref": "2196" + }, + "_id": 1013 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "signature": { + "$id": "2198", + "kind": 11, + "parameters": { + "$id": "2199", + "kind": 14, + "properties": [ + { + "$id": "2200", + "kind": 15, + "id": { + "$id": "2201", + "kind": 3, + "sv": "file", + "pos": 3024, + "end": 3028, + "flags": 0, + "parent": { + "$ref": "2200" + }, + "_id": 1018 + }, + "decorators": [ + { + "$id": "2202", + "kind": 5, + "arguments": [], + "target": { + "$id": "2203", + "kind": 3, + "sv": "bodyRoot", + "pos": 3015, + "end": 3023, + "flags": 1, + "parent": { + "$ref": "2202" + }, + "_id": 1019 + }, + "pos": 3014, + "end": 3023, + "flags": 0, + "parent": { + "$ref": "2200" + } + } + ], + "value": { + "$id": "2204", + "kind": 45, + "target": { + "$id": "2205", + "kind": 7, + "base": { + "$id": "2206", + "kind": 3, + "sv": "Http", + "pos": 3030, + "end": 3034, + "flags": 1, + "parent": { + "$ref": "2205" + }, + "_id": 1022 + }, + "id": { + "$id": "2207", + "kind": 3, + "sv": "File", + "pos": 3035, + "end": 3039, + "flags": 1, + "parent": { + "$ref": "2205" + }, + "_id": 1023 + }, + "selector": ".", + "pos": 3030, + "end": 3039, + "flags": 1, + "parent": { + "$ref": "2204" + }, + "_id": 1021 + }, + "arguments": [], + "pos": 3030, + "end": 3039, + "flags": 1, + "parent": { + "$ref": "2200" + }, + "_id": 1020 + }, + "optional": false, + "pos": 3014, + "end": 3039, + "flags": 0, + "docs": [], + "directives": [], + "parent": { + "$ref": "2199" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2200" + }, + "name": "file", + "flags": 65536, + "parent": { + "declarations": [], + "node": { + "$ref": "2199" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2196" + } + ], + "name": "uploadFileDefaultContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 426 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 108 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 3013, + "end": 3040 + }, + "pos": 3013, + "end": 3040, + "flags": 0, + "parent": { + "$ref": "2198" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2199" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2196" + } + ], + "name": "uploadFileDefaultContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 426 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 108 + } + }, + "returnType": { + "$id": "2208", + "kind": 45, + "target": { + "$id": "2209", + "kind": 3, + "sv": "NoContentResponse", + "pos": 3042, + "end": 3059, + "flags": 1, + "parent": { + "$ref": "2208" + }, + "_id": 1025 + }, + "arguments": [], + "pos": 3042, + "end": 3059, + "flags": 1, + "parent": { + "$ref": "2198" + }, + "_id": 1024 + }, + "pos": 3013, + "end": 3059, + "flags": 0, + "parent": { + "$ref": "2196" + } + }, + "decorators": [ + { + "$id": "2210", + "kind": 5, + "arguments": [], + "target": { + "$id": "2211", + "kind": 3, + "sv": "scenario", + "pos": 2611, + "end": 2619, + "flags": 1, + "parent": { + "$ref": "2210" + }, + "_id": 1014 + }, + "pos": 2610, + "end": 2619, + "flags": 0, + "parent": { + "$ref": "2196" + } + }, + { + "$id": "2212", + "kind": 5, + "arguments": [ + { + "$id": "2213", + "kind": 32, + "value": "Test File type as request body with unspecified content type.\nThe File type accepts any content type. For testing, sender will use image/png.\nExpected request:\n- Content-Type header: image/png\n- Body: binary content matching packages/http-specs/assets/image.png", + "pos": 2635, + "end": 2928, + "flags": 0, + "parent": { + "$ref": "2212" + } + } + ], + "target": { + "$id": "2214", + "kind": 3, + "sv": "scenarioDoc", + "pos": 2623, + "end": 2634, + "flags": 1, + "parent": { + "$ref": "2212" + }, + "_id": 1015 + }, + "pos": 2622, + "end": 2929, + "flags": 0, + "parent": { + "$ref": "2196" + } + }, + { + "$id": "2215", + "kind": 5, + "arguments": [], + "target": { + "$id": "2216", + "kind": 3, + "sv": "post", + "pos": 2933, + "end": 2937, + "flags": 1, + "parent": { + "$ref": "2215" + }, + "_id": 1016 + }, + "pos": 2932, + "end": 2937, + "flags": 0, + "parent": { + "$ref": "2196" + } + }, + { + "$id": "2217", + "kind": 5, + "arguments": [ + { + "$id": "2218", + "kind": 32, + "value": "/request/default-content-type", + "pos": 2947, + "end": 2978, + "flags": 0, + "parent": { + "$ref": "2217" + } + } + ], + "target": { + "$id": "2219", + "kind": 3, + "sv": "route", + "pos": 2941, + "end": 2946, + "flags": 1, + "parent": { + "$ref": "2217" + }, + "_id": 1017 + }, + "pos": 2940, + "end": 2979, + "flags": 0, + "parent": { + "$ref": "2196" + } + } + ], + "pos": 2610, + "end": 3060, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2053" + }, + "symbol": { + "declarations": [ + { + "$ref": "2196" + } + ], + "name": "uploadFileDefaultContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 426 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2220", + "kind": 10, + "id": { + "$id": "2221", + "kind": 3, + "sv": "downloadFileDefaultContentType", + "pos": 3444, + "end": 3474, + "flags": 0, + "parent": { + "$ref": "2220" + }, + "_id": 1026 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "signature": { + "$id": "2222", + "kind": 11, + "parameters": { + "$id": "2223", + "kind": 14, + "properties": [], + "bodyRange": { + "pos": 3474, + "end": 3476 + }, + "pos": 3474, + "end": 3476, + "flags": 0, + "parent": { + "$ref": "2222" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2223" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2220" + } + ], + "name": "downloadFileDefaultContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 428 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 109 + } + }, + "returnType": { + "$id": "2224", + "kind": 45, + "target": { + "$id": "2225", + "kind": 7, + "base": { + "$id": "2226", + "kind": 3, + "sv": "Http", + "pos": 3478, + "end": 3482, + "flags": 1, + "parent": { + "$ref": "2225" + }, + "_id": 1033 + }, + "id": { + "$id": "2227", + "kind": 3, + "sv": "File", + "pos": 3483, + "end": 3487, + "flags": 1, + "parent": { + "$ref": "2225" + }, + "_id": 1034 + }, + "selector": ".", + "pos": 3478, + "end": 3487, + "flags": 1, + "parent": { + "$ref": "2224" + }, + "_id": 1032 + }, + "arguments": [], + "pos": 3478, + "end": 3487, + "flags": 1, + "parent": { + "$ref": "2222" + }, + "_id": 1031 + }, + "pos": 3474, + "end": 3487, + "flags": 0, + "parent": { + "$ref": "2220" + } + }, + "decorators": [ + { + "$id": "2228", + "kind": 5, + "arguments": [], + "target": { + "$id": "2229", + "kind": 3, + "sv": "scenario", + "pos": 3065, + "end": 3073, + "flags": 1, + "parent": { + "$ref": "2228" + }, + "_id": 1027 + }, + "pos": 3064, + "end": 3073, + "flags": 0, + "parent": { + "$ref": "2220" + } + }, + { + "$id": "2230", + "kind": 5, + "arguments": [ + { + "$id": "2231", + "kind": 32, + "value": "Test File type as response body with unspecified content type.\nThe File type accepts any content type. For testing, server will return image/png.\nExpected response:\n- Content-Type header: image/png\n- Body: binary content matching packages/http-specs/assets/image.png", + "pos": 3089, + "end": 3387, + "flags": 0, + "parent": { + "$ref": "2230" + } + } + ], + "target": { + "$id": "2232", + "kind": 3, + "sv": "scenarioDoc", + "pos": 3077, + "end": 3088, + "flags": 1, + "parent": { + "$ref": "2230" + }, + "_id": 1028 + }, + "pos": 3076, + "end": 3388, + "flags": 0, + "parent": { + "$ref": "2220" + } + }, + { + "$id": "2233", + "kind": 5, + "arguments": [], + "target": { + "$id": "2234", + "kind": 3, + "sv": "get", + "pos": 3392, + "end": 3395, + "flags": 1, + "parent": { + "$ref": "2233" + }, + "_id": 1029 + }, + "pos": 3391, + "end": 3395, + "flags": 0, + "parent": { + "$ref": "2220" + } + }, + { + "$id": "2235", + "kind": 5, + "arguments": [ + { + "$id": "2236", + "kind": 32, + "value": "/response/default-content-type", + "pos": 3405, + "end": 3437, + "flags": 0, + "parent": { + "$ref": "2235" + } + } + ], + "target": { + "$id": "2237", + "kind": 3, + "sv": "route", + "pos": 3399, + "end": 3404, + "flags": 1, + "parent": { + "$ref": "2235" + }, + "_id": 1030 + }, + "pos": 3398, + "end": 3438, + "flags": 0, + "parent": { + "$ref": "2220" + } + } + ], + "pos": 3064, + "end": 3488, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2053" + }, + "symbol": { + "declarations": [ + { + "$ref": "2220" + } + ], + "name": "downloadFileDefaultContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 428 + }, + "locals": { + "duplicates": {} + } + } + ], + "directives": [], + "pos": 199, + "end": 3490, + "flags": 0, + "parent": { + "$ref": "2084" + }, + "symbol": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "symbol": { + "declarations": [ + { + "$ref": "2041" + } + ], + "name": "uploadFileSpecificContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 395 + }, + "locals": { + "duplicates": {} + } + } + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2037" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2041" + } + ], + "name": "uploadFileSpecificContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 395 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 96 + } + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2033" + }, + "name": "file", + "flags": 65536, + "parent": { + "declarations": [], + "node": { + "$ref": "2037" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2041" + } + ], + "name": "uploadFileSpecificContentType", + "flags": 1048584, + "parent": { + "declarations": [ + { + "$ref": "2053" + } + ], + "name": "Body", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2074" + } + ], + "name": "File", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2082" + } + ], + "name": "Type", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 395 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 96 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "_id": 898 + } + }, + "map": {} + }, + "model": { + "$id": "2238", + "kind": "Model", + "name": "File", + "node": { + "$ref": "40" + }, + "properties": {}, + "namespace": { + "$ref": "887" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$id": "2239", + "kind": "String", + "value": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below.", + "isFinished": true, + "entityKind": "Type" + }, + "jsValue": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below." + } + ] + }, + { + "definition": { + "$id": "2240", + "kind": "Decorator", + "name": "@httpFile", + "namespace": { + "$id": "2241", + "kind": "Namespace", + "name": "Private", + "namespace": { + "$ref": "887" + }, + "node": { + "$id": "2242", + "kind": 8, + "decorators": [], + "docs": [ + { + "$id": "2243", + "kind": 51, + "content": [ + { + "$id": "2244", + "kind": 52, + "text": "Private decorators. Those are meant for internal use inside Http types only.", + "pos": 3, + "end": 85, + "flags": 0, + "parent": { + "$ref": "2243" + } + } + ], + "tags": [], + "pos": 0, + "end": 87, + "flags": 0, + "parent": { + "$ref": "2242" + } + } + ], + "id": { + "$id": "2245", + "kind": 3, + "sv": "Private", + "pos": 112, + "end": 119, + "flags": 0, + "parent": { + "$ref": "2242" + }, + "_id": 1356 + }, + "locals": { + "duplicates": {} + }, + "directives": [], + "pos": 0, + "end": 120, + "flags": 0, + "parent": { + "$id": "2246", + "kind": 8, + "decorators": [], + "directives": [], + "id": { + "$id": "2247", + "kind": 3, + "sv": "Http", + "pos": 107, + "end": 111, + "flags": 0, + "parent": { + "$ref": "2246" + }, + "_id": 1355 + }, + "statements": { + "$ref": "2242" + }, + "locals": { + "duplicates": {} + }, + "pos": 0, + "end": 120, + "flags": 0, + "parent": { + "$id": "2248", + "kind": 8, + "decorators": [], + "directives": [], + "id": { + "$id": "2249", + "kind": 3, + "sv": "TypeSpec", + "pos": 98, + "end": 106, + "flags": 0, + "parent": { + "$ref": "2248" + }, + "_id": 1354 + }, + "statements": { + "$ref": "2246" + }, + "locals": { + "duplicates": {} + }, + "pos": 0, + "end": 120, + "flags": 0, + "parent": { + "$id": "2250", + "kind": 0, + "statements": [ + { + "$ref": "2248" + }, + { + "$id": "2251", + "kind": 25, + "modifiers": [ + { + "$id": "2252", + "kind": 40, + "pos": 122, + "end": 128, + "flags": 0, + "parent": { + "$ref": "2251" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2253", + "kind": 3, + "sv": "plainData", + "pos": 133, + "end": 142, + "flags": 0, + "parent": { + "$ref": "2251" + }, + "_id": 1108 + }, + "target": { + "$id": "2254", + "kind": 27, + "id": { + "$id": "2255", + "kind": 3, + "sv": "target", + "pos": 143, + "end": 149, + "flags": 0, + "parent": { + "$ref": "2254" + }, + "_id": 1109 + }, + "type": { + "$id": "2256", + "kind": 45, + "target": { + "$id": "2257", + "kind": 7, + "base": { + "$id": "2258", + "kind": 7, + "base": { + "$id": "2259", + "kind": 3, + "sv": "TypeSpec", + "pos": 151, + "end": 159, + "flags": 1, + "parent": { + "$ref": "2258" + }, + "_id": 1113 + }, + "id": { + "$id": "2260", + "kind": 3, + "sv": "Reflection", + "pos": 160, + "end": 170, + "flags": 1, + "parent": { + "$ref": "2258" + }, + "_id": 1114 + }, + "selector": ".", + "pos": 151, + "end": 170, + "flags": 1, + "parent": { + "$ref": "2257" + }, + "_id": 1112 + }, + "id": { + "$id": "2261", + "kind": 3, + "sv": "Model", + "pos": 171, + "end": 176, + "flags": 1, + "parent": { + "$ref": "2257" + }, + "_id": 1115 + }, + "selector": ".", + "pos": 151, + "end": 176, + "flags": 1, + "parent": { + "$ref": "2256" + }, + "_id": 1111 + }, + "arguments": [], + "pos": 151, + "end": 176, + "flags": 1, + "parent": { + "$ref": "2254" + }, + "_id": 1110 + }, + "optional": false, + "rest": false, + "pos": 143, + "end": 176, + "flags": 0, + "parent": { + "$ref": "2251" + }, + "symbol": { + "declarations": [ + { + "$ref": "2254" + } + ], + "name": "target", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 450 + } + }, + "parameters": [], + "pos": 122, + "end": 178, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2250" + }, + "symbol": { + "declarations": [ + { + "$ref": "2251" + } + ], + "name": "@plainData", + "flags": 1049088, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2262", + "kind": 25, + "modifiers": [ + { + "$id": "2263", + "kind": 40, + "pos": 179, + "end": 185, + "flags": 0, + "parent": { + "$ref": "2262" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2264", + "kind": 3, + "sv": "httpFile", + "pos": 190, + "end": 198, + "flags": 0, + "parent": { + "$ref": "2262" + }, + "_id": 907 + }, + "target": { + "$id": "2265", + "kind": 27, + "id": { + "$id": "2266", + "kind": 3, + "sv": "target", + "pos": 199, + "end": 205, + "flags": 0, + "parent": { + "$ref": "2265" + }, + "_id": 908 + }, + "type": { + "$id": "2267", + "kind": 45, + "target": { + "$id": "2268", + "kind": 7, + "base": { + "$id": "2269", + "kind": 7, + "base": { + "$id": "2270", + "kind": 3, + "sv": "TypeSpec", + "pos": 207, + "end": 215, + "flags": 1, + "parent": { + "$ref": "2269" + }, + "_id": 912 + }, + "id": { + "$id": "2271", + "kind": 3, + "sv": "Reflection", + "pos": 216, + "end": 226, + "flags": 1, + "parent": { + "$ref": "2269" + }, + "_id": 913 + }, + "selector": ".", + "pos": 207, + "end": 226, + "flags": 1, + "parent": { + "$ref": "2268" + }, + "_id": 911 + }, + "id": { + "$id": "2272", + "kind": 3, + "sv": "Model", + "pos": 227, + "end": 232, + "flags": 1, + "parent": { + "$ref": "2268" + }, + "_id": 914 + }, + "selector": ".", + "pos": 207, + "end": 232, + "flags": 1, + "parent": { + "$ref": "2267" + }, + "_id": 910 + }, + "arguments": [], + "pos": 207, + "end": 232, + "flags": 1, + "parent": { + "$ref": "2265" + }, + "_id": 909 + }, + "optional": false, + "rest": false, + "pos": 199, + "end": 232, + "flags": 0, + "parent": { + "$ref": "2262" + }, + "symbol": { + "declarations": [ + { + "$ref": "2265" + } + ], + "name": "target", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 401 + } + }, + "parameters": [], + "pos": 179, + "end": 234, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2250" + }, + "symbol": { + "declarations": [ + { + "$ref": "2262" + } + ], + "name": "@httpFile", + "flags": 1049088, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2273", + "kind": 25, + "modifiers": [ + { + "$id": "2274", + "kind": 40, + "pos": 235, + "end": 241, + "flags": 0, + "parent": { + "$ref": "2273" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2275", + "kind": 3, + "sv": "httpPart", + "pos": 246, + "end": 254, + "flags": 0, + "parent": { + "$ref": "2273" + }, + "_id": 1124 + }, + "target": { + "$id": "2276", + "kind": 27, + "id": { + "$id": "2277", + "kind": 3, + "sv": "target", + "pos": 258, + "end": 264, + "flags": 0, + "parent": { + "$ref": "2276" + }, + "_id": 1125 + }, + "type": { + "$id": "2278", + "kind": 45, + "target": { + "$id": "2279", + "kind": 7, + "base": { + "$id": "2280", + "kind": 7, + "base": { + "$id": "2281", + "kind": 3, + "sv": "TypeSpec", + "pos": 266, + "end": 274, + "flags": 1, + "parent": { + "$ref": "2280" + }, + "_id": 1129 + }, + "id": { + "$id": "2282", + "kind": 3, + "sv": "Reflection", + "pos": 275, + "end": 285, + "flags": 1, + "parent": { + "$ref": "2280" + }, + "_id": 1130 + }, + "selector": ".", + "pos": 266, + "end": 285, + "flags": 1, + "parent": { + "$ref": "2279" + }, + "_id": 1128 + }, + "id": { + "$id": "2283", + "kind": 3, + "sv": "Model", + "pos": 286, + "end": 291, + "flags": 1, + "parent": { + "$ref": "2279" + }, + "_id": 1131 + }, + "selector": ".", + "pos": 266, + "end": 291, + "flags": 1, + "parent": { + "$ref": "2278" + }, + "_id": 1127 + }, + "arguments": [], + "pos": 266, + "end": 291, + "flags": 1, + "parent": { + "$ref": "2276" + }, + "_id": 1126 + }, + "optional": false, + "rest": false, + "pos": 258, + "end": 291, + "flags": 0, + "parent": { + "$ref": "2273" + }, + "symbol": { + "declarations": [ + { + "$ref": "2276" + } + ], + "name": "target", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 453 + } + }, + "parameters": [ + { + "$id": "2284", + "kind": 27, + "id": { + "$id": "2285", + "kind": 3, + "sv": "type", + "pos": 295, + "end": 299, + "flags": 0, + "parent": { + "$ref": "2284" + }, + "_id": 1132 + }, + "type": { + "$id": "2286", + "kind": 43, + "pos": 301, + "end": 308, + "flags": 0, + "parent": { + "$ref": "2284" + } + }, + "optional": false, + "rest": false, + "pos": 295, + "end": 308, + "flags": 0, + "parent": { + "$ref": "2273" + }, + "symbol": { + "declarations": [ + { + "$ref": "2284" + } + ], + "name": "type", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 454 + } + }, + { + "$id": "2287", + "kind": 27, + "id": { + "$id": "2288", + "kind": 3, + "sv": "options", + "pos": 312, + "end": 319, + "flags": 0, + "parent": { + "$ref": "2287" + }, + "_id": 1133 + }, + "type": { + "$id": "2289", + "kind": 44, + "target": { + "$id": "2290", + "kind": 45, + "target": { + "$id": "2291", + "kind": 3, + "sv": "HttpPartOptions", + "pos": 329, + "end": 344, + "flags": 1, + "parent": { + "$ref": "2290" + }, + "_id": 1135 + }, + "arguments": [], + "pos": 329, + "end": 344, + "flags": 1, + "parent": { + "$ref": "2289" + }, + "_id": 1134 + }, + "pos": 321, + "end": 344, + "flags": 0, + "parent": { + "$ref": "2287" + } + }, + "optional": false, + "rest": false, + "pos": 312, + "end": 344, + "flags": 0, + "parent": { + "$ref": "2273" + }, + "symbol": { + "declarations": [ + { + "$ref": "2287" + } + ], + "name": "options", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 455 + } + } + ], + "pos": 235, + "end": 347, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2250" + }, + "symbol": { + "declarations": [ + { + "$ref": "2273" + } + ], + "name": "@httpPart", + "flags": 1049088, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2292", + "kind": 25, + "modifiers": [ + { + "$id": "2293", + "kind": 40, + "pos": 529, + "end": 535, + "flags": 0, + "parent": { + "$ref": "2292" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2294", + "kind": 3, + "sv": "includeInapplicableMetadataInPayload", + "pos": 540, + "end": 576, + "flags": 0, + "parent": { + "$ref": "2292" + }, + "_id": 1357 + }, + "target": { + "$id": "2295", + "kind": 27, + "id": { + "$id": "2296", + "kind": 3, + "sv": "target", + "pos": 577, + "end": 583, + "flags": 0, + "parent": { + "$ref": "2295" + }, + "_id": 1358 + }, + "type": { + "$id": "2297", + "kind": 43, + "pos": 585, + "end": 592, + "flags": 0, + "parent": { + "$ref": "2295" + } + }, + "optional": false, + "rest": false, + "pos": 577, + "end": 592, + "flags": 0, + "parent": { + "$ref": "2292" + }, + "symbol": { + "declarations": [ + { + "$ref": "2295" + } + ], + "name": "target", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 508 + } + }, + "parameters": [ + { + "$id": "2298", + "kind": 27, + "id": { + "$id": "2299", + "kind": 3, + "sv": "value", + "pos": 594, + "end": 599, + "flags": 0, + "parent": { + "$ref": "2298" + }, + "_id": 1359 + }, + "type": { + "$id": "2300", + "kind": 44, + "target": { + "$id": "2301", + "kind": 45, + "target": { + "$id": "2302", + "kind": 3, + "sv": "boolean", + "pos": 609, + "end": 616, + "flags": 1, + "parent": { + "$ref": "2301" + }, + "_id": 1361 + }, + "arguments": [], + "pos": 609, + "end": 616, + "flags": 1, + "parent": { + "$ref": "2300" + }, + "_id": 1360 + }, + "pos": 601, + "end": 616, + "flags": 0, + "parent": { + "$ref": "2298" + } + }, + "optional": false, + "rest": false, + "pos": 594, + "end": 616, + "flags": 0, + "parent": { + "$ref": "2292" + }, + "symbol": { + "declarations": [ + { + "$ref": "2298" + } + ], + "name": "value", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 509 + } + } + ], + "pos": 349, + "end": 618, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2303", + "kind": 51, + "content": [ + { + "$id": "2304", + "kind": 52, + "text": "Specify if inapplicable metadata should be included in the payload for the given entity.", + "pos": 352, + "end": 448, + "flags": 0, + "parent": { + "$ref": "2303" + } + } + ], + "tags": [ + { + "$id": "2305", + "kind": 53, + "tagName": { + "$id": "2306", + "kind": 3, + "sv": "param", + "pos": 449, + "end": 454, + "flags": 0, + "parent": { + "$ref": "2305" + } + }, + "paramName": { + "$id": "2307", + "kind": 3, + "sv": "value", + "pos": 455, + "end": 460, + "flags": 0, + "parent": { + "$ref": "2305" + } + }, + "content": [ + { + "$id": "2308", + "kind": 52, + "text": "If true, inapplicable metadata will be included in the payload.", + "pos": 461, + "end": 526, + "flags": 0, + "parent": { + "$ref": "2305" + } + } + ], + "pos": 448, + "end": 526, + "flags": 0, + "parent": { + "$ref": "2303" + } + } + ], + "pos": 349, + "end": 528, + "flags": 0, + "parent": { + "$ref": "2292" + } + } + ], + "parent": { + "$ref": "2250" + }, + "symbol": { + "declarations": [ + { + "$ref": "2292" + } + ], + "name": "@includeInapplicableMetadataInPayload", + "flags": 1049088, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2309", + "kind": 21, + "id": { + "$id": "2310", + "kind": 3, + "sv": "MergePatchVisibilityMode", + "pos": 687, + "end": 711, + "flags": 0, + "parent": { + "$ref": "2309" + }, + "_id": 1202 + }, + "decorators": [], + "members": [ + { + "$id": "2311", + "kind": 22, + "id": { + "$id": "2312", + "kind": 3, + "sv": "Update", + "pos": 818, + "end": 824, + "flags": 0, + "parent": { + "$ref": "2311" + }, + "_id": 1203 + }, + "decorators": [], + "pos": 716, + "end": 824, + "flags": 0, + "docs": [ + { + "$id": "2313", + "kind": 51, + "content": [ + { + "$id": "2314", + "kind": 52, + "text": "The Update mode. This is used when a resource can be updated but must already exist.", + "pos": 719, + "end": 813, + "flags": 0, + "parent": { + "$ref": "2313" + } + } + ], + "tags": [], + "pos": 716, + "end": 815, + "flags": 0, + "parent": { + "$ref": "2311" + } + } + ], + "directives": [], + "parent": { + "$ref": "2309" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2311" + }, + "name": "Update", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2309" + } + ], + "name": "MergePatchVisibilityMode", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 137 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2315", + "kind": 22, + "id": { + "$id": "2316", + "kind": 3, + "sv": "CreateOrUpdate", + "pos": 951, + "end": 965, + "flags": 0, + "parent": { + "$ref": "2315" + }, + "_id": 1204 + }, + "decorators": [], + "pos": 829, + "end": 965, + "flags": 0, + "docs": [ + { + "$id": "2317", + "kind": 51, + "content": [ + { + "$id": "2318", + "kind": 52, + "text": "The Create or Update mode. This is used when a resource can be created OR updated in a single operation.", + "pos": 832, + "end": 946, + "flags": 0, + "parent": { + "$ref": "2317" + } + } + ], + "tags": [], + "pos": 829, + "end": 948, + "flags": 0, + "parent": { + "$ref": "2315" + } + } + ], + "directives": [], + "parent": { + "$ref": "2309" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2315" + }, + "name": "CreateOrUpdate", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2309" + } + ], + "name": "MergePatchVisibilityMode", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 137 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "pos": 620, + "end": 968, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2319", + "kind": 51, + "content": [ + { + "$id": "2320", + "kind": 52, + "text": "The visibility mode for the merge patch transform.", + "pos": 623, + "end": 679, + "flags": 0, + "parent": { + "$ref": "2319" + } + } + ], + "tags": [], + "pos": 620, + "end": 681, + "flags": 0, + "parent": { + "$ref": "2309" + } + } + ], + "parent": { + "$ref": "2250" + }, + "symbol": { + "declarations": [ + { + "$ref": "2309" + } + ], + "name": "MergePatchVisibilityMode", + "members": { + "duplicates": {} + }, + "flags": 1048592, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 137 + } + }, + { + "$id": "2321", + "kind": 13, + "id": { + "$id": "2322", + "kind": 3, + "sv": "ApplyMergePatchOptions", + "pos": 1033, + "end": 1055, + "flags": 0, + "parent": { + "$ref": "2321" + }, + "_id": 1198 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "2323", + "kind": 15, + "id": { + "$id": "2324", + "kind": 3, + "sv": "visibilityMode", + "pos": 1105, + "end": 1119, + "flags": 0, + "parent": { + "$ref": "2323" + }, + "_id": 1199 + }, + "decorators": [], + "value": { + "$id": "2325", + "kind": 45, + "target": { + "$id": "2326", + "kind": 3, + "sv": "MergePatchVisibilityMode", + "pos": 1121, + "end": 1145, + "flags": 1, + "parent": { + "$ref": "2325" + }, + "_id": 1201 + }, + "arguments": [], + "pos": 1121, + "end": 1145, + "flags": 1, + "parent": { + "$ref": "2323" + }, + "_id": 1200 + }, + "optional": false, + "pos": 1060, + "end": 1145, + "flags": 0, + "docs": [ + { + "$id": "2327", + "kind": 51, + "content": [ + { + "$id": "2328", + "kind": 52, + "text": "The visibility mode to use.", + "pos": 1063, + "end": 1100, + "flags": 0, + "parent": { + "$ref": "2327" + } + } + ], + "tags": [], + "pos": 1060, + "end": 1102, + "flags": 0, + "parent": { + "$ref": "2323" + } + } + ], + "directives": [], + "parent": { + "$ref": "2321" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2323" + }, + "name": "visibilityMode", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2321" + } + ], + "name": "ApplyMergePatchOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 136 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 1056, + "end": 1148 + }, + "pos": 970, + "end": 1148, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2329", + "kind": 51, + "content": [ + { + "$id": "2330", + "kind": 52, + "text": "Options for the `@applyMergePatch` decorator.", + "pos": 973, + "end": 1024, + "flags": 0, + "parent": { + "$ref": "2329" + } + } + ], + "tags": [], + "pos": 970, + "end": 1026, + "flags": 0, + "parent": { + "$ref": "2321" + } + } + ], + "parent": { + "$ref": "2250" + }, + "symbol": { + "declarations": [ + { + "$ref": "2321" + } + ], + "name": "ApplyMergePatchOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 136 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2331", + "kind": 25, + "modifiers": [ + { + "$id": "2332", + "kind": 40, + "pos": 1289, + "end": 1295, + "flags": 0, + "parent": { + "$ref": "2331" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2333", + "kind": 3, + "sv": "applyMergePatch", + "pos": 1300, + "end": 1315, + "flags": 0, + "parent": { + "$ref": "2331" + }, + "_id": 1181 + }, + "target": { + "$id": "2334", + "kind": 27, + "id": { + "$id": "2335", + "kind": 3, + "sv": "target", + "pos": 1319, + "end": 1325, + "flags": 0, + "parent": { + "$ref": "2334" + }, + "_id": 1182 + }, + "type": { + "$id": "2336", + "kind": 45, + "target": { + "$id": "2337", + "kind": 7, + "base": { + "$id": "2338", + "kind": 3, + "sv": "Reflection", + "pos": 1327, + "end": 1337, + "flags": 1, + "parent": { + "$ref": "2337" + }, + "_id": 1185 + }, + "id": { + "$id": "2339", + "kind": 3, + "sv": "Model", + "pos": 1338, + "end": 1343, + "flags": 1, + "parent": { + "$ref": "2337" + }, + "_id": 1186 + }, + "selector": ".", + "pos": 1327, + "end": 1343, + "flags": 1, + "parent": { + "$ref": "2336" + }, + "_id": 1184 + }, + "arguments": [], + "pos": 1327, + "end": 1343, + "flags": 1, + "parent": { + "$ref": "2334" + }, + "_id": 1183 + }, + "optional": false, + "rest": false, + "pos": 1319, + "end": 1343, + "flags": 0, + "parent": { + "$ref": "2331" + }, + "symbol": { + "declarations": [ + { + "$ref": "2334" + } + ], + "name": "target", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 460 + } + }, + "parameters": [ + { + "$id": "2340", + "kind": 27, + "id": { + "$id": "2341", + "kind": 3, + "sv": "source", + "pos": 1347, + "end": 1353, + "flags": 0, + "parent": { + "$ref": "2340" + }, + "_id": 1187 + }, + "type": { + "$id": "2342", + "kind": 45, + "target": { + "$id": "2343", + "kind": 7, + "base": { + "$id": "2344", + "kind": 3, + "sv": "Reflection", + "pos": 1355, + "end": 1365, + "flags": 1, + "parent": { + "$ref": "2343" + }, + "_id": 1190 + }, + "id": { + "$id": "2345", + "kind": 3, + "sv": "Model", + "pos": 1366, + "end": 1371, + "flags": 1, + "parent": { + "$ref": "2343" + }, + "_id": 1191 + }, + "selector": ".", + "pos": 1355, + "end": 1371, + "flags": 1, + "parent": { + "$ref": "2342" + }, + "_id": 1189 + }, + "arguments": [], + "pos": 1355, + "end": 1371, + "flags": 1, + "parent": { + "$ref": "2340" + }, + "_id": 1188 + }, + "optional": false, + "rest": false, + "pos": 1347, + "end": 1371, + "flags": 0, + "parent": { + "$ref": "2331" + }, + "symbol": { + "declarations": [ + { + "$ref": "2340" + } + ], + "name": "source", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 461 + } + }, + { + "$id": "2346", + "kind": 27, + "id": { + "$id": "2347", + "kind": 3, + "sv": "nameTemplate", + "pos": 1375, + "end": 1387, + "flags": 0, + "parent": { + "$ref": "2346" + }, + "_id": 1192 + }, + "type": { + "$id": "2348", + "kind": 44, + "target": { + "$id": "2349", + "kind": 45, + "target": { + "$id": "2350", + "kind": 3, + "sv": "string", + "pos": 1397, + "end": 1403, + "flags": 1, + "parent": { + "$ref": "2349" + }, + "_id": 1194 + }, + "arguments": [], + "pos": 1397, + "end": 1403, + "flags": 1, + "parent": { + "$ref": "2348" + }, + "_id": 1193 + }, + "pos": 1389, + "end": 1403, + "flags": 0, + "parent": { + "$ref": "2346" + } + }, + "optional": false, + "rest": false, + "pos": 1375, + "end": 1403, + "flags": 0, + "parent": { + "$ref": "2331" + }, + "symbol": { + "declarations": [ + { + "$ref": "2346" + } + ], + "name": "nameTemplate", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 462 + } + }, + { + "$id": "2351", + "kind": 27, + "id": { + "$id": "2352", + "kind": 3, + "sv": "options", + "pos": 1407, + "end": 1414, + "flags": 0, + "parent": { + "$ref": "2351" + }, + "_id": 1195 + }, + "type": { + "$id": "2353", + "kind": 44, + "target": { + "$id": "2354", + "kind": 45, + "target": { + "$id": "2355", + "kind": 3, + "sv": "ApplyMergePatchOptions", + "pos": 1424, + "end": 1446, + "flags": 1, + "parent": { + "$ref": "2354" + }, + "_id": 1197 + }, + "arguments": [], + "pos": 1424, + "end": 1446, + "flags": 1, + "parent": { + "$ref": "2353" + }, + "_id": 1196 + }, + "pos": 1416, + "end": 1446, + "flags": 0, + "parent": { + "$ref": "2351" + } + }, + "optional": false, + "rest": false, + "pos": 1407, + "end": 1446, + "flags": 0, + "parent": { + "$ref": "2331" + }, + "symbol": { + "declarations": [ + { + "$ref": "2351" + } + ], + "name": "options", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 463 + } + } + ], + "pos": 1150, + "end": 1449, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2356", + "kind": 51, + "content": [ + { + "$id": "2357", + "kind": 52, + "text": "Performs the canonical merge-patch transformation on the given model and injects its\ntransformed properties into the target.", + "pos": 1153, + "end": 1286, + "flags": 0, + "parent": { + "$ref": "2356" + } + } + ], + "tags": [], + "pos": 1150, + "end": 1288, + "flags": 0, + "parent": { + "$ref": "2331" + } + } + ], + "parent": { + "$ref": "2250" + }, + "symbol": { + "declarations": [ + { + "$ref": "2331" + } + ], + "name": "@applyMergePatch", + "flags": 1049088, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2358", + "kind": 25, + "modifiers": [ + { + "$id": "2359", + "kind": 40, + "pos": 1565, + "end": 1571, + "flags": 0, + "parent": { + "$ref": "2358" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2360", + "kind": 3, + "sv": "mergePatchModel", + "pos": 1576, + "end": 1591, + "flags": 0, + "parent": { + "$ref": "2358" + }, + "_id": 1362 + }, + "target": { + "$id": "2361", + "kind": 27, + "id": { + "$id": "2362", + "kind": 3, + "sv": "target", + "pos": 1592, + "end": 1598, + "flags": 0, + "parent": { + "$ref": "2361" + }, + "_id": 1363 + }, + "type": { + "$id": "2363", + "kind": 45, + "target": { + "$id": "2364", + "kind": 7, + "base": { + "$id": "2365", + "kind": 3, + "sv": "Reflection", + "pos": 1600, + "end": 1610, + "flags": 1, + "parent": { + "$ref": "2364" + }, + "_id": 1366 + }, + "id": { + "$id": "2366", + "kind": 3, + "sv": "Model", + "pos": 1611, + "end": 1616, + "flags": 1, + "parent": { + "$ref": "2364" + }, + "_id": 1367 + }, + "selector": ".", + "pos": 1600, + "end": 1616, + "flags": 1, + "parent": { + "$ref": "2363" + }, + "_id": 1365 + }, + "arguments": [], + "pos": 1600, + "end": 1616, + "flags": 1, + "parent": { + "$ref": "2361" + }, + "_id": 1364 + }, + "optional": false, + "rest": false, + "pos": 1592, + "end": 1616, + "flags": 0, + "parent": { + "$ref": "2358" + }, + "symbol": { + "declarations": [ + { + "$ref": "2361" + } + ], + "name": "target", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 511 + } + }, + "parameters": [ + { + "$id": "2367", + "kind": 27, + "id": { + "$id": "2368", + "kind": 3, + "sv": "source", + "pos": 1618, + "end": 1624, + "flags": 0, + "parent": { + "$ref": "2367" + }, + "_id": 1368 + }, + "type": { + "$id": "2369", + "kind": 45, + "target": { + "$id": "2370", + "kind": 7, + "base": { + "$id": "2371", + "kind": 3, + "sv": "Reflection", + "pos": 1626, + "end": 1636, + "flags": 1, + "parent": { + "$ref": "2370" + }, + "_id": 1371 + }, + "id": { + "$id": "2372", + "kind": 3, + "sv": "Model", + "pos": 1637, + "end": 1642, + "flags": 1, + "parent": { + "$ref": "2370" + }, + "_id": 1372 + }, + "selector": ".", + "pos": 1626, + "end": 1642, + "flags": 1, + "parent": { + "$ref": "2369" + }, + "_id": 1370 + }, + "arguments": [], + "pos": 1626, + "end": 1642, + "flags": 1, + "parent": { + "$ref": "2367" + }, + "_id": 1369 + }, + "optional": false, + "rest": false, + "pos": 1618, + "end": 1642, + "flags": 0, + "parent": { + "$ref": "2358" + }, + "symbol": { + "declarations": [ + { + "$ref": "2367" + } + ], + "name": "source", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 512 + } + } + ], + "pos": 1451, + "end": 1644, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2373", + "kind": 51, + "content": [ + { + "$id": "2374", + "kind": 52, + "text": "Marks a model that was generated by applying the MergePatch\ntransform and links to its source model", + "pos": 1454, + "end": 1562, + "flags": 0, + "parent": { + "$ref": "2373" + } + } + ], + "tags": [], + "pos": 1451, + "end": 1564, + "flags": 0, + "parent": { + "$ref": "2358" + } + } + ], + "parent": { + "$ref": "2250" + }, + "symbol": { + "declarations": [ + { + "$ref": "2358" + } + ], + "name": "@mergePatchModel", + "flags": 1049088, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2375", + "kind": 25, + "modifiers": [ + { + "$id": "2376", + "kind": 40, + "pos": 1748, + "end": 1754, + "flags": 0, + "parent": { + "$ref": "2375" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2377", + "kind": 3, + "sv": "mergePatchProperty", + "pos": 1759, + "end": 1777, + "flags": 0, + "parent": { + "$ref": "2375" + }, + "_id": 1373 + }, + "target": { + "$id": "2378", + "kind": 27, + "id": { + "$id": "2379", + "kind": 3, + "sv": "target", + "pos": 1778, + "end": 1784, + "flags": 0, + "parent": { + "$ref": "2378" + }, + "_id": 1374 + }, + "type": { + "$id": "2380", + "kind": 45, + "target": { + "$id": "2381", + "kind": 7, + "base": { + "$id": "2382", + "kind": 3, + "sv": "Reflection", + "pos": 1786, + "end": 1796, + "flags": 1, + "parent": { + "$ref": "2381" + }, + "_id": 1377 + }, + "id": { + "$id": "2383", + "kind": 3, + "sv": "ModelProperty", + "pos": 1797, + "end": 1810, + "flags": 1, + "parent": { + "$ref": "2381" + }, + "_id": 1378 + }, + "selector": ".", + "pos": 1786, + "end": 1810, + "flags": 1, + "parent": { + "$ref": "2380" + }, + "_id": 1376 + }, + "arguments": [], + "pos": 1786, + "end": 1810, + "flags": 1, + "parent": { + "$ref": "2378" + }, + "_id": 1375 + }, + "optional": false, + "rest": false, + "pos": 1778, + "end": 1810, + "flags": 0, + "parent": { + "$ref": "2375" + }, + "symbol": { + "declarations": [ + { + "$ref": "2378" + } + ], + "name": "target", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 514 + } + }, + "parameters": [ + { + "$id": "2384", + "kind": 27, + "id": { + "$id": "2385", + "kind": 3, + "sv": "source", + "pos": 1812, + "end": 1818, + "flags": 0, + "parent": { + "$ref": "2384" + }, + "_id": 1379 + }, + "type": { + "$id": "2386", + "kind": 45, + "target": { + "$id": "2387", + "kind": 7, + "base": { + "$id": "2388", + "kind": 3, + "sv": "Reflection", + "pos": 1820, + "end": 1830, + "flags": 1, + "parent": { + "$ref": "2387" + }, + "_id": 1382 + }, + "id": { + "$id": "2389", + "kind": 3, + "sv": "ModelProperty", + "pos": 1831, + "end": 1844, + "flags": 1, + "parent": { + "$ref": "2387" + }, + "_id": 1383 + }, + "selector": ".", + "pos": 1820, + "end": 1844, + "flags": 1, + "parent": { + "$ref": "2386" + }, + "_id": 1381 + }, + "arguments": [], + "pos": 1820, + "end": 1844, + "flags": 1, + "parent": { + "$ref": "2384" + }, + "_id": 1380 + }, + "optional": false, + "rest": false, + "pos": 1812, + "end": 1844, + "flags": 0, + "parent": { + "$ref": "2375" + }, + "symbol": { + "declarations": [ + { + "$ref": "2384" + } + ], + "name": "source", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 515 + } + } + ], + "pos": 1646, + "end": 1846, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2390", + "kind": 51, + "content": [ + { + "$id": "2391", + "kind": 52, + "text": "Links a modelProperty mutated as part of a mergePatch transform to\nits source property;", + "pos": 1649, + "end": 1745, + "flags": 0, + "parent": { + "$ref": "2390" + } + } + ], + "tags": [], + "pos": 1646, + "end": 1747, + "flags": 0, + "parent": { + "$ref": "2375" + } + } + ], + "parent": { + "$ref": "2250" + }, + "symbol": { + "declarations": [ + { + "$ref": "2375" + } + ], + "name": "@mergePatchProperty", + "flags": 1049088, + "parent": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "file": { + "text": "/**\n * Private decorators. Those are meant for internal use inside Http types only.\n */\nnamespace TypeSpec.Http.Private;\n\nextern dec plainData(target: TypeSpec.Reflection.Model);\nextern dec httpFile(target: TypeSpec.Reflection.Model);\nextern dec httpPart(\n target: TypeSpec.Reflection.Model,\n type: unknown,\n options: valueof HttpPartOptions\n);\n\n/**\n * Specify if inapplicable metadata should be included in the payload for the given entity.\n * @param value If true, inapplicable metadata will be included in the payload.\n */\nextern dec includeInapplicableMetadataInPayload(target: unknown, value: valueof boolean);\n\n/**\n * The visibility mode for the merge patch transform.\n */\nenum MergePatchVisibilityMode {\n /**\n * The Update mode. This is used when a resource can be updated but must already exist.\n */\n Update,\n\n /**\n * The Create or Update mode. This is used when a resource can be created OR updated in a single operation.\n */\n CreateOrUpdate,\n}\n\n/**\n * Options for the `@applyMergePatch` decorator.\n */\nmodel ApplyMergePatchOptions {\n /**\n * The visibility mode to use.\n */\n visibilityMode: MergePatchVisibilityMode;\n}\n\n/**\n * Performs the canonical merge-patch transformation on the given model and injects its\n * transformed properties into the target.\n */\nextern dec applyMergePatch(\n target: Reflection.Model,\n source: Reflection.Model,\n nameTemplate: valueof string,\n options: valueof ApplyMergePatchOptions\n);\n\n/**\n * Marks a model that was generated by applying the MergePatch\n * transform and links to its source model\n */\nextern dec mergePatchModel(target: Reflection.Model, source: Reflection.Model);\n\n/**\n * Links a modelProperty mutated as part of a mergePatch transform to\n * its source property;\n */\nextern dec mergePatchProperty(target: Reflection.ModelProperty, source: Reflection.ModelProperty);\n", + "path": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http/lib/private.decorators.tsp" + }, + "id": { + "$id": "2392", + "kind": 3, + "sv": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http/lib/private.decorators.tsp", + "pos": 0, + "end": 0, + "flags": 8, + "parent": { + "$ref": "2250" + } + }, + "namespaces": [ + { + "$ref": "2248" + }, + { + "$ref": "2246" + }, + { + "$ref": "2242" + } + ], + "usings": [], + "locals": { + "duplicates": {} + }, + "inScopeNamespaces": [ + { + "$ref": "2242" + }, + { + "$ref": "2246" + }, + { + "$ref": "2248" + } + ], + "parseDiagnostics": [], + "comments": [], + "printable": true, + "parseOptions": {}, + "pos": 0, + "end": 1846, + "flags": 0, + "symbol": { + "declarations": [], + "node": { + "$ref": "2250" + }, + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http/lib/private.decorators.tsp", + "exports": { + "duplicates": {} + }, + "flags": 32768, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "symbol": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "symbol": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "symbol": { + "declarations": [ + { + "$ref": "2242" + } + ], + "name": "Private", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2246" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2248" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "models": {}, + "scalars": {}, + "operations": {}, + "namespaces": {}, + "interfaces": {}, + "unions": {}, + "enums": {}, + "decoratorDeclarations": {}, + "functionDeclarations": {}, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$id": "2393", + "kind": "String", + "value": "Private decorators. Those are meant for internal use inside Http types only.", + "isFinished": true, + "entityKind": "Type" + }, + "jsValue": "Private decorators. Those are meant for internal use inside Http types only." + } + ] + } + ], + "isFinished": true, + "entityKind": "Type" + }, + "node": { + "$ref": "2262" + }, + "target": { + "$id": "2394", + "kind": "FunctionParameter", + "node": { + "$ref": "2265" + }, + "name": "target", + "optional": false, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "2267" + }, + "type": { + "$ref": "1993" + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + "parameters": [], + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + "node": { + "$ref": "416" + }, + "args": [] + }, + { + "definition": { + "$ref": "895" + }, + "node": { + "$ref": "413" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "A file in an HTTP request, response, or multipart payload.", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "414" + }, + "jsValue": "A file in an HTTP request, response, or multipart payload." + } + ] + } + ], + "sourceModels": [], + "derivedModels": [], + "isFinished": true, + "entityKind": "Type", + "templateMapper": { + "partial": false, + "args": [ + { + "entityKind": "Indeterminate", + "type": { + "$ref": "1987" + } + }, + { + "$ref": "1988" + } + ], + "source": { + "node": { + "$ref": "2027" + } + }, + "map": {} + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "40" + }, + "name": "File", + "members": { + "duplicates": {} + }, + "flags": 4194306, + "metatypeMembers": { + "duplicates": {} + }, + "type": { + "$ref": "2238" + } + }, + "templateNode": { + "$ref": "40" + } + } + } + } + }, + "properties": [ + { + "$id": "2395", + "kind": "property", + "name": "contentType", + "summary": "The allowed media (MIME) types of the file contents.", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "type": { + "$ref": "1" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "2396", + "kind": "property", + "name": "filename", + "summary": "The name of the file, if any.", + "doc": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.", + "type": { + "$id": "2397", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.filename", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "2398", + "kind": "property", + "name": "contents", + "summary": "The contents of the file.", + "doc": "The contents of the file.\n\nIn file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,\nthis value is serialized as a field in the response.", + "type": { + "$id": "2399", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contents", + "serializationOptions": {}, + "isHttpMetadata": false + } + ] + }, + { + "$id": "2400", + "kind": "model", + "name": "File1", + "namespace": "TypeSpec.Http", + "crossLanguageDefinitionId": "TypeSpec.Http.File", + "usage": "Input,Output,Json", + "doc": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below.", + "summary": "A file in an HTTP request, response, or multipart payload.", + "decorators": [], + "serializationOptions": { + "binary": { + "isFile": true, + "isText": false, + "contentTypes": [ + "application/json" + ], + "filename": { + "$id": "2401", + "kind": "ModelProperty", + "name": "filename", + "node": { + "$ref": "31" + }, + "optional": true, + "type": { + "$ref": "463" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$ref": "894" + }, + "jsValue": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators." + } + ] + }, + { + "definition": { + "$ref": "895" + }, + "node": { + "$ref": "33" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "The name of the file, if any.", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "34" + }, + "jsValue": "The name of the file, if any." + } + ] + } + ], + "isFinished": true, + "entityKind": "Type", + "templateMapper": { + "partial": false, + "args": [ + { + "entityKind": "Indeterminate", + "type": { + "$id": "2402", + "kind": "String", + "value": "application/json", + "isFinished": true, + "entityKind": "Type" + } + }, + { + "$ref": "1988" + } + ], + "source": { + "node": { + "$ref": "2068" + } + }, + "map": {} + }, + "model": { + "$id": "2403", + "kind": "Model", + "name": "File", + "node": { + "$ref": "40" + }, + "properties": {}, + "namespace": { + "$ref": "887" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$ref": "2239" + }, + "jsValue": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below." + } + ] + }, + { + "definition": { + "$ref": "2240" + }, + "node": { + "$ref": "416" + }, + "args": [] + }, + { + "definition": { + "$ref": "895" + }, + "node": { + "$ref": "413" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "A file in an HTTP request, response, or multipart payload.", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "414" + }, + "jsValue": "A file in an HTTP request, response, or multipart payload." + } + ] + } + ], + "sourceModels": [], + "derivedModels": [], + "isFinished": true, + "entityKind": "Type", + "templateMapper": { + "partial": false, + "args": [ + { + "entityKind": "Indeterminate", + "type": { + "$ref": "2402" + } + }, + { + "$ref": "1988" + } + ], + "source": { + "node": { + "$ref": "2068" + } + }, + "map": {} + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "40" + }, + "name": "File", + "members": { + "duplicates": {} + }, + "flags": 4194306, + "metatypeMembers": { + "duplicates": {} + }, + "type": { + "$ref": "2403" + } + }, + "templateNode": { + "$ref": "40" + } + } + } + } + }, + "properties": [ + { + "$id": "2404", + "kind": "property", + "name": "contentType", + "summary": "The allowed media (MIME) types of the file contents.", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "type": { + "$ref": "5" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "2405", + "kind": "property", + "name": "filename", + "summary": "The name of the file, if any.", + "doc": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.", + "type": { + "$id": "2406", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.filename", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "2407", + "kind": "property", + "name": "contents", + "summary": "The contents of the file.", + "doc": "The contents of the file.\n\nIn file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,\nthis value is serialized as a field in the response.", + "type": { + "$id": "2408", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contents", + "serializationOptions": {}, + "isHttpMetadata": false + } + ] + }, + { + "$id": "2409", + "kind": "model", + "name": "File2", + "namespace": "TypeSpec.Http", + "crossLanguageDefinitionId": "TypeSpec.Http.File", + "usage": "Input", + "doc": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below.", + "summary": "A file in an HTTP request, response, or multipart payload.", + "decorators": [], + "serializationOptions": { + "binary": { + "isFile": true, + "isText": false, + "contentTypes": [ + "image/png", + "image/jpeg" + ], + "filename": { + "$id": "2410", + "kind": "ModelProperty", + "name": "filename", + "node": { + "$ref": "31" + }, + "optional": true, + "type": { + "$ref": "463" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$ref": "894" + }, + "jsValue": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators." + } + ] + }, + { + "definition": { + "$ref": "895" + }, + "node": { + "$ref": "33" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "The name of the file, if any.", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "34" + }, + "jsValue": "The name of the file, if any." + } + ] + } + ], + "isFinished": true, + "entityKind": "Type", + "templateMapper": { + "partial": false, + "args": [ + { + "$id": "2411", + "kind": "Union", + "node": { + "$ref": "2159" + }, + "options": [ + { + "$ref": "1987" + }, + { + "$id": "2412", + "kind": "String", + "value": "image/jpeg", + "isFinished": true, + "entityKind": "Type" + } + ], + "expression": true, + "namespace": { + "$id": "2413", + "kind": "Namespace", + "name": "Body", + "namespace": { + "$id": "2414", + "kind": "Namespace", + "name": "File", + "namespace": { + "$id": "2415", + "kind": "Namespace", + "name": "Type", + "namespace": { + "$ref": "720" + }, + "node": { + "$ref": "2082" + }, + "models": {}, + "scalars": {}, + "operations": {}, + "namespaces": {}, + "interfaces": {}, + "unions": {}, + "enums": {}, + "decoratorDeclarations": {}, + "functionDeclarations": {}, + "decorators": [], + "isFinished": true, + "entityKind": "Type" + }, + "node": { + "$ref": "2074" + }, + "models": {}, + "scalars": {}, + "operations": {}, + "namespaces": {}, + "interfaces": {}, + "unions": {}, + "enums": {}, + "decoratorDeclarations": {}, + "functionDeclarations": {}, + "decorators": [ + { + "definition": { + "$id": "2416", + "kind": "Decorator", + "name": "@scenarioService", + "namespace": { + "$id": "2417", + "kind": "Namespace", + "name": "Spector", + "namespace": { + "$ref": "719" + }, + "node": { + "$id": "2418", + "kind": 60, + "id": { + "$id": "2419", + "kind": 3, + "sv": "Spector", + "pos": 0, + "end": 0, + "flags": 0 + }, + "pos": 0, + "end": 0, + "parent": { + "$id": "2420", + "kind": 1, + "id": { + "$id": "2421", + "kind": 3, + "sv": "", + "pos": 0, + "end": 0, + "flags": 8 + }, + "esmExports": { + "$decorators": { + "TypeSpec.Spector": {} + }, + "$lib": { + "name": "@typespec/spector", + "diagnostics": { + "category-invalid": { + "severity": "error", + "messages": {} + }, + "missing-scenario": { + "severity": "warning", + "messages": { + "default": "Operation doesn't belong to a scenario. Use @scenario(name?: string) to mark it as a scenario. See https://github.com/Azure/cadl-ranch/blob/main/docs/decorators.md#scenario" + } + }, + "missing-scenario-doc": { + "severity": "warning", + "messages": { + "default": "Operation is missing a scenario doc. Use @scenarioDoc to provide the name of the scenario. See https://github.com/Azure/cadl-ranch/blob/main/docs/decorators.md#scenariodoc" + } + } + }, + "state": { + "Scenario": { + "description": "Mark a scenario to be executed" + }, + "ScenarioDoc": { + "description": "Mark a scenario documentation" + }, + "ScenarioService": { + "description": "Mark a scenario service to be executed" + } + }, + "stateKeys": {} + } + }, + "file": { + "text": "", + "path": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/spector/dist/src/lib/tsp-index.js" + }, + "namespaceSymbols": [], + "symbol": { + "declarations": [ + { + "$ref": "2420" + } + ], + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/spector/dist/src/lib/tsp-index.js", + "exports": { + "duplicates": {} + }, + "flags": 1081344, + "metatypeMembers": { + "duplicates": {} + } + }, + "pos": 0, + "end": 0, + "flags": 0 + }, + "flags": 0, + "symbol": { + "declarations": [ + { + "$ref": "2418" + } + ], + "name": "Spector", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$id": "2422", + "kind": 60, + "id": { + "$id": "2423", + "kind": 3, + "sv": "TypeSpec", + "pos": 0, + "end": 0, + "flags": 0 + }, + "pos": 0, + "end": 0, + "parent": { + "$ref": "2420" + }, + "flags": 0 + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2420" + } + ], + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/spector/dist/src/lib/tsp-index.js", + "exports": { + "duplicates": {} + }, + "flags": 1081344, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "models": {}, + "scalars": {}, + "operations": {}, + "namespaces": {}, + "interfaces": {}, + "unions": {}, + "enums": {}, + "decoratorDeclarations": {}, + "functionDeclarations": {}, + "decorators": [], + "isFinished": true, + "entityKind": "Type" + }, + "node": { + "$id": "2424", + "kind": 25, + "modifiers": [ + { + "$id": "2425", + "kind": 40, + "pos": 310, + "end": 316, + "flags": 0, + "parent": { + "$ref": "2424" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2426", + "kind": 3, + "sv": "scenarioService", + "pos": 321, + "end": 336, + "flags": 0, + "parent": { + "$ref": "2424" + }, + "_id": 831 + }, + "target": { + "$id": "2427", + "kind": 27, + "id": { + "$id": "2428", + "kind": 3, + "sv": "target", + "pos": 340, + "end": 346, + "flags": 0, + "parent": { + "$ref": "2427" + }, + "_id": 832 + }, + "type": { + "$id": "2429", + "kind": 45, + "target": { + "$id": "2430", + "kind": 3, + "sv": "Namespace", + "pos": 348, + "end": 357, + "flags": 1, + "parent": { + "$ref": "2429" + }, + "_id": 834 + }, + "arguments": [], + "pos": 348, + "end": 357, + "flags": 1, + "parent": { + "$ref": "2427" + }, + "_id": 833 + }, + "optional": false, + "rest": false, + "pos": 340, + "end": 357, + "flags": 0, + "parent": { + "$ref": "2424" + }, + "symbol": { + "declarations": [ + { + "$ref": "2427" + } + ], + "name": "target", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$id": "2431", + "kind": 8, + "decorators": [], + "docs": [], + "id": { + "$id": "2432", + "kind": 3, + "sv": "Spector", + "pos": 87, + "end": 94, + "flags": 0, + "parent": { + "$ref": "2431" + }, + "_id": 1593 + }, + "locals": { + "duplicates": {} + }, + "directives": [], + "pos": 68, + "end": 95, + "flags": 0, + "parent": { + "$id": "2433", + "kind": 8, + "decorators": [], + "directives": [], + "id": { + "$id": "2434", + "kind": 3, + "sv": "TypeSpec", + "pos": 78, + "end": 86, + "flags": 0, + "parent": { + "$ref": "2433" + }, + "_id": 1592 + }, + "statements": { + "$ref": "2431" + }, + "locals": { + "duplicates": {} + }, + "pos": 68, + "end": 95, + "flags": 0, + "parent": { + "$id": "2435", + "kind": 0, + "statements": [ + { + "$id": "2436", + "kind": 2, + "path": { + "$id": "2437", + "kind": 32, + "value": "../dist/src/lib/tsp-index.js", + "pos": 7, + "end": 37, + "flags": 0, + "parent": { + "$ref": "2436" + } + }, + "pos": 0, + "end": 38, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2435" + } + }, + { + "$id": "2438", + "kind": 9, + "name": { + "$id": "2439", + "kind": 7, + "base": { + "$id": "2440", + "kind": 3, + "sv": "TypeSpec", + "pos": 46, + "end": 54, + "flags": 1, + "parent": { + "$ref": "2439" + }, + "_id": 13 + }, + "id": { + "$id": "2441", + "kind": 3, + "sv": "Reflection", + "pos": 55, + "end": 65, + "flags": 1, + "parent": { + "$ref": "2439" + }, + "_id": 14 + }, + "selector": ".", + "pos": 46, + "end": 65, + "flags": 1, + "parent": { + "$ref": "2438" + }, + "_id": 12 + }, + "pos": 40, + "end": 66, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2435" + } + }, + { + "$ref": "2433" + }, + { + "$id": "2442", + "kind": 24, + "id": { + "$id": "2443", + "kind": 3, + "sv": "ScenarioServiceOptions", + "pos": 103, + "end": 125, + "flags": 0, + "parent": { + "$ref": "2442" + }, + "_id": 841 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "value": { + "$id": "2444", + "kind": 14, + "properties": [ + { + "$id": "2445", + "kind": 15, + "id": { + "$id": "2446", + "kind": 3, + "sv": "versioned", + "pos": 209, + "end": 218, + "flags": 0, + "parent": { + "$ref": "2445" + }, + "_id": 842 + }, + "decorators": [], + "value": { + "$id": "2447", + "kind": 45, + "target": { + "$id": "2448", + "kind": 3, + "sv": "Enum", + "pos": 221, + "end": 225, + "flags": 1, + "parent": { + "$ref": "2447" + }, + "_id": 844 + }, + "arguments": [], + "pos": 221, + "end": 225, + "flags": 1, + "parent": { + "$ref": "2445" + }, + "_id": 843 + }, + "optional": true, + "pos": 132, + "end": 225, + "flags": 0, + "docs": [ + { + "$id": "2449", + "kind": 51, + "content": [ + { + "$id": "2450", + "kind": 52, + "text": "Version enum that would be used on the $versioned decorator", + "pos": 135, + "end": 204, + "flags": 0, + "parent": { + "$ref": "2449" + } + } + ], + "tags": [], + "pos": 132, + "end": 206, + "flags": 0, + "parent": { + "$ref": "2445" + } + } + ], + "directives": [], + "parent": { + "$ref": "2444" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2445" + }, + "name": "versioned", + "flags": 65536, + "parent": { + "declarations": [], + "node": { + "$ref": "2444" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2442" + } + ], + "name": "ScenarioServiceOptions", + "flags": 1048704, + "metatypeMembers": { + "duplicates": {} + }, + "id": 94 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 95 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 128, + "end": 228 + }, + "pos": 128, + "end": 228, + "flags": 0, + "parent": { + "$ref": "2442" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2444" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "parent": { + "declarations": [ + { + "$ref": "2442" + } + ], + "name": "ScenarioServiceOptions", + "flags": 1048704, + "metatypeMembers": { + "duplicates": {} + }, + "id": 94 + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 95 + } + }, + "pos": 97, + "end": 229, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2435" + }, + "symbol": { + "declarations": [ + { + "$ref": "2442" + } + ], + "name": "ScenarioServiceOptions", + "flags": 1048704, + "metatypeMembers": { + "duplicates": {} + }, + "id": 94 + }, + "locals": { + "duplicates": {} + } + }, + { + "$ref": "2424" + }, + { + "$id": "2451", + "kind": 25, + "modifiers": [ + { + "$id": "2452", + "kind": 40, + "pos": 552, + "end": 558, + "flags": 0, + "parent": { + "$ref": "2451" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2453", + "kind": 3, + "sv": "scenario", + "pos": 563, + "end": 573, + "flags": 0, + "parent": { + "$ref": "2451" + }, + "_id": 860 + }, + "target": { + "$id": "2454", + "kind": 27, + "id": { + "$id": "2455", + "kind": 3, + "sv": "target", + "pos": 574, + "end": 580, + "flags": 0, + "parent": { + "$ref": "2454" + }, + "_id": 861 + }, + "type": { + "$id": "2456", + "kind": 28, + "options": [ + { + "$id": "2457", + "kind": 45, + "target": { + "$id": "2458", + "kind": 3, + "sv": "Namespace", + "pos": 582, + "end": 591, + "flags": 1, + "parent": { + "$ref": "2457" + }, + "_id": 863 + }, + "arguments": [], + "pos": 582, + "end": 591, + "flags": 1, + "parent": { + "$ref": "2456" + }, + "_id": 862 + }, + { + "$id": "2459", + "kind": 45, + "target": { + "$id": "2460", + "kind": 3, + "sv": "Interface", + "pos": 594, + "end": 603, + "flags": 1, + "parent": { + "$ref": "2459" + }, + "_id": 865 + }, + "arguments": [], + "pos": 594, + "end": 603, + "flags": 1, + "parent": { + "$ref": "2456" + }, + "_id": 864 + }, + { + "$id": "2461", + "kind": 45, + "target": { + "$id": "2462", + "kind": 3, + "sv": "Operation", + "pos": 606, + "end": 615, + "flags": 1, + "parent": { + "$ref": "2461" + }, + "_id": 867 + }, + "arguments": [], + "pos": 606, + "end": 615, + "flags": 1, + "parent": { + "$ref": "2456" + }, + "_id": 866 + } + ], + "pos": 582, + "end": 615, + "flags": 0, + "parent": { + "$ref": "2454" + } + }, + "optional": false, + "rest": false, + "pos": 574, + "end": 615, + "flags": 0, + "parent": { + "$ref": "2451" + }, + "symbol": { + "declarations": [ + { + "$ref": "2454" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 409 + } + }, + "parameters": [ + { + "$id": "2463", + "kind": 27, + "id": { + "$id": "2464", + "kind": 3, + "sv": "name", + "pos": 617, + "end": 621, + "flags": 0, + "parent": { + "$ref": "2463" + }, + "_id": 868 + }, + "type": { + "$id": "2465", + "kind": 44, + "target": { + "$id": "2466", + "kind": 45, + "target": { + "$id": "2467", + "kind": 3, + "sv": "string", + "pos": 632, + "end": 638, + "flags": 1, + "parent": { + "$ref": "2466" + }, + "_id": 870 + }, + "arguments": [], + "pos": 632, + "end": 638, + "flags": 1, + "parent": { + "$ref": "2465" + }, + "_id": 869 + }, + "pos": 624, + "end": 638, + "flags": 0, + "parent": { + "$ref": "2463" + } + }, + "optional": true, + "rest": false, + "pos": 617, + "end": 638, + "flags": 0, + "parent": { + "$ref": "2451" + }, + "symbol": { + "declarations": [ + { + "$ref": "2463" + } + ], + "name": "name", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 410 + } + } + ], + "pos": 423, + "end": 640, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2468", + "kind": 51, + "content": [ + { + "$id": "2469", + "kind": 52, + "text": "Mark an operation, interface or namespace as a scenario. All containing operations will be part of the same scenario.", + "pos": 426, + "end": 549, + "flags": 0, + "parent": { + "$ref": "2468" + } + } + ], + "tags": [], + "pos": 423, + "end": 551, + "flags": 0, + "parent": { + "$ref": "2451" + } + } + ], + "parent": { + "$ref": "2435" + }, + "symbol": { + "declarations": [ + { + "$ref": "2451" + } + ], + "name": "@scenario", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2470", + "kind": 25, + "modifiers": [ + { + "$id": "2471", + "kind": 40, + "pos": 776, + "end": 782, + "flags": 0, + "parent": { + "$ref": "2470" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2472", + "kind": 3, + "sv": "scenarioDoc", + "pos": 787, + "end": 798, + "flags": 0, + "parent": { + "$ref": "2470" + }, + "_id": 872 + }, + "target": { + "$id": "2473", + "kind": 27, + "id": { + "$id": "2474", + "kind": 3, + "sv": "target", + "pos": 802, + "end": 808, + "flags": 0, + "parent": { + "$ref": "2473" + }, + "_id": 873 + }, + "type": { + "$id": "2475", + "kind": 28, + "options": [ + { + "$id": "2476", + "kind": 45, + "target": { + "$id": "2477", + "kind": 3, + "sv": "Namespace", + "pos": 810, + "end": 819, + "flags": 1, + "parent": { + "$ref": "2476" + }, + "_id": 875 + }, + "arguments": [], + "pos": 810, + "end": 819, + "flags": 1, + "parent": { + "$ref": "2475" + }, + "_id": 874 + }, + { + "$id": "2478", + "kind": 45, + "target": { + "$id": "2479", + "kind": 3, + "sv": "Interface", + "pos": 822, + "end": 831, + "flags": 1, + "parent": { + "$ref": "2478" + }, + "_id": 877 + }, + "arguments": [], + "pos": 822, + "end": 831, + "flags": 1, + "parent": { + "$ref": "2475" + }, + "_id": 876 + }, + { + "$id": "2480", + "kind": 45, + "target": { + "$id": "2481", + "kind": 3, + "sv": "Operation", + "pos": 834, + "end": 843, + "flags": 1, + "parent": { + "$ref": "2480" + }, + "_id": 879 + }, + "arguments": [], + "pos": 834, + "end": 843, + "flags": 1, + "parent": { + "$ref": "2475" + }, + "_id": 878 + } + ], + "pos": 810, + "end": 843, + "flags": 0, + "parent": { + "$ref": "2473" + } + }, + "optional": false, + "rest": false, + "pos": 802, + "end": 843, + "flags": 0, + "parent": { + "$ref": "2470" + }, + "symbol": { + "declarations": [ + { + "$ref": "2473" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 412 + } + }, + "parameters": [ + { + "$id": "2482", + "kind": 27, + "id": { + "$id": "2483", + "kind": 3, + "sv": "doc", + "pos": 847, + "end": 850, + "flags": 0, + "parent": { + "$ref": "2482" + }, + "_id": 880 + }, + "type": { + "$id": "2484", + "kind": 44, + "target": { + "$id": "2485", + "kind": 45, + "target": { + "$id": "2486", + "kind": 3, + "sv": "string", + "pos": 860, + "end": 866, + "flags": 1, + "parent": { + "$ref": "2485" + }, + "_id": 882 + }, + "arguments": [], + "pos": 860, + "end": 866, + "flags": 1, + "parent": { + "$ref": "2484" + }, + "_id": 881 + }, + "pos": 852, + "end": 866, + "flags": 0, + "parent": { + "$ref": "2482" + } + }, + "optional": false, + "rest": false, + "pos": 847, + "end": 866, + "flags": 0, + "parent": { + "$ref": "2470" + }, + "symbol": { + "declarations": [ + { + "$ref": "2482" + } + ], + "name": "doc", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 413 + } + }, + { + "$id": "2487", + "kind": 27, + "id": { + "$id": "2488", + "kind": 3, + "sv": "formatArgs", + "pos": 870, + "end": 880, + "flags": 0, + "parent": { + "$ref": "2487" + }, + "_id": 883 + }, + "type": { + "$id": "2489", + "kind": 45, + "target": { + "$id": "2490", + "kind": 3, + "sv": "Model", + "pos": 883, + "end": 888, + "flags": 1, + "parent": { + "$ref": "2489" + }, + "_id": 885 + }, + "arguments": [], + "pos": 883, + "end": 888, + "flags": 1, + "parent": { + "$ref": "2487" + }, + "_id": 884 + }, + "optional": true, + "rest": false, + "pos": 870, + "end": 888, + "flags": 0, + "parent": { + "$ref": "2470" + }, + "symbol": { + "declarations": [ + { + "$ref": "2487" + } + ], + "name": "formatArgs", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 414 + } + } + ], + "pos": 642, + "end": 891, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2491", + "kind": 51, + "content": [ + { + "$id": "2492", + "kind": 52, + "text": "Specify documentation on how to implement this scenario.", + "pos": 645, + "end": 709, + "flags": 0, + "parent": { + "$ref": "2491" + } + } + ], + "tags": [ + { + "$id": "2493", + "kind": 53, + "tagName": { + "$id": "2494", + "kind": 3, + "sv": "param", + "pos": 710, + "end": 715, + "flags": 0, + "parent": { + "$ref": "2493" + } + }, + "paramName": { + "$id": "2495", + "kind": 3, + "sv": "doc", + "pos": 716, + "end": 719, + "flags": 0, + "parent": { + "$ref": "2493" + } + }, + "content": [ + { + "$id": "2496", + "kind": 52, + "text": "Documentation", + "pos": 720, + "end": 737, + "flags": 0, + "parent": { + "$ref": "2493" + } + } + ], + "pos": 709, + "end": 737, + "flags": 0, + "parent": { + "$ref": "2491" + } + }, + { + "$id": "2497", + "kind": 53, + "tagName": { + "$id": "2498", + "kind": 3, + "sv": "param", + "pos": 738, + "end": 743, + "flags": 0, + "parent": { + "$ref": "2497" + } + }, + "paramName": { + "$id": "2499", + "kind": 3, + "sv": "formatArgs", + "pos": 744, + "end": 754, + "flags": 0, + "parent": { + "$ref": "2497" + } + }, + "content": [ + { + "$id": "2500", + "kind": 52, + "text": "Format arguments", + "pos": 755, + "end": 773, + "flags": 0, + "parent": { + "$ref": "2497" + } + } + ], + "pos": 737, + "end": 773, + "flags": 0, + "parent": { + "$ref": "2491" + } + } + ], + "pos": 642, + "end": 775, + "flags": 0, + "parent": { + "$ref": "2470" + } + } + ], + "parent": { + "$ref": "2435" + }, + "symbol": { + "declarations": [ + { + "$ref": "2470" + } + ], + "name": "@scenarioDoc", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "file": { + "text": "import \"../dist/src/lib/tsp-index.js\";\n\nusing TypeSpec.Reflection;\n\nnamespace TypeSpec.Spector;\n\nalias ScenarioServiceOptions = {\n /**\n * Version enum that would be used on the $versioned decorator\n */\n versioned?: Enum;\n};\n\n/**\n * Setup the boilerplate for a scenario service(server endpoint, etc.)\n */\nextern dec scenarioService(\n target: Namespace,\n route: valueof string,\n options?: ScenarioServiceOptions\n);\n\n/**\n * Mark an operation, interface or namespace as a scenario. All containing operations will be part of the same scenario.\n */\nextern dec `scenario`(target: Namespace | Interface | Operation, name?: valueof string);\n\n/**\n * Specify documentation on how to implement this scenario.\n * @param doc Documentation\n * @param formatArgs Format arguments\n */\nextern dec scenarioDoc(\n target: Namespace | Interface | Operation,\n doc: valueof string,\n formatArgs?: Model\n);\n", + "path": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/spector/lib/main.tsp" + }, + "id": { + "$id": "2501", + "kind": 3, + "sv": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/spector/lib/main.tsp", + "pos": 0, + "end": 0, + "flags": 8, + "parent": { + "$ref": "2435" + } + }, + "namespaces": [ + { + "$ref": "2433" + }, + { + "$ref": "2431" + } + ], + "usings": [ + { + "$ref": "2438" + } + ], + "locals": { + "duplicates": {} + }, + "inScopeNamespaces": [ + { + "$ref": "2431" + }, + { + "$ref": "2433" + } + ], + "parseDiagnostics": [], + "comments": [], + "printable": true, + "parseOptions": {}, + "pos": 0, + "end": 891, + "flags": 0, + "symbol": { + "declarations": [], + "node": { + "$ref": "2435" + }, + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/spector/lib/main.tsp", + "exports": { + "duplicates": {} + }, + "flags": 32768, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "symbol": { + "declarations": [ + { + "$ref": "2433" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + } + } + } + ], + "name": "Spector", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2433" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 180 + } + }, + "parameters": [ + { + "$id": "2502", + "kind": 27, + "id": { + "$id": "2503", + "kind": 3, + "sv": "route", + "pos": 361, + "end": 366, + "flags": 0, + "parent": { + "$ref": "2502" + }, + "_id": 835 + }, + "type": { + "$id": "2504", + "kind": 44, + "target": { + "$id": "2505", + "kind": 45, + "target": { + "$id": "2506", + "kind": 3, + "sv": "string", + "pos": 376, + "end": 382, + "flags": 1, + "parent": { + "$ref": "2505" + }, + "_id": 837 + }, + "arguments": [], + "pos": 376, + "end": 382, + "flags": 1, + "parent": { + "$ref": "2504" + }, + "_id": 836 + }, + "pos": 368, + "end": 382, + "flags": 0, + "parent": { + "$ref": "2502" + } + }, + "optional": false, + "rest": false, + "pos": 361, + "end": 382, + "flags": 0, + "parent": { + "$ref": "2424" + }, + "symbol": { + "declarations": [ + { + "$ref": "2502" + } + ], + "name": "route", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2431" + } + ], + "name": "Spector", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2433" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 181 + } + }, + { + "$id": "2507", + "kind": 27, + "id": { + "$id": "2508", + "kind": 3, + "sv": "options", + "pos": 386, + "end": 393, + "flags": 0, + "parent": { + "$ref": "2507" + }, + "_id": 838 + }, + "type": { + "$id": "2509", + "kind": 45, + "target": { + "$id": "2510", + "kind": 3, + "sv": "ScenarioServiceOptions", + "pos": 396, + "end": 418, + "flags": 1, + "parent": { + "$ref": "2509" + }, + "_id": 840 + }, + "arguments": [], + "pos": 396, + "end": 418, + "flags": 1, + "parent": { + "$ref": "2507" + }, + "_id": 839 + }, + "optional": true, + "rest": false, + "pos": 386, + "end": 418, + "flags": 0, + "parent": { + "$ref": "2424" + }, + "symbol": { + "declarations": [ + { + "$ref": "2507" + } + ], + "name": "options", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2431" + } + ], + "name": "Spector", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2433" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 182 + } + } + ], + "pos": 231, + "end": 421, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2511", + "kind": 51, + "content": [ + { + "$id": "2512", + "kind": 52, + "text": "Setup the boilerplate for a scenario service(server endpoint, etc.)", + "pos": 234, + "end": 307, + "flags": 0, + "parent": { + "$ref": "2511" + } + } + ], + "tags": [], + "pos": 231, + "end": 309, + "flags": 0, + "parent": { + "$ref": "2424" + } + } + ], + "parent": { + "$ref": "2435" + }, + "symbol": { + "declarations": [ + { + "$ref": "2424" + } + ], + "name": "@scenarioService", + "flags": 1049088, + "parent": { + "declarations": [ + { + "$ref": "2431" + } + ], + "name": "Spector", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2433" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "target": { + "$id": "2513", + "kind": "FunctionParameter", + "node": { + "$ref": "2427" + }, + "name": "target", + "optional": false, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "2429" + }, + "type": { + "$id": "2514", + "kind": "Model", + "name": "Namespace", + "node": { + "$ref": "2009" + }, + "properties": {}, + "namespace": { + "$ref": "2022" + }, + "decorators": [], + "sourceModels": [], + "derivedModels": [], + "isFinished": true, + "entityKind": "Type", + "symbol": { + "declarations": [], + "node": { + "$ref": "2009" + }, + "name": "Namespace", + "members": { + "duplicates": {} + }, + "flags": 4194306, + "metatypeMembers": { + "duplicates": {} + }, + "type": { + "$ref": "2514" + } + } + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + "parameters": [ + { + "$id": "2515", + "kind": "FunctionParameter", + "node": { + "$ref": "2502" + }, + "name": "route", + "optional": false, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "2504" + }, + "valueType": { + "$ref": "463" + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + { + "$id": "2516", + "kind": "FunctionParameter", + "node": { + "$ref": "2507" + }, + "name": "options", + "optional": true, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "2509" + }, + "type": { + "$id": "2517", + "kind": "Model", + "node": { + "$ref": "2444" + }, + "name": "", + "namespace": { + "$ref": "2417" + }, + "properties": {}, + "decorators": [], + "derivedModels": [], + "sourceModels": [], + "isFinished": true, + "entityKind": "Type" + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + } + ], + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + "node": { + "$ref": "2078" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "/type/file", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "2079" + }, + "jsValue": "/type/file" + } + ] + }, + { + "definition": { + "$id": "2518", + "kind": "Decorator", + "name": "@doc", + "namespace": { + "$ref": "719" + }, + "node": { + "$ref": "911" + }, + "target": { + "$id": "2519", + "kind": "FunctionParameter", + "node": { + "$ref": "914" + }, + "name": "target", + "optional": false, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "916" + }, + "type": { + "$ref": "1985" + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + "parameters": [ + { + "$id": "2520", + "kind": "FunctionParameter", + "node": { + "$ref": "917" + }, + "name": "doc", + "optional": false, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "919" + }, + "valueType": { + "$ref": "463" + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + { + "$id": "2521", + "kind": "FunctionParameter", + "node": { + "$ref": "922" + }, + "name": "formatArgs", + "optional": true, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "924" + }, + "type": { + "$id": "2522", + "kind": "Model", + "node": { + "$ref": "924" + }, + "name": "", + "properties": {}, + "decorators": [], + "derivedModels": [], + "sourceModels": [], + "isFinished": true, + "entityKind": "Type" + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + } + ], + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + "node": { + "$ref": "2075" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "Test for File type usage in request and response bodies", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "2076" + }, + "jsValue": "Test for File type usage in request and response bodies" + } + ] + } + ], + "isFinished": true, + "entityKind": "Type" + }, + "node": { + "$ref": "2053" + }, + "models": {}, + "scalars": {}, + "operations": {}, + "namespaces": {}, + "interfaces": {}, + "unions": {}, + "enums": {}, + "decoratorDeclarations": {}, + "functionDeclarations": {}, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$id": "2523", + "kind": "String", + "value": "Test File as request and response body with specific content type", + "isFinished": true, + "entityKind": "Type" + }, + "jsValue": "Test File as request and response body with specific content type" + } + ] + }, + { + "definition": { + "$id": "2524", + "kind": "Decorator", + "name": "@route", + "namespace": { + "$ref": "887" + }, + "node": { + "$id": "2525", + "kind": 25, + "modifiers": [ + { + "$id": "2526", + "kind": 40, + "pos": 11406, + "end": 11412, + "flags": 0, + "parent": { + "$ref": "2525" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2527", + "kind": 3, + "sv": "route", + "pos": 11417, + "end": 11422, + "flags": 0, + "parent": { + "$ref": "2525" + }, + "_id": 847 + }, + "target": { + "$id": "2528", + "kind": 27, + "id": { + "$id": "2529", + "kind": 3, + "sv": "target", + "pos": 11423, + "end": 11429, + "flags": 0, + "parent": { + "$ref": "2528" + }, + "_id": 848 + }, + "type": { + "$id": "2530", + "kind": 28, + "options": [ + { + "$id": "2531", + "kind": 45, + "target": { + "$id": "2532", + "kind": 3, + "sv": "Namespace", + "pos": 11431, + "end": 11440, + "flags": 1, + "parent": { + "$ref": "2531" + }, + "_id": 850 + }, + "arguments": [], + "pos": 11431, + "end": 11440, + "flags": 1, + "parent": { + "$ref": "2530" + }, + "_id": 849 + }, + { + "$id": "2533", + "kind": 45, + "target": { + "$id": "2534", + "kind": 3, + "sv": "Interface", + "pos": 11443, + "end": 11452, + "flags": 1, + "parent": { + "$ref": "2533" + }, + "_id": 852 + }, + "arguments": [], + "pos": 11443, + "end": 11452, + "flags": 1, + "parent": { + "$ref": "2530" + }, + "_id": 851 + }, + { + "$id": "2535", + "kind": 45, + "target": { + "$id": "2536", + "kind": 3, + "sv": "Operation", + "pos": 11455, + "end": 11464, + "flags": 1, + "parent": { + "$ref": "2535" + }, + "_id": 854 + }, + "arguments": [], + "pos": 11455, + "end": 11464, + "flags": 1, + "parent": { + "$ref": "2530" + }, + "_id": 853 + } + ], + "pos": 11431, + "end": 11464, + "flags": 0, + "parent": { + "$ref": "2528" + } + }, + "optional": false, + "rest": false, + "pos": 11423, + "end": 11464, + "flags": 0, + "parent": { + "$ref": "2525" + }, + "symbol": { + "declarations": [ + { + "$ref": "2528" + } + ], + "name": "target", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$id": "2537", + "kind": 8, + "decorators": [], + "docs": [], + "id": { + "$id": "2538", + "kind": 3, + "sv": "Http", + "pos": 19, + "end": 23, + "flags": 0, + "parent": { + "$ref": "2537" + }, + "_id": 1245 + }, + "locals": { + "duplicates": {} + }, + "directives": [], + "pos": 0, + "end": 24, + "flags": 0, + "parent": { + "$id": "2539", + "kind": 8, + "decorators": [], + "directives": [], + "id": { + "$id": "2540", + "kind": 3, + "sv": "TypeSpec", + "pos": 10, + "end": 18, + "flags": 0, + "parent": { + "$ref": "2539" + }, + "_id": 1244 + }, + "statements": { + "$ref": "2537" + }, + "locals": { + "duplicates": {} + }, + "pos": 0, + "end": 24, + "flags": 0, + "parent": { + "$id": "2541", + "kind": 0, + "statements": [ + { + "$ref": "2539" + }, + { + "$id": "2542", + "kind": 9, + "name": { + "$id": "2543", + "kind": 7, + "base": { + "$id": "2544", + "kind": 3, + "sv": "TypeSpec", + "pos": 32, + "end": 40, + "flags": 1, + "parent": { + "$ref": "2543" + }, + "_id": 10 + }, + "id": { + "$id": "2545", + "kind": 3, + "sv": "Reflection", + "pos": 41, + "end": 51, + "flags": 1, + "parent": { + "$ref": "2543" + }, + "_id": 11 + }, + "selector": ".", + "pos": 32, + "end": 51, + "flags": 1, + "parent": { + "$ref": "2542" + }, + "_id": 9 + }, + "pos": 26, + "end": 52, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2541" + } + }, + { + "$id": "2546", + "kind": 13, + "id": { + "$id": "2547", + "kind": 3, + "sv": "HeaderOptions", + "pos": 87, + "end": 100, + "flags": 0, + "parent": { + "$ref": "2546" + }, + "_id": 1062 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "2548", + "kind": 15, + "id": { + "$id": "2549", + "kind": 3, + "sv": "name", + "pos": 162, + "end": 166, + "flags": 0, + "parent": { + "$ref": "2548" + }, + "_id": 1063 + }, + "decorators": [], + "value": { + "$id": "2550", + "kind": 45, + "target": { + "$id": "2551", + "kind": 3, + "sv": "string", + "pos": 169, + "end": 175, + "flags": 1, + "parent": { + "$ref": "2550" + }, + "_id": 1065 + }, + "arguments": [], + "pos": 169, + "end": 175, + "flags": 1, + "parent": { + "$ref": "2548" + }, + "_id": 1064 + }, + "optional": true, + "pos": 105, + "end": 175, + "flags": 0, + "docs": [ + { + "$id": "2552", + "kind": 51, + "content": [ + { + "$id": "2553", + "kind": 52, + "text": "Name of the header when sent over HTTP.", + "pos": 108, + "end": 157, + "flags": 0, + "parent": { + "$ref": "2552" + } + } + ], + "tags": [], + "pos": 105, + "end": 159, + "flags": 0, + "parent": { + "$ref": "2548" + } + } + ], + "directives": [], + "parent": { + "$ref": "2546" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2548" + }, + "name": "name", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2546" + } + ], + "name": "HeaderOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 113 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2554", + "kind": 15, + "id": { + "$id": "2555", + "kind": 3, + "sv": "explode", + "pos": 809, + "end": 816, + "flags": 0, + "parent": { + "$ref": "2554" + }, + "_id": 1066 + }, + "decorators": [], + "value": { + "$id": "2556", + "kind": 45, + "target": { + "$id": "2557", + "kind": 3, + "sv": "boolean", + "pos": 819, + "end": 826, + "flags": 1, + "parent": { + "$ref": "2556" + }, + "_id": 1068 + }, + "arguments": [], + "pos": 819, + "end": 826, + "flags": 1, + "parent": { + "$ref": "2554" + }, + "_id": 1067 + }, + "optional": true, + "pos": 180, + "end": 826, + "flags": 0, + "docs": [ + { + "$id": "2558", + "kind": 51, + "content": [ + { + "$id": "2559", + "kind": 52, + "text": "Equivalent of adding `*` in the path parameter as per [RFC-6570](https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.3)\n\n| Style | Explode | Primitive value = 5 | Array = [3, 4, 5] | Object = {\"role\": \"admin\", \"firstName\": \"Alex\"} |\n| ------ | ------- | ------------------- | ----------------- | ----------------------------------------------- |\n| simple | false | `5 ` | `3,4,5` | `role,admin,firstName,Alex` |\n| simple | true | `5` | `3,4,5` | `role=admin,firstName=Alex` |", + "pos": 183, + "end": 804, + "flags": 0, + "parent": { + "$ref": "2558" + } + } + ], + "tags": [], + "pos": 180, + "end": 806, + "flags": 0, + "parent": { + "$ref": "2554" + } + } + ], + "directives": [], + "parent": { + "$ref": "2546" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2554" + }, + "name": "explode", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2546" + } + ], + "name": "HeaderOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 113 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 101, + "end": 829 + }, + "pos": 54, + "end": 829, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2560", + "kind": 51, + "content": [ + { + "$id": "2561", + "kind": 52, + "text": "Header options.", + "pos": 57, + "end": 78, + "flags": 0, + "parent": { + "$ref": "2560" + } + } + ], + "tags": [], + "pos": 54, + "end": 80, + "flags": 0, + "parent": { + "$ref": "2546" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2546" + } + ], + "name": "HeaderOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 113 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2562", + "kind": 25, + "modifiers": [ + { + "$id": "2563", + "kind": 40, + "pos": 1536, + "end": 1542, + "flags": 0, + "parent": { + "$ref": "2562" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2564", + "kind": 3, + "sv": "header", + "pos": 1547, + "end": 1553, + "flags": 0, + "parent": { + "$ref": "2562" + }, + "_id": 1053 + }, + "target": { + "$id": "2565", + "kind": 27, + "id": { + "$id": "2566", + "kind": 3, + "sv": "target", + "pos": 1554, + "end": 1560, + "flags": 0, + "parent": { + "$ref": "2565" + }, + "_id": 1054 + }, + "type": { + "$id": "2567", + "kind": 45, + "target": { + "$id": "2568", + "kind": 3, + "sv": "ModelProperty", + "pos": 1562, + "end": 1575, + "flags": 1, + "parent": { + "$ref": "2567" + }, + "_id": 1056 + }, + "arguments": [], + "pos": 1562, + "end": 1575, + "flags": 1, + "parent": { + "$ref": "2565" + }, + "_id": 1055 + }, + "optional": false, + "rest": false, + "pos": 1554, + "end": 1575, + "flags": 0, + "parent": { + "$ref": "2562" + }, + "symbol": { + "declarations": [ + { + "$ref": "2565" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 434 + } + }, + "parameters": [ + { + "$id": "2569", + "kind": 27, + "id": { + "$id": "2570", + "kind": 3, + "sv": "headerNameOrOptions", + "pos": 1577, + "end": 1596, + "flags": 0, + "parent": { + "$ref": "2569" + }, + "_id": 1057 + }, + "type": { + "$id": "2571", + "kind": 44, + "target": { + "$id": "2572", + "kind": 28, + "options": [ + { + "$id": "2573", + "kind": 45, + "target": { + "$id": "2574", + "kind": 3, + "sv": "string", + "pos": 1607, + "end": 1613, + "flags": 1, + "parent": { + "$ref": "2573" + }, + "_id": 1059 + }, + "arguments": [], + "pos": 1607, + "end": 1613, + "flags": 1, + "parent": { + "$ref": "2572" + }, + "_id": 1058 + }, + { + "$id": "2575", + "kind": 45, + "target": { + "$id": "2576", + "kind": 3, + "sv": "HeaderOptions", + "pos": 1616, + "end": 1629, + "flags": 1, + "parent": { + "$ref": "2575" + }, + "_id": 1061 + }, + "arguments": [], + "pos": 1616, + "end": 1629, + "flags": 1, + "parent": { + "$ref": "2572" + }, + "_id": 1060 + } + ], + "pos": 1607, + "end": 1629, + "flags": 0, + "parent": { + "$ref": "2571" + } + }, + "pos": 1599, + "end": 1629, + "flags": 0, + "parent": { + "$ref": "2569" + } + }, + "optional": true, + "rest": false, + "pos": 1577, + "end": 1629, + "flags": 0, + "parent": { + "$ref": "2562" + }, + "symbol": { + "declarations": [ + { + "$ref": "2569" + } + ], + "name": "headerNameOrOptions", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 435 + } + } + ], + "pos": 831, + "end": 1631, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2577", + "kind": 51, + "content": [ + { + "$id": "2578", + "kind": 52, + "text": "Specify this property is to be sent or received as an HTTP header.", + "pos": 834, + "end": 911, + "flags": 0, + "parent": { + "$ref": "2577" + } + } + ], + "tags": [ + { + "$id": "2579", + "kind": 53, + "tagName": { + "$id": "2580", + "kind": 3, + "sv": "param", + "pos": 912, + "end": 917, + "flags": 0, + "parent": { + "$ref": "2579" + } + }, + "paramName": { + "$id": "2581", + "kind": 3, + "sv": "headerNameOrOptions", + "pos": 918, + "end": 937, + "flags": 0, + "parent": { + "$ref": "2579" + } + }, + "content": [ + { + "$id": "2582", + "kind": 52, + "text": "Optional name of the header when sent over HTTP or header options.\nBy default the header name will be the property name converted from camelCase to kebab-case. (e.g. `contentType` -> `content-type`)", + "pos": 938, + "end": 1147, + "flags": 0, + "parent": { + "$ref": "2579" + } + } + ], + "pos": 911, + "end": 1147, + "flags": 0, + "parent": { + "$ref": "2577" + } + }, + { + "$id": "2583", + "kind": 58, + "tagName": { + "$id": "2584", + "kind": 3, + "sv": "example", + "pos": 1148, + "end": 1155, + "flags": 0, + "parent": { + "$ref": "2583" + } + }, + "content": [ + { + "$id": "2585", + "kind": 52, + "text": "```typespec\nop read(@header accept: string): {@header(\"ETag\") eTag: string};\nop create(@header({name: \"X-Color\", format: \"csv\"}) colors: string[]): void;\n```", + "pos": 1155, + "end": 1335, + "flags": 0, + "parent": { + "$ref": "2583" + } + } + ], + "pos": 1147, + "end": 1335, + "flags": 0, + "parent": { + "$ref": "2577" + } + }, + { + "$id": "2586", + "kind": 58, + "tagName": { + "$id": "2587", + "kind": 3, + "sv": "example", + "pos": 1336, + "end": 1343, + "flags": 0, + "parent": { + "$ref": "2586" + } + }, + "content": [ + { + "$id": "2588", + "kind": 52, + "text": "Implicit header name\n\n```typespec\nop read(): {@header contentType: string}; // headerName: content-type\nop update(@header ifMatch: string): void; // headerName: if-match\n```", + "pos": 1343, + "end": 1533, + "flags": 0, + "parent": { + "$ref": "2586" + } + } + ], + "pos": 1335, + "end": 1533, + "flags": 0, + "parent": { + "$ref": "2577" + } + } + ], + "pos": 831, + "end": 1535, + "flags": 0, + "parent": { + "$ref": "2562" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2562" + } + ], + "name": "@header", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2589", + "kind": 13, + "id": { + "$id": "2590", + "kind": 3, + "sv": "CookieOptions", + "pos": 1666, + "end": 1679, + "flags": 0, + "parent": { + "$ref": "2589" + }, + "_id": 1246 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "2591", + "kind": 15, + "id": { + "$id": "2592", + "kind": 3, + "sv": "name", + "pos": 1721, + "end": 1725, + "flags": 0, + "parent": { + "$ref": "2591" + }, + "_id": 1247 + }, + "decorators": [], + "value": { + "$id": "2593", + "kind": 45, + "target": { + "$id": "2594", + "kind": 3, + "sv": "string", + "pos": 1728, + "end": 1734, + "flags": 1, + "parent": { + "$ref": "2593" + }, + "_id": 1249 + }, + "arguments": [], + "pos": 1728, + "end": 1734, + "flags": 1, + "parent": { + "$ref": "2591" + }, + "_id": 1248 + }, + "optional": true, + "pos": 1684, + "end": 1734, + "flags": 0, + "docs": [ + { + "$id": "2595", + "kind": 51, + "content": [ + { + "$id": "2596", + "kind": 52, + "text": "Name in the cookie.", + "pos": 1687, + "end": 1716, + "flags": 0, + "parent": { + "$ref": "2595" + } + } + ], + "tags": [], + "pos": 1684, + "end": 1718, + "flags": 0, + "parent": { + "$ref": "2591" + } + } + ], + "directives": [], + "parent": { + "$ref": "2589" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2591" + }, + "name": "name", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2589" + } + ], + "name": "CookieOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 141 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 1680, + "end": 1737 + }, + "pos": 1633, + "end": 1737, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2597", + "kind": 51, + "content": [ + { + "$id": "2598", + "kind": 52, + "text": "Cookie Options.", + "pos": 1636, + "end": 1657, + "flags": 0, + "parent": { + "$ref": "2597" + } + } + ], + "tags": [], + "pos": 1633, + "end": 1659, + "flags": 0, + "parent": { + "$ref": "2589" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2589" + } + ], + "name": "CookieOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 141 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2599", + "kind": 25, + "modifiers": [ + { + "$id": "2600", + "kind": 40, + "pos": 2401, + "end": 2407, + "flags": 0, + "parent": { + "$ref": "2599" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2601", + "kind": 3, + "sv": "cookie", + "pos": 2412, + "end": 2418, + "flags": 0, + "parent": { + "$ref": "2599" + }, + "_id": 1250 + }, + "target": { + "$id": "2602", + "kind": 27, + "id": { + "$id": "2603", + "kind": 3, + "sv": "target", + "pos": 2419, + "end": 2425, + "flags": 0, + "parent": { + "$ref": "2602" + }, + "_id": 1251 + }, + "type": { + "$id": "2604", + "kind": 45, + "target": { + "$id": "2605", + "kind": 3, + "sv": "ModelProperty", + "pos": 2427, + "end": 2440, + "flags": 1, + "parent": { + "$ref": "2604" + }, + "_id": 1253 + }, + "arguments": [], + "pos": 2427, + "end": 2440, + "flags": 1, + "parent": { + "$ref": "2602" + }, + "_id": 1252 + }, + "optional": false, + "rest": false, + "pos": 2419, + "end": 2440, + "flags": 0, + "parent": { + "$ref": "2599" + }, + "symbol": { + "declarations": [ + { + "$ref": "2602" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 469 + } + }, + "parameters": [ + { + "$id": "2606", + "kind": 27, + "id": { + "$id": "2607", + "kind": 3, + "sv": "cookieNameOrOptions", + "pos": 2442, + "end": 2461, + "flags": 0, + "parent": { + "$ref": "2606" + }, + "_id": 1254 + }, + "type": { + "$id": "2608", + "kind": 44, + "target": { + "$id": "2609", + "kind": 28, + "options": [ + { + "$id": "2610", + "kind": 45, + "target": { + "$id": "2611", + "kind": 3, + "sv": "string", + "pos": 2472, + "end": 2478, + "flags": 1, + "parent": { + "$ref": "2610" + }, + "_id": 1256 + }, + "arguments": [], + "pos": 2472, + "end": 2478, + "flags": 1, + "parent": { + "$ref": "2609" + }, + "_id": 1255 + }, + { + "$id": "2612", + "kind": 45, + "target": { + "$id": "2613", + "kind": 3, + "sv": "CookieOptions", + "pos": 2481, + "end": 2494, + "flags": 1, + "parent": { + "$ref": "2612" + }, + "_id": 1258 + }, + "arguments": [], + "pos": 2481, + "end": 2494, + "flags": 1, + "parent": { + "$ref": "2609" + }, + "_id": 1257 + } + ], + "pos": 2472, + "end": 2494, + "flags": 0, + "parent": { + "$ref": "2608" + } + }, + "pos": 2464, + "end": 2494, + "flags": 0, + "parent": { + "$ref": "2606" + } + }, + "optional": true, + "rest": false, + "pos": 2442, + "end": 2494, + "flags": 0, + "parent": { + "$ref": "2599" + }, + "symbol": { + "declarations": [ + { + "$ref": "2606" + } + ], + "name": "cookieNameOrOptions", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 470 + } + } + ], + "pos": 1739, + "end": 2496, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2614", + "kind": 51, + "content": [ + { + "$id": "2615", + "kind": 52, + "text": "Specify this property is to be sent or received in the cookie.", + "pos": 1742, + "end": 1815, + "flags": 0, + "parent": { + "$ref": "2614" + } + } + ], + "tags": [ + { + "$id": "2616", + "kind": 53, + "tagName": { + "$id": "2617", + "kind": 3, + "sv": "param", + "pos": 1816, + "end": 1821, + "flags": 0, + "parent": { + "$ref": "2616" + } + }, + "paramName": { + "$id": "2618", + "kind": 3, + "sv": "cookieNameOrOptions", + "pos": 1822, + "end": 1841, + "flags": 0, + "parent": { + "$ref": "2616" + } + }, + "content": [ + { + "$id": "2619", + "kind": 52, + "text": "Optional name of the cookie in the cookie or cookie options.\nBy default the cookie name will be the property name converted from camelCase to snake_case. (e.g. `authToken` -> `auth_token`)", + "pos": 1842, + "end": 2041, + "flags": 0, + "parent": { + "$ref": "2616" + } + } + ], + "pos": 1815, + "end": 2041, + "flags": 0, + "parent": { + "$ref": "2614" + } + }, + { + "$id": "2620", + "kind": 58, + "tagName": { + "$id": "2621", + "kind": 3, + "sv": "example", + "pos": 2042, + "end": 2049, + "flags": 0, + "parent": { + "$ref": "2620" + } + }, + "content": [ + { + "$id": "2622", + "kind": 52, + "text": "```typespec\nop read(@cookie token: string): {data: string[]};\nop create(@cookie({name: \"auth_token\"}) data: string[]): void;\n```", + "pos": 2049, + "end": 2200, + "flags": 0, + "parent": { + "$ref": "2620" + } + } + ], + "pos": 2041, + "end": 2200, + "flags": 0, + "parent": { + "$ref": "2614" + } + }, + { + "$id": "2623", + "kind": 58, + "tagName": { + "$id": "2624", + "kind": 3, + "sv": "example", + "pos": 2201, + "end": 2208, + "flags": 0, + "parent": { + "$ref": "2623" + } + }, + "content": [ + { + "$id": "2625", + "kind": 52, + "text": "Implicit header name\n\n```typespec\nop read(): {@cookie authToken: string}; // headerName: auth_token\nop update(@cookie AuthToken: string): void; // headerName: auth_token\n```", + "pos": 2208, + "end": 2398, + "flags": 0, + "parent": { + "$ref": "2623" + } + } + ], + "pos": 2200, + "end": 2398, + "flags": 0, + "parent": { + "$ref": "2614" + } + } + ], + "pos": 1739, + "end": 2400, + "flags": 0, + "parent": { + "$ref": "2599" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2599" + } + ], + "name": "@cookie", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2626", + "kind": 13, + "id": { + "$id": "2627", + "kind": 3, + "sv": "QueryOptions", + "pos": 2540, + "end": 2552, + "flags": 0, + "parent": { + "$ref": "2626" + }, + "_id": 1259 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "2628", + "kind": 15, + "id": { + "$id": "2629", + "kind": 3, + "sv": "name", + "pos": 2618, + "end": 2622, + "flags": 0, + "parent": { + "$ref": "2628" + }, + "_id": 1260 + }, + "decorators": [], + "value": { + "$id": "2630", + "kind": 45, + "target": { + "$id": "2631", + "kind": 3, + "sv": "string", + "pos": 2625, + "end": 2631, + "flags": 1, + "parent": { + "$ref": "2630" + }, + "_id": 1262 + }, + "arguments": [], + "pos": 2625, + "end": 2631, + "flags": 1, + "parent": { + "$ref": "2628" + }, + "_id": 1261 + }, + "optional": true, + "pos": 2557, + "end": 2631, + "flags": 0, + "docs": [ + { + "$id": "2632", + "kind": 51, + "content": [ + { + "$id": "2633", + "kind": 52, + "text": "Name of the query when included in the url.", + "pos": 2560, + "end": 2613, + "flags": 0, + "parent": { + "$ref": "2632" + } + } + ], + "tags": [], + "pos": 2557, + "end": 2615, + "flags": 0, + "parent": { + "$ref": "2628" + } + } + ], + "directives": [], + "parent": { + "$ref": "2626" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2628" + }, + "name": "name", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2626" + } + ], + "name": "QueryOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 142 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2634", + "kind": 15, + "id": { + "$id": "2635", + "kind": 3, + "sv": "explode", + "pos": 3461, + "end": 3468, + "flags": 0, + "parent": { + "$ref": "2634" + }, + "_id": 1263 + }, + "decorators": [], + "value": { + "$id": "2636", + "kind": 45, + "target": { + "$id": "2637", + "kind": 3, + "sv": "boolean", + "pos": 3471, + "end": 3478, + "flags": 1, + "parent": { + "$ref": "2636" + }, + "_id": 1265 + }, + "arguments": [], + "pos": 3471, + "end": 3478, + "flags": 1, + "parent": { + "$ref": "2634" + }, + "_id": 1264 + }, + "optional": true, + "pos": 2636, + "end": 3478, + "flags": 0, + "docs": [ + { + "$id": "2638", + "kind": 51, + "content": [ + { + "$id": "2639", + "kind": 52, + "text": "If true send each value in the array/object as a separate query parameter.\nEquivalent of adding `*` in the path parameter as per [RFC-6570](https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.3)\n\n| Style | Explode | Uri Template | Primitive value id = 5 | Array id = [3, 4, 5] | Object id = {\"role\": \"admin\", \"firstName\": \"Alex\"} |\n| ------ | ------- | -------------- | ---------------------- | ----------------------- | -------------------------------------------------- |\n| simple | false | `/users{?id}` | `/users?id=5` | `/users?id=3,4,5` | `/users?id=role,admin,firstName,Alex` |\n| simple | true | `/users{?id*}` | `/users?id=5` | `/users?id=3&id=4&id=5` | `/users?role=admin&firstName=Alex` |", + "pos": 2639, + "end": 3456, + "flags": 0, + "parent": { + "$ref": "2638" + } + } + ], + "tags": [], + "pos": 2636, + "end": 3458, + "flags": 0, + "parent": { + "$ref": "2634" + } + } + ], + "directives": [], + "parent": { + "$ref": "2626" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2634" + }, + "name": "explode", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2626" + } + ], + "name": "QueryOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 142 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 2553, + "end": 3481 + }, + "pos": 2498, + "end": 3481, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2640", + "kind": 51, + "content": [ + { + "$id": "2641", + "kind": 52, + "text": "Query parameter options.", + "pos": 2501, + "end": 2531, + "flags": 0, + "parent": { + "$ref": "2640" + } + } + ], + "tags": [], + "pos": 2498, + "end": 2533, + "flags": 0, + "parent": { + "$ref": "2626" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2626" + } + ], + "name": "QueryOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 142 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2642", + "kind": 25, + "modifiers": [ + { + "$id": "2643", + "kind": 40, + "pos": 3851, + "end": 3857, + "flags": 0, + "parent": { + "$ref": "2642" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2644", + "kind": 3, + "sv": "query", + "pos": 3862, + "end": 3867, + "flags": 0, + "parent": { + "$ref": "2642" + }, + "_id": 1266 + }, + "target": { + "$id": "2645", + "kind": 27, + "id": { + "$id": "2646", + "kind": 3, + "sv": "target", + "pos": 3868, + "end": 3874, + "flags": 0, + "parent": { + "$ref": "2645" + }, + "_id": 1267 + }, + "type": { + "$id": "2647", + "kind": 45, + "target": { + "$id": "2648", + "kind": 3, + "sv": "ModelProperty", + "pos": 3876, + "end": 3889, + "flags": 1, + "parent": { + "$ref": "2647" + }, + "_id": 1269 + }, + "arguments": [], + "pos": 3876, + "end": 3889, + "flags": 1, + "parent": { + "$ref": "2645" + }, + "_id": 1268 + }, + "optional": false, + "rest": false, + "pos": 3868, + "end": 3889, + "flags": 0, + "parent": { + "$ref": "2642" + }, + "symbol": { + "declarations": [ + { + "$ref": "2645" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 474 + } + }, + "parameters": [ + { + "$id": "2649", + "kind": 27, + "id": { + "$id": "2650", + "kind": 3, + "sv": "queryNameOrOptions", + "pos": 3891, + "end": 3909, + "flags": 0, + "parent": { + "$ref": "2649" + }, + "_id": 1270 + }, + "type": { + "$id": "2651", + "kind": 44, + "target": { + "$id": "2652", + "kind": 28, + "options": [ + { + "$id": "2653", + "kind": 45, + "target": { + "$id": "2654", + "kind": 3, + "sv": "string", + "pos": 3920, + "end": 3926, + "flags": 1, + "parent": { + "$ref": "2653" + }, + "_id": 1272 + }, + "arguments": [], + "pos": 3920, + "end": 3926, + "flags": 1, + "parent": { + "$ref": "2652" + }, + "_id": 1271 + }, + { + "$id": "2655", + "kind": 45, + "target": { + "$id": "2656", + "kind": 3, + "sv": "QueryOptions", + "pos": 3929, + "end": 3941, + "flags": 1, + "parent": { + "$ref": "2655" + }, + "_id": 1274 + }, + "arguments": [], + "pos": 3929, + "end": 3941, + "flags": 1, + "parent": { + "$ref": "2652" + }, + "_id": 1273 + } + ], + "pos": 3920, + "end": 3941, + "flags": 0, + "parent": { + "$ref": "2651" + } + }, + "pos": 3912, + "end": 3941, + "flags": 0, + "parent": { + "$ref": "2649" + } + }, + "optional": true, + "rest": false, + "pos": 3891, + "end": 3941, + "flags": 0, + "parent": { + "$ref": "2642" + }, + "symbol": { + "declarations": [ + { + "$ref": "2649" + } + ], + "name": "queryNameOrOptions", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 475 + } + } + ], + "pos": 3483, + "end": 3943, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2657", + "kind": 51, + "content": [ + { + "$id": "2658", + "kind": 52, + "text": "Specify this property is to be sent as a query parameter.", + "pos": 3486, + "end": 3554, + "flags": 0, + "parent": { + "$ref": "2657" + } + } + ], + "tags": [ + { + "$id": "2659", + "kind": 53, + "tagName": { + "$id": "2660", + "kind": 3, + "sv": "param", + "pos": 3555, + "end": 3560, + "flags": 0, + "parent": { + "$ref": "2659" + } + }, + "paramName": { + "$id": "2661", + "kind": 3, + "sv": "queryNameOrOptions", + "pos": 3561, + "end": 3579, + "flags": 0, + "parent": { + "$ref": "2659" + } + }, + "content": [ + { + "$id": "2662", + "kind": 52, + "text": "Optional name of the query when included in the url or query parameter options.", + "pos": 3580, + "end": 3666, + "flags": 0, + "parent": { + "$ref": "2659" + } + } + ], + "pos": 3554, + "end": 3666, + "flags": 0, + "parent": { + "$ref": "2657" + } + }, + { + "$id": "2663", + "kind": 58, + "tagName": { + "$id": "2664", + "kind": 3, + "sv": "example", + "pos": 3667, + "end": 3674, + "flags": 0, + "parent": { + "$ref": "2663" + } + }, + "content": [ + { + "$id": "2665", + "kind": 52, + "text": "```typespec\nop read(@query select: string, @query(\"order-by\") orderBy: string): void;\nop list(@query(#{name: \"id\", explode: true}) ids: string[]): void;\n```", + "pos": 3674, + "end": 3848, + "flags": 0, + "parent": { + "$ref": "2663" + } + } + ], + "pos": 3666, + "end": 3848, + "flags": 0, + "parent": { + "$ref": "2657" + } + } + ], + "pos": 3483, + "end": 3850, + "flags": 0, + "parent": { + "$ref": "2642" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2642" + } + ], + "name": "@query", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2666", + "kind": 13, + "id": { + "$id": "2667", + "kind": 3, + "sv": "PathOptions", + "pos": 3951, + "end": 3962, + "flags": 0, + "parent": { + "$ref": "2666" + }, + "_id": 1275 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "2668", + "kind": 15, + "id": { + "$id": "2669", + "kind": 3, + "sv": "name", + "pos": 4019, + "end": 4023, + "flags": 0, + "parent": { + "$ref": "2668" + }, + "_id": 1276 + }, + "decorators": [], + "value": { + "$id": "2670", + "kind": 45, + "target": { + "$id": "2671", + "kind": 3, + "sv": "string", + "pos": 4026, + "end": 4032, + "flags": 1, + "parent": { + "$ref": "2670" + }, + "_id": 1278 + }, + "arguments": [], + "pos": 4026, + "end": 4032, + "flags": 1, + "parent": { + "$ref": "2668" + }, + "_id": 1277 + }, + "optional": true, + "pos": 3967, + "end": 4032, + "flags": 0, + "docs": [ + { + "$id": "2672", + "kind": 51, + "content": [ + { + "$id": "2673", + "kind": 52, + "text": "Name of the parameter in the uri template.", + "pos": 3970, + "end": 4014, + "flags": 0, + "parent": { + "$ref": "2672" + } + } + ], + "tags": [], + "pos": 3967, + "end": 4016, + "flags": 0, + "parent": { + "$ref": "2668" + } + } + ], + "directives": [], + "parent": { + "$ref": "2666" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2668" + }, + "name": "name", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2666" + } + ], + "name": "PathOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 143 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2674", + "kind": 15, + "id": { + "$id": "2675", + "kind": 3, + "sv": "explode", + "pos": 4291, + "end": 4298, + "flags": 0, + "parent": { + "$ref": "2674" + }, + "_id": 1279 + }, + "decorators": [], + "value": { + "$id": "2676", + "kind": 45, + "target": { + "$id": "2677", + "kind": 3, + "sv": "boolean", + "pos": 4301, + "end": 4308, + "flags": 1, + "parent": { + "$ref": "2676" + }, + "_id": 1281 + }, + "arguments": [], + "pos": 4301, + "end": 4308, + "flags": 1, + "parent": { + "$ref": "2674" + }, + "_id": 1280 + }, + "optional": true, + "pos": 4037, + "end": 4308, + "flags": 0, + "docs": [ + { + "$id": "2678", + "kind": 51, + "content": [ + { + "$id": "2679", + "kind": 52, + "text": "When interpolating this parameter in the case of array or object expand each value using the given style.\nEquivalent of adding `*` in the path parameter as per [RFC-6570](https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.3)", + "pos": 4040, + "end": 4286, + "flags": 0, + "parent": { + "$ref": "2678" + } + } + ], + "tags": [], + "pos": 4037, + "end": 4288, + "flags": 0, + "parent": { + "$ref": "2674" + } + } + ], + "directives": [], + "parent": { + "$ref": "2666" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2674" + }, + "name": "explode", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2666" + } + ], + "name": "PathOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 143 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2680", + "kind": 15, + "id": { + "$id": "2681", + "kind": 3, + "sv": "style", + "pos": 4565, + "end": 4570, + "flags": 0, + "parent": { + "$ref": "2680" + }, + "_id": 1282 + }, + "decorators": [], + "value": { + "$id": "2682", + "kind": 28, + "options": [ + { + "$id": "2683", + "kind": 32, + "value": "simple", + "pos": 4573, + "end": 4581, + "flags": 0, + "parent": { + "$ref": "2682" + } + }, + { + "$id": "2684", + "kind": 32, + "value": "label", + "pos": 4584, + "end": 4591, + "flags": 0, + "parent": { + "$ref": "2682" + } + }, + { + "$id": "2685", + "kind": 32, + "value": "matrix", + "pos": 4594, + "end": 4602, + "flags": 0, + "parent": { + "$ref": "2682" + } + }, + { + "$id": "2686", + "kind": 32, + "value": "fragment", + "pos": 4605, + "end": 4615, + "flags": 0, + "parent": { + "$ref": "2682" + } + }, + { + "$id": "2687", + "kind": 32, + "value": "path", + "pos": 4618, + "end": 4624, + "flags": 0, + "parent": { + "$ref": "2682" + } + } + ], + "pos": 4573, + "end": 4624, + "flags": 0, + "parent": { + "$ref": "2680" + } + }, + "optional": true, + "pos": 4313, + "end": 4624, + "flags": 0, + "docs": [ + { + "$id": "2688", + "kind": 51, + "content": [ + { + "$id": "2689", + "kind": 52, + "text": "Different interpolating styles for the path parameter.\n- `simple`: No special encoding.\n- `label`: Using `.` separator.\n- `matrix`: `;` as separator.\n- `fragment`: `#` as separator.\n- `path`: `/` as separator.", + "pos": 4316, + "end": 4560, + "flags": 0, + "parent": { + "$ref": "2688" + } + } + ], + "tags": [], + "pos": 4313, + "end": 4562, + "flags": 0, + "parent": { + "$ref": "2680" + } + } + ], + "directives": [], + "parent": { + "$ref": "2666" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2680" + }, + "name": "style", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2666" + } + ], + "name": "PathOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 143 + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2690", + "kind": 15, + "id": { + "$id": "2691", + "kind": 3, + "sv": "allowReserved", + "pos": 4846, + "end": 4859, + "flags": 0, + "parent": { + "$ref": "2690" + }, + "_id": 1283 + }, + "decorators": [], + "value": { + "$id": "2692", + "kind": 45, + "target": { + "$id": "2693", + "kind": 3, + "sv": "boolean", + "pos": 4862, + "end": 4869, + "flags": 1, + "parent": { + "$ref": "2692" + }, + "_id": 1285 + }, + "arguments": [], + "pos": 4862, + "end": 4869, + "flags": 1, + "parent": { + "$ref": "2690" + }, + "_id": 1284 + }, + "optional": true, + "pos": 4629, + "end": 4869, + "flags": 0, + "docs": [ + { + "$id": "2694", + "kind": 51, + "content": [ + { + "$id": "2695", + "kind": 52, + "text": "When interpolating this parameter do not encode reserved characters.\nEquivalent of adding `+` in the path parameter as per [RFC-6570](https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.3)", + "pos": 4632, + "end": 4841, + "flags": 0, + "parent": { + "$ref": "2694" + } + } + ], + "tags": [], + "pos": 4629, + "end": 4843, + "flags": 0, + "parent": { + "$ref": "2690" + } + } + ], + "directives": [], + "parent": { + "$ref": "2666" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2690" + }, + "name": "allowReserved", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2666" + } + ], + "name": "PathOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 143 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 3963, + "end": 4872 + }, + "pos": 3945, + "end": 4872, + "flags": 0, + "directives": [], + "docs": [], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2666" + } + ], + "name": "PathOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 143 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2696", + "kind": 25, + "modifiers": [ + { + "$id": "2697", + "kind": 40, + "pos": 5209, + "end": 5215, + "flags": 0, + "parent": { + "$ref": "2696" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2698", + "kind": 3, + "sv": "path", + "pos": 5220, + "end": 5224, + "flags": 0, + "parent": { + "$ref": "2696" + }, + "_id": 1286 + }, + "target": { + "$id": "2699", + "kind": 27, + "id": { + "$id": "2700", + "kind": 3, + "sv": "target", + "pos": 5225, + "end": 5231, + "flags": 0, + "parent": { + "$ref": "2699" + }, + "_id": 1287 + }, + "type": { + "$id": "2701", + "kind": 45, + "target": { + "$id": "2702", + "kind": 3, + "sv": "ModelProperty", + "pos": 5233, + "end": 5246, + "flags": 1, + "parent": { + "$ref": "2701" + }, + "_id": 1289 + }, + "arguments": [], + "pos": 5233, + "end": 5246, + "flags": 1, + "parent": { + "$ref": "2699" + }, + "_id": 1288 + }, + "optional": false, + "rest": false, + "pos": 5225, + "end": 5246, + "flags": 0, + "parent": { + "$ref": "2696" + }, + "symbol": { + "declarations": [ + { + "$ref": "2699" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 481 + } + }, + "parameters": [ + { + "$id": "2703", + "kind": 27, + "id": { + "$id": "2704", + "kind": 3, + "sv": "paramNameOrOptions", + "pos": 5248, + "end": 5266, + "flags": 0, + "parent": { + "$ref": "2703" + }, + "_id": 1290 + }, + "type": { + "$id": "2705", + "kind": 44, + "target": { + "$id": "2706", + "kind": 28, + "options": [ + { + "$id": "2707", + "kind": 45, + "target": { + "$id": "2708", + "kind": 3, + "sv": "string", + "pos": 5277, + "end": 5283, + "flags": 1, + "parent": { + "$ref": "2707" + }, + "_id": 1292 + }, + "arguments": [], + "pos": 5277, + "end": 5283, + "flags": 1, + "parent": { + "$ref": "2706" + }, + "_id": 1291 + }, + { + "$id": "2709", + "kind": 45, + "target": { + "$id": "2710", + "kind": 3, + "sv": "PathOptions", + "pos": 5286, + "end": 5297, + "flags": 1, + "parent": { + "$ref": "2709" + }, + "_id": 1294 + }, + "arguments": [], + "pos": 5286, + "end": 5297, + "flags": 1, + "parent": { + "$ref": "2706" + }, + "_id": 1293 + } + ], + "pos": 5277, + "end": 5297, + "flags": 0, + "parent": { + "$ref": "2705" + } + }, + "pos": 5269, + "end": 5297, + "flags": 0, + "parent": { + "$ref": "2703" + } + }, + "optional": true, + "rest": false, + "pos": 5248, + "end": 5297, + "flags": 0, + "parent": { + "$ref": "2696" + }, + "symbol": { + "declarations": [ + { + "$ref": "2703" + } + ], + "name": "paramNameOrOptions", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 482 + } + } + ], + "pos": 4874, + "end": 5299, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2711", + "kind": 51, + "content": [ + { + "$id": "2712", + "kind": 52, + "text": "Explicitly specify that this property is to be interpolated as a path parameter.", + "pos": 4877, + "end": 4968, + "flags": 0, + "parent": { + "$ref": "2711" + } + } + ], + "tags": [ + { + "$id": "2713", + "kind": 53, + "tagName": { + "$id": "2714", + "kind": 3, + "sv": "param", + "pos": 4969, + "end": 4974, + "flags": 0, + "parent": { + "$ref": "2713" + } + }, + "paramName": { + "$id": "2715", + "kind": 3, + "sv": "paramNameOrOptions", + "pos": 4975, + "end": 4993, + "flags": 0, + "parent": { + "$ref": "2713" + } + }, + "content": [ + { + "$id": "2716", + "kind": 52, + "text": "Optional name of the parameter in the uri template or options.", + "pos": 4994, + "end": 5063, + "flags": 0, + "parent": { + "$ref": "2713" + } + } + ], + "pos": 4968, + "end": 5063, + "flags": 0, + "parent": { + "$ref": "2711" + } + }, + { + "$id": "2717", + "kind": 58, + "tagName": { + "$id": "2718", + "kind": 3, + "sv": "example", + "pos": 5064, + "end": 5071, + "flags": 0, + "parent": { + "$ref": "2717" + } + }, + "content": [ + { + "$id": "2719", + "kind": 52, + "text": "```typespec\n@route(\"/read/{explicit}/things/{implicit}\")\nop read(@path explicit: string, implicit: string): void;\n```", + "pos": 5071, + "end": 5206, + "flags": 0, + "parent": { + "$ref": "2717" + } + } + ], + "pos": 5063, + "end": 5206, + "flags": 0, + "parent": { + "$ref": "2711" + } + } + ], + "pos": 4874, + "end": 5208, + "flags": 0, + "parent": { + "$ref": "2696" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2696" + } + ], + "name": "@path", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2720", + "kind": 25, + "modifiers": [ + { + "$id": "2721", + "kind": 40, + "pos": 5718, + "end": 5724, + "flags": 0, + "parent": { + "$ref": "2720" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2722", + "kind": 3, + "sv": "body", + "pos": 5729, + "end": 5733, + "flags": 0, + "parent": { + "$ref": "2720" + }, + "_id": 1042 + }, + "target": { + "$id": "2723", + "kind": 27, + "id": { + "$id": "2724", + "kind": 3, + "sv": "target", + "pos": 5734, + "end": 5740, + "flags": 0, + "parent": { + "$ref": "2723" + }, + "_id": 1043 + }, + "type": { + "$id": "2725", + "kind": 45, + "target": { + "$id": "2726", + "kind": 3, + "sv": "ModelProperty", + "pos": 5742, + "end": 5755, + "flags": 1, + "parent": { + "$ref": "2725" + }, + "_id": 1045 + }, + "arguments": [], + "pos": 5742, + "end": 5755, + "flags": 1, + "parent": { + "$ref": "2723" + }, + "_id": 1044 + }, + "optional": false, + "rest": false, + "pos": 5734, + "end": 5755, + "flags": 0, + "parent": { + "$ref": "2720" + }, + "symbol": { + "declarations": [ + { + "$ref": "2723" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 431 + } + }, + "parameters": [], + "pos": 5301, + "end": 5757, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2727", + "kind": 51, + "content": [ + { + "$id": "2728", + "kind": 52, + "text": "Explicitly specify that this property type will be exactly the HTTP body.\n\nThis means that any properties under `@body` cannot be marked as headers, query parameters, or path parameters.\nIf wanting to change the resolution of the body but still mix parameters, use `@bodyRoot`.", + "pos": 5304, + "end": 5600, + "flags": 0, + "parent": { + "$ref": "2727" + } + } + ], + "tags": [ + { + "$id": "2729", + "kind": 58, + "tagName": { + "$id": "2730", + "kind": 3, + "sv": "example", + "pos": 5601, + "end": 5608, + "flags": 0, + "parent": { + "$ref": "2729" + } + }, + "content": [ + { + "$id": "2731", + "kind": 52, + "text": "```typespec\nop upload(@body image: bytes): void;\nop download(): {@body image: bytes};\n```", + "pos": 5608, + "end": 5715, + "flags": 0, + "parent": { + "$ref": "2729" + } + } + ], + "pos": 5600, + "end": 5715, + "flags": 0, + "parent": { + "$ref": "2727" + } + } + ], + "pos": 5301, + "end": 5717, + "flags": 0, + "parent": { + "$ref": "2720" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2720" + } + ], + "name": "@body", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2732", + "kind": 25, + "modifiers": [ + { + "$id": "2733", + "kind": 40, + "pos": 6286, + "end": 6292, + "flags": 0, + "parent": { + "$ref": "2732" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2734", + "kind": 3, + "sv": "bodyRoot", + "pos": 6297, + "end": 6305, + "flags": 0, + "parent": { + "$ref": "2732" + }, + "_id": 894 + }, + "target": { + "$id": "2735", + "kind": 27, + "id": { + "$id": "2736", + "kind": 3, + "sv": "target", + "pos": 6306, + "end": 6312, + "flags": 0, + "parent": { + "$ref": "2735" + }, + "_id": 895 + }, + "type": { + "$id": "2737", + "kind": 45, + "target": { + "$id": "2738", + "kind": 3, + "sv": "ModelProperty", + "pos": 6314, + "end": 6327, + "flags": 1, + "parent": { + "$ref": "2737" + }, + "_id": 897 + }, + "arguments": [], + "pos": 6314, + "end": 6327, + "flags": 1, + "parent": { + "$ref": "2735" + }, + "_id": 896 + }, + "optional": false, + "rest": false, + "pos": 6306, + "end": 6327, + "flags": 0, + "parent": { + "$ref": "2732" + }, + "symbol": { + "declarations": [ + { + "$ref": "2735" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 403 + } + }, + "parameters": [], + "pos": 5759, + "end": 6329, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2739", + "kind": 51, + "content": [ + { + "$id": "2740", + "kind": 52, + "text": "Specify that the body resolution should be resolved from that property.\nBy default the body is resolved by including all properties in the operation request/response that are not metadata.\nThis allows to nest the body in a property while still allowing to use headers, query parameters, and path parameters in the same model.", + "pos": 5762, + "end": 6104, + "flags": 0, + "parent": { + "$ref": "2739" + } + } + ], + "tags": [ + { + "$id": "2741", + "kind": 58, + "tagName": { + "$id": "2742", + "kind": 3, + "sv": "example", + "pos": 6105, + "end": 6112, + "flags": 0, + "parent": { + "$ref": "2741" + } + }, + "content": [ + { + "$id": "2743", + "kind": 52, + "text": "```typespec\nop upload(@bodyRoot user: {name: string, @header id: string}): void;\nop download(): {@bodyRoot user: {name: string, @header id: string}};\n```", + "pos": 6112, + "end": 6283, + "flags": 0, + "parent": { + "$ref": "2741" + } + } + ], + "pos": 6104, + "end": 6283, + "flags": 0, + "parent": { + "$ref": "2739" + } + } + ], + "pos": 5759, + "end": 6285, + "flags": 0, + "parent": { + "$ref": "2732" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2732" + } + ], + "name": "@bodyRoot", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2744", + "kind": 25, + "modifiers": [ + { + "$id": "2745", + "kind": 40, + "pos": 6646, + "end": 6652, + "flags": 0, + "parent": { + "$ref": "2744" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2746", + "kind": 3, + "sv": "bodyIgnore", + "pos": 6657, + "end": 6667, + "flags": 0, + "parent": { + "$ref": "2744" + }, + "_id": 1295 + }, + "target": { + "$id": "2747", + "kind": 27, + "id": { + "$id": "2748", + "kind": 3, + "sv": "target", + "pos": 6668, + "end": 6674, + "flags": 0, + "parent": { + "$ref": "2747" + }, + "_id": 1296 + }, + "type": { + "$id": "2749", + "kind": 45, + "target": { + "$id": "2750", + "kind": 3, + "sv": "ModelProperty", + "pos": 6676, + "end": 6689, + "flags": 1, + "parent": { + "$ref": "2749" + }, + "_id": 1298 + }, + "arguments": [], + "pos": 6676, + "end": 6689, + "flags": 1, + "parent": { + "$ref": "2747" + }, + "_id": 1297 + }, + "optional": false, + "rest": false, + "pos": 6668, + "end": 6689, + "flags": 0, + "parent": { + "$ref": "2744" + }, + "symbol": { + "declarations": [ + { + "$ref": "2747" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 484 + } + }, + "parameters": [], + "pos": 6330, + "end": 6691, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2751", + "kind": 51, + "content": [ + { + "$id": "2752", + "kind": 52, + "text": "Specify that this property shouldn't be included in the HTTP body.\nThis can be useful when bundling metadata together that would result in an empty property to be included in the body.", + "pos": 6333, + "end": 6531, + "flags": 0, + "parent": { + "$ref": "2751" + } + } + ], + "tags": [ + { + "$id": "2753", + "kind": 58, + "tagName": { + "$id": "2754", + "kind": 3, + "sv": "example", + "pos": 6532, + "end": 6539, + "flags": 0, + "parent": { + "$ref": "2753" + } + }, + "content": [ + { + "$id": "2755", + "kind": 52, + "text": "```typespec\nop upload(name: string, @bodyIgnore headers: {@header id: string}): void;\n```", + "pos": 6539, + "end": 6643, + "flags": 0, + "parent": { + "$ref": "2753" + } + } + ], + "pos": 6531, + "end": 6643, + "flags": 0, + "parent": { + "$ref": "2751" + } + } + ], + "pos": 6330, + "end": 6645, + "flags": 0, + "parent": { + "$ref": "2744" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2744" + } + ], + "name": "@bodyIgnore", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2756", + "kind": 25, + "modifiers": [ + { + "$id": "2757", + "kind": 40, + "pos": 6917, + "end": 6923, + "flags": 0, + "parent": { + "$ref": "2756" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2758", + "kind": 3, + "sv": "multipartBody", + "pos": 6928, + "end": 6941, + "flags": 0, + "parent": { + "$ref": "2756" + }, + "_id": 1299 + }, + "target": { + "$id": "2759", + "kind": 27, + "id": { + "$id": "2760", + "kind": 3, + "sv": "target", + "pos": 6942, + "end": 6948, + "flags": 0, + "parent": { + "$ref": "2759" + }, + "_id": 1300 + }, + "type": { + "$id": "2761", + "kind": 45, + "target": { + "$id": "2762", + "kind": 3, + "sv": "ModelProperty", + "pos": 6950, + "end": 6963, + "flags": 1, + "parent": { + "$ref": "2761" + }, + "_id": 1302 + }, + "arguments": [], + "pos": 6950, + "end": 6963, + "flags": 1, + "parent": { + "$ref": "2759" + }, + "_id": 1301 + }, + "optional": false, + "rest": false, + "pos": 6942, + "end": 6963, + "flags": 0, + "parent": { + "$ref": "2756" + }, + "symbol": { + "declarations": [ + { + "$ref": "2759" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 486 + } + }, + "parameters": [], + "pos": 6693, + "end": 6965, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2763", + "kind": 51, + "content": [ + { + "$id": "2764", + "kind": 52, + "text": "\n", + "pos": 6696, + "end": 6700, + "flags": 0, + "parent": { + "$ref": "2763" + } + } + ], + "tags": [ + { + "$id": "2765", + "kind": 58, + "tagName": { + "$id": "2766", + "kind": 3, + "sv": "example", + "pos": 6701, + "end": 6708, + "flags": 0, + "parent": { + "$ref": "2765" + } + }, + "content": [ + { + "$id": "2767", + "kind": 52, + "text": "```tsp\nop upload(\n @header `content-type`: \"multipart/form-data\",\n @multipartBody body: {\n fullName: HttpPart,\n headShots: HttpPart[]\n }\n): void;\n```", + "pos": 6708, + "end": 6914, + "flags": 0, + "parent": { + "$ref": "2765" + } + } + ], + "pos": 6700, + "end": 6914, + "flags": 0, + "parent": { + "$ref": "2763" + } + } + ], + "pos": 6693, + "end": 6916, + "flags": 0, + "parent": { + "$ref": "2756" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2756" + } + ], + "name": "@multipartBody", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2768", + "kind": 25, + "modifiers": [ + { + "$id": "2769", + "kind": 40, + "pos": 7263, + "end": 7269, + "flags": 0, + "parent": { + "$ref": "2768" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2770", + "kind": 3, + "sv": "statusCode", + "pos": 7274, + "end": 7284, + "flags": 0, + "parent": { + "$ref": "2768" + }, + "_id": 950 + }, + "target": { + "$id": "2771", + "kind": 27, + "id": { + "$id": "2772", + "kind": 3, + "sv": "target", + "pos": 7285, + "end": 7291, + "flags": 0, + "parent": { + "$ref": "2771" + }, + "_id": 951 + }, + "type": { + "$id": "2773", + "kind": 45, + "target": { + "$id": "2774", + "kind": 3, + "sv": "ModelProperty", + "pos": 7293, + "end": 7306, + "flags": 1, + "parent": { + "$ref": "2773" + }, + "_id": 953 + }, + "arguments": [], + "pos": 7293, + "end": 7306, + "flags": 1, + "parent": { + "$ref": "2771" + }, + "_id": 952 + }, + "optional": false, + "rest": false, + "pos": 7285, + "end": 7306, + "flags": 0, + "parent": { + "$ref": "2768" + }, + "symbol": { + "declarations": [ + { + "$ref": "2771" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 406 + } + }, + "parameters": [], + "pos": 6967, + "end": 7308, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2775", + "kind": 51, + "content": [ + { + "$id": "2776", + "kind": 52, + "text": "Specify the status code for this response. Property type must be a status code integer or a union of status code integer.", + "pos": 6970, + "end": 7102, + "flags": 0, + "parent": { + "$ref": "2775" + } + } + ], + "tags": [ + { + "$id": "2777", + "kind": 58, + "tagName": { + "$id": "2778", + "kind": 3, + "sv": "example", + "pos": 7103, + "end": 7110, + "flags": 0, + "parent": { + "$ref": "2777" + } + }, + "content": [ + { + "$id": "2779", + "kind": 52, + "text": "```typespec\nop read(): {\n @statusCode _: 200;\n @body pet: Pet;\n};\nop create(): {\n @statusCode _: 201 | 202;\n};\n```", + "pos": 7110, + "end": 7260, + "flags": 0, + "parent": { + "$ref": "2777" + } + } + ], + "pos": 7102, + "end": 7260, + "flags": 0, + "parent": { + "$ref": "2775" + } + } + ], + "pos": 6967, + "end": 7262, + "flags": 0, + "parent": { + "$ref": "2768" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2768" + } + ], + "name": "@statusCode", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2780", + "kind": 25, + "modifiers": [ + { + "$id": "2781", + "kind": 40, + "pos": 7447, + "end": 7453, + "flags": 0, + "parent": { + "$ref": "2780" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2782", + "kind": 3, + "sv": "get", + "pos": 7458, + "end": 7461, + "flags": 0, + "parent": { + "$ref": "2780" + }, + "_id": 973 + }, + "target": { + "$id": "2783", + "kind": 27, + "id": { + "$id": "2784", + "kind": 3, + "sv": "target", + "pos": 7462, + "end": 7468, + "flags": 0, + "parent": { + "$ref": "2783" + }, + "_id": 974 + }, + "type": { + "$id": "2785", + "kind": 45, + "target": { + "$id": "2786", + "kind": 3, + "sv": "Operation", + "pos": 7470, + "end": 7479, + "flags": 1, + "parent": { + "$ref": "2785" + }, + "_id": 976 + }, + "arguments": [], + "pos": 7470, + "end": 7479, + "flags": 1, + "parent": { + "$ref": "2783" + }, + "_id": 975 + }, + "optional": false, + "rest": false, + "pos": 7462, + "end": 7479, + "flags": 0, + "parent": { + "$ref": "2780" + }, + "symbol": { + "declarations": [ + { + "$ref": "2783" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 421 + } + }, + "parameters": [], + "pos": 7310, + "end": 7481, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2787", + "kind": 51, + "content": [ + { + "$id": "2788", + "kind": 52, + "text": "Specify the HTTP verb for the target operation to be `GET`.", + "pos": 7313, + "end": 7383, + "flags": 0, + "parent": { + "$ref": "2787" + } + } + ], + "tags": [ + { + "$id": "2789", + "kind": 58, + "tagName": { + "$id": "2790", + "kind": 3, + "sv": "example", + "pos": 7384, + "end": 7391, + "flags": 0, + "parent": { + "$ref": "2789" + } + }, + "content": [ + { + "$id": "2791", + "kind": 52, + "text": "```typespec\n@get op read(): string\n```", + "pos": 7391, + "end": 7444, + "flags": 0, + "parent": { + "$ref": "2789" + } + } + ], + "pos": 7383, + "end": 7444, + "flags": 0, + "parent": { + "$ref": "2787" + } + } + ], + "pos": 7310, + "end": 7446, + "flags": 0, + "parent": { + "$ref": "2780" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2780" + } + ], + "name": "@get", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2792", + "kind": 25, + "modifiers": [ + { + "$id": "2793", + "kind": 40, + "pos": 7625, + "end": 7631, + "flags": 0, + "parent": { + "$ref": "2792" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2794", + "kind": 3, + "sv": "put", + "pos": 7636, + "end": 7639, + "flags": 0, + "parent": { + "$ref": "2792" + }, + "_id": 1303 + }, + "target": { + "$id": "2795", + "kind": 27, + "id": { + "$id": "2796", + "kind": 3, + "sv": "target", + "pos": 7640, + "end": 7646, + "flags": 0, + "parent": { + "$ref": "2795" + }, + "_id": 1304 + }, + "type": { + "$id": "2797", + "kind": 45, + "target": { + "$id": "2798", + "kind": 3, + "sv": "Operation", + "pos": 7648, + "end": 7657, + "flags": 1, + "parent": { + "$ref": "2797" + }, + "_id": 1306 + }, + "arguments": [], + "pos": 7648, + "end": 7657, + "flags": 1, + "parent": { + "$ref": "2795" + }, + "_id": 1305 + }, + "optional": false, + "rest": false, + "pos": 7640, + "end": 7657, + "flags": 0, + "parent": { + "$ref": "2792" + }, + "symbol": { + "declarations": [ + { + "$ref": "2795" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 488 + } + }, + "parameters": [], + "pos": 7483, + "end": 7659, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2799", + "kind": 51, + "content": [ + { + "$id": "2800", + "kind": 52, + "text": "Specify the HTTP verb for the target operation to be `PUT`.", + "pos": 7486, + "end": 7556, + "flags": 0, + "parent": { + "$ref": "2799" + } + } + ], + "tags": [ + { + "$id": "2801", + "kind": 58, + "tagName": { + "$id": "2802", + "kind": 3, + "sv": "example", + "pos": 7557, + "end": 7564, + "flags": 0, + "parent": { + "$ref": "2801" + } + }, + "content": [ + { + "$id": "2803", + "kind": 52, + "text": "```typespec\n@put op set(pet: Pet): void\n```", + "pos": 7564, + "end": 7622, + "flags": 0, + "parent": { + "$ref": "2801" + } + } + ], + "pos": 7556, + "end": 7622, + "flags": 0, + "parent": { + "$ref": "2799" + } + } + ], + "pos": 7483, + "end": 7624, + "flags": 0, + "parent": { + "$ref": "2792" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2792" + } + ], + "name": "@put", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2804", + "kind": 25, + "modifiers": [ + { + "$id": "2805", + "kind": 40, + "pos": 7808, + "end": 7814, + "flags": 0, + "parent": { + "$ref": "2804" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2806", + "kind": 3, + "sv": "post", + "pos": 7819, + "end": 7823, + "flags": 0, + "parent": { + "$ref": "2804" + }, + "_id": 887 + }, + "target": { + "$id": "2807", + "kind": 27, + "id": { + "$id": "2808", + "kind": 3, + "sv": "target", + "pos": 7824, + "end": 7830, + "flags": 0, + "parent": { + "$ref": "2807" + }, + "_id": 888 + }, + "type": { + "$id": "2809", + "kind": 45, + "target": { + "$id": "2810", + "kind": 3, + "sv": "Operation", + "pos": 7832, + "end": 7841, + "flags": 1, + "parent": { + "$ref": "2809" + }, + "_id": 890 + }, + "arguments": [], + "pos": 7832, + "end": 7841, + "flags": 1, + "parent": { + "$ref": "2807" + }, + "_id": 889 + }, + "optional": false, + "rest": false, + "pos": 7824, + "end": 7841, + "flags": 0, + "parent": { + "$ref": "2804" + }, + "symbol": { + "declarations": [ + { + "$ref": "2807" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 416 + } + }, + "parameters": [], + "pos": 7661, + "end": 7843, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2811", + "kind": 51, + "content": [ + { + "$id": "2812", + "kind": 52, + "text": "Specify the HTTP verb for the target operation to be `POST`.", + "pos": 7664, + "end": 7735, + "flags": 0, + "parent": { + "$ref": "2811" + } + } + ], + "tags": [ + { + "$id": "2813", + "kind": 58, + "tagName": { + "$id": "2814", + "kind": 3, + "sv": "example", + "pos": 7736, + "end": 7743, + "flags": 0, + "parent": { + "$ref": "2813" + } + }, + "content": [ + { + "$id": "2815", + "kind": 52, + "text": "```typespec\n@post op create(pet: Pet): void\n```", + "pos": 7743, + "end": 7805, + "flags": 0, + "parent": { + "$ref": "2813" + } + } + ], + "pos": 7735, + "end": 7805, + "flags": 0, + "parent": { + "$ref": "2811" + } + } + ], + "pos": 7661, + "end": 7807, + "flags": 0, + "parent": { + "$ref": "2804" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2804" + } + ], + "name": "@post", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2816", + "kind": 13, + "id": { + "$id": "2817", + "kind": 3, + "sv": "PatchOptions", + "pos": 7892, + "end": 7904, + "flags": 0, + "parent": { + "$ref": "2816" + }, + "_id": 1307 + }, + "templateParameters": [], + "templateParametersRange": { + "pos": -1, + "end": -1 + }, + "decorators": [], + "properties": [ + { + "$id": "2818", + "kind": 15, + "id": { + "$id": "2819", + "kind": 3, + "sv": "implicitOptionality", + "pos": 8040, + "end": 8059, + "flags": 0, + "parent": { + "$ref": "2818" + }, + "_id": 1308 + }, + "decorators": [], + "value": { + "$id": "2820", + "kind": 45, + "target": { + "$id": "2821", + "kind": 3, + "sv": "boolean", + "pos": 8062, + "end": 8069, + "flags": 1, + "parent": { + "$ref": "2820" + }, + "_id": 1310 + }, + "arguments": [], + "pos": 8062, + "end": 8069, + "flags": 1, + "parent": { + "$ref": "2818" + }, + "_id": 1309 + }, + "optional": true, + "pos": 7909, + "end": 8069, + "flags": 0, + "docs": [ + { + "$id": "2822", + "kind": 51, + "content": [ + { + "$id": "2823", + "kind": 52, + "text": "If set to `false`, disables the implicit transform that makes the body of a\nPATCH operation deeply optional.", + "pos": 7912, + "end": 8035, + "flags": 0, + "parent": { + "$ref": "2822" + } + } + ], + "tags": [], + "pos": 7909, + "end": 8037, + "flags": 0, + "parent": { + "$ref": "2818" + } + } + ], + "directives": [], + "parent": { + "$ref": "2816" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2818" + }, + "name": "implicitOptionality", + "flags": 65536, + "parent": { + "declarations": [ + { + "$ref": "2816" + } + ], + "name": "PatchOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 144 + }, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "bodyRange": { + "pos": 7905, + "end": 8072 + }, + "pos": 7845, + "end": 8072, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2824", + "kind": 51, + "content": [ + { + "$id": "2825", + "kind": 52, + "text": "Options for PATCH operations.", + "pos": 7848, + "end": 7883, + "flags": 0, + "parent": { + "$ref": "2824" + } + } + ], + "tags": [], + "pos": 7845, + "end": 7885, + "flags": 0, + "parent": { + "$ref": "2816" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2816" + } + ], + "name": "PatchOptions", + "members": { + "duplicates": {} + }, + "flags": 1048578, + "metatypeMembers": { + "duplicates": {} + }, + "id": 144 + }, + "locals": { + "duplicates": {} + } + }, + { + "$id": "2826", + "kind": 25, + "modifiers": [ + { + "$id": "2827", + "kind": 40, + "pos": 8520, + "end": 8526, + "flags": 0, + "parent": { + "$ref": "2826" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2828", + "kind": 3, + "sv": "patch", + "pos": 8531, + "end": 8536, + "flags": 0, + "parent": { + "$ref": "2826" + }, + "_id": 1311 + }, + "target": { + "$id": "2829", + "kind": 27, + "id": { + "$id": "2830", + "kind": 3, + "sv": "target", + "pos": 8537, + "end": 8543, + "flags": 0, + "parent": { + "$ref": "2829" + }, + "_id": 1312 + }, + "type": { + "$id": "2831", + "kind": 45, + "target": { + "$id": "2832", + "kind": 3, + "sv": "Operation", + "pos": 8545, + "end": 8554, + "flags": 1, + "parent": { + "$ref": "2831" + }, + "_id": 1314 + }, + "arguments": [], + "pos": 8545, + "end": 8554, + "flags": 1, + "parent": { + "$ref": "2829" + }, + "_id": 1313 + }, + "optional": false, + "rest": false, + "pos": 8537, + "end": 8554, + "flags": 0, + "parent": { + "$ref": "2826" + }, + "symbol": { + "declarations": [ + { + "$ref": "2829" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 491 + } + }, + "parameters": [ + { + "$id": "2833", + "kind": 27, + "id": { + "$id": "2834", + "kind": 3, + "sv": "options", + "pos": 8556, + "end": 8563, + "flags": 0, + "parent": { + "$ref": "2833" + }, + "_id": 1315 + }, + "type": { + "$id": "2835", + "kind": 44, + "target": { + "$id": "2836", + "kind": 45, + "target": { + "$id": "2837", + "kind": 3, + "sv": "PatchOptions", + "pos": 8574, + "end": 8586, + "flags": 1, + "parent": { + "$ref": "2836" + }, + "_id": 1317 + }, + "arguments": [], + "pos": 8574, + "end": 8586, + "flags": 1, + "parent": { + "$ref": "2835" + }, + "_id": 1316 + }, + "pos": 8566, + "end": 8586, + "flags": 0, + "parent": { + "$ref": "2833" + } + }, + "optional": true, + "rest": false, + "pos": 8556, + "end": 8586, + "flags": 0, + "parent": { + "$ref": "2826" + }, + "symbol": { + "declarations": [ + { + "$ref": "2833" + } + ], + "name": "options", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 492 + } + } + ], + "pos": 8074, + "end": 8588, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2838", + "kind": 51, + "content": [ + { + "$id": "2839", + "kind": 52, + "text": "Specify the HTTP verb for the target operation to be `PATCH`.", + "pos": 8077, + "end": 8149, + "flags": 0, + "parent": { + "$ref": "2838" + } + } + ], + "tags": [ + { + "$id": "2840", + "kind": 53, + "tagName": { + "$id": "2841", + "kind": 3, + "sv": "param", + "pos": 8150, + "end": 8155, + "flags": 0, + "parent": { + "$ref": "2840" + } + }, + "paramName": { + "$id": "2842", + "kind": 3, + "sv": "options", + "pos": 8156, + "end": 8163, + "flags": 0, + "parent": { + "$ref": "2840" + } + }, + "content": [ + { + "$id": "2843", + "kind": 52, + "text": "Options for the PATCH operation.", + "pos": 8164, + "end": 8203, + "flags": 0, + "parent": { + "$ref": "2840" + } + } + ], + "pos": 8149, + "end": 8203, + "flags": 0, + "parent": { + "$ref": "2838" + } + }, + { + "$id": "2844", + "kind": 58, + "tagName": { + "$id": "2845", + "kind": 3, + "sv": "example", + "pos": 8204, + "end": 8211, + "flags": 0, + "parent": { + "$ref": "2844" + } + }, + "content": [ + { + "$id": "2846", + "kind": 52, + "text": "```typespec\n@patch op update(pet: Pet): void;\n```", + "pos": 8211, + "end": 8280, + "flags": 0, + "parent": { + "$ref": "2844" + } + } + ], + "pos": 8203, + "end": 8280, + "flags": 0, + "parent": { + "$ref": "2838" + } + }, + { + "$id": "2847", + "kind": 58, + "tagName": { + "$id": "2848", + "kind": 3, + "sv": "example", + "pos": 8281, + "end": 8288, + "flags": 0, + "parent": { + "$ref": "2847" + } + }, + "content": [ + { + "$id": "2849", + "kind": 52, + "text": "```typespec\n// Disable implicit optionality, making the body of the PATCH operation use the\n// optionality as defined in the `Pet` model.\n@patch(#{ implicitOptionality: false })\nop update(pet: Pet): void;\n```", + "pos": 8288, + "end": 8517, + "flags": 0, + "parent": { + "$ref": "2847" + } + } + ], + "pos": 8280, + "end": 8517, + "flags": 0, + "parent": { + "$ref": "2838" + } + } + ], + "pos": 8074, + "end": 8519, + "flags": 0, + "parent": { + "$ref": "2826" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2826" + } + ], + "name": "@patch", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2850", + "kind": 25, + "modifiers": [ + { + "$id": "2851", + "kind": 40, + "pos": 8743, + "end": 8749, + "flags": 0, + "parent": { + "$ref": "2850" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2852", + "kind": 3, + "sv": "delete", + "pos": 8754, + "end": 8760, + "flags": 0, + "parent": { + "$ref": "2850" + }, + "_id": 1318 + }, + "target": { + "$id": "2853", + "kind": 27, + "id": { + "$id": "2854", + "kind": 3, + "sv": "target", + "pos": 8761, + "end": 8767, + "flags": 0, + "parent": { + "$ref": "2853" + }, + "_id": 1319 + }, + "type": { + "$id": "2855", + "kind": 45, + "target": { + "$id": "2856", + "kind": 3, + "sv": "Operation", + "pos": 8769, + "end": 8778, + "flags": 1, + "parent": { + "$ref": "2855" + }, + "_id": 1321 + }, + "arguments": [], + "pos": 8769, + "end": 8778, + "flags": 1, + "parent": { + "$ref": "2853" + }, + "_id": 1320 + }, + "optional": false, + "rest": false, + "pos": 8761, + "end": 8778, + "flags": 0, + "parent": { + "$ref": "2850" + }, + "symbol": { + "declarations": [ + { + "$ref": "2853" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 494 + } + }, + "parameters": [], + "pos": 8590, + "end": 8780, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2857", + "kind": 51, + "content": [ + { + "$id": "2858", + "kind": 52, + "text": "Specify the HTTP verb for the target operation to be `DELETE`.", + "pos": 8593, + "end": 8666, + "flags": 0, + "parent": { + "$ref": "2857" + } + } + ], + "tags": [ + { + "$id": "2859", + "kind": 58, + "tagName": { + "$id": "2860", + "kind": 3, + "sv": "example", + "pos": 8667, + "end": 8674, + "flags": 0, + "parent": { + "$ref": "2859" + } + }, + "content": [ + { + "$id": "2861", + "kind": 52, + "text": "```typespec\n@delete op set(petId: string): void\n```", + "pos": 8674, + "end": 8740, + "flags": 0, + "parent": { + "$ref": "2859" + } + } + ], + "pos": 8666, + "end": 8740, + "flags": 0, + "parent": { + "$ref": "2857" + } + } + ], + "pos": 8590, + "end": 8742, + "flags": 0, + "parent": { + "$ref": "2850" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2850" + } + ], + "name": "@delete", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2862", + "kind": 25, + "modifiers": [ + { + "$id": "2863", + "kind": 40, + "pos": 8929, + "end": 8935, + "flags": 0, + "parent": { + "$ref": "2862" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2864", + "kind": 3, + "sv": "head", + "pos": 8940, + "end": 8944, + "flags": 0, + "parent": { + "$ref": "2862" + }, + "_id": 1322 + }, + "target": { + "$id": "2865", + "kind": 27, + "id": { + "$id": "2866", + "kind": 3, + "sv": "target", + "pos": 8945, + "end": 8951, + "flags": 0, + "parent": { + "$ref": "2865" + }, + "_id": 1323 + }, + "type": { + "$id": "2867", + "kind": 45, + "target": { + "$id": "2868", + "kind": 3, + "sv": "Operation", + "pos": 8953, + "end": 8962, + "flags": 1, + "parent": { + "$ref": "2867" + }, + "_id": 1325 + }, + "arguments": [], + "pos": 8953, + "end": 8962, + "flags": 1, + "parent": { + "$ref": "2865" + }, + "_id": 1324 + }, + "optional": false, + "rest": false, + "pos": 8945, + "end": 8962, + "flags": 0, + "parent": { + "$ref": "2862" + }, + "symbol": { + "declarations": [ + { + "$ref": "2865" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 496 + } + }, + "parameters": [], + "pos": 8782, + "end": 8964, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2869", + "kind": 51, + "content": [ + { + "$id": "2870", + "kind": 52, + "text": "Specify the HTTP verb for the target operation to be `HEAD`.", + "pos": 8785, + "end": 8853, + "flags": 0, + "parent": { + "$ref": "2869" + } + } + ], + "tags": [ + { + "$id": "2871", + "kind": 58, + "tagName": { + "$id": "2872", + "kind": 3, + "sv": "example", + "pos": 8854, + "end": 8861, + "flags": 0, + "parent": { + "$ref": "2871" + } + }, + "content": [ + { + "$id": "2873", + "kind": 52, + "text": "```typespec\n@head op ping(petId: string): void\n```", + "pos": 8861, + "end": 8926, + "flags": 0, + "parent": { + "$ref": "2871" + } + } + ], + "pos": 8853, + "end": 8926, + "flags": 0, + "parent": { + "$ref": "2869" + } + } + ], + "pos": 8782, + "end": 8928, + "flags": 0, + "parent": { + "$ref": "2862" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2862" + } + ], + "name": "@head", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2874", + "kind": 25, + "modifiers": [ + { + "$id": "2875", + "kind": 40, + "pos": 9943, + "end": 9949, + "flags": 0, + "parent": { + "$ref": "2874" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2876", + "kind": 3, + "sv": "server", + "pos": 9954, + "end": 9960, + "flags": 0, + "parent": { + "$ref": "2874" + }, + "_id": 1326 + }, + "target": { + "$id": "2877", + "kind": 27, + "id": { + "$id": "2878", + "kind": 3, + "sv": "target", + "pos": 9964, + "end": 9970, + "flags": 0, + "parent": { + "$ref": "2877" + }, + "_id": 1327 + }, + "type": { + "$id": "2879", + "kind": 45, + "target": { + "$id": "2880", + "kind": 3, + "sv": "Namespace", + "pos": 9972, + "end": 9981, + "flags": 1, + "parent": { + "$ref": "2879" + }, + "_id": 1329 + }, + "arguments": [], + "pos": 9972, + "end": 9981, + "flags": 1, + "parent": { + "$ref": "2877" + }, + "_id": 1328 + }, + "optional": false, + "rest": false, + "pos": 9964, + "end": 9981, + "flags": 0, + "parent": { + "$ref": "2874" + }, + "symbol": { + "declarations": [ + { + "$ref": "2877" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 498 + } + }, + "parameters": [ + { + "$id": "2881", + "kind": 27, + "id": { + "$id": "2882", + "kind": 3, + "sv": "url", + "pos": 9985, + "end": 9988, + "flags": 0, + "parent": { + "$ref": "2881" + }, + "_id": 1330 + }, + "type": { + "$id": "2883", + "kind": 44, + "target": { + "$id": "2884", + "kind": 45, + "target": { + "$id": "2885", + "kind": 3, + "sv": "string", + "pos": 9998, + "end": 10004, + "flags": 1, + "parent": { + "$ref": "2884" + }, + "_id": 1332 + }, + "arguments": [], + "pos": 9998, + "end": 10004, + "flags": 1, + "parent": { + "$ref": "2883" + }, + "_id": 1331 + }, + "pos": 9990, + "end": 10004, + "flags": 0, + "parent": { + "$ref": "2881" + } + }, + "optional": false, + "rest": false, + "pos": 9985, + "end": 10004, + "flags": 0, + "parent": { + "$ref": "2874" + }, + "symbol": { + "declarations": [ + { + "$ref": "2881" + } + ], + "name": "url", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 499 + } + }, + { + "$id": "2886", + "kind": 27, + "id": { + "$id": "2887", + "kind": 3, + "sv": "description", + "pos": 10008, + "end": 10019, + "flags": 0, + "parent": { + "$ref": "2886" + }, + "_id": 1333 + }, + "type": { + "$id": "2888", + "kind": 44, + "target": { + "$id": "2889", + "kind": 45, + "target": { + "$id": "2890", + "kind": 3, + "sv": "string", + "pos": 10030, + "end": 10036, + "flags": 1, + "parent": { + "$ref": "2889" + }, + "_id": 1335 + }, + "arguments": [], + "pos": 10030, + "end": 10036, + "flags": 1, + "parent": { + "$ref": "2888" + }, + "_id": 1334 + }, + "pos": 10022, + "end": 10036, + "flags": 0, + "parent": { + "$ref": "2886" + } + }, + "optional": true, + "rest": false, + "pos": 10008, + "end": 10036, + "flags": 0, + "parent": { + "$ref": "2874" + }, + "symbol": { + "declarations": [ + { + "$ref": "2886" + } + ], + "name": "description", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 500 + } + }, + { + "$id": "2891", + "kind": 27, + "id": { + "$id": "2892", + "kind": 3, + "sv": "parameters", + "pos": 10040, + "end": 10050, + "flags": 0, + "parent": { + "$ref": "2891" + }, + "_id": 1336 + }, + "type": { + "$id": "2893", + "kind": 45, + "target": { + "$id": "2894", + "kind": 3, + "sv": "Record", + "pos": 10053, + "end": 10059, + "flags": 1, + "parent": { + "$ref": "2893" + }, + "_id": 1338 + }, + "arguments": [ + { + "$id": "2895", + "kind": 61, + "argument": { + "$id": "2896", + "kind": 43, + "pos": 10060, + "end": 10067, + "flags": 1, + "parent": { + "$ref": "2895" + } + }, + "pos": 10060, + "end": 10067, + "flags": 1, + "parent": { + "$ref": "2893" + } + } + ], + "pos": 10053, + "end": 10068, + "flags": 1, + "parent": { + "$ref": "2891" + }, + "_id": 1337 + }, + "optional": true, + "rest": false, + "pos": 10040, + "end": 10068, + "flags": 0, + "parent": { + "$ref": "2874" + }, + "symbol": { + "declarations": [ + { + "$ref": "2891" + } + ], + "name": "parameters", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 501 + } + } + ], + "pos": 8966, + "end": 10071, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2897", + "kind": 51, + "content": [ + { + "$id": "2898", + "kind": 52, + "text": "Specify an endpoint for this service. Multiple `@server` decorators can be used to specify multiple endpoints.", + "pos": 8969, + "end": 9091, + "flags": 0, + "parent": { + "$ref": "2897" + } + } + ], + "tags": [ + { + "$id": "2899", + "kind": 53, + "tagName": { + "$id": "2900", + "kind": 3, + "sv": "param", + "pos": 9092, + "end": 9097, + "flags": 0, + "parent": { + "$ref": "2899" + } + }, + "paramName": { + "$id": "2901", + "kind": 3, + "sv": "url", + "pos": 9098, + "end": 9101, + "flags": 0, + "parent": { + "$ref": "2899" + } + }, + "content": [ + { + "$id": "2902", + "kind": 52, + "text": "Server endpoint", + "pos": 9102, + "end": 9122, + "flags": 0, + "parent": { + "$ref": "2899" + } + } + ], + "pos": 9091, + "end": 9122, + "flags": 0, + "parent": { + "$ref": "2897" + } + }, + { + "$id": "2903", + "kind": 53, + "tagName": { + "$id": "2904", + "kind": 3, + "sv": "param", + "pos": 9123, + "end": 9128, + "flags": 0, + "parent": { + "$ref": "2903" + } + }, + "paramName": { + "$id": "2905", + "kind": 3, + "sv": "description", + "pos": 9129, + "end": 9140, + "flags": 0, + "parent": { + "$ref": "2903" + } + }, + "content": [ + { + "$id": "2906", + "kind": 52, + "text": "Description of the endpoint", + "pos": 9141, + "end": 9173, + "flags": 0, + "parent": { + "$ref": "2903" + } + } + ], + "pos": 9122, + "end": 9173, + "flags": 0, + "parent": { + "$ref": "2897" + } + }, + { + "$id": "2907", + "kind": 53, + "tagName": { + "$id": "2908", + "kind": 3, + "sv": "param", + "pos": 9174, + "end": 9179, + "flags": 0, + "parent": { + "$ref": "2907" + } + }, + "paramName": { + "$id": "2909", + "kind": 3, + "sv": "parameters", + "pos": 9180, + "end": 9190, + "flags": 0, + "parent": { + "$ref": "2907" + } + }, + "content": [ + { + "$id": "2910", + "kind": 52, + "text": "Optional set of parameters used to interpolate the url.", + "pos": 9191, + "end": 9253, + "flags": 0, + "parent": { + "$ref": "2907" + } + } + ], + "pos": 9173, + "end": 9253, + "flags": 0, + "parent": { + "$ref": "2897" + } + }, + { + "$id": "2911", + "kind": 58, + "tagName": { + "$id": "2912", + "kind": 3, + "sv": "example", + "pos": 9254, + "end": 9261, + "flags": 0, + "parent": { + "$ref": "2911" + } + }, + "content": [ + { + "$id": "2913", + "kind": 52, + "text": "```typespec\n@service\n@server(\"https://example.com\")\nnamespace PetStore;\n```", + "pos": 9261, + "end": 9362, + "flags": 0, + "parent": { + "$ref": "2911" + } + } + ], + "pos": 9253, + "end": 9362, + "flags": 0, + "parent": { + "$ref": "2897" + } + }, + { + "$id": "2914", + "kind": 58, + "tagName": { + "$id": "2915", + "kind": 3, + "sv": "example", + "pos": 9363, + "end": 9370, + "flags": 0, + "parent": { + "$ref": "2914" + } + }, + "content": [ + { + "$id": "2916", + "kind": 52, + "text": "With a description\n\n```typespec\n@service\n@server(\"https://example.com\", \"Single server endpoint\")\nnamespace PetStore;\n```", + "pos": 9370, + "end": 9516, + "flags": 0, + "parent": { + "$ref": "2914" + } + } + ], + "pos": 9362, + "end": 9516, + "flags": 0, + "parent": { + "$ref": "2897" + } + }, + { + "$id": "2917", + "kind": 58, + "tagName": { + "$id": "2918", + "kind": 3, + "sv": "example", + "pos": 9517, + "end": 9524, + "flags": 0, + "parent": { + "$ref": "2917" + } + }, + "content": [ + { + "$id": "2919", + "kind": 52, + "text": "Parameterized\n\n```typespec\n@server(\"https://{region}.foo.com\", \"Regional endpoint\", {\n @doc(\"Region name\")\n region?: string = \"westus\",\n})\n```", + "pos": 9524, + "end": 9696, + "flags": 0, + "parent": { + "$ref": "2917" + } + } + ], + "pos": 9516, + "end": 9696, + "flags": 0, + "parent": { + "$ref": "2897" + } + }, + { + "$id": "2920", + "kind": 58, + "tagName": { + "$id": "2921", + "kind": 3, + "sv": "example", + "pos": 9697, + "end": 9704, + "flags": 0, + "parent": { + "$ref": "2920" + } + }, + "content": [ + { + "$id": "2922", + "kind": 52, + "text": "Multiple\n```typespec\n@service\n@server(\"https://example.com\", \"Standard endpoint\")\n@server(\"https://{project}.private.example.com\", \"Private project endpoint\", {\n project: string;\n})\nnamespace PetStore;\n```", + "pos": 9704, + "end": 9940, + "flags": 0, + "parent": { + "$ref": "2920" + } + } + ], + "pos": 9696, + "end": 9940, + "flags": 0, + "parent": { + "$ref": "2897" + } + } + ], + "pos": 8966, + "end": 9942, + "flags": 0, + "parent": { + "$ref": "2874" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2874" + } + ], + "name": "@server", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$id": "2923", + "kind": 25, + "modifiers": [ + { + "$id": "2924", + "kind": 40, + "pos": 10539, + "end": 10545, + "flags": 0, + "parent": { + "$ref": "2923" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2925", + "kind": 3, + "sv": "useAuth", + "pos": 10550, + "end": 10557, + "flags": 0, + "parent": { + "$ref": "2923" + }, + "_id": 1339 + }, + "target": { + "$id": "2926", + "kind": 27, + "id": { + "$id": "2927", + "kind": 3, + "sv": "target", + "pos": 10558, + "end": 10564, + "flags": 0, + "parent": { + "$ref": "2926" + }, + "_id": 1340 + }, + "type": { + "$id": "2928", + "kind": 28, + "options": [ + { + "$id": "2929", + "kind": 45, + "target": { + "$id": "2930", + "kind": 3, + "sv": "Namespace", + "pos": 10566, + "end": 10575, + "flags": 1, + "parent": { + "$ref": "2929" + }, + "_id": 1342 + }, + "arguments": [], + "pos": 10566, + "end": 10575, + "flags": 1, + "parent": { + "$ref": "2928" + }, + "_id": 1341 + }, + { + "$id": "2931", + "kind": 45, + "target": { + "$id": "2932", + "kind": 3, + "sv": "Interface", + "pos": 10578, + "end": 10587, + "flags": 1, + "parent": { + "$ref": "2931" + }, + "_id": 1344 + }, + "arguments": [], + "pos": 10578, + "end": 10587, + "flags": 1, + "parent": { + "$ref": "2928" + }, + "_id": 1343 + }, + { + "$id": "2933", + "kind": 45, + "target": { + "$id": "2934", + "kind": 3, + "sv": "Operation", + "pos": 10590, + "end": 10599, + "flags": 1, + "parent": { + "$ref": "2933" + }, + "_id": 1346 + }, + "arguments": [], + "pos": 10590, + "end": 10599, + "flags": 1, + "parent": { + "$ref": "2928" + }, + "_id": 1345 + } + ], + "pos": 10566, + "end": 10599, + "flags": 0, + "parent": { + "$ref": "2926" + } + }, + "optional": false, + "rest": false, + "pos": 10558, + "end": 10599, + "flags": 0, + "parent": { + "$ref": "2923" + }, + "symbol": { + "declarations": [ + { + "$ref": "2926" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 503 + } + }, + "parameters": [ + { + "$id": "2935", + "kind": 27, + "id": { + "$id": "2936", + "kind": 3, + "sv": "auth", + "pos": 10601, + "end": 10605, + "flags": 0, + "parent": { + "$ref": "2935" + }, + "_id": 1347 + }, + "type": { + "$id": "2937", + "kind": 28, + "options": [ + { + "$id": "2938", + "kind": 14, + "properties": [], + "bodyRange": { + "pos": 10607, + "end": 10609 + }, + "pos": 10607, + "end": 10609, + "flags": 0, + "parent": { + "$ref": "2937" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2938" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "metatypeMembers": { + "duplicates": {} + }, + "id": 145 + } + }, + { + "$id": "2939", + "kind": 45, + "target": { + "$id": "2940", + "kind": 3, + "sv": "Union", + "pos": 10612, + "end": 10617, + "flags": 1, + "parent": { + "$ref": "2939" + }, + "_id": 1349 + }, + "arguments": [], + "pos": 10612, + "end": 10617, + "flags": 1, + "parent": { + "$ref": "2937" + }, + "_id": 1348 + }, + { + "$id": "2941", + "kind": 31, + "elementType": { + "$id": "2942", + "kind": 14, + "properties": [], + "bodyRange": { + "pos": 10620, + "end": 10622 + }, + "pos": 10620, + "end": 10622, + "flags": 0, + "parent": { + "$ref": "2941" + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "2942" + }, + "name": "-", + "members": { + "duplicates": {} + }, + "flags": 2, + "metatypeMembers": { + "duplicates": {} + }, + "id": 146 + } + }, + "pos": 10620, + "end": 10624, + "flags": 0, + "parent": { + "$ref": "2937" + } + } + ], + "pos": 10607, + "end": 10624, + "flags": 0, + "parent": { + "$ref": "2935" + } + }, + "optional": false, + "rest": false, + "pos": 10601, + "end": 10624, + "flags": 0, + "parent": { + "$ref": "2923" + }, + "symbol": { + "declarations": [ + { + "$ref": "2935" + } + ], + "name": "auth", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 504 + } + } + ], + "pos": 10073, + "end": 10626, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2943", + "kind": 51, + "content": [ + { + "$id": "2944", + "kind": 52, + "text": "Specify authentication for a whole service or specific methods. See the [documentation in the Http library](https://typespec.io/docs/libraries/http/authentication) for full details.", + "pos": 10076, + "end": 10268, + "flags": 0, + "parent": { + "$ref": "2943" + } + } + ], + "tags": [ + { + "$id": "2945", + "kind": 53, + "tagName": { + "$id": "2946", + "kind": 3, + "sv": "param", + "pos": 10269, + "end": 10274, + "flags": 0, + "parent": { + "$ref": "2945" + } + }, + "paramName": { + "$id": "2947", + "kind": 3, + "sv": "auth", + "pos": 10275, + "end": 10279, + "flags": 0, + "parent": { + "$ref": "2945" + } + }, + "content": [ + { + "$id": "2948", + "kind": 52, + "text": "Authentication configuration. Can be a single security scheme, a union(either option is valid authentication) or a tuple (must use all authentication together)", + "pos": 10280, + "end": 10443, + "flags": 0, + "parent": { + "$ref": "2945" + } + } + ], + "pos": 10268, + "end": 10443, + "flags": 0, + "parent": { + "$ref": "2943" + } + }, + { + "$id": "2949", + "kind": 58, + "tagName": { + "$id": "2950", + "kind": 3, + "sv": "example", + "pos": 10444, + "end": 10451, + "flags": 0, + "parent": { + "$ref": "2949" + } + }, + "content": [ + { + "$id": "2951", + "kind": 52, + "text": "```typespec\n@service\n@useAuth(BasicAuth)\nnamespace PetStore;\n```", + "pos": 10451, + "end": 10536, + "flags": 0, + "parent": { + "$ref": "2949" + } + } + ], + "pos": 10443, + "end": 10536, + "flags": 0, + "parent": { + "$ref": "2943" + } + } + ], + "pos": 10073, + "end": 10538, + "flags": 0, + "parent": { + "$ref": "2923" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2923" + } + ], + "name": "@useAuth", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + }, + { + "$ref": "2525" + }, + { + "$id": "2952", + "kind": 25, + "modifiers": [ + { + "$id": "2953", + "kind": 40, + "pos": 11934, + "end": 11940, + "flags": 0, + "parent": { + "$ref": "2952" + } + } + ], + "modifierFlags": 2, + "id": { + "$id": "2954", + "kind": 3, + "sv": "sharedRoute", + "pos": 11945, + "end": 11956, + "flags": 0, + "parent": { + "$ref": "2952" + }, + "_id": 1350 + }, + "target": { + "$id": "2955", + "kind": 27, + "id": { + "$id": "2956", + "kind": 3, + "sv": "target", + "pos": 11957, + "end": 11963, + "flags": 0, + "parent": { + "$ref": "2955" + }, + "_id": 1351 + }, + "type": { + "$id": "2957", + "kind": 45, + "target": { + "$id": "2958", + "kind": 3, + "sv": "Operation", + "pos": 11965, + "end": 11974, + "flags": 1, + "parent": { + "$ref": "2957" + }, + "_id": 1353 + }, + "arguments": [], + "pos": 11965, + "end": 11974, + "flags": 1, + "parent": { + "$ref": "2955" + }, + "_id": 1352 + }, + "optional": false, + "rest": false, + "pos": 11957, + "end": 11974, + "flags": 0, + "parent": { + "$ref": "2952" + }, + "symbol": { + "declarations": [ + { + "$ref": "2955" + } + ], + "name": "target", + "flags": 1052672, + "metatypeMembers": { + "duplicates": {} + }, + "id": 506 + } + }, + "parameters": [], + "pos": 11490, + "end": 11976, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2959", + "kind": 51, + "content": [ + { + "$id": "2960", + "kind": 52, + "text": "`@sharedRoute` marks the operation as sharing a route path with other operations.\n\nWhen an operation is marked with `@sharedRoute`, it enables other operations to share the same\nroute path as long as those operations are also marked with `@sharedRoute`.\n\n`@sharedRoute` can only be applied directly to operations.\n\n```typespec\n@sharedRoute\n@route(\"/widgets\")\nop getWidget(@path id: string): Widget;\n```", + "pos": 11493, + "end": 11931, + "flags": 0, + "parent": { + "$ref": "2959" + } + } + ], + "tags": [], + "pos": 11490, + "end": 11933, + "flags": 0, + "parent": { + "$ref": "2952" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2952" + } + ], + "name": "@sharedRoute", + "flags": 1049088, + "metatypeMembers": { + "duplicates": {} + } + } + } + ], + "file": { + "text": "namespace TypeSpec.Http;\n\nusing TypeSpec.Reflection;\n\n/**\n * Header options.\n */\nmodel HeaderOptions {\n /**\n * Name of the header when sent over HTTP.\n */\n name?: string;\n\n /**\n * Equivalent of adding `*` in the path parameter as per [RFC-6570](https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.3)\n *\n * | Style | Explode | Primitive value = 5 | Array = [3, 4, 5] | Object = {\"role\": \"admin\", \"firstName\": \"Alex\"} |\n * | ------ | ------- | ------------------- | ----------------- | ----------------------------------------------- |\n * | simple | false | `5 ` | `3,4,5` | `role,admin,firstName,Alex` |\n * | simple | true | `5` | `3,4,5` | `role=admin,firstName=Alex` |\n *\n */\n explode?: boolean;\n}\n\n/**\n * Specify this property is to be sent or received as an HTTP header.\n *\n * @param headerNameOrOptions Optional name of the header when sent over HTTP or header options.\n * By default the header name will be the property name converted from camelCase to kebab-case. (e.g. `contentType` -> `content-type`)\n *\n * @example\n *\n * ```typespec\n * op read(@header accept: string): {@header(\"ETag\") eTag: string};\n * op create(@header({name: \"X-Color\", format: \"csv\"}) colors: string[]): void;\n * ```\n *\n * @example Implicit header name\n *\n * ```typespec\n * op read(): {@header contentType: string}; // headerName: content-type\n * op update(@header ifMatch: string): void; // headerName: if-match\n * ```\n */\nextern dec header(target: ModelProperty, headerNameOrOptions?: valueof string | HeaderOptions);\n\n/**\n * Cookie Options.\n */\nmodel CookieOptions {\n /**\n * Name in the cookie.\n */\n name?: string;\n}\n\n/**\n * Specify this property is to be sent or received in the cookie.\n *\n * @param cookieNameOrOptions Optional name of the cookie in the cookie or cookie options.\n * By default the cookie name will be the property name converted from camelCase to snake_case. (e.g. `authToken` -> `auth_token`)\n *\n * @example\n *\n * ```typespec\n * op read(@cookie token: string): {data: string[]};\n * op create(@cookie({name: \"auth_token\"}) data: string[]): void;\n * ```\n *\n * @example Implicit header name\n *\n * ```typespec\n * op read(): {@cookie authToken: string}; // headerName: auth_token\n * op update(@cookie AuthToken: string): void; // headerName: auth_token\n * ```\n */\nextern dec cookie(target: ModelProperty, cookieNameOrOptions?: valueof string | CookieOptions);\n\n/**\n * Query parameter options.\n */\nmodel QueryOptions {\n /**\n * Name of the query when included in the url.\n */\n name?: string;\n\n /**\n * If true send each value in the array/object as a separate query parameter.\n * Equivalent of adding `*` in the path parameter as per [RFC-6570](https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.3)\n *\n * | Style | Explode | Uri Template | Primitive value id = 5 | Array id = [3, 4, 5] | Object id = {\"role\": \"admin\", \"firstName\": \"Alex\"} |\n * | ------ | ------- | -------------- | ---------------------- | ----------------------- | -------------------------------------------------- |\n * | simple | false | `/users{?id}` | `/users?id=5` | `/users?id=3,4,5` | `/users?id=role,admin,firstName,Alex` |\n * | simple | true | `/users{?id*}` | `/users?id=5` | `/users?id=3&id=4&id=5` | `/users?role=admin&firstName=Alex` |\n *\n */\n explode?: boolean;\n}\n\n/**\n * Specify this property is to be sent as a query parameter.\n *\n * @param queryNameOrOptions Optional name of the query when included in the url or query parameter options.\n *\n * @example\n *\n * ```typespec\n * op read(@query select: string, @query(\"order-by\") orderBy: string): void;\n * op list(@query(#{name: \"id\", explode: true}) ids: string[]): void;\n * ```\n */\nextern dec query(target: ModelProperty, queryNameOrOptions?: valueof string | QueryOptions);\n\nmodel PathOptions {\n /** Name of the parameter in the uri template. */\n name?: string;\n\n /**\n * When interpolating this parameter in the case of array or object expand each value using the given style.\n * Equivalent of adding `*` in the path parameter as per [RFC-6570](https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.3)\n */\n explode?: boolean;\n\n /**\n * Different interpolating styles for the path parameter.\n * - `simple`: No special encoding.\n * - `label`: Using `.` separator.\n * - `matrix`: `;` as separator.\n * - `fragment`: `#` as separator.\n * - `path`: `/` as separator.\n */\n style?: \"simple\" | \"label\" | \"matrix\" | \"fragment\" | \"path\";\n\n /**\n * When interpolating this parameter do not encode reserved characters.\n * Equivalent of adding `+` in the path parameter as per [RFC-6570](https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.3)\n */\n allowReserved?: boolean;\n}\n\n/**\n * Explicitly specify that this property is to be interpolated as a path parameter.\n *\n * @param paramNameOrOptions Optional name of the parameter in the uri template or options.\n *\n * @example\n *\n * ```typespec\n * @route(\"/read/{explicit}/things/{implicit}\")\n * op read(@path explicit: string, implicit: string): void;\n * ```\n */\nextern dec path(target: ModelProperty, paramNameOrOptions?: valueof string | PathOptions);\n\n/**\n * Explicitly specify that this property type will be exactly the HTTP body.\n *\n * This means that any properties under `@body` cannot be marked as headers, query parameters, or path parameters.\n * If wanting to change the resolution of the body but still mix parameters, use `@bodyRoot`.\n *\n * @example\n *\n * ```typespec\n * op upload(@body image: bytes): void;\n * op download(): {@body image: bytes};\n * ```\n */\nextern dec body(target: ModelProperty);\n\n/**\n * Specify that the body resolution should be resolved from that property.\n * By default the body is resolved by including all properties in the operation request/response that are not metadata.\n * This allows to nest the body in a property while still allowing to use headers, query parameters, and path parameters in the same model.\n *\n * @example\n *\n * ```typespec\n * op upload(@bodyRoot user: {name: string, @header id: string}): void;\n * op download(): {@bodyRoot user: {name: string, @header id: string}};\n * ```\n */\nextern dec bodyRoot(target: ModelProperty);\n/**\n * Specify that this property shouldn't be included in the HTTP body.\n * This can be useful when bundling metadata together that would result in an empty property to be included in the body.\n *\n * @example\n *\n * ```typespec\n * op upload(name: string, @bodyIgnore headers: {@header id: string}): void;\n * ```\n */\nextern dec bodyIgnore(target: ModelProperty);\n\n/**\n * @example\n *\n * ```tsp\n * op upload(\n * @header `content-type`: \"multipart/form-data\",\n * @multipartBody body: {\n * fullName: HttpPart,\n * headShots: HttpPart[]\n * }\n * ): void;\n * ```\n */\nextern dec multipartBody(target: ModelProperty);\n\n/**\n * Specify the status code for this response. Property type must be a status code integer or a union of status code integer.\n *\n * @example\n *\n * ```typespec\n * op read(): {\n * @statusCode _: 200;\n * @body pet: Pet;\n * };\n * op create(): {\n * @statusCode _: 201 | 202;\n * };\n * ```\n */\nextern dec statusCode(target: ModelProperty);\n\n/**\n * Specify the HTTP verb for the target operation to be `GET`.\n *\n * @example\n *\n * ```typespec\n * @get op read(): string\n * ```\n */\nextern dec get(target: Operation);\n\n/**\n * Specify the HTTP verb for the target operation to be `PUT`.\n *\n * @example\n *\n * ```typespec\n * @put op set(pet: Pet): void\n * ```\n */\nextern dec put(target: Operation);\n\n/**\n * Specify the HTTP verb for the target operation to be `POST`.\n *\n * @example\n *\n * ```typespec\n * @post op create(pet: Pet): void\n * ```\n */\nextern dec post(target: Operation);\n\n/**\n * Options for PATCH operations.\n */\nmodel PatchOptions {\n /**\n * If set to `false`, disables the implicit transform that makes the body of a\n * PATCH operation deeply optional.\n */\n implicitOptionality?: boolean;\n}\n\n/**\n * Specify the HTTP verb for the target operation to be `PATCH`.\n *\n * @param options Options for the PATCH operation.\n *\n * @example\n *\n * ```typespec\n * @patch op update(pet: Pet): void;\n * ```\n *\n * @example\n * ```typespec\n * // Disable implicit optionality, making the body of the PATCH operation use the\n * // optionality as defined in the `Pet` model.\n * @patch(#{ implicitOptionality: false })\n * op update(pet: Pet): void;\n * ```\n */\nextern dec patch(target: Operation, options?: valueof PatchOptions);\n\n/**\n * Specify the HTTP verb for the target operation to be `DELETE`.\n *\n * @example\n *\n * ```typespec\n * @delete op set(petId: string): void\n * ```\n */\nextern dec delete(target: Operation);\n\n/**\n * Specify the HTTP verb for the target operation to be `HEAD`.\n * @example\n *\n * ```typespec\n * @head op ping(petId: string): void\n * ```\n */\nextern dec head(target: Operation);\n\n/**\n * Specify an endpoint for this service. Multiple `@server` decorators can be used to specify multiple endpoints.\n *\n * @param url Server endpoint\n * @param description Description of the endpoint\n * @param parameters Optional set of parameters used to interpolate the url.\n *\n * @example\n *\n * ```typespec\n * @service\n * @server(\"https://example.com\")\n * namespace PetStore;\n * ```\n *\n * @example With a description\n *\n * ```typespec\n * @service\n * @server(\"https://example.com\", \"Single server endpoint\")\n * namespace PetStore;\n * ```\n *\n * @example Parameterized\n *\n * ```typespec\n * @server(\"https://{region}.foo.com\", \"Regional endpoint\", {\n * @doc(\"Region name\")\n * region?: string = \"westus\",\n * })\n * ```\n *\n * @example Multiple\n * ```typespec\n * @service\n * @server(\"https://example.com\", \"Standard endpoint\")\n * @server(\"https://{project}.private.example.com\", \"Private project endpoint\", {\n * project: string;\n * })\n * namespace PetStore;\n * ```\n *\n */\nextern dec server(\n target: Namespace,\n url: valueof string,\n description?: valueof string,\n parameters?: Record\n);\n\n/**\n * Specify authentication for a whole service or specific methods. See the [documentation in the Http library](https://typespec.io/docs/libraries/http/authentication) for full details.\n *\n * @param auth Authentication configuration. Can be a single security scheme, a union(either option is valid authentication) or a tuple (must use all authentication together)\n * @example\n *\n * ```typespec\n * @service\n * @useAuth(BasicAuth)\n * namespace PetStore;\n * ```\n */\nextern dec useAuth(target: Namespace | Interface | Operation, auth: {} | Union | {}[]);\n\n/**\n * Defines the relative route URI template for the target operation as defined by [RFC 6570](https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.3)\n *\n * `@route` can only be applied to operations, namespaces, and interfaces.\n *\n * @param uriTemplate Uri template for this operation.\n *\n * @example Simple path parameter\n *\n * ```typespec\n * @route(\"/widgets/{id}\") op getWidget(@path id: string): Widget;\n * ```\n *\n * @example Reserved characters\n * ```typespec\n * @route(\"/files{+path}\") op getFile(@path path: string): bytes;\n * ```\n *\n * @example Query parameter\n * ```typespec\n * @route(\"/files\") op list(select?: string, filter?: string): Files[];\n * @route(\"/files{?select,filter}\") op listFullUriTemplate(select?: string, filter?: string): Files[];\n * ```\n */\nextern dec route(target: Namespace | Interface | Operation, path: valueof string);\n\n/**\n * `@sharedRoute` marks the operation as sharing a route path with other operations.\n *\n * When an operation is marked with `@sharedRoute`, it enables other operations to share the same\n * route path as long as those operations are also marked with `@sharedRoute`.\n *\n * `@sharedRoute` can only be applied directly to operations.\n *\n * ```typespec\n * @sharedRoute\n * @route(\"/widgets\")\n * op getWidget(@path id: string): Widget;\n * ```\n */\nextern dec sharedRoute(target: Operation);\n", + "path": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http/lib/decorators.tsp" + }, + "id": { + "$id": "2961", + "kind": 3, + "sv": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http/lib/decorators.tsp", + "pos": 0, + "end": 0, + "flags": 8, + "parent": { + "$ref": "2541" + } + }, + "namespaces": [ + { + "$ref": "2539" + }, + { + "$ref": "2537" + } + ], + "usings": [ + { + "$ref": "2542" + } + ], + "locals": { + "duplicates": {} + }, + "inScopeNamespaces": [ + { + "$ref": "2537" + }, + { + "$ref": "2539" + } + ], + "parseDiagnostics": [], + "comments": [], + "printable": true, + "parseOptions": {}, + "pos": 0, + "end": 11976, + "flags": 0, + "symbol": { + "declarations": [], + "node": { + "$ref": "2541" + }, + "name": "/home/runner/work/typespec/typespec/packages/http-client-csharp/node_modules/@typespec/http/lib/decorators.tsp", + "exports": { + "duplicates": {} + }, + "flags": 32768, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "symbol": { + "declarations": [ + { + "$ref": "2539" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + } + } + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2539" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 187 + } + }, + "parameters": [ + { + "$id": "2962", + "kind": 27, + "id": { + "$id": "2963", + "kind": 3, + "sv": "path", + "pos": 11466, + "end": 11470, + "flags": 0, + "parent": { + "$ref": "2962" + }, + "_id": 855 + }, + "type": { + "$id": "2964", + "kind": 44, + "target": { + "$id": "2965", + "kind": 45, + "target": { + "$id": "2966", + "kind": 3, + "sv": "string", + "pos": 11480, + "end": 11486, + "flags": 1, + "parent": { + "$ref": "2965" + }, + "_id": 857 + }, + "arguments": [], + "pos": 11480, + "end": 11486, + "flags": 1, + "parent": { + "$ref": "2964" + }, + "_id": 856 + }, + "pos": 11472, + "end": 11486, + "flags": 0, + "parent": { + "$ref": "2962" + } + }, + "optional": false, + "rest": false, + "pos": 11466, + "end": 11486, + "flags": 0, + "parent": { + "$ref": "2525" + }, + "symbol": { + "declarations": [ + { + "$ref": "2962" + } + ], + "name": "path", + "flags": 1052672, + "parent": { + "declarations": [ + { + "$ref": "2537" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2539" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + }, + "id": 188 + } + } + ], + "pos": 10628, + "end": 11488, + "flags": 0, + "directives": [], + "docs": [ + { + "$id": "2967", + "kind": 51, + "content": [ + { + "$id": "2968", + "kind": 52, + "text": "Defines the relative route URI template for the target operation as defined by [RFC 6570](https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.3)\n\n`@route` can only be applied to operations, namespaces, and interfaces.", + "pos": 10631, + "end": 10870, + "flags": 0, + "parent": { + "$ref": "2967" + } + } + ], + "tags": [ + { + "$id": "2969", + "kind": 53, + "tagName": { + "$id": "2970", + "kind": 3, + "sv": "param", + "pos": 10871, + "end": 10876, + "flags": 0, + "parent": { + "$ref": "2969" + } + }, + "paramName": { + "$id": "2971", + "kind": 3, + "sv": "uriTemplate", + "pos": 10877, + "end": 10888, + "flags": 0, + "parent": { + "$ref": "2969" + } + }, + "content": [ + { + "$id": "2972", + "kind": 52, + "text": "Uri template for this operation.", + "pos": 10889, + "end": 10928, + "flags": 0, + "parent": { + "$ref": "2969" + } + } + ], + "pos": 10870, + "end": 10928, + "flags": 0, + "parent": { + "$ref": "2967" + } + }, + { + "$id": "2973", + "kind": 58, + "tagName": { + "$id": "2974", + "kind": 3, + "sv": "example", + "pos": 10929, + "end": 10936, + "flags": 0, + "parent": { + "$ref": "2973" + } + }, + "content": [ + { + "$id": "2975", + "kind": 52, + "text": "Simple path parameter\n\n```typespec\n@route(\"/widgets/{id}\") op getWidget(@path id: string): Widget;\n```", + "pos": 10936, + "end": 11057, + "flags": 0, + "parent": { + "$ref": "2973" + } + } + ], + "pos": 10928, + "end": 11057, + "flags": 0, + "parent": { + "$ref": "2967" + } + }, + { + "$id": "2976", + "kind": 58, + "tagName": { + "$id": "2977", + "kind": 3, + "sv": "example", + "pos": 11058, + "end": 11065, + "flags": 0, + "parent": { + "$ref": "2976" + } + }, + "content": [ + { + "$id": "2978", + "kind": 52, + "text": "Reserved characters\n```typespec\n@route(\"/files{+path}\") op getFile(@path path: string): bytes;\n```", + "pos": 11065, + "end": 11180, + "flags": 0, + "parent": { + "$ref": "2976" + } + } + ], + "pos": 11057, + "end": 11180, + "flags": 0, + "parent": { + "$ref": "2967" + } + }, + { + "$id": "2979", + "kind": 58, + "tagName": { + "$id": "2980", + "kind": 3, + "sv": "example", + "pos": 11181, + "end": 11188, + "flags": 0, + "parent": { + "$ref": "2979" + } + }, + "content": [ + { + "$id": "2981", + "kind": 52, + "text": "Query parameter\n```typespec\n@route(\"/files\") op list(select?: string, filter?: string): Files[];\n@route(\"/files{?select,filter}\") op listFullUriTemplate(select?: string, filter?: string): Files[];\n```", + "pos": 11188, + "end": 11403, + "flags": 0, + "parent": { + "$ref": "2979" + } + } + ], + "pos": 11180, + "end": 11403, + "flags": 0, + "parent": { + "$ref": "2967" + } + } + ], + "pos": 10628, + "end": 11405, + "flags": 0, + "parent": { + "$ref": "2525" + } + } + ], + "parent": { + "$ref": "2541" + }, + "symbol": { + "declarations": [ + { + "$ref": "2525" + } + ], + "name": "@route", + "flags": 1049088, + "parent": { + "declarations": [ + { + "$ref": "2537" + } + ], + "name": "Http", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "parent": { + "declarations": [ + { + "$ref": "2539" + } + ], + "name": "TypeSpec", + "exports": { + "duplicates": {} + }, + "flags": 1048832, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + }, + "metatypeMembers": { + "duplicates": {} + } + } + }, + "target": { + "$id": "2982", + "kind": "FunctionParameter", + "node": { + "$ref": "2528" + }, + "name": "target", + "optional": false, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "2530" + }, + "type": { + "$id": "2983", + "kind": "Union", + "node": { + "$ref": "2530" + }, + "options": [ + { + "$ref": "2514" + }, + { + "$id": "2984", + "kind": "Model", + "name": "Interface", + "node": { + "$ref": "2005" + }, + "properties": {}, + "namespace": { + "$ref": "2022" + }, + "decorators": [], + "sourceModels": [], + "derivedModels": [], + "isFinished": true, + "entityKind": "Type", + "symbol": { + "declarations": [], + "node": { + "$ref": "2005" + }, + "name": "Interface", + "members": { + "duplicates": {} + }, + "flags": 4194306, + "metatypeMembers": { + "duplicates": {} + }, + "type": { + "$ref": "2984" + } + } + }, + { + "$id": "2985", + "kind": "Model", + "name": "Operation", + "node": { + "$ref": "2011" + }, + "properties": {}, + "namespace": { + "$ref": "2022" + }, + "decorators": [], + "sourceModels": [], + "derivedModels": [], + "isFinished": true, + "entityKind": "Type", + "symbol": { + "declarations": [], + "node": { + "$ref": "2011" + }, + "name": "Operation", + "members": { + "duplicates": {} + }, + "flags": 4194306, + "metatypeMembers": { + "duplicates": {} + }, + "type": { + "$ref": "2985" + } + } + } + ], + "decorators": [], + "variants": {}, + "expression": true, + "isFinished": true, + "entityKind": "Type" + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + "parameters": [ + { + "$id": "2986", + "kind": "FunctionParameter", + "node": { + "$ref": "2962" + }, + "name": "path", + "optional": false, + "rest": false, + "type": { + "entityKind": "MixedParameterConstraint", + "node": { + "$ref": "2964" + }, + "valueType": { + "$ref": "463" + } + }, + "mixed": true, + "isFinished": false, + "creating": true, + "entityKind": "Type" + } + ], + "isFinished": false, + "creating": true, + "entityKind": "Type" + }, + "node": { + "$ref": "2054" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "/body", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "2055" + }, + "jsValue": "/body" + } + ] + } + ], + "isFinished": true, + "entityKind": "Type" + }, + "variants": {}, + "decorators": [], + "isFinished": true, + "entityKind": "Type" + }, + { + "$ref": "1988" + } + ], + "source": { + "node": { + "$ref": "2154" + } + }, + "map": {} + }, + "model": { + "$id": "2987", + "kind": "Model", + "name": "File", + "node": { + "$ref": "40" + }, + "properties": {}, + "namespace": { + "$ref": "887" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$ref": "2239" + }, + "jsValue": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below." + } + ] + }, + { + "definition": { + "$ref": "2240" + }, + "node": { + "$ref": "416" + }, + "args": [] + }, + { + "definition": { + "$ref": "895" + }, + "node": { + "$ref": "413" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "A file in an HTTP request, response, or multipart payload.", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "414" + }, + "jsValue": "A file in an HTTP request, response, or multipart payload." + } + ] + } + ], + "sourceModels": [], + "derivedModels": [], + "isFinished": true, + "entityKind": "Type", + "templateMapper": { + "partial": false, + "args": [ + { + "$ref": "2411" + }, + { + "$ref": "1988" + } + ], + "source": { + "node": { + "$ref": "2154" + } + }, + "map": {} + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "40" + }, + "name": "File", + "members": { + "duplicates": {} + }, + "flags": 4194306, + "metatypeMembers": { + "duplicates": {} + }, + "type": { + "$ref": "2987" + } + }, + "templateNode": { + "$ref": "40" + } + } + } + } + }, + "properties": [ + { + "$id": "2988", + "kind": "property", + "name": "contentType", + "summary": "The allowed media (MIME) types of the file contents.", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "type": { + "$ref": "9" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "2989", + "kind": "property", + "name": "filename", + "summary": "The name of the file, if any.", + "doc": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.", + "type": { + "$id": "2990", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.filename", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "2991", + "kind": "property", + "name": "contents", + "summary": "The contents of the file.", + "doc": "The contents of the file.\n\nIn file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,\nthis value is serialized as a field in the response.", + "type": { + "$id": "2992", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contents", + "serializationOptions": {}, + "isHttpMetadata": false + } + ] + }, + { + "$id": "2993", + "kind": "model", + "name": "File3", + "namespace": "TypeSpec.Http", + "crossLanguageDefinitionId": "TypeSpec.Http.File", + "usage": "Output", + "doc": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below.", + "summary": "A file in an HTTP request, response, or multipart payload.", + "decorators": [], + "serializationOptions": { + "binary": { + "isFile": true, + "isText": false, + "contentTypes": [ + "image/png", + "image/jpeg" + ], + "filename": { + "$id": "2994", + "kind": "ModelProperty", + "name": "filename", + "node": { + "$ref": "31" + }, + "optional": true, + "type": { + "$ref": "463" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$ref": "894" + }, + "jsValue": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators." + } + ] + }, + { + "definition": { + "$ref": "895" + }, + "node": { + "$ref": "33" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "The name of the file, if any.", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "34" + }, + "jsValue": "The name of the file, if any." + } + ] + } + ], + "isFinished": true, + "entityKind": "Type", + "templateMapper": { + "partial": false, + "args": [ + { + "$id": "2995", + "kind": "Union", + "node": { + "$ref": "2183" + }, + "options": [ + { + "$ref": "1987" + }, + { + "$ref": "2412" + } + ], + "expression": true, + "namespace": { + "$ref": "2413" + }, + "variants": {}, + "decorators": [], + "isFinished": true, + "entityKind": "Type" + }, + { + "$ref": "1988" + } + ], + "source": { + "node": { + "$ref": "2178" + } + }, + "map": {} + }, + "model": { + "$id": "2996", + "kind": "Model", + "name": "File", + "node": { + "$ref": "40" + }, + "properties": {}, + "namespace": { + "$ref": "887" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$ref": "2239" + }, + "jsValue": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below." + } + ] + }, + { + "definition": { + "$ref": "2240" + }, + "node": { + "$ref": "416" + }, + "args": [] + }, + { + "definition": { + "$ref": "895" + }, + "node": { + "$ref": "413" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "A file in an HTTP request, response, or multipart payload.", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "414" + }, + "jsValue": "A file in an HTTP request, response, or multipart payload." + } + ] + } + ], + "sourceModels": [], + "derivedModels": [], + "isFinished": true, + "entityKind": "Type", + "templateMapper": { + "partial": false, + "args": [ + { + "$ref": "2995" + }, + { + "$ref": "1988" + } + ], + "source": { + "node": { + "$ref": "2178" + } + }, + "map": {} + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "40" + }, + "name": "File", + "members": { + "duplicates": {} + }, + "flags": 4194306, + "metatypeMembers": { + "duplicates": {} + }, + "type": { + "$ref": "2996" + } + }, + "templateNode": { + "$ref": "40" + } + } + } + } + }, + "properties": [ + { + "$id": "2997", + "kind": "property", + "name": "contentType", + "summary": "The allowed media (MIME) types of the file contents.", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "type": { + "$ref": "13" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "2998", + "kind": "property", + "name": "filename", + "summary": "The name of the file, if any.", + "doc": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.", + "type": { + "$id": "2999", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.filename", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "3000", + "kind": "property", + "name": "contents", + "summary": "The contents of the file.", + "doc": "The contents of the file.\n\nIn file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,\nthis value is serialized as a field in the response.", + "type": { + "$id": "3001", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contents", + "serializationOptions": {}, + "isHttpMetadata": false + } + ] + }, + { + "$id": "3002", + "kind": "model", + "name": "File4", + "namespace": "TypeSpec.Http", + "crossLanguageDefinitionId": "TypeSpec.Http.File", + "usage": "Input,Output", + "doc": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below.", + "summary": "A file in an HTTP request, response, or multipart payload.", + "decorators": [], + "serializationOptions": { + "binary": { + "isFile": true, + "isText": false, + "contentTypes": [ + "*/*" + ], + "filename": { + "$id": "3003", + "kind": "ModelProperty", + "name": "filename", + "node": { + "$ref": "31" + }, + "optional": true, + "type": { + "$ref": "463" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$ref": "894" + }, + "jsValue": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators." + } + ] + }, + { + "definition": { + "$ref": "895" + }, + "node": { + "$ref": "33" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "The name of the file, if any.", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "34" + }, + "jsValue": "The name of the file, if any." + } + ] + } + ], + "isFinished": true, + "entityKind": "Type", + "templateMapper": { + "partial": false, + "args": [ + { + "$ref": "463" + }, + { + "$ref": "1988" + } + ], + "source": { + "node": { + "$ref": "2204" + } + }, + "map": {} + }, + "model": { + "$id": "3004", + "kind": "Model", + "name": "File", + "node": { + "$ref": "40" + }, + "properties": {}, + "namespace": { + "$ref": "887" + }, + "decorators": [ + { + "args": [ + { + "value": { + "$ref": "723" + }, + "jsValue": "self" + }, + { + "value": { + "$ref": "2239" + }, + "jsValue": "A file in an HTTP request, response, or multipart payload.\n\nFiles have a special meaning that the HTTP library understands. When the body of an HTTP request, response,\nor multipart payload is _effectively_ an instance of `TypeSpec.Http.File` or any type that extends it, the\noperation is treated as a file upload or download.\n\nWhen using file bodies, the fields of the file model are defined to come from particular locations by default:\n\n- `contentType`: The `Content-Type` header of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `contents`: The body of the request, response, or multipart payload (CANNOT be overridden or changed).\n- `filename`: The `filename` parameter value of the `Content-Disposition` header of the response or multipart payload\n(MAY be overridden or changed).\n\nA File may be used as a normal structured JSON object in a request or response, if the request specifies an explicit\n`Content-Type` header. In this case, the entire File model is serialized as if it were any other model. In a JSON payload,\nit will have a structure like:\n\n```\n{\n \"contentType\": ,\n \"filename\": ,\n \"contents\": \n}\n```\n\nThe `contentType` _within_ the file defines what media types the data inside the file can be, but if the specification\ndefines a `Content-Type` for the payload as HTTP metadata, that `Content-Type` metadata defines _how the file is\nserialized_. See the examples below for more information.\n\nNOTE: The `filename` and `contentType` fields are optional. Furthermore, the default location of `filename`\n(`Content-Disposition: ; filename=`) is only valid in HTTP responses and multipart payloads. If\nyou wish to send the `filename` in a request, you must use HTTP metadata decorators to describe the location of the\n`filename` field. You can combine the metadata decorators with `@visibility` to control when the `filename` location\nis overridden, as shown in the examples below." + } + ] + }, + { + "definition": { + "$ref": "2240" + }, + "node": { + "$ref": "416" + }, + "args": [] + }, + { + "definition": { + "$ref": "895" + }, + "node": { + "$ref": "413" + }, + "args": [ + { + "value": { + "entityKind": "Value", + "valueKind": "StringValue", + "value": "A file in an HTTP request, response, or multipart payload.", + "type": { + "$ref": "463" + }, + "scalar": { + "$ref": "463" + } + }, + "node": { + "$ref": "414" + }, + "jsValue": "A file in an HTTP request, response, or multipart payload." + } + ] + } + ], + "sourceModels": [], + "derivedModels": [], + "isFinished": true, + "entityKind": "Type", + "templateMapper": { + "partial": false, + "args": [ + { + "$ref": "463" + }, + { + "$ref": "1988" + } + ], + "source": { + "node": { + "$ref": "2204" + } + }, + "map": {} + }, + "symbol": { + "declarations": [], + "node": { + "$ref": "40" + }, + "name": "File", + "members": { + "duplicates": {} + }, + "flags": 4194306, + "metatypeMembers": { + "duplicates": {} + }, + "type": { + "$ref": "3004" + } + }, + "templateNode": { + "$ref": "40" + } + } + } + } + }, + "properties": [ + { + "$id": "3005", + "kind": "property", + "name": "contentType", + "summary": "The allowed media (MIME) types of the file contents.", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "type": { + "$id": "3006", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contentType", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "3007", + "kind": "property", + "name": "filename", + "summary": "The name of the file, if any.", + "doc": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.", + "type": { + "$id": "3008", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.filename", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "3009", + "kind": "property", + "name": "contents", + "summary": "The contents of the file.", + "doc": "The contents of the file.\n\nIn file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,\nthis value is serialized as a field in the response.", + "type": { + "$id": "3010", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "TypeSpec.Http.File.contents", + "serializationOptions": {}, + "isHttpMetadata": false + } + ] + } + ], + "clients": [ + { + "$id": "3011", + "kind": "client", + "name": "FileClient", + "namespace": "Type.File", + "doc": "Test for File type usage in request and response bodies", + "methods": [], + "parameters": [ + { + "$id": "3012", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "3013", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "3014", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Type.File.endpoint" + } + ], + "initializedBy": 1, + "decorators": [], + "crossLanguageDefinitionId": "Type.File", + "apiVersions": [], + "children": [ + { + "$id": "3015", + "kind": "client", + "name": "Body", + "namespace": "Type.File.Body", + "doc": "Test File as request and response body with specific content type", + "methods": [ + { + "$id": "3016", + "kind": "basic", + "name": "uploadFileSpecificContentType", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3017", + "name": "uploadFileSpecificContentType", + "resourceName": "Body", + "accessibility": "public", + "parameters": [ + { + "$id": "3018", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are image/png", + "type": { + "$id": "3019", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Method", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.File.Body.uploadFileSpecificContentType.contentType", + "methodParameterSegments": [ + { + "$id": "3020", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are image/png", + "type": { + "$ref": "3019" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.File.Body.uploadFileSpecificContentType.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "3021", + "kind": "body", + "name": "file", + "serializedName": "file", + "type": { + "$ref": "29" + }, + "isApiVersion": false, + "contentTypes": [ + "image/png" + ], + "defaultContentType": "image/png", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Type.File.Body.uploadFileSpecificContentType.file", + "methodParameterSegments": [ + { + "$id": "3022", + "kind": "method", + "name": "file", + "serializedName": "file", + "type": { + "$ref": "29" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.File.Body.uploadFileSpecificContentType.file", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/file/body/request/specific-content-type", + "requestMediaTypes": [], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.File.Body.uploadFileSpecificContentType", + "decorators": [], + "namespace": "Type.File.Body" + }, + "parameters": [ + { + "$ref": "3022" + }, + { + "$ref": "3020" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.File.Body.uploadFileSpecificContentType" + }, + { + "$id": "3023", + "kind": "basic", + "name": "uploadFileJsonContentType", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3024", + "name": "uploadFileJsonContentType", + "resourceName": "Body", + "accessibility": "public", + "parameters": [ + { + "$id": "3025", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.File.Body.uploadFileJsonContentType.contentType", + "methodParameterSegments": [ + { + "$id": "3026", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.File.Body.uploadFileJsonContentType.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "3027", + "kind": "body", + "name": "file", + "serializedName": "file", + "type": { + "$ref": "2400" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Type.File.Body.uploadFileJsonContentType.file", + "methodParameterSegments": [ + { + "$id": "3028", + "kind": "method", + "name": "file", + "serializedName": "file", + "type": { + "$ref": "2400" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.File.Body.uploadFileJsonContentType.file", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/file/body/request/json-content-type", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.File.Body.uploadFileJsonContentType", + "decorators": [], + "namespace": "Type.File.Body" + }, + "parameters": [ + { + "$ref": "3028" + }, + { + "$ref": "3026" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.File.Body.uploadFileJsonContentType" + }, + { + "$id": "3029", + "kind": "basic", + "name": "downloadFileJsonContentType", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3030", + "name": "downloadFileJsonContentType", + "resourceName": "Body", + "accessibility": "public", + "parameters": [ + { + "$id": "3031", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "19" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.File.Body.downloadFileJsonContentType.accept", + "methodParameterSegments": [ + { + "$id": "3032", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.File.Body.downloadFileJsonContentType.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2400" + }, + "headers": [ + { + "name": "contentType", + "summary": "The allowed media (MIME) types of the file contents.", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "type": { + "$ref": "21" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/file/body/response/json-content-type", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.File.Body.downloadFileJsonContentType", + "decorators": [], + "namespace": "Type.File.Body" + }, + "parameters": [ + { + "$ref": "3032" + } + ], + "response": { + "type": { + "$ref": "2400" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.File.Body.downloadFileJsonContentType" + }, + { + "$id": "3033", + "kind": "basic", + "name": "downloadFileSpecificContentType", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3034", + "name": "downloadFileSpecificContentType", + "resourceName": "Body", + "accessibility": "public", + "parameters": [ + { + "$id": "3035", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "23" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.File.Body.downloadFileSpecificContentType.accept", + "methodParameterSegments": [ + { + "$id": "3036", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.File.Body.downloadFileSpecificContentType.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "29" + }, + "headers": [ + { + "name": "contentType", + "summary": "The allowed media (MIME) types of the file contents.", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "type": { + "$ref": "25" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "image/png" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/file/body/response/specific-content-type", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.File.Body.downloadFileSpecificContentType", + "decorators": [], + "namespace": "Type.File.Body" + }, + "parameters": [ + { + "$ref": "3036" + } + ], + "response": { + "type": { + "$ref": "29" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.File.Body.downloadFileSpecificContentType" + }, + { + "$id": "3037", + "kind": "basic", + "name": "uploadFileMultipleContentTypes", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3038", + "name": "uploadFileMultipleContentTypes", + "resourceName": "Body", + "accessibility": "public", + "parameters": [ + { + "$id": "3039", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are image/png,image/jpeg", + "type": { + "$id": "3040", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Method", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.File.Body.uploadFileMultipleContentTypes.contentType", + "methodParameterSegments": [ + { + "$id": "3041", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are image/png,image/jpeg", + "type": { + "$ref": "3040" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.File.Body.uploadFileMultipleContentTypes.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "3042", + "kind": "body", + "name": "file", + "serializedName": "file", + "type": { + "$ref": "2409" + }, + "isApiVersion": false, + "contentTypes": [ + "image/png", + "image/jpeg" + ], + "defaultContentType": "image/png", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Type.File.Body.uploadFileMultipleContentTypes.file", + "methodParameterSegments": [ + { + "$id": "3043", + "kind": "method", + "name": "file", + "serializedName": "file", + "type": { + "$ref": "2409" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.File.Body.uploadFileMultipleContentTypes.file", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/file/body/request/multiple-content-types", + "requestMediaTypes": [], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.File.Body.uploadFileMultipleContentTypes", + "decorators": [], + "namespace": "Type.File.Body" + }, + "parameters": [ + { + "$ref": "3043" + }, + { + "$ref": "3041" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.File.Body.uploadFileMultipleContentTypes" + }, + { + "$id": "3044", + "kind": "basic", + "name": "downloadFileMultipleContentTypes", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3045", + "name": "downloadFileMultipleContentTypes", + "resourceName": "Body", + "accessibility": "public", + "parameters": [ + { + "$id": "3046", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$id": "3047", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Method", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.File.Body.downloadFileMultipleContentTypes.accept", + "methodParameterSegments": [ + { + "$id": "3048", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3047" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.File.Body.downloadFileMultipleContentTypes.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2993" + }, + "headers": [ + { + "name": "contentType", + "summary": "The allowed media (MIME) types of the file contents.", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "type": { + "$ref": "13" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "image/png", + "image/jpeg" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/file/body/response/multiple-content-types", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.File.Body.downloadFileMultipleContentTypes", + "decorators": [], + "namespace": "Type.File.Body" + }, + "parameters": [ + { + "$ref": "3048" + } + ], + "response": { + "type": { + "$ref": "2993" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.File.Body.downloadFileMultipleContentTypes" + }, + { + "$id": "3049", + "kind": "basic", + "name": "uploadFileDefaultContentType", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3050", + "name": "uploadFileDefaultContentType", + "resourceName": "Body", + "accessibility": "public", + "parameters": [ + { + "$id": "3051", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are */*", + "type": { + "$id": "3052", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Method", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.File.Body.uploadFileDefaultContentType.contentType", + "methodParameterSegments": [ + { + "$id": "3053", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are */*", + "type": { + "$ref": "3052" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.File.Body.uploadFileDefaultContentType.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "3054", + "kind": "body", + "name": "file", + "serializedName": "file", + "type": { + "$ref": "3002" + }, + "isApiVersion": false, + "contentTypes": [ + "*/*" + ], + "defaultContentType": "*/*", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Type.File.Body.uploadFileDefaultContentType.file", + "methodParameterSegments": [ + { + "$id": "3055", + "kind": "method", + "name": "file", + "serializedName": "file", + "type": { + "$ref": "3002" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.File.Body.uploadFileDefaultContentType.file", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/file/body/request/default-content-type", + "requestMediaTypes": [], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.File.Body.uploadFileDefaultContentType", + "decorators": [], + "namespace": "Type.File.Body" + }, + "parameters": [ + { + "$ref": "3055" + }, + { + "$ref": "3053" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.File.Body.uploadFileDefaultContentType" + }, + { + "$id": "3056", + "kind": "basic", + "name": "downloadFileDefaultContentType", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "3057", + "name": "downloadFileDefaultContentType", + "resourceName": "Body", + "accessibility": "public", + "parameters": [ + { + "$id": "3058", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "27" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Type.File.Body.downloadFileDefaultContentType.accept", + "methodParameterSegments": [ + { + "$id": "3059", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.File.Body.downloadFileDefaultContentType.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "3002" + }, + "headers": [ + { + "name": "contentType", + "summary": "The allowed media (MIME) types of the file contents.", + "doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.", + "type": { + "$id": "3060", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "*/*" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/file/body/response/default-content-type", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.File.Body.downloadFileDefaultContentType", + "decorators": [], + "namespace": "Type.File.Body" + }, + "parameters": [ + { + "$ref": "3059" + } + ], + "response": { + "type": { + "$ref": "3002" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Type.File.Body.downloadFileDefaultContentType" + } + ], + "parameters": [ + { + "$id": "3061", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "3062", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "3063", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Type.File.Body.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Type.File.Body", + "apiVersions": [], + "parent": { + "$ref": "3011" + }, + "isMultiServiceClient": false + } + ], + "isMultiServiceClient": false + } + ] +} diff --git a/packages/http-client-csharp/package-lock.json b/packages/http-client-csharp/package-lock.json index 7e7afa0417e..d55538b6eb7 100644 --- a/packages/http-client-csharp/package-lock.json +++ b/packages/http-client-csharp/package-lock.json @@ -11,7 +11,7 @@ "devDependencies": { "@azure-tools/azure-http-specs": "0.1.0-alpha.37", "@azure-tools/typespec-azure-core": "0.65.0", - "@azure-tools/typespec-client-generator-core": "0.65.0", + "@azure-tools/typespec-client-generator-core": "0.65.1", "@microsoft/api-extractor": "^7.52.2", "@types/node": "~22.12.0", "@typespec/compiler": "1.9.0", @@ -35,7 +35,7 @@ "vitest": "^3.0.5" }, "peerDependencies": { - "@azure-tools/typespec-client-generator-core": ">=0.65.0 < 0.66.0 || ~0.66.0-0", + "@azure-tools/typespec-client-generator-core": ">=0.65.1 < 0.66.0 || ~0.66.0-0", "@typespec/compiler": "^1.9.0", "@typespec/http": "^1.9.0", "@typespec/openapi": "^1.9.0", @@ -135,9 +135,9 @@ } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.65.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.65.0.tgz", - "integrity": "sha512-+g6+xB967chLQlukt2nKSCNUagg99MySrdFkY6Izu0z32Wq6ba/FI9IbqBDRTBGFveX+fxS39Xn/xCbtU3nTRg==", + "version": "0.65.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.65.1.tgz", + "integrity": "sha512-LvZYs0O4AprZRh3SLB8bU5DYmUlEb7zeWcvPKPLjTQB/cmQXMtmMNbLDkfgCwI/iHfRfEgeQGLqjGaNAe/a9iQ==", "dev": true, "license": "MIT", "dependencies": { @@ -7295,6 +7295,7 @@ "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "esbuild": "^0.27.0", "fdir": "^6.5.0", diff --git a/packages/http-client-csharp/package.json b/packages/http-client-csharp/package.json index 53ff38eff97..bbe7b8f2c2e 100644 --- a/packages/http-client-csharp/package.json +++ b/packages/http-client-csharp/package.json @@ -52,7 +52,7 @@ "emitter/lib/*.tsp" ], "peerDependencies": { - "@azure-tools/typespec-client-generator-core": ">=0.65.0 < 0.66.0 || ~0.66.0-0", + "@azure-tools/typespec-client-generator-core": ">=0.65.1 < 0.66.0 || ~0.66.0-0", "@typespec/compiler": "^1.9.0", "@typespec/http": "^1.9.0", "@typespec/openapi": "^1.9.0", @@ -64,7 +64,7 @@ "devDependencies": { "@azure-tools/azure-http-specs": "0.1.0-alpha.37", "@azure-tools/typespec-azure-core": "0.65.0", - "@azure-tools/typespec-client-generator-core": "0.65.0", + "@azure-tools/typespec-client-generator-core": "0.65.1", "@microsoft/api-extractor": "^7.52.2", "@types/node": "~22.12.0", "@typespec/compiler": "1.9.0", From db0d1e388d0c9c4edb7aeefbcad9fa5c8d7b0ff2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 21:17:51 +0000 Subject: [PATCH 05/10] Convert DateTimeKnownEncoding and DurationKnownEncoding to extensible string enums Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com> --- .../DurationKnownEncodingExtensions.cs | 24 ------- .../src/InputTypes/DateTimeKnownEncoding.cs | 61 ++++++++++++++++- .../src/InputTypes/DurationKnownEncoding.cs | 66 ++++++++++++++++++- .../InputDateTimeTypeConverter.cs | 4 +- .../InputDurationTypeConverter.cs | 4 +- .../test/DurationKnownEncodingTests.cs | 37 +++++++---- .../test/TypeSpecInputConverterTests.cs | 2 +- .../src/TypeFactory.cs | 18 ++--- 8 files changed, 159 insertions(+), 57 deletions(-) delete mode 100644 packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/Extensions/DurationKnownEncodingExtensions.cs diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/Extensions/DurationKnownEncodingExtensions.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/Extensions/DurationKnownEncodingExtensions.cs deleted file mode 100644 index 1a75ba822eb..00000000000 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/Extensions/DurationKnownEncodingExtensions.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Diagnostics.CodeAnalysis; - -namespace Microsoft.TypeSpec.Generator.Input.Extensions -{ - internal static class DurationKnownEncodingExtensions - { - public static bool TryParse(string? value, [NotNullWhen(true)] out DurationKnownEncoding? result) - { - result = value?.ToLowerInvariant() switch - { - "iso8601" => DurationKnownEncoding.Iso8601, - "seconds" => DurationKnownEncoding.Seconds, - "duration-constant" => DurationKnownEncoding.Constant, - "milliseconds" => DurationKnownEncoding.Milliseconds, - _ => null - }; - - return result.HasValue; - } - } -} diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DateTimeKnownEncoding.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DateTimeKnownEncoding.cs index 07cd0407cf3..01cad934a1b 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DateTimeKnownEncoding.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DateTimeKnownEncoding.cs @@ -1,10 +1,67 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; + namespace Microsoft.TypeSpec.Generator.Input { - public enum DateTimeKnownEncoding + /// + /// Represents a DateTime encoding format. + /// + public readonly struct DateTimeKnownEncoding : IEquatable { - Rfc3339, Rfc7231, UnixTimestamp + private readonly string _value; + + /// + /// Initializes a new instance of . + /// + /// The string value of the encoding. + /// is null. + public DateTimeKnownEncoding(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + /// + /// RFC 3339 date-time format (ISO 8601). + /// + public static DateTimeKnownEncoding Rfc3339 { get; } = new DateTimeKnownEncoding("Rfc3339"); + + /// + /// RFC 7231 HTTP date format. + /// + public static DateTimeKnownEncoding Rfc7231 { get; } = new DateTimeKnownEncoding("Rfc7231"); + + /// + /// Unix timestamp (seconds since epoch). + /// + public static DateTimeKnownEncoding UnixTimestamp { get; } = new DateTimeKnownEncoding("UnixTimestamp"); + + /// + /// Determines if two values are the same. + /// + public static bool operator ==(DateTimeKnownEncoding left, DateTimeKnownEncoding right) => left.Equals(right); + + /// + /// Determines if two values are not the same. + /// + public static bool operator !=(DateTimeKnownEncoding left, DateTimeKnownEncoding right) => !left.Equals(right); + + /// + /// Converts a string to a . + /// + public static implicit operator DateTimeKnownEncoding(string value) => new DateTimeKnownEncoding(value); + + /// + public bool Equals(DateTimeKnownEncoding other) => string.Equals(_value, other._value, StringComparison.Ordinal); + + /// + public override bool Equals(object? obj) => obj is DateTimeKnownEncoding other && Equals(other); + + /// + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + + /// + public override string ToString() => _value; } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DurationKnownEncoding.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DurationKnownEncoding.cs index 99927f4ecfe..d5426d4f851 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DurationKnownEncoding.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DurationKnownEncoding.cs @@ -1,10 +1,72 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; + namespace Microsoft.TypeSpec.Generator.Input { - public enum DurationKnownEncoding + /// + /// Represents a Duration encoding format. + /// + public readonly struct DurationKnownEncoding : IEquatable { - Iso8601, Seconds, Constant, Milliseconds + private readonly string _value; + + /// + /// Initializes a new instance of . + /// + /// The string value of the encoding. + /// is null. + public DurationKnownEncoding(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + /// + /// ISO 8601 duration format. + /// + public static DurationKnownEncoding Iso8601 { get; } = new DurationKnownEncoding("Iso8601"); + + /// + /// Duration as seconds. + /// + public static DurationKnownEncoding Seconds { get; } = new DurationKnownEncoding("Seconds"); + + /// + /// Constant duration value. + /// + public static DurationKnownEncoding Constant { get; } = new DurationKnownEncoding("Constant"); + + /// + /// Duration as milliseconds. + /// + public static DurationKnownEncoding Milliseconds { get; } = new DurationKnownEncoding("Milliseconds"); + + /// + /// Determines if two values are the same. + /// + public static bool operator ==(DurationKnownEncoding left, DurationKnownEncoding right) => left.Equals(right); + + /// + /// Determines if two values are not the same. + /// + public static bool operator !=(DurationKnownEncoding left, DurationKnownEncoding right) => !left.Equals(right); + + /// + /// Converts a string to a . + /// + public static implicit operator DurationKnownEncoding(string value) => new DurationKnownEncoding(value); + + /// + public bool Equals(DurationKnownEncoding other) => string.Equals(_value, other._value, StringComparison.Ordinal); + + /// + public override bool Equals(object? obj) => obj is DurationKnownEncoding other && Equals(other); + + /// + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + + /// + public override string ToString() => _value; } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDateTimeTypeConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDateTimeTypeConverter.cs index 9cec784fcff..60641e7b697 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDateTimeTypeConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDateTimeTypeConverter.cs @@ -53,9 +53,7 @@ public static InputDateTimeType CreateDateTimeType(ref Utf8JsonReader reader, st encode = encode ?? throw new JsonException("DateTime type must have encoding"); wireType = wireType ?? throw new JsonException("DateTime type must have wireType"); - var dateTimeType = Enum.TryParse(encode, ignoreCase: true, out var encodeKind) - ? new InputDateTimeType(encodeKind, name, crossLanguageDefinitionId, wireType, baseType) { Decorators = decorators ?? [], External = external } - : throw new JsonException($"Encoding of DateTime type {encode} is unknown."); + var dateTimeType = new InputDateTimeType(new DateTimeKnownEncoding(encode), name, crossLanguageDefinitionId, wireType, baseType) { Decorators = decorators ?? [], External = external }; if (id != null) { diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDurationTypeConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDurationTypeConverter.cs index 3107ddc9f0c..3b3ce12c756 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDurationTypeConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputDurationTypeConverter.cs @@ -54,9 +54,7 @@ public static InputDurationType CreateDurationType(ref Utf8JsonReader reader, st encode = encode ?? throw new JsonException("Duration type must have encoding"); wireType = wireType ?? throw new JsonException("Duration type must have wireType"); - var dateTimeType = DurationKnownEncodingExtensions.TryParse(encode, out var encodeKind) - ? new InputDurationType(encodeKind.Value, name, crossLanguageDefinitionId, wireType, baseType) { Decorators = decorators ?? [], External = external } - : throw new JsonException($"Encoding of Duration type {encode} is unknown."); + var dateTimeType = new InputDurationType(new DurationKnownEncoding(encode), name, crossLanguageDefinitionId, wireType, baseType) { Decorators = decorators ?? [], External = external }; if (id != null) { diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/DurationKnownEncodingTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/DurationKnownEncodingTests.cs index 0a27878d6f4..00ab431bf00 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/DurationKnownEncodingTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/DurationKnownEncodingTests.cs @@ -1,30 +1,41 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Microsoft.TypeSpec.Generator.Input.Extensions; using NUnit.Framework; namespace Microsoft.TypeSpec.Generator.Input.Tests { public class DurationKnownEncodingTests { - [TestCase("duration-constant", DurationKnownEncoding.Constant)] - [TestCase("iso8601", DurationKnownEncoding.Iso8601)] - [TestCase("seconds", DurationKnownEncoding.Seconds)] - [TestCase("milliseconds", DurationKnownEncoding.Milliseconds)] - public void TryParseEachEncoding(string encoding, DurationKnownEncoding expectedEncoding) + [TestCase("duration-constant")] + [TestCase("Constant")] + [TestCase("iso8601")] + [TestCase("Iso8601")] + [TestCase("seconds")] + [TestCase("Seconds")] + [TestCase("milliseconds")] + [TestCase("Milliseconds")] + public void CanCreateFromString(string encoding) { - var result = DurationKnownEncodingExtensions.TryParse(encoding, out var parsedEncoding); - Assert.IsTrue(result); - Assert.AreEqual(expectedEncoding, parsedEncoding); + var parsedEncoding = new DurationKnownEncoding(encoding); + Assert.IsNotNull(parsedEncoding); + Assert.AreEqual(encoding, parsedEncoding.ToString()); } [Test] - public void TryParseInvalidEncoding() + public void KnownEncodingsAreEqual() { - var result = DurationKnownEncodingExtensions.TryParse("invalid-encoding", out var parsedEncoding); - Assert.IsFalse(result); - Assert.IsNull(parsedEncoding); + Assert.AreEqual(DurationKnownEncoding.Iso8601, new DurationKnownEncoding("Iso8601")); + Assert.AreEqual(DurationKnownEncoding.Seconds, new DurationKnownEncoding("Seconds")); + Assert.AreEqual(DurationKnownEncoding.Constant, new DurationKnownEncoding("Constant")); + Assert.AreEqual(DurationKnownEncoding.Milliseconds, new DurationKnownEncoding("Milliseconds")); + } + + [Test] + public void CustomEncodingWorks() + { + var customEncoding = new DurationKnownEncoding("custom-format"); + Assert.AreEqual("custom-format", customEncoding.ToString()); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TypeSpecInputConverterTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TypeSpecInputConverterTests.cs index 4acc926d637..b74736c9033 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TypeSpecInputConverterTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TypeSpecInputConverterTests.cs @@ -132,7 +132,7 @@ public void LoadsInputDurationType() var inputDuration = inputType as InputDurationType; Assert.IsNotNull(inputDuration); - Assert.AreEqual(DurationKnownEncoding.Constant, inputDuration!.Encode); + Assert.AreEqual("duration-constant", inputDuration!.Encode.ToString()); } [Test] diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/TypeFactory.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/TypeFactory.cs index 2db1e80cb1a..3f40150c468 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/TypeFactory.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/TypeFactory.cs @@ -352,29 +352,29 @@ protected internal TypeFactory() InputNullableType nullableType => GetSerializationFormat(nullableType.Type), InputDateTimeType dateTimeType => dateTimeType.Encode switch { - DateTimeKnownEncoding.Rfc3339 => SerializationFormat.DateTime_RFC3339, - DateTimeKnownEncoding.Rfc7231 => SerializationFormat.DateTime_RFC7231, - DateTimeKnownEncoding.UnixTimestamp => SerializationFormat.DateTime_Unix, - _ => throw new IndexOutOfRangeException($"unknown encode {dateTimeType.Encode}"), + var e when e == DateTimeKnownEncoding.Rfc3339 => SerializationFormat.DateTime_RFC3339, + var e when e == DateTimeKnownEncoding.Rfc7231 => SerializationFormat.DateTime_RFC7231, + var e when e == DateTimeKnownEncoding.UnixTimestamp => SerializationFormat.DateTime_Unix, + _ => SerializationFormat.Default, // Custom encoding formats use default serialization }, InputDurationType durationType => durationType.Encode switch { // there is no such thing as `DurationConstant` - DurationKnownEncoding.Iso8601 => SerializationFormat.Duration_ISO8601, - DurationKnownEncoding.Seconds => durationType.WireType.Kind switch + var e when e == DurationKnownEncoding.Iso8601 => SerializationFormat.Duration_ISO8601, + var e when e == DurationKnownEncoding.Seconds => durationType.WireType.Kind switch { InputPrimitiveTypeKind.Int32 => SerializationFormat.Duration_Seconds, InputPrimitiveTypeKind.Float or InputPrimitiveTypeKind.Float32 => SerializationFormat.Duration_Seconds_Float, _ => SerializationFormat.Duration_Seconds_Double }, - DurationKnownEncoding.Milliseconds => durationType.WireType.Kind switch + var e when e == DurationKnownEncoding.Milliseconds => durationType.WireType.Kind switch { InputPrimitiveTypeKind.Int32 => SerializationFormat.Duration_Milliseconds, InputPrimitiveTypeKind.Float or InputPrimitiveTypeKind.Float32 => SerializationFormat.Duration_Milliseconds_Float, _ => SerializationFormat.Duration_Milliseconds_Double }, - DurationKnownEncoding.Constant => SerializationFormat.Duration_Constant, - _ => throw new IndexOutOfRangeException($"unknown encode {durationType.Encode}") + var e when e == DurationKnownEncoding.Constant => SerializationFormat.Duration_Constant, + _ => SerializationFormat.Default // Custom encoding formats use default serialization }, InputPrimitiveType primitiveType => primitiveType.Kind switch { From 88ce1b4790c365fbef17d428322c2befe88eb3f6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 00:00:13 +0000 Subject: [PATCH 06/10] Make encoding comparison case-insensitive and regenerate test libraries Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com> --- .../src/Generated/AnimalOperations.cs | 21 - .../src/Generated/DogOperations.cs | 21 - .../src/Generated/PetOperations.cs | 21 - .../src/Generated/PlantOperations.cs | 21 - .../src/InputTypes/DateTimeKnownEncoding.cs | 2 +- .../src/InputTypes/DurationKnownEncoding.cs | 2 +- .../Local/Sample-TypeSpec/tspCodeModel.json | 2453 +++++++++++------ ...elimitedEnumArrayProperty.Serialization.cs | 20 +- ...tensibleEnumArrayProperty.Serialization.cs | 20 +- ...elimitedEnumArrayProperty.Serialization.cs | 20 +- ...tensibleEnumArrayProperty.Serialization.cs | 20 +- ...elimitedEnumArrayProperty.Serialization.cs | 20 +- ...tensibleEnumArrayProperty.Serialization.cs | 20 +- ...elimitedEnumArrayProperty.Serialization.cs | 20 +- ...tensibleEnumArrayProperty.Serialization.cs | 20 +- .../Generated/Models/XmlPet.Serialization.cs | 13 +- .../payload/xml/src/Generated/XmlClient.cs | 2 + .../xml/src/Generated/XmlErrorValue.cs | 26 + .../http/payload/xml/tspCodeModel.json | 980 ++++--- .../Models/ModelWithList.Serialization.cs | 18 +- 20 files changed, 2303 insertions(+), 1437 deletions(-) create mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/XmlErrorValue.cs diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/AnimalOperations.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/AnimalOperations.cs index b5fc44d67a0..8fa8739984f 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/AnimalOperations.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/AnimalOperations.cs @@ -29,27 +29,6 @@ internal AnimalOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } - /// Initializes a new instance of AnimalOperations. - /// Service endpoint. - /// is null. - public AnimalOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) - { - } - - /// Initializes a new instance of AnimalOperations. - /// Service endpoint. - /// The options for configuring the client. - /// is null. - public AnimalOperations(Uri endpoint, SampleTypeSpecClientOptions options) - { - Argument.AssertNotNull(endpoint, nameof(endpoint)); - - options ??= new SampleTypeSpecClientOptions(); - - _endpoint = endpoint; - Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(AnimalOperations).Assembly) }, Array.Empty()); - } - /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/DogOperations.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/DogOperations.cs index d27a6941191..c80c36367aa 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/DogOperations.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/DogOperations.cs @@ -29,27 +29,6 @@ internal DogOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } - /// Initializes a new instance of DogOperations. - /// Service endpoint. - /// is null. - public DogOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) - { - } - - /// Initializes a new instance of DogOperations. - /// Service endpoint. - /// The options for configuring the client. - /// is null. - public DogOperations(Uri endpoint, SampleTypeSpecClientOptions options) - { - Argument.AssertNotNull(endpoint, nameof(endpoint)); - - options ??= new SampleTypeSpecClientOptions(); - - _endpoint = endpoint; - Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(DogOperations).Assembly) }, Array.Empty()); - } - /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PetOperations.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PetOperations.cs index e71c16d9be8..395ff6b18d9 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PetOperations.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PetOperations.cs @@ -29,27 +29,6 @@ internal PetOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } - /// Initializes a new instance of PetOperations. - /// Service endpoint. - /// is null. - public PetOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) - { - } - - /// Initializes a new instance of PetOperations. - /// Service endpoint. - /// The options for configuring the client. - /// is null. - public PetOperations(Uri endpoint, SampleTypeSpecClientOptions options) - { - Argument.AssertNotNull(endpoint, nameof(endpoint)); - - options ??= new SampleTypeSpecClientOptions(); - - _endpoint = endpoint; - Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(PetOperations).Assembly) }, Array.Empty()); - } - /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PlantOperations.cs b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PlantOperations.cs index 0f28c4a358e..4c35052674e 100644 --- a/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PlantOperations.cs +++ b/docs/samples/client/csharp/SampleService/SampleClient/src/Generated/PlantOperations.cs @@ -29,27 +29,6 @@ internal PlantOperations(ClientPipeline pipeline, Uri endpoint) Pipeline = pipeline; } - /// Initializes a new instance of PlantOperations. - /// Service endpoint. - /// is null. - public PlantOperations(Uri endpoint) : this(endpoint, new SampleTypeSpecClientOptions()) - { - } - - /// Initializes a new instance of PlantOperations. - /// Service endpoint. - /// The options for configuring the client. - /// is null. - public PlantOperations(Uri endpoint, SampleTypeSpecClientOptions options) - { - Argument.AssertNotNull(endpoint, nameof(endpoint)); - - options ??= new SampleTypeSpecClientOptions(); - - _endpoint = endpoint; - Pipeline = ClientPipeline.Create(options, Array.Empty(), new PipelinePolicy[] { new UserAgentPolicy(typeof(PlantOperations).Assembly) }, Array.Empty()); - } - /// The HTTP pipeline for sending and receiving REST requests and responses. public ClientPipeline Pipeline { get; } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DateTimeKnownEncoding.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DateTimeKnownEncoding.cs index 01cad934a1b..85638760805 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DateTimeKnownEncoding.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DateTimeKnownEncoding.cs @@ -53,7 +53,7 @@ public DateTimeKnownEncoding(string value) public static implicit operator DateTimeKnownEncoding(string value) => new DateTimeKnownEncoding(value); /// - public bool Equals(DateTimeKnownEncoding other) => string.Equals(_value, other._value, StringComparison.Ordinal); + public bool Equals(DateTimeKnownEncoding other) => string.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase); /// public override bool Equals(object? obj) => obj is DateTimeKnownEncoding other && Equals(other); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DurationKnownEncoding.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DurationKnownEncoding.cs index d5426d4f851..12ff4dd4c79 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DurationKnownEncoding.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DurationKnownEncoding.cs @@ -58,7 +58,7 @@ public DurationKnownEncoding(string value) public static implicit operator DurationKnownEncoding(string value) => new DurationKnownEncoding(value); /// - public bool Equals(DurationKnownEncoding other) => string.Equals(_value, other._value, StringComparison.Ordinal); + public bool Equals(DurationKnownEncoding other) => string.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase); /// public override bool Equals(object? obj) => obj is DurationKnownEncoding other && Equals(other); diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json index a4b8c055c07..9890b0fa4a6 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json @@ -913,7 +913,7 @@ "kind": "constant", "name": "TreeSpecies", "namespace": "SampleTypeSpec", - "usage": "Output,Json,Xml", + "usage": "Input,Output,Json,Xml", "valueType": { "$id": "85", "kind": "string", @@ -1679,7 +1679,7 @@ { "$id": "180", "kind": "constant", - "name": "updatePetAsAnimalContentType", + "name": "GetXmlAdvancedModelResponseContentType1", "namespace": "", "usage": "None", "valueType": { @@ -1689,13 +1689,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "application/xml", "decorators": [] }, { "$id": "182", "kind": "constant", - "name": "updatePetAsAnimalContentType1", + "name": "GetXmlAdvancedModelResponseContentType2", "namespace": "", "usage": "None", "valueType": { @@ -1705,13 +1705,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "application/xml", "decorators": [] }, { "$id": "184", "kind": "constant", - "name": "updateDogAsAnimalContentType", + "name": "UpdateXmlAdvancedModelContentType", "namespace": "", "usage": "None", "valueType": { @@ -1721,13 +1721,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "application/xml", "decorators": [] }, { "$id": "186", "kind": "constant", - "name": "updateDogAsAnimalContentType1", + "name": "GetXmlAdvancedModelResponseContentType3", "namespace": "", "usage": "None", "valueType": { @@ -1737,13 +1737,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "application/xml", "decorators": [] }, { "$id": "188", "kind": "constant", - "name": "updatePetAsPetContentType", + "name": "updatePetAsAnimalContentType", "namespace": "", "usage": "None", "valueType": { @@ -1759,7 +1759,7 @@ { "$id": "190", "kind": "constant", - "name": "updatePetAsPetContentType1", + "name": "updatePetAsAnimalContentType1", "namespace": "", "usage": "None", "valueType": { @@ -1775,7 +1775,7 @@ { "$id": "192", "kind": "constant", - "name": "updateDogAsPetContentType", + "name": "updateDogAsAnimalContentType", "namespace": "", "usage": "None", "valueType": { @@ -1791,7 +1791,7 @@ { "$id": "194", "kind": "constant", - "name": "updateDogAsPetContentType1", + "name": "updateDogAsAnimalContentType1", "namespace": "", "usage": "None", "valueType": { @@ -1807,7 +1807,7 @@ { "$id": "196", "kind": "constant", - "name": "updateDogAsDogContentType", + "name": "updatePetAsPetContentType", "namespace": "", "usage": "None", "valueType": { @@ -1823,7 +1823,7 @@ { "$id": "198", "kind": "constant", - "name": "updateDogAsDogContentType1", + "name": "updatePetAsPetContentType1", "namespace": "", "usage": "None", "valueType": { @@ -1839,7 +1839,7 @@ { "$id": "200", "kind": "constant", - "name": "getTreeContentType", + "name": "updateDogAsPetContentType", "namespace": "", "usage": "None", "valueType": { @@ -1849,13 +1849,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/xml", + "value": "application/json", "decorators": [] }, { "$id": "202", "kind": "constant", - "name": "GetXmlAdvancedModelResponseContentType1", + "name": "updateDogAsPetContentType1", "namespace": "", "usage": "None", "valueType": { @@ -1865,13 +1865,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/xml", + "value": "application/json", "decorators": [] }, { "$id": "204", "kind": "constant", - "name": "getWidgetMetricsContentType", + "name": "updateDogAsDogContentType", "namespace": "", "usage": "None", "valueType": { @@ -1883,11 +1883,139 @@ }, "value": "application/json", "decorators": [] + }, + { + "$id": "206", + "kind": "constant", + "name": "updateDogAsDogContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "207", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "208", + "kind": "constant", + "name": "getTreeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "209", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "210", + "kind": "constant", + "name": "GetXmlAdvancedModelResponseContentType4", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "212", + "kind": "constant", + "name": "GetXmlAdvancedModelResponseContentType5", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "213", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "214", + "kind": "constant", + "name": "GetXmlAdvancedModelResponseContentType6", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "215", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "216", + "kind": "constant", + "name": "updateTreeContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "217", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "218", + "kind": "constant", + "name": "GetXmlAdvancedModelResponseContentType7", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "219", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "220", + "kind": "constant", + "name": "getWidgetMetricsContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] } ], "models": [ { - "$id": "206", + "$id": "222", "kind": "model", "name": "Thing", "namespace": "SampleTypeSpec", @@ -1902,13 +2030,13 @@ }, "properties": [ { - "$id": "207", + "$id": "223", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the Thing", "type": { - "$id": "208", + "$id": "224", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1928,29 +2056,29 @@ "isHttpMetadata": false }, { - "$id": "209", + "$id": "225", "kind": "property", "name": "requiredUnion", "serializedName": "requiredUnion", "doc": "required Union", "type": { - "$id": "210", + "$id": "226", "kind": "union", "name": "ThingRequiredUnion", "variantTypes": [ { - "$id": "211", + "$id": "227", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "212", + "$id": "228", "kind": "array", "name": "Array", "valueType": { - "$id": "213", + "$id": "229", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1960,7 +2088,7 @@ "decorators": [] }, { - "$id": "214", + "$id": "230", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1984,7 +2112,7 @@ "isHttpMetadata": false }, { - "$id": "215", + "$id": "231", "kind": "property", "name": "requiredLiteralString", "serializedName": "requiredLiteralString", @@ -2006,16 +2134,16 @@ "isHttpMetadata": false }, { - "$id": "216", + "$id": "232", "kind": "property", "name": "requiredNullableString", "serializedName": "requiredNullableString", "doc": "required nullable string", "type": { - "$id": "217", + "$id": "233", "kind": "nullable", "type": { - "$id": "218", + "$id": "234", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2037,16 +2165,16 @@ "isHttpMetadata": false }, { - "$id": "219", + "$id": "235", "kind": "property", "name": "optionalNullableString", "serializedName": "optionalNullableString", "doc": "required optional string", "type": { - "$id": "220", + "$id": "236", "kind": "nullable", "type": { - "$id": "221", + "$id": "237", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2068,7 +2196,7 @@ "isHttpMetadata": false }, { - "$id": "222", + "$id": "238", "kind": "property", "name": "requiredLiteralInt", "serializedName": "requiredLiteralInt", @@ -2090,7 +2218,7 @@ "isHttpMetadata": false }, { - "$id": "223", + "$id": "239", "kind": "property", "name": "requiredLiteralFloat", "serializedName": "requiredLiteralFloat", @@ -2112,7 +2240,7 @@ "isHttpMetadata": false }, { - "$id": "224", + "$id": "240", "kind": "property", "name": "requiredLiteralBool", "serializedName": "requiredLiteralBool", @@ -2134,7 +2262,7 @@ "isHttpMetadata": false }, { - "$id": "225", + "$id": "241", "kind": "property", "name": "optionalLiteralString", "serializedName": "optionalLiteralString", @@ -2156,13 +2284,13 @@ "isHttpMetadata": false }, { - "$id": "226", + "$id": "242", "kind": "property", "name": "requiredNullableLiteralString", "serializedName": "requiredNullableLiteralString", "doc": "required nullable literal string", "type": { - "$id": "227", + "$id": "243", "kind": "nullable", "type": { "$ref": "5" @@ -2183,7 +2311,7 @@ "isHttpMetadata": false }, { - "$id": "228", + "$id": "244", "kind": "property", "name": "optionalLiteralInt", "serializedName": "optionalLiteralInt", @@ -2205,7 +2333,7 @@ "isHttpMetadata": false }, { - "$id": "229", + "$id": "245", "kind": "property", "name": "optionalLiteralFloat", "serializedName": "optionalLiteralFloat", @@ -2227,7 +2355,7 @@ "isHttpMetadata": false }, { - "$id": "230", + "$id": "246", "kind": "property", "name": "optionalLiteralBool", "serializedName": "optionalLiteralBool", @@ -2249,13 +2377,13 @@ "isHttpMetadata": false }, { - "$id": "231", + "$id": "247", "kind": "property", "name": "requiredBadDescription", "serializedName": "requiredBadDescription", "doc": "description with xml <|endoftext|>", "type": { - "$id": "232", + "$id": "248", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2275,20 +2403,20 @@ "isHttpMetadata": false }, { - "$id": "233", + "$id": "249", "kind": "property", "name": "optionalNullableList", "serializedName": "optionalNullableList", "doc": "optional nullable collection", "type": { - "$id": "234", + "$id": "250", "kind": "nullable", "type": { - "$id": "235", + "$id": "251", "kind": "array", "name": "Array1", "valueType": { - "$id": "236", + "$id": "252", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2313,16 +2441,16 @@ "isHttpMetadata": false }, { - "$id": "237", + "$id": "253", "kind": "property", "name": "requiredNullableList", "serializedName": "requiredNullableList", "doc": "required nullable collection", "type": { - "$id": "238", + "$id": "254", "kind": "nullable", "type": { - "$ref": "235" + "$ref": "251" }, "namespace": "SampleTypeSpec" }, @@ -2340,13 +2468,13 @@ "isHttpMetadata": false }, { - "$id": "239", + "$id": "255", "kind": "property", "name": "propertyWithSpecialDocs", "serializedName": "propertyWithSpecialDocs", "doc": "This tests:\n- Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet points within documentation comments. It should properly indent the wrapped lines.\n- Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting is preserved when the text wraps onto multiple lines in the generated documentation.\n- Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the wrapping and formatting are correctly applied in the output.\n- Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic formatting and is long enough to test the wrapping behavior in such cases.\n- **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how the bold formatting is maintained across wrapped lines.\n- *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that italic formatting is correctly applied even when the text spans multiple lines.", "type": { - "$id": "240", + "$id": "256", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2368,7 +2496,7 @@ ] }, { - "$id": "241", + "$id": "257", "kind": "model", "name": "RoundTripModel", "namespace": "SampleTypeSpec", @@ -2383,13 +2511,13 @@ }, "properties": [ { - "$id": "242", + "$id": "258", "kind": "property", "name": "requiredString", "serializedName": "requiredString", "doc": "Required string, illustrating a reference type property.", "type": { - "$id": "243", + "$id": "259", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2409,13 +2537,13 @@ "isHttpMetadata": false }, { - "$id": "244", + "$id": "260", "kind": "property", "name": "requiredInt", "serializedName": "requiredInt", "doc": "Required int, illustrating a value type property.", "type": { - "$id": "245", + "$id": "261", "kind": "int32", "name": "int32", "encode": "string", @@ -2436,13 +2564,13 @@ "isHttpMetadata": false }, { - "$id": "246", + "$id": "262", "kind": "property", "name": "requiredCollection", "serializedName": "requiredCollection", "doc": "Required collection of enums", "type": { - "$id": "247", + "$id": "263", "kind": "array", "name": "ArrayStringFixedEnum", "valueType": { @@ -2465,16 +2593,16 @@ "isHttpMetadata": false }, { - "$id": "248", + "$id": "264", "kind": "property", "name": "requiredDictionary", "serializedName": "requiredDictionary", "doc": "Required dictionary of enums", "type": { - "$id": "249", + "$id": "265", "kind": "dict", "keyType": { - "$id": "250", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2499,13 +2627,13 @@ "isHttpMetadata": false }, { - "$id": "251", + "$id": "267", "kind": "property", "name": "requiredModel", "serializedName": "requiredModel", "doc": "Required model", "type": { - "$ref": "206" + "$ref": "222" }, "optional": false, "readOnly": false, @@ -2521,7 +2649,7 @@ "isHttpMetadata": false }, { - "$id": "252", + "$id": "268", "kind": "property", "name": "intExtensibleEnum", "serializedName": "intExtensibleEnum", @@ -2543,13 +2671,13 @@ "isHttpMetadata": false }, { - "$id": "253", + "$id": "269", "kind": "property", "name": "intExtensibleEnumCollection", "serializedName": "intExtensibleEnumCollection", "doc": "this is a collection of int based extensible enum", "type": { - "$id": "254", + "$id": "270", "kind": "array", "name": "ArrayIntExtensibleEnum", "valueType": { @@ -2572,7 +2700,7 @@ "isHttpMetadata": false }, { - "$id": "255", + "$id": "271", "kind": "property", "name": "floatExtensibleEnum", "serializedName": "floatExtensibleEnum", @@ -2594,7 +2722,7 @@ "isHttpMetadata": false }, { - "$id": "256", + "$id": "272", "kind": "property", "name": "floatExtensibleEnumWithIntValue", "serializedName": "floatExtensibleEnumWithIntValue", @@ -2616,13 +2744,13 @@ "isHttpMetadata": false }, { - "$id": "257", + "$id": "273", "kind": "property", "name": "floatExtensibleEnumCollection", "serializedName": "floatExtensibleEnumCollection", "doc": "this is a collection of float based extensible enum", "type": { - "$id": "258", + "$id": "274", "kind": "array", "name": "ArrayFloatExtensibleEnum", "valueType": { @@ -2645,7 +2773,7 @@ "isHttpMetadata": false }, { - "$id": "259", + "$id": "275", "kind": "property", "name": "floatFixedEnum", "serializedName": "floatFixedEnum", @@ -2667,7 +2795,7 @@ "isHttpMetadata": false }, { - "$id": "260", + "$id": "276", "kind": "property", "name": "floatFixedEnumWithIntValue", "serializedName": "floatFixedEnumWithIntValue", @@ -2689,13 +2817,13 @@ "isHttpMetadata": false }, { - "$id": "261", + "$id": "277", "kind": "property", "name": "floatFixedEnumCollection", "serializedName": "floatFixedEnumCollection", "doc": "this is a collection of float based fixed enum", "type": { - "$id": "262", + "$id": "278", "kind": "array", "name": "ArrayFloatFixedEnum", "valueType": { @@ -2718,7 +2846,7 @@ "isHttpMetadata": false }, { - "$id": "263", + "$id": "279", "kind": "property", "name": "intFixedEnum", "serializedName": "intFixedEnum", @@ -2740,13 +2868,13 @@ "isHttpMetadata": false }, { - "$id": "264", + "$id": "280", "kind": "property", "name": "intFixedEnumCollection", "serializedName": "intFixedEnumCollection", "doc": "this is a collection of int based fixed enum", "type": { - "$id": "265", + "$id": "281", "kind": "array", "name": "ArrayIntFixedEnum", "valueType": { @@ -2769,7 +2897,7 @@ "isHttpMetadata": false }, { - "$id": "266", + "$id": "282", "kind": "property", "name": "stringFixedEnum", "serializedName": "stringFixedEnum", @@ -2791,13 +2919,13 @@ "isHttpMetadata": false }, { - "$id": "267", + "$id": "283", "kind": "property", "name": "requiredUnknown", "serializedName": "requiredUnknown", "doc": "required unknown", "type": { - "$id": "268", + "$id": "284", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2817,13 +2945,13 @@ "isHttpMetadata": false }, { - "$id": "269", + "$id": "285", "kind": "property", "name": "optionalUnknown", "serializedName": "optionalUnknown", "doc": "optional unknown", "type": { - "$id": "270", + "$id": "286", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2843,23 +2971,23 @@ "isHttpMetadata": false }, { - "$id": "271", + "$id": "287", "kind": "property", "name": "requiredRecordUnknown", "serializedName": "requiredRecordUnknown", "doc": "required record of unknown", "type": { - "$id": "272", + "$id": "288", "kind": "dict", "keyType": { - "$id": "273", + "$id": "289", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "274", + "$id": "290", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2881,13 +3009,13 @@ "isHttpMetadata": false }, { - "$id": "275", + "$id": "291", "kind": "property", "name": "optionalRecordUnknown", "serializedName": "optionalRecordUnknown", "doc": "optional record of unknown", "type": { - "$ref": "272" + "$ref": "288" }, "optional": true, "readOnly": false, @@ -2903,13 +3031,13 @@ "isHttpMetadata": false }, { - "$id": "276", + "$id": "292", "kind": "property", "name": "readOnlyRequiredRecordUnknown", "serializedName": "readOnlyRequiredRecordUnknown", "doc": "required readonly record of unknown", "type": { - "$ref": "272" + "$ref": "288" }, "optional": false, "readOnly": true, @@ -2925,13 +3053,13 @@ "isHttpMetadata": false }, { - "$id": "277", + "$id": "293", "kind": "property", "name": "readOnlyOptionalRecordUnknown", "serializedName": "readOnlyOptionalRecordUnknown", "doc": "optional readonly record of unknown", "type": { - "$ref": "272" + "$ref": "288" }, "optional": true, "readOnly": true, @@ -2947,13 +3075,13 @@ "isHttpMetadata": false }, { - "$id": "278", + "$id": "294", "kind": "property", "name": "modelWithRequiredNullable", "serializedName": "modelWithRequiredNullable", "doc": "this is a model with required nullable properties", "type": { - "$id": "279", + "$id": "295", "kind": "model", "name": "ModelWithRequiredNullableProperties", "namespace": "SampleTypeSpec", @@ -2968,16 +3096,16 @@ }, "properties": [ { - "$id": "280", + "$id": "296", "kind": "property", "name": "requiredNullablePrimitive", "serializedName": "requiredNullablePrimitive", "doc": "required nullable primitive type", "type": { - "$id": "281", + "$id": "297", "kind": "nullable", "type": { - "$id": "282", + "$id": "298", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2999,13 +3127,13 @@ "isHttpMetadata": false }, { - "$id": "283", + "$id": "299", "kind": "property", "name": "requiredExtensibleEnum", "serializedName": "requiredExtensibleEnum", "doc": "required nullable extensible enum type", "type": { - "$id": "284", + "$id": "300", "kind": "nullable", "type": { "$ref": "22" @@ -3026,13 +3154,13 @@ "isHttpMetadata": false }, { - "$id": "285", + "$id": "301", "kind": "property", "name": "requiredFixedEnum", "serializedName": "requiredFixedEnum", "doc": "required nullable fixed enum type", "type": { - "$id": "286", + "$id": "302", "kind": "nullable", "type": { "$ref": "17" @@ -3068,13 +3196,13 @@ "isHttpMetadata": false }, { - "$id": "287", + "$id": "303", "kind": "property", "name": "requiredBytes", "serializedName": "requiredBytes", "doc": "Required bytes", "type": { - "$id": "288", + "$id": "304", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -3097,10 +3225,10 @@ ] }, { - "$ref": "279" + "$ref": "295" }, { - "$id": "289", + "$id": "305", "kind": "model", "name": "Wrapper", "namespace": "SampleTypeSpec", @@ -3110,12 +3238,12 @@ "serializationOptions": {}, "properties": [ { - "$id": "290", + "$id": "306", "kind": "property", "name": "p1", "doc": "header parameter", "type": { - "$id": "291", + "$id": "307", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3131,12 +3259,12 @@ "isHttpMetadata": true }, { - "$id": "292", + "$id": "308", "kind": "property", "name": "action", "doc": "body parameter", "type": { - "$ref": "241" + "$ref": "257" }, "optional": false, "readOnly": false, @@ -3148,12 +3276,12 @@ "isHttpMetadata": false }, { - "$id": "293", + "$id": "309", "kind": "property", "name": "p2", "doc": "path parameter", "type": { - "$id": "294", + "$id": "310", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3171,7 +3299,7 @@ ] }, { - "$id": "295", + "$id": "311", "kind": "model", "name": "Friend", "namespace": "SampleTypeSpec", @@ -3186,13 +3314,13 @@ }, "properties": [ { - "$id": "296", + "$id": "312", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the NotFriend", "type": { - "$id": "297", + "$id": "313", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3214,7 +3342,7 @@ ] }, { - "$id": "298", + "$id": "314", "kind": "model", "name": "RenamedModel", "namespace": "SampleTypeSpec", @@ -3229,13 +3357,13 @@ }, "properties": [ { - "$id": "299", + "$id": "315", "kind": "property", "name": "otherName", "serializedName": "otherName", "doc": "name of the ModelWithClientName", "type": { - "$id": "300", + "$id": "316", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3257,7 +3385,7 @@ ] }, { - "$id": "301", + "$id": "317", "kind": "model", "name": "ReturnsAnonymousModelResponse", "namespace": "SampleTypeSpec", @@ -3272,7 +3400,7 @@ "properties": [] }, { - "$id": "302", + "$id": "318", "kind": "model", "name": "ListWithNextLinkResponse", "namespace": "SampleTypeSpec", @@ -3286,16 +3414,16 @@ }, "properties": [ { - "$id": "303", + "$id": "319", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$id": "304", + "$id": "320", "kind": "array", "name": "ArrayThing", "valueType": { - "$ref": "206" + "$ref": "222" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -3314,12 +3442,12 @@ "isHttpMetadata": false }, { - "$id": "305", + "$id": "321", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "306", + "$id": "322", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -3341,7 +3469,7 @@ ] }, { - "$id": "307", + "$id": "323", "kind": "model", "name": "ListWithStringNextLinkResponse", "namespace": "SampleTypeSpec", @@ -3355,12 +3483,12 @@ }, "properties": [ { - "$id": "308", + "$id": "324", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$ref": "304" + "$ref": "320" }, "optional": false, "readOnly": false, @@ -3376,12 +3504,12 @@ "isHttpMetadata": false }, { - "$id": "309", + "$id": "325", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "310", + "$id": "326", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3403,7 +3531,7 @@ ] }, { - "$id": "311", + "$id": "327", "kind": "model", "name": "ListWithContinuationTokenResponse", "namespace": "SampleTypeSpec", @@ -3417,12 +3545,12 @@ }, "properties": [ { - "$id": "312", + "$id": "328", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$ref": "304" + "$ref": "320" }, "optional": false, "readOnly": false, @@ -3438,12 +3566,12 @@ "isHttpMetadata": false }, { - "$id": "313", + "$id": "329", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "314", + "$id": "330", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3465,7 +3593,7 @@ ] }, { - "$id": "315", + "$id": "331", "kind": "model", "name": "ListWithContinuationTokenHeaderResponseResponse", "namespace": "", @@ -3479,12 +3607,12 @@ }, "properties": [ { - "$id": "316", + "$id": "332", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$ref": "304" + "$ref": "320" }, "optional": false, "readOnly": false, @@ -3502,7 +3630,7 @@ ] }, { - "$id": "317", + "$id": "333", "kind": "model", "name": "PageThing", "namespace": "SampleTypeSpec", @@ -3516,12 +3644,12 @@ }, "properties": [ { - "$id": "318", + "$id": "334", "kind": "property", "name": "items", "serializedName": "items", "type": { - "$ref": "304" + "$ref": "320" }, "optional": false, "readOnly": false, @@ -3539,7 +3667,7 @@ ] }, { - "$id": "319", + "$id": "335", "kind": "model", "name": "ModelWithEmbeddedNonBodyParameters", "namespace": "SampleTypeSpec", @@ -3553,13 +3681,13 @@ }, "properties": [ { - "$id": "320", + "$id": "336", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the ModelWithEmbeddedNonBodyParameters", "type": { - "$id": "321", + "$id": "337", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3579,13 +3707,13 @@ "isHttpMetadata": false }, { - "$id": "322", + "$id": "338", "kind": "property", "name": "requiredHeader", "serializedName": "requiredHeader", "doc": "required header parameter", "type": { - "$id": "323", + "$id": "339", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3605,13 +3733,13 @@ "isHttpMetadata": true }, { - "$id": "324", + "$id": "340", "kind": "property", "name": "optionalHeader", "serializedName": "optionalHeader", "doc": "optional header parameter", "type": { - "$id": "325", + "$id": "341", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3631,13 +3759,13 @@ "isHttpMetadata": true }, { - "$id": "326", + "$id": "342", "kind": "property", "name": "requiredQuery", "serializedName": "requiredQuery", "doc": "required query parameter", "type": { - "$id": "327", + "$id": "343", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3657,13 +3785,13 @@ "isHttpMetadata": true }, { - "$id": "328", + "$id": "344", "kind": "property", "name": "optionalQuery", "serializedName": "optionalQuery", "doc": "optional query parameter", "type": { - "$id": "329", + "$id": "345", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3685,7 +3813,7 @@ ] }, { - "$id": "330", + "$id": "346", "kind": "model", "name": "DynamicModel", "namespace": "SampleTypeSpec", @@ -3705,12 +3833,12 @@ }, "properties": [ { - "$id": "331", + "$id": "347", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "332", + "$id": "348", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3730,12 +3858,12 @@ "isHttpMetadata": false }, { - "$id": "333", + "$id": "349", "kind": "property", "name": "optionalUnknown", "serializedName": "optionalUnknown", "type": { - "$id": "334", + "$id": "350", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -3755,12 +3883,12 @@ "isHttpMetadata": false }, { - "$id": "335", + "$id": "351", "kind": "property", "name": "optionalInt", "serializedName": "optionalInt", "type": { - "$id": "336", + "$id": "352", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3780,15 +3908,15 @@ "isHttpMetadata": false }, { - "$id": "337", + "$id": "353", "kind": "property", "name": "optionalNullableList", "serializedName": "optionalNullableList", "type": { - "$id": "338", + "$id": "354", "kind": "nullable", "type": { - "$ref": "235" + "$ref": "251" }, "namespace": "SampleTypeSpec" }, @@ -3806,15 +3934,15 @@ "isHttpMetadata": false }, { - "$id": "339", + "$id": "355", "kind": "property", "name": "requiredNullableList", "serializedName": "requiredNullableList", "type": { - "$id": "340", + "$id": "356", "kind": "nullable", "type": { - "$ref": "235" + "$ref": "251" }, "namespace": "SampleTypeSpec" }, @@ -3832,25 +3960,25 @@ "isHttpMetadata": false }, { - "$id": "341", + "$id": "357", "kind": "property", "name": "optionalNullableDictionary", "serializedName": "optionalNullableDictionary", "type": { - "$id": "342", + "$id": "358", "kind": "nullable", "type": { - "$id": "343", + "$id": "359", "kind": "dict", "keyType": { - "$id": "344", + "$id": "360", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "345", + "$id": "361", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3874,15 +4002,15 @@ "isHttpMetadata": false }, { - "$id": "346", + "$id": "362", "kind": "property", "name": "requiredNullableDictionary", "serializedName": "requiredNullableDictionary", "type": { - "$id": "347", + "$id": "363", "kind": "nullable", "type": { - "$ref": "343" + "$ref": "359" }, "namespace": "SampleTypeSpec" }, @@ -3900,12 +4028,12 @@ "isHttpMetadata": false }, { - "$id": "348", + "$id": "364", "kind": "property", "name": "primitiveDictionary", "serializedName": "primitiveDictionary", "type": { - "$ref": "343" + "$ref": "359" }, "optional": false, "readOnly": false, @@ -3921,12 +4049,12 @@ "isHttpMetadata": false }, { - "$id": "349", + "$id": "365", "kind": "property", "name": "foo", "serializedName": "foo", "type": { - "$id": "350", + "$id": "366", "kind": "model", "name": "AnotherDynamicModel", "namespace": "SampleTypeSpec", @@ -3946,12 +4074,12 @@ }, "properties": [ { - "$id": "351", + "$id": "367", "kind": "property", "name": "bar", "serializedName": "bar", "type": { - "$id": "352", + "$id": "368", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3986,16 +4114,16 @@ "isHttpMetadata": false }, { - "$id": "353", + "$id": "369", "kind": "property", "name": "listFoo", "serializedName": "listFoo", "type": { - "$id": "354", + "$id": "370", "kind": "array", "name": "ArrayAnotherDynamicModel", "valueType": { - "$ref": "350" + "$ref": "366" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4014,16 +4142,16 @@ "isHttpMetadata": false }, { - "$id": "355", + "$id": "371", "kind": "property", "name": "listOfListFoo", "serializedName": "listOfListFoo", "type": { - "$id": "356", + "$id": "372", "kind": "array", "name": "ArrayArray", "valueType": { - "$ref": "354" + "$ref": "370" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4042,22 +4170,22 @@ "isHttpMetadata": false }, { - "$id": "357", + "$id": "373", "kind": "property", "name": "dictionaryFoo", "serializedName": "dictionaryFoo", "type": { - "$id": "358", + "$id": "374", "kind": "dict", "keyType": { - "$id": "359", + "$id": "375", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$ref": "350" + "$ref": "366" }, "decorators": [] }, @@ -4075,22 +4203,22 @@ "isHttpMetadata": false }, { - "$id": "360", + "$id": "376", "kind": "property", "name": "dictionaryOfDictionaryFoo", "serializedName": "dictionaryOfDictionaryFoo", "type": { - "$id": "361", + "$id": "377", "kind": "dict", "keyType": { - "$id": "362", + "$id": "378", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$ref": "358" + "$ref": "374" }, "decorators": [] }, @@ -4108,22 +4236,22 @@ "isHttpMetadata": false }, { - "$id": "363", + "$id": "379", "kind": "property", "name": "dictionaryListFoo", "serializedName": "dictionaryListFoo", "type": { - "$id": "364", + "$id": "380", "kind": "dict", "keyType": { - "$id": "365", + "$id": "381", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$ref": "354" + "$ref": "370" }, "decorators": [] }, @@ -4141,16 +4269,16 @@ "isHttpMetadata": false }, { - "$id": "366", + "$id": "382", "kind": "property", "name": "listOfDictionaryFoo", "serializedName": "listOfDictionaryFoo", "type": { - "$id": "367", + "$id": "383", "kind": "array", "name": "ArrayRecord", "valueType": { - "$ref": "358" + "$ref": "374" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4171,15 +4299,15 @@ ] }, { - "$ref": "350" + "$ref": "366" }, { - "$id": "368", + "$id": "384", "kind": "model", "name": "XmlAdvancedModel", "namespace": "SampleTypeSpec", "crossLanguageDefinitionId": "SampleTypeSpec.XmlAdvancedModel", - "usage": "Output,Xml", + "usage": "Input,Output,Xml", "doc": "An advanced XML model for testing various property types and XML features.", "decorators": [ { @@ -4198,13 +4326,13 @@ }, "properties": [ { - "$id": "369", + "$id": "385", "kind": "property", "name": "name", "serializedName": "name", "doc": "A simple string property", "type": { - "$id": "370", + "$id": "386", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4226,13 +4354,13 @@ "isHttpMetadata": false }, { - "$id": "371", + "$id": "387", "kind": "property", "name": "age", "serializedName": "age", "doc": "An integer property", "type": { - "$id": "372", + "$id": "388", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4254,13 +4382,13 @@ "isHttpMetadata": false }, { - "$id": "373", + "$id": "389", "kind": "property", "name": "enabled", "serializedName": "enabled", "doc": "A boolean property", "type": { - "$id": "374", + "$id": "390", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4282,13 +4410,13 @@ "isHttpMetadata": false }, { - "$id": "375", + "$id": "391", "kind": "property", "name": "score", "serializedName": "score", "doc": "A float property", "type": { - "$id": "376", + "$id": "392", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -4310,13 +4438,13 @@ "isHttpMetadata": false }, { - "$id": "377", + "$id": "393", "kind": "property", "name": "optionalString", "serializedName": "optionalString", "doc": "An optional string", "type": { - "$id": "378", + "$id": "394", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4338,13 +4466,13 @@ "isHttpMetadata": false }, { - "$id": "379", + "$id": "395", "kind": "property", "name": "optionalInt", "serializedName": "optionalInt", "doc": "An optional integer", "type": { - "$id": "380", + "$id": "396", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4366,16 +4494,16 @@ "isHttpMetadata": false }, { - "$id": "381", + "$id": "397", "kind": "property", "name": "nullableString", "serializedName": "nullableString", "doc": "A nullable string", "type": { - "$id": "382", + "$id": "398", "kind": "nullable", "type": { - "$id": "383", + "$id": "399", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4399,13 +4527,13 @@ "isHttpMetadata": false }, { - "$id": "384", + "$id": "400", "kind": "property", "name": "id", "serializedName": "id", "doc": "A string as XML attribute", "type": { - "$id": "385", + "$id": "401", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4432,13 +4560,13 @@ "isHttpMetadata": false }, { - "$id": "386", + "$id": "402", "kind": "property", "name": "version", "serializedName": "version", "doc": "An integer as XML attribute", "type": { - "$id": "387", + "$id": "403", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4465,13 +4593,13 @@ "isHttpMetadata": false }, { - "$id": "388", + "$id": "404", "kind": "property", "name": "isActive", "serializedName": "isActive", "doc": "A boolean as XML attribute", "type": { - "$id": "389", + "$id": "405", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4498,13 +4626,13 @@ "isHttpMetadata": false }, { - "$id": "390", + "$id": "406", "kind": "property", "name": "originalName", "serializedName": "RenamedProperty", "doc": "A property with a custom XML element name", "type": { - "$id": "391", + "$id": "407", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4533,13 +4661,13 @@ "isHttpMetadata": false }, { - "$id": "392", + "$id": "408", "kind": "property", "name": "xmlIdentifier", "serializedName": "xml-id", "doc": "An attribute with a custom XML name", "type": { - "$id": "393", + "$id": "409", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4572,13 +4700,13 @@ "isHttpMetadata": false }, { - "$id": "394", + "$id": "410", "kind": "property", "name": "content", "serializedName": "content", "doc": "Text content in the element (unwrapped string)", "type": { - "$id": "395", + "$id": "411", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4605,13 +4733,13 @@ "isHttpMetadata": false }, { - "$id": "396", + "$id": "412", "kind": "property", "name": "unwrappedStrings", "serializedName": "unwrappedStrings", "doc": "An unwrapped array of strings - items appear directly without wrapper", "type": { - "$ref": "212" + "$ref": "228" }, "optional": false, "readOnly": false, @@ -4635,13 +4763,13 @@ "isHttpMetadata": false }, { - "$id": "397", + "$id": "413", "kind": "property", "name": "unwrappedCounts", "serializedName": "unwrappedCounts", "doc": "An unwrapped array of integers", "type": { - "$ref": "235" + "$ref": "251" }, "optional": false, "readOnly": false, @@ -4665,22 +4793,22 @@ "isHttpMetadata": false }, { - "$id": "398", + "$id": "414", "kind": "property", "name": "unwrappedItems", "serializedName": "unwrappedItems", "doc": "An unwrapped array of models", "type": { - "$id": "399", + "$id": "415", "kind": "array", "name": "ArrayXmlItem", "valueType": { - "$id": "400", + "$id": "416", "kind": "model", "name": "XmlItem", "namespace": "SampleTypeSpec", "crossLanguageDefinitionId": "SampleTypeSpec.XmlItem", - "usage": "Output,Xml", + "usage": "Input,Output,Xml", "doc": "An item model for XML array testing", "decorators": [ { @@ -4699,13 +4827,13 @@ }, "properties": [ { - "$id": "401", + "$id": "417", "kind": "property", "name": "itemName", "serializedName": "itemName", "doc": "The item name", "type": { - "$id": "402", + "$id": "418", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4727,13 +4855,13 @@ "isHttpMetadata": false }, { - "$id": "403", + "$id": "419", "kind": "property", "name": "itemValue", "serializedName": "itemValue", "doc": "The item value", "type": { - "$id": "404", + "$id": "420", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4755,13 +4883,13 @@ "isHttpMetadata": false }, { - "$id": "405", + "$id": "421", "kind": "property", "name": "itemId", "serializedName": "itemId", "doc": "Item ID as attribute", "type": { - "$id": "406", + "$id": "422", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4814,13 +4942,13 @@ "isHttpMetadata": false }, { - "$id": "407", + "$id": "423", "kind": "property", "name": "wrappedColors", "serializedName": "wrappedColors", "doc": "A wrapped array of strings (default)", "type": { - "$ref": "212" + "$ref": "228" }, "optional": false, "readOnly": false, @@ -4839,13 +4967,13 @@ "isHttpMetadata": false }, { - "$id": "408", + "$id": "424", "kind": "property", "name": "items", "serializedName": "ItemCollection", "doc": "A wrapped array with custom wrapper name", "type": { - "$ref": "399" + "$ref": "415" }, "optional": false, "readOnly": false, @@ -4871,18 +4999,18 @@ "isHttpMetadata": false }, { - "$id": "409", + "$id": "425", "kind": "property", "name": "nestedModel", "serializedName": "nestedModel", "doc": "A nested model property", "type": { - "$id": "410", + "$id": "426", "kind": "model", "name": "XmlNestedModel", "namespace": "SampleTypeSpec", "crossLanguageDefinitionId": "SampleTypeSpec.XmlNestedModel", - "usage": "Output,Xml", + "usage": "Input,Output,Xml", "doc": "A nested model for XML testing", "decorators": [], "serializationOptions": { @@ -4894,13 +5022,13 @@ }, "properties": [ { - "$id": "411", + "$id": "427", "kind": "property", "name": "value", "serializedName": "value", "doc": "The value of the nested model", "type": { - "$id": "412", + "$id": "428", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4922,13 +5050,13 @@ "isHttpMetadata": false }, { - "$id": "413", + "$id": "429", "kind": "property", "name": "nestedId", "serializedName": "nestedId", "doc": "An attribute on the nested model", "type": { - "$id": "414", + "$id": "430", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4972,13 +5100,13 @@ "isHttpMetadata": false }, { - "$id": "415", + "$id": "431", "kind": "property", "name": "optionalNestedModel", "serializedName": "optionalNestedModel", "doc": "An optional nested model", "type": { - "$ref": "410" + "$ref": "426" }, "optional": true, "readOnly": false, @@ -4996,23 +5124,23 @@ "isHttpMetadata": false }, { - "$id": "416", + "$id": "432", "kind": "property", "name": "metadata", "serializedName": "metadata", "doc": "A dictionary property", "type": { - "$id": "417", + "$id": "433", "kind": "dict", "keyType": { - "$id": "418", + "$id": "434", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "419", + "$id": "435", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5036,18 +5164,18 @@ "isHttpMetadata": false }, { - "$id": "420", + "$id": "436", "kind": "property", "name": "createdAt", "serializedName": "createdAt", "doc": "A date-time property", "type": { - "$id": "421", + "$id": "437", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "422", + "$id": "438", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5072,18 +5200,18 @@ "isHttpMetadata": false }, { - "$id": "423", + "$id": "439", "kind": "property", "name": "duration", "serializedName": "duration", "doc": "A duration property", "type": { - "$id": "424", + "$id": "440", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "425", + "$id": "441", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5108,13 +5236,13 @@ "isHttpMetadata": false }, { - "$id": "426", + "$id": "442", "kind": "property", "name": "data", "serializedName": "data", "doc": "A bytes property", "type": { - "$id": "427", + "$id": "443", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -5137,13 +5265,13 @@ "isHttpMetadata": false }, { - "$id": "428", + "$id": "444", "kind": "property", "name": "optionalRecordUnknown", "serializedName": "optionalRecordUnknown", "doc": "optional record of unknown", "type": { - "$ref": "272" + "$ref": "288" }, "optional": true, "readOnly": false, @@ -5161,7 +5289,7 @@ "isHttpMetadata": false }, { - "$id": "429", + "$id": "445", "kind": "property", "name": "fixedEnum", "serializedName": "fixedEnum", @@ -5185,7 +5313,7 @@ "isHttpMetadata": false }, { - "$id": "430", + "$id": "446", "kind": "property", "name": "extensibleEnum", "serializedName": "extensibleEnum", @@ -5209,7 +5337,7 @@ "isHttpMetadata": false }, { - "$id": "431", + "$id": "447", "kind": "property", "name": "optionalFixedEnum", "serializedName": "optionalFixedEnum", @@ -5233,7 +5361,7 @@ "isHttpMetadata": false }, { - "$id": "432", + "$id": "448", "kind": "property", "name": "optionalExtensibleEnum", "serializedName": "optionalExtensibleEnum", @@ -5257,12 +5385,12 @@ "isHttpMetadata": false }, { - "$id": "433", + "$id": "449", "kind": "property", "name": "label", "serializedName": "label", "type": { - "$id": "434", + "$id": "450", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5277,13 +5405,13 @@ "name": "TypeSpec.Xml.@ns", "arguments": { "ns": { - "$id": "435", + "$id": "451", "kind": "enumvalue", "decorators": [], "name": "ns1", "value": "https://example.com/ns1", "enumType": { - "$id": "436", + "$id": "452", "kind": "enum", "decorators": [ { @@ -5295,7 +5423,7 @@ "isGeneratedName": false, "namespace": "SampleTypeSpec", "valueType": { - "$id": "437", + "$id": "453", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -5304,30 +5432,30 @@ }, "values": [ { - "$id": "438", + "$id": "454", "kind": "enumvalue", "decorators": [], "name": "ns1", "value": "https://example.com/ns1", "enumType": { - "$ref": "436" + "$ref": "452" }, "valueType": { - "$ref": "437" + "$ref": "453" }, "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns1" }, { - "$id": "439", + "$id": "455", "kind": "enumvalue", "decorators": [], "name": "ns2", "value": "https://example.com/ns2", "enumType": { - "$ref": "436" + "$ref": "452" }, "valueType": { - "$ref": "437" + "$ref": "453" }, "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns2" } @@ -5345,7 +5473,7 @@ "__accessSet": true }, "valueType": { - "$ref": "437" + "$ref": "453" }, "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns1" } @@ -5371,12 +5499,12 @@ "isHttpMetadata": false }, { - "$id": "440", + "$id": "456", "kind": "property", "name": "daysUsed", "serializedName": "daysUsed", "type": { - "$id": "441", + "$id": "457", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5391,16 +5519,16 @@ "name": "TypeSpec.Xml.@ns", "arguments": { "ns": { - "$id": "442", + "$id": "458", "kind": "enumvalue", "decorators": [], "name": "ns2", "value": "https://example.com/ns2", "enumType": { - "$ref": "436" + "$ref": "452" }, "valueType": { - "$ref": "437" + "$ref": "453" }, "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns2" } @@ -5422,12 +5550,12 @@ "isHttpMetadata": false }, { - "$id": "443", + "$id": "459", "kind": "property", "name": "fooItems", "serializedName": "fooItems", "type": { - "$ref": "212" + "$ref": "228" }, "optional": false, "readOnly": false, @@ -5458,12 +5586,12 @@ "isHttpMetadata": false }, { - "$id": "444", + "$id": "460", "kind": "property", "name": "anotherModel", "serializedName": "anotherModel", "type": { - "$ref": "410" + "$ref": "426" }, "optional": false, "readOnly": false, @@ -5493,21 +5621,21 @@ "isHttpMetadata": false }, { - "$id": "445", + "$id": "461", "kind": "property", "name": "modelsWithNamespaces", "serializedName": "modelsWithNamespaces", "type": { - "$id": "446", + "$id": "462", "kind": "array", "name": "ArrayXmlModelWithNamespace", "valueType": { - "$id": "447", + "$id": "463", "kind": "model", "name": "XmlModelWithNamespace", "namespace": "SampleTypeSpec", "crossLanguageDefinitionId": "SampleTypeSpec.XmlModelWithNamespace", - "usage": "Output,Xml", + "usage": "Input,Output,Xml", "decorators": [ { "name": "TypeSpec.Xml.@ns", @@ -5530,12 +5658,12 @@ }, "properties": [ { - "$id": "448", + "$id": "464", "kind": "property", "name": "foo", "serializedName": "foo", "type": { - "$id": "449", + "$id": "465", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5582,12 +5710,12 @@ "isHttpMetadata": false }, { - "$id": "450", + "$id": "466", "kind": "property", "name": "unwrappedModelsWithNamespaces", "serializedName": "unwrappedModelsWithNamespaces", "type": { - "$ref": "446" + "$ref": "462" }, "optional": false, "readOnly": false, @@ -5609,20 +5737,187 @@ } }, "isHttpMetadata": false + }, + { + "$id": "467", + "kind": "property", + "name": "listOfListFoo", + "serializedName": "listOfListFoo", + "type": { + "$id": "468", + "kind": "array", + "name": "ArrayArray1", + "valueType": { + "$ref": "415" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.XmlAdvancedModel.listOfListFoo", + "serializationOptions": { + "xml": { + "name": "listOfListFoo", + "attribute": false, + "unwrapped": false, + "itemsName": "Array" + } + }, + "isHttpMetadata": false + }, + { + "$id": "469", + "kind": "property", + "name": "dictionaryFoo", + "serializedName": "dictionaryFoo", + "type": { + "$id": "470", + "kind": "dict", + "keyType": { + "$id": "471", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "416" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.XmlAdvancedModel.dictionaryFoo", + "serializationOptions": { + "xml": { + "name": "dictionaryFoo", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "472", + "kind": "property", + "name": "dictionaryOfDictionaryFoo", + "serializedName": "dictionaryOfDictionaryFoo", + "type": { + "$id": "473", + "kind": "dict", + "keyType": { + "$id": "474", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "470" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.XmlAdvancedModel.dictionaryOfDictionaryFoo", + "serializationOptions": { + "xml": { + "name": "dictionaryOfDictionaryFoo", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "475", + "kind": "property", + "name": "dictionaryListFoo", + "serializedName": "dictionaryListFoo", + "type": { + "$id": "476", + "kind": "dict", + "keyType": { + "$id": "477", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "415" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.XmlAdvancedModel.dictionaryListFoo", + "serializationOptions": { + "xml": { + "name": "dictionaryListFoo", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "478", + "kind": "property", + "name": "listOfDictionaryFoo", + "serializedName": "listOfDictionaryFoo", + "type": { + "$id": "479", + "kind": "array", + "name": "ArrayRecord1", + "valueType": { + "$ref": "470" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.XmlAdvancedModel.listOfDictionaryFoo", + "serializationOptions": { + "xml": { + "name": "listOfDictionaryFoo", + "attribute": false, + "unwrapped": false, + "itemsName": "Record" + } + }, + "isHttpMetadata": false } ] }, { - "$ref": "400" + "$ref": "416" }, { - "$ref": "410" + "$ref": "426" }, { - "$ref": "447" + "$ref": "463" }, { - "$id": "451", + "$id": "480", "kind": "model", "name": "Animal", "namespace": "SampleTypeSpec", @@ -5636,13 +5931,13 @@ } }, "discriminatorProperty": { - "$id": "452", + "$id": "481", "kind": "property", "name": "kind", "serializedName": "kind", "doc": "The kind of animal", "type": { - "$id": "453", + "$id": "482", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5663,16 +5958,16 @@ }, "properties": [ { - "$ref": "452" + "$ref": "481" }, { - "$id": "454", + "$id": "483", "kind": "property", "name": "name", "serializedName": "name", "doc": "Name of the animal", "type": { - "$id": "455", + "$id": "484", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5694,7 +5989,7 @@ ], "discriminatedSubtypes": { "pet": { - "$id": "456", + "$id": "485", "kind": "model", "name": "Pet", "namespace": "SampleTypeSpec", @@ -5709,7 +6004,7 @@ } }, "discriminatorProperty": { - "$id": "457", + "$id": "486", "kind": "property", "name": "kind", "serializedName": "kind", @@ -5730,20 +6025,20 @@ "isHttpMetadata": false }, "baseModel": { - "$ref": "451" + "$ref": "480" }, "properties": [ { - "$ref": "457" + "$ref": "486" }, { - "$id": "458", + "$id": "487", "kind": "property", "name": "trained", "serializedName": "trained", "doc": "Whether the pet is trained", "type": { - "$id": "459", + "$id": "488", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -5765,7 +6060,7 @@ ], "discriminatedSubtypes": { "dog": { - "$id": "460", + "$id": "489", "kind": "model", "name": "Dog", "namespace": "SampleTypeSpec", @@ -5780,11 +6075,11 @@ } }, "baseModel": { - "$ref": "456" + "$ref": "485" }, "properties": [ { - "$id": "461", + "$id": "490", "kind": "property", "name": "kind", "serializedName": "kind", @@ -5805,13 +6100,13 @@ "isHttpMetadata": false }, { - "$id": "462", + "$id": "491", "kind": "property", "name": "breed", "serializedName": "breed", "doc": "The breed of the dog", "type": { - "$id": "463", + "$id": "492", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5835,23 +6130,23 @@ } }, "dog": { - "$ref": "460" + "$ref": "489" } } }, { - "$ref": "456" + "$ref": "485" }, { - "$ref": "460" + "$ref": "489" }, { - "$id": "464", + "$id": "493", "kind": "model", "name": "Tree", "namespace": "SampleTypeSpec", "crossLanguageDefinitionId": "SampleTypeSpec.Tree", - "usage": "Output,Json,Xml", + "usage": "Input,Output,Json,Xml", "doc": "Tree is a specific type of plant", "discriminatorValue": "tree", "decorators": [], @@ -5866,12 +6161,12 @@ } }, "baseModel": { - "$id": "465", + "$id": "494", "kind": "model", "name": "Plant", "namespace": "SampleTypeSpec", "crossLanguageDefinitionId": "SampleTypeSpec.Plant", - "usage": "Output,Json,Xml", + "usage": "Input,Output,Json,Xml", "doc": "Base plant with discriminator", "decorators": [], "serializationOptions": { @@ -5885,13 +6180,13 @@ } }, "discriminatorProperty": { - "$id": "466", + "$id": "495", "kind": "property", "name": "species", "serializedName": "species", "doc": "The species of plant", "type": { - "$id": "467", + "$id": "496", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5917,16 +6212,16 @@ }, "properties": [ { - "$ref": "466" + "$ref": "495" }, { - "$id": "468", + "$id": "497", "kind": "property", "name": "id", "serializedName": "id", "doc": "The unique identifier of the plant", "type": { - "$id": "469", + "$id": "498", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5951,13 +6246,13 @@ "isHttpMetadata": false }, { - "$id": "470", + "$id": "499", "kind": "property", "name": "height", "serializedName": "height", "doc": "The height of the plant in centimeters", "type": { - "$id": "471", + "$id": "500", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5984,13 +6279,13 @@ ], "discriminatedSubtypes": { "tree": { - "$ref": "464" + "$ref": "493" } } }, "properties": [ { - "$id": "472", + "$id": "501", "kind": "property", "name": "species", "serializedName": "species", @@ -6016,13 +6311,13 @@ "isHttpMetadata": false }, { - "$id": "473", + "$id": "502", "kind": "property", "name": "age", "serializedName": "age", "doc": "The age of the tree in years", "type": { - "$id": "474", + "$id": "503", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -6049,10 +6344,10 @@ ] }, { - "$ref": "465" + "$ref": "494" }, { - "$id": "475", + "$id": "504", "kind": "model", "name": "GetWidgetMetricsResponse", "namespace": "SampleTypeSpec", @@ -6066,12 +6361,12 @@ }, "properties": [ { - "$id": "476", + "$id": "505", "kind": "property", "name": "numSold", "serializedName": "numSold", "type": { - "$id": "477", + "$id": "506", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -6091,12 +6386,12 @@ "isHttpMetadata": false }, { - "$id": "478", + "$id": "507", "kind": "property", "name": "averagePrice", "serializedName": "averagePrice", "type": { - "$id": "479", + "$id": "508", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -6120,14 +6415,14 @@ ], "clients": [ { - "$id": "480", + "$id": "509", "kind": "client", "name": "SampleTypeSpecClient", "namespace": "SampleTypeSpec", "doc": "This is a sample typespec project.", "methods": [ { - "$id": "481", + "$id": "510", "kind": "basic", "name": "sayHi", "accessibility": "public", @@ -6137,19 +6432,19 @@ ], "doc": "Return hi", "operation": { - "$id": "482", + "$id": "511", "name": "sayHi", "resourceName": "SampleTypeSpec", "doc": "Return hi", "accessibility": "public", "parameters": [ { - "$id": "483", + "$id": "512", "kind": "header", "name": "headParameter", "serializedName": "head-parameter", "type": { - "$id": "484", + "$id": "513", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6164,12 +6459,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.headParameter", "methodParameterSegments": [ { - "$id": "485", + "$id": "514", "kind": "method", "name": "headParameter", "serializedName": "head-parameter", "type": { - "$id": "486", + "$id": "515", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6187,12 +6482,12 @@ ] }, { - "$id": "487", + "$id": "516", "kind": "query", "name": "queryParameter", "serializedName": "queryParameter", "type": { - "$id": "488", + "$id": "517", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6207,12 +6502,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "489", + "$id": "518", "kind": "method", "name": "queryParameter", "serializedName": "queryParameter", "type": { - "$id": "490", + "$id": "519", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6230,12 +6525,12 @@ ] }, { - "$id": "491", + "$id": "520", "kind": "query", "name": "optionalQuery", "serializedName": "optionalQuery", "type": { - "$id": "492", + "$id": "521", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6250,12 +6545,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "493", + "$id": "522", "kind": "method", "name": "optionalQuery", "serializedName": "optionalQuery", "type": { - "$id": "494", + "$id": "523", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6273,7 +6568,7 @@ ] }, { - "$id": "495", + "$id": "524", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -6289,7 +6584,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.accept", "methodParameterSegments": [ { - "$id": "496", + "$id": "525", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -6314,7 +6609,7 @@ 200 ], "bodyType": { - "$ref": "206" + "$ref": "222" }, "headers": [], "isErrorResponse": false, @@ -6335,21 +6630,21 @@ }, "parameters": [ { - "$ref": "485" + "$ref": "514" }, { - "$ref": "489" + "$ref": "518" }, { - "$ref": "493" + "$ref": "522" }, { - "$ref": "496" + "$ref": "525" } ], "response": { "type": { - "$ref": "206" + "$ref": "222" } }, "isOverride": false, @@ -6358,7 +6653,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.sayHi" }, { - "$id": "497", + "$id": "526", "kind": "basic", "name": "helloAgain", "accessibility": "public", @@ -6368,19 +6663,19 @@ ], "doc": "Return hi again", "operation": { - "$id": "498", + "$id": "527", "name": "helloAgain", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "499", + "$id": "528", "kind": "header", "name": "p1", "serializedName": "p1", "type": { - "$id": "500", + "$id": "529", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6395,12 +6690,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.p1", "methodParameterSegments": [ { - "$id": "501", + "$id": "530", "kind": "method", "name": "p1", "serializedName": "p1", "type": { - "$id": "502", + "$id": "531", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6418,7 +6713,7 @@ ] }, { - "$id": "503", + "$id": "532", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6434,7 +6729,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.contentType", "methodParameterSegments": [ { - "$id": "504", + "$id": "533", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6453,12 +6748,12 @@ ] }, { - "$id": "505", + "$id": "534", "kind": "path", "name": "p2", "serializedName": "p2", "type": { - "$id": "506", + "$id": "535", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6476,12 +6771,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.p2", "methodParameterSegments": [ { - "$id": "507", + "$id": "536", "kind": "method", "name": "p2", "serializedName": "p2", "type": { - "$id": "508", + "$id": "537", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6499,7 +6794,7 @@ ] }, { - "$id": "509", + "$id": "538", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -6515,7 +6810,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.accept", "methodParameterSegments": [ { - "$id": "510", + "$id": "539", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -6534,12 +6829,12 @@ ] }, { - "$id": "511", + "$id": "540", "kind": "body", "name": "action", "serializedName": "action", "type": { - "$ref": "241" + "$ref": "257" }, "isApiVersion": false, "contentTypes": [ @@ -6553,12 +6848,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.action", "methodParameterSegments": [ { - "$id": "512", + "$id": "541", "kind": "method", "name": "action", "serializedName": "action", "type": { - "$ref": "241" + "$ref": "257" }, "location": "Body", "isApiVersion": false, @@ -6578,7 +6873,7 @@ 200 ], "bodyType": { - "$ref": "241" + "$ref": "257" }, "headers": [], "isErrorResponse": false, @@ -6602,24 +6897,24 @@ }, "parameters": [ { - "$ref": "501" + "$ref": "530" }, { - "$ref": "512" + "$ref": "541" }, { - "$ref": "504" + "$ref": "533" }, { - "$ref": "507" + "$ref": "536" }, { - "$ref": "510" + "$ref": "539" } ], "response": { "type": { - "$ref": "241" + "$ref": "257" } }, "isOverride": false, @@ -6628,7 +6923,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain" }, { - "$id": "513", + "$id": "542", "kind": "basic", "name": "noContentType", "accessibility": "public", @@ -6638,19 +6933,19 @@ ], "doc": "Return hi again", "operation": { - "$id": "514", + "$id": "543", "name": "noContentType", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "515", + "$id": "544", "kind": "header", "name": "p1", "serializedName": "p1", "type": { - "$id": "516", + "$id": "545", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6665,12 +6960,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.p1", "methodParameterSegments": [ { - "$id": "517", + "$id": "546", "kind": "method", "name": "info", "serializedName": "info", "type": { - "$ref": "289" + "$ref": "305" }, "location": "", "isApiVersion": false, @@ -6682,13 +6977,13 @@ "decorators": [] }, { - "$id": "518", + "$id": "547", "kind": "method", "name": "p1", "serializedName": "p1", "doc": "header parameter", "type": { - "$ref": "291" + "$ref": "307" }, "location": "", "isApiVersion": false, @@ -6702,12 +6997,12 @@ ] }, { - "$id": "519", + "$id": "548", "kind": "path", "name": "p2", "serializedName": "p2", "type": { - "$id": "520", + "$id": "549", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6725,16 +7020,16 @@ "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.p2", "methodParameterSegments": [ { - "$ref": "517" + "$ref": "546" }, { - "$id": "521", + "$id": "550", "kind": "method", "name": "p2", "serializedName": "p2", "doc": "path parameter", "type": { - "$ref": "294" + "$ref": "310" }, "location": "", "isApiVersion": false, @@ -6748,7 +7043,7 @@ ] }, { - "$id": "522", + "$id": "551", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6765,7 +7060,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.contentType", "methodParameterSegments": [ { - "$id": "523", + "$id": "552", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6785,7 +7080,7 @@ ] }, { - "$id": "524", + "$id": "553", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -6801,7 +7096,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.accept", "methodParameterSegments": [ { - "$id": "525", + "$id": "554", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -6820,12 +7115,12 @@ ] }, { - "$id": "526", + "$id": "555", "kind": "body", "name": "action", "serializedName": "action", "type": { - "$ref": "241" + "$ref": "257" }, "isApiVersion": false, "contentTypes": [ @@ -6839,16 +7134,16 @@ "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.action", "methodParameterSegments": [ { - "$ref": "517" + "$ref": "546" }, { - "$id": "527", + "$id": "556", "kind": "method", "name": "action", "serializedName": "action", "doc": "body parameter", "type": { - "$ref": "241" + "$ref": "257" }, "location": "", "isApiVersion": false, @@ -6868,7 +7163,7 @@ 200 ], "bodyType": { - "$ref": "241" + "$ref": "257" }, "headers": [], "isErrorResponse": false, @@ -6892,18 +7187,18 @@ }, "parameters": [ { - "$ref": "517" + "$ref": "546" }, { - "$ref": "523" + "$ref": "552" }, { - "$ref": "525" + "$ref": "554" } ], "response": { "type": { - "$ref": "241" + "$ref": "257" } }, "isOverride": true, @@ -6912,7 +7207,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.noContentType" }, { - "$id": "528", + "$id": "557", "kind": "basic", "name": "helloDemo2", "accessibility": "public", @@ -6922,14 +7217,14 @@ ], "doc": "Return hi in demo2", "operation": { - "$id": "529", + "$id": "558", "name": "helloDemo2", "resourceName": "SampleTypeSpec", "doc": "Return hi in demo2", "accessibility": "public", "parameters": [ { - "$id": "530", + "$id": "559", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -6945,7 +7240,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2.accept", "methodParameterSegments": [ { - "$id": "531", + "$id": "560", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -6970,7 +7265,7 @@ 200 ], "bodyType": { - "$ref": "206" + "$ref": "222" }, "headers": [], "isErrorResponse": false, @@ -6991,12 +7286,12 @@ }, "parameters": [ { - "$ref": "531" + "$ref": "560" } ], "response": { "type": { - "$ref": "206" + "$ref": "222" } }, "isOverride": false, @@ -7005,7 +7300,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2" }, { - "$id": "532", + "$id": "561", "kind": "basic", "name": "createLiteral", "accessibility": "public", @@ -7015,14 +7310,14 @@ ], "doc": "Create with literal value", "operation": { - "$id": "533", + "$id": "562", "name": "createLiteral", "resourceName": "SampleTypeSpec", "doc": "Create with literal value", "accessibility": "public", "parameters": [ { - "$id": "534", + "$id": "563", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -7039,7 +7334,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.contentType", "methodParameterSegments": [ { - "$id": "535", + "$id": "564", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -7059,7 +7354,7 @@ ] }, { - "$id": "536", + "$id": "565", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7075,7 +7370,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.accept", "methodParameterSegments": [ { - "$id": "537", + "$id": "566", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -7094,12 +7389,12 @@ ] }, { - "$id": "538", + "$id": "567", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "206" + "$ref": "222" }, "isApiVersion": false, "contentTypes": [ @@ -7113,12 +7408,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.body", "methodParameterSegments": [ { - "$id": "539", + "$id": "568", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "206" + "$ref": "222" }, "location": "Body", "isApiVersion": false, @@ -7138,7 +7433,7 @@ 200 ], "bodyType": { - "$ref": "206" + "$ref": "222" }, "headers": [], "isErrorResponse": false, @@ -7162,18 +7457,18 @@ }, "parameters": [ { - "$ref": "539" + "$ref": "568" }, { - "$ref": "535" + "$ref": "564" }, { - "$ref": "537" + "$ref": "566" } ], "response": { "type": { - "$ref": "206" + "$ref": "222" } }, "isOverride": false, @@ -7182,7 +7477,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral" }, { - "$id": "540", + "$id": "569", "kind": "basic", "name": "helloLiteral", "accessibility": "public", @@ -7192,14 +7487,14 @@ ], "doc": "Send literal parameters", "operation": { - "$id": "541", + "$id": "570", "name": "helloLiteral", "resourceName": "SampleTypeSpec", "doc": "Send literal parameters", "accessibility": "public", "parameters": [ { - "$id": "542", + "$id": "571", "kind": "header", "name": "p1", "serializedName": "p1", @@ -7215,7 +7510,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p1", "methodParameterSegments": [ { - "$id": "543", + "$id": "572", "kind": "method", "name": "p1", "serializedName": "p1", @@ -7234,7 +7529,7 @@ ] }, { - "$id": "544", + "$id": "573", "kind": "path", "name": "p2", "serializedName": "p2", @@ -7253,7 +7548,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p2", "methodParameterSegments": [ { - "$id": "545", + "$id": "574", "kind": "method", "name": "p2", "serializedName": "p2", @@ -7272,7 +7567,7 @@ ] }, { - "$id": "546", + "$id": "575", "kind": "query", "name": "p3", "serializedName": "p3", @@ -7288,7 +7583,7 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "547", + "$id": "576", "kind": "method", "name": "p3", "serializedName": "p3", @@ -7307,7 +7602,7 @@ ] }, { - "$id": "548", + "$id": "577", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7323,7 +7618,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.accept", "methodParameterSegments": [ { - "$id": "549", + "$id": "578", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -7348,7 +7643,7 @@ 200 ], "bodyType": { - "$ref": "206" + "$ref": "222" }, "headers": [], "isErrorResponse": false, @@ -7369,21 +7664,21 @@ }, "parameters": [ { - "$ref": "543" + "$ref": "572" }, { - "$ref": "545" + "$ref": "574" }, { - "$ref": "547" + "$ref": "576" }, { - "$ref": "549" + "$ref": "578" } ], "response": { "type": { - "$ref": "206" + "$ref": "222" } }, "isOverride": false, @@ -7392,7 +7687,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral" }, { - "$id": "550", + "$id": "579", "kind": "basic", "name": "topAction", "accessibility": "public", @@ -7402,24 +7697,24 @@ ], "doc": "top level method", "operation": { - "$id": "551", + "$id": "580", "name": "topAction", "resourceName": "SampleTypeSpec", "doc": "top level method", "accessibility": "public", "parameters": [ { - "$id": "552", + "$id": "581", "kind": "path", "name": "action", "serializedName": "action", "type": { - "$id": "553", + "$id": "582", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "554", + "$id": "583", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7440,17 +7735,17 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction.action", "methodParameterSegments": [ { - "$id": "555", + "$id": "584", "kind": "method", "name": "action", "serializedName": "action", "type": { - "$id": "556", + "$id": "585", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "557", + "$id": "586", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7471,7 +7766,7 @@ ] }, { - "$id": "558", + "$id": "587", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7487,7 +7782,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction.accept", "methodParameterSegments": [ { - "$id": "559", + "$id": "588", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -7512,7 +7807,7 @@ 200 ], "bodyType": { - "$ref": "206" + "$ref": "222" }, "headers": [], "isErrorResponse": false, @@ -7533,15 +7828,15 @@ }, "parameters": [ { - "$ref": "555" + "$ref": "584" }, { - "$ref": "559" + "$ref": "588" } ], "response": { "type": { - "$ref": "206" + "$ref": "222" } }, "isOverride": false, @@ -7550,7 +7845,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction" }, { - "$id": "560", + "$id": "589", "kind": "basic", "name": "topAction2", "accessibility": "public", @@ -7560,14 +7855,14 @@ ], "doc": "top level method2", "operation": { - "$id": "561", + "$id": "590", "name": "topAction2", "resourceName": "SampleTypeSpec", "doc": "top level method2", "accessibility": "public", "parameters": [ { - "$id": "562", + "$id": "591", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7583,7 +7878,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction2.accept", "methodParameterSegments": [ { - "$id": "563", + "$id": "592", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -7608,7 +7903,7 @@ 200 ], "bodyType": { - "$ref": "206" + "$ref": "222" }, "headers": [], "isErrorResponse": false, @@ -7629,12 +7924,12 @@ }, "parameters": [ { - "$ref": "563" + "$ref": "592" } ], "response": { "type": { - "$ref": "206" + "$ref": "222" } }, "isOverride": false, @@ -7643,7 +7938,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction2" }, { - "$id": "564", + "$id": "593", "kind": "basic", "name": "patchAction", "accessibility": "public", @@ -7653,14 +7948,14 @@ ], "doc": "top level patch", "operation": { - "$id": "565", + "$id": "594", "name": "patchAction", "resourceName": "SampleTypeSpec", "doc": "top level patch", "accessibility": "public", "parameters": [ { - "$id": "566", + "$id": "595", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -7677,7 +7972,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.contentType", "methodParameterSegments": [ { - "$id": "567", + "$id": "596", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -7697,7 +7992,7 @@ ] }, { - "$id": "568", + "$id": "597", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7713,7 +8008,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.accept", "methodParameterSegments": [ { - "$id": "569", + "$id": "598", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -7732,12 +8027,12 @@ ] }, { - "$id": "570", + "$id": "599", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "206" + "$ref": "222" }, "isApiVersion": false, "contentTypes": [ @@ -7751,12 +8046,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.body", "methodParameterSegments": [ { - "$id": "571", + "$id": "600", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "206" + "$ref": "222" }, "location": "Body", "isApiVersion": false, @@ -7776,7 +8071,7 @@ 200 ], "bodyType": { - "$ref": "206" + "$ref": "222" }, "headers": [], "isErrorResponse": false, @@ -7800,18 +8095,18 @@ }, "parameters": [ { - "$ref": "571" + "$ref": "600" }, { - "$ref": "567" + "$ref": "596" }, { - "$ref": "569" + "$ref": "598" } ], "response": { "type": { - "$ref": "206" + "$ref": "222" } }, "isOverride": false, @@ -7820,7 +8115,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.patchAction" }, { - "$id": "572", + "$id": "601", "kind": "basic", "name": "anonymousBody", "accessibility": "public", @@ -7830,14 +8125,14 @@ ], "doc": "body parameter without body decorator", "operation": { - "$id": "573", + "$id": "602", "name": "anonymousBody", "resourceName": "SampleTypeSpec", "doc": "body parameter without body decorator", "accessibility": "public", "parameters": [ { - "$id": "574", + "$id": "603", "kind": "query", "name": "requiredQueryParam", "serializedName": "requiredQueryParam", @@ -7853,7 +8148,7 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "575", + "$id": "604", "kind": "method", "name": "requiredQueryParam", "serializedName": "requiredQueryParam", @@ -7872,7 +8167,7 @@ ] }, { - "$id": "576", + "$id": "605", "kind": "header", "name": "requiredHeader", "serializedName": "required-header", @@ -7888,7 +8183,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.requiredHeader", "methodParameterSegments": [ { - "$id": "577", + "$id": "606", "kind": "method", "name": "requiredHeader", "serializedName": "required-header", @@ -7907,7 +8202,7 @@ ] }, { - "$id": "578", + "$id": "607", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -7924,7 +8219,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.contentType", "methodParameterSegments": [ { - "$id": "579", + "$id": "608", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -7944,7 +8239,7 @@ ] }, { - "$id": "580", + "$id": "609", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7960,7 +8255,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.accept", "methodParameterSegments": [ { - "$id": "581", + "$id": "610", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -7979,12 +8274,12 @@ ] }, { - "$id": "582", + "$id": "611", "kind": "body", "name": "thing", "serializedName": "thing", "type": { - "$ref": "206" + "$ref": "222" }, "isApiVersion": false, "contentTypes": [ @@ -7998,13 +8293,13 @@ "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.body", "methodParameterSegments": [ { - "$id": "583", + "$id": "612", "kind": "method", "name": "name", "serializedName": "name", "doc": "name of the Thing", "type": { - "$id": "584", + "$id": "613", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8028,7 +8323,7 @@ 200 ], "bodyType": { - "$ref": "206" + "$ref": "222" }, "headers": [], "isErrorResponse": false, @@ -8052,16 +8347,16 @@ }, "parameters": [ { - "$ref": "583" + "$ref": "612" }, { - "$id": "585", + "$id": "614", "kind": "method", "name": "requiredUnion", "serializedName": "requiredUnion", "doc": "required Union", "type": { - "$ref": "210" + "$ref": "226" }, "location": "Body", "isApiVersion": false, @@ -8073,7 +8368,7 @@ "decorators": [] }, { - "$id": "586", + "$id": "615", "kind": "method", "name": "requiredLiteralString", "serializedName": "requiredLiteralString", @@ -8091,13 +8386,13 @@ "decorators": [] }, { - "$id": "587", + "$id": "616", "kind": "method", "name": "requiredNullableString", "serializedName": "requiredNullableString", "doc": "required nullable string", "type": { - "$ref": "217" + "$ref": "233" }, "location": "Body", "isApiVersion": false, @@ -8109,13 +8404,13 @@ "decorators": [] }, { - "$id": "588", + "$id": "617", "kind": "method", "name": "optionalNullableString", "serializedName": "optionalNullableString", "doc": "required optional string", "type": { - "$ref": "220" + "$ref": "236" }, "location": "Body", "isApiVersion": false, @@ -8127,7 +8422,7 @@ "decorators": [] }, { - "$id": "589", + "$id": "618", "kind": "method", "name": "requiredLiteralInt", "serializedName": "requiredLiteralInt", @@ -8145,7 +8440,7 @@ "decorators": [] }, { - "$id": "590", + "$id": "619", "kind": "method", "name": "requiredLiteralFloat", "serializedName": "requiredLiteralFloat", @@ -8163,7 +8458,7 @@ "decorators": [] }, { - "$id": "591", + "$id": "620", "kind": "method", "name": "requiredLiteralBool", "serializedName": "requiredLiteralBool", @@ -8181,18 +8476,18 @@ "decorators": [] }, { - "$id": "592", + "$id": "621", "kind": "method", "name": "optionalLiteralString", "serializedName": "optionalLiteralString", "doc": "optional literal string", "type": { - "$id": "593", + "$id": "622", "kind": "enum", "name": "ThingOptionalLiteralString", "crossLanguageDefinitionId": "", "valueType": { - "$id": "594", + "$id": "623", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8200,12 +8495,12 @@ }, "values": [ { - "$id": "595", + "$id": "624", "kind": "enumvalue", "name": "reject", "value": "reject", "valueType": { - "$id": "596", + "$id": "625", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -8213,7 +8508,7 @@ "crossLanguageDefinitionId": "TypeSpec.string" }, "enumType": { - "$ref": "593" + "$ref": "622" }, "decorators": [] } @@ -8234,13 +8529,13 @@ "decorators": [] }, { - "$id": "597", + "$id": "626", "kind": "method", "name": "requiredNullableLiteralString", "serializedName": "requiredNullableLiteralString", "doc": "required nullable literal string", "type": { - "$ref": "227" + "$ref": "243" }, "location": "Body", "isApiVersion": false, @@ -8252,18 +8547,18 @@ "decorators": [] }, { - "$id": "598", + "$id": "627", "kind": "method", "name": "optionalLiteralInt", "serializedName": "optionalLiteralInt", "doc": "optional literal int", "type": { - "$id": "599", + "$id": "628", "kind": "enum", "name": "ThingOptionalLiteralInt", "crossLanguageDefinitionId": "", "valueType": { - "$id": "600", + "$id": "629", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -8271,12 +8566,12 @@ }, "values": [ { - "$id": "601", + "$id": "630", "kind": "enumvalue", "name": "456", "value": 456, "valueType": { - "$id": "602", + "$id": "631", "kind": "int32", "decorators": [], "doc": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", @@ -8284,7 +8579,7 @@ "crossLanguageDefinitionId": "TypeSpec.int32" }, "enumType": { - "$ref": "599" + "$ref": "628" }, "decorators": [] } @@ -8305,18 +8600,18 @@ "decorators": [] }, { - "$id": "603", + "$id": "632", "kind": "method", "name": "optionalLiteralFloat", "serializedName": "optionalLiteralFloat", "doc": "optional literal float", "type": { - "$id": "604", + "$id": "633", "kind": "enum", "name": "ThingOptionalLiteralFloat", "crossLanguageDefinitionId": "", "valueType": { - "$id": "605", + "$id": "634", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -8324,12 +8619,12 @@ }, "values": [ { - "$id": "606", + "$id": "635", "kind": "enumvalue", "name": "4.56", "value": 4.56, "valueType": { - "$id": "607", + "$id": "636", "kind": "float32", "decorators": [], "doc": "A 32 bit floating point number. (`±1.5 x 10^−45` to `±3.4 x 10^38`)", @@ -8337,7 +8632,7 @@ "crossLanguageDefinitionId": "TypeSpec.float32" }, "enumType": { - "$ref": "604" + "$ref": "633" }, "decorators": [] } @@ -8358,7 +8653,7 @@ "decorators": [] }, { - "$id": "608", + "$id": "637", "kind": "method", "name": "optionalLiteralBool", "serializedName": "optionalLiteralBool", @@ -8376,13 +8671,13 @@ "decorators": [] }, { - "$id": "609", + "$id": "638", "kind": "method", "name": "requiredBadDescription", "serializedName": "requiredBadDescription", "doc": "description with xml <|endoftext|>", "type": { - "$id": "610", + "$id": "639", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8398,13 +8693,13 @@ "decorators": [] }, { - "$id": "611", + "$id": "640", "kind": "method", "name": "optionalNullableList", "serializedName": "optionalNullableList", "doc": "optional nullable collection", "type": { - "$ref": "234" + "$ref": "250" }, "location": "Body", "isApiVersion": false, @@ -8416,13 +8711,13 @@ "decorators": [] }, { - "$id": "612", + "$id": "641", "kind": "method", "name": "requiredNullableList", "serializedName": "requiredNullableList", "doc": "required nullable collection", "type": { - "$ref": "238" + "$ref": "254" }, "location": "Body", "isApiVersion": false, @@ -8434,13 +8729,13 @@ "decorators": [] }, { - "$id": "613", + "$id": "642", "kind": "method", "name": "propertyWithSpecialDocs", "serializedName": "propertyWithSpecialDocs", "doc": "This tests:\n- Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet points within documentation comments. It should properly indent the wrapped lines.\n- Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting is preserved when the text wraps onto multiple lines in the generated documentation.\n- Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the wrapping and formatting are correctly applied in the output.\n- Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic formatting and is long enough to test the wrapping behavior in such cases.\n- **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how the bold formatting is maintained across wrapped lines.\n- *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that italic formatting is correctly applied even when the text spans multiple lines.", "type": { - "$id": "614", + "$id": "643", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8456,21 +8751,21 @@ "decorators": [] }, { - "$ref": "575" + "$ref": "604" }, { - "$ref": "577" + "$ref": "606" }, { - "$ref": "579" + "$ref": "608" }, { - "$ref": "581" + "$ref": "610" } ], "response": { "type": { - "$ref": "206" + "$ref": "222" } }, "isOverride": false, @@ -8479,7 +8774,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody" }, { - "$id": "615", + "$id": "644", "kind": "basic", "name": "friendlyModel", "accessibility": "public", @@ -8489,14 +8784,14 @@ ], "doc": "Model can have its friendly name", "operation": { - "$id": "616", + "$id": "645", "name": "friendlyModel", "resourceName": "SampleTypeSpec", "doc": "Model can have its friendly name", "accessibility": "public", "parameters": [ { - "$id": "617", + "$id": "646", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -8513,7 +8808,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.contentType", "methodParameterSegments": [ { - "$id": "618", + "$id": "647", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -8533,7 +8828,7 @@ ] }, { - "$id": "619", + "$id": "648", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -8549,7 +8844,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.accept", "methodParameterSegments": [ { - "$id": "620", + "$id": "649", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -8568,12 +8863,12 @@ ] }, { - "$id": "621", + "$id": "650", "kind": "body", "name": "friend", "serializedName": "friend", "type": { - "$ref": "295" + "$ref": "311" }, "isApiVersion": false, "contentTypes": [ @@ -8587,13 +8882,13 @@ "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.body", "methodParameterSegments": [ { - "$id": "622", + "$id": "651", "kind": "method", "name": "name", "serializedName": "name", "doc": "name of the NotFriend", "type": { - "$id": "623", + "$id": "652", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8617,7 +8912,7 @@ 200 ], "bodyType": { - "$ref": "295" + "$ref": "311" }, "headers": [], "isErrorResponse": false, @@ -8641,18 +8936,18 @@ }, "parameters": [ { - "$ref": "622" + "$ref": "651" }, { - "$ref": "618" + "$ref": "647" }, { - "$ref": "620" + "$ref": "649" } ], "response": { "type": { - "$ref": "295" + "$ref": "311" } }, "isOverride": false, @@ -8661,7 +8956,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel" }, { - "$id": "624", + "$id": "653", "kind": "basic", "name": "addTimeHeader", "accessibility": "public", @@ -8670,23 +8965,23 @@ "2024-08-16-preview" ], "operation": { - "$id": "625", + "$id": "654", "name": "addTimeHeader", "resourceName": "SampleTypeSpec", "accessibility": "public", "parameters": [ { - "$id": "626", + "$id": "655", "kind": "header", "name": "repeatabilityFirstSent", "serializedName": "Repeatability-First-Sent", "type": { - "$id": "627", + "$id": "656", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "628", + "$id": "657", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8704,17 +8999,17 @@ "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader.repeatabilityFirstSent", "methodParameterSegments": [ { - "$id": "629", + "$id": "658", "kind": "method", "name": "repeatabilityFirstSent", "serializedName": "Repeatability-First-Sent", "type": { - "$id": "630", + "$id": "659", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "631", + "$id": "660", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8756,7 +9051,7 @@ }, "parameters": [ { - "$ref": "629" + "$ref": "658" } ], "response": {}, @@ -8766,7 +9061,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader" }, { - "$id": "632", + "$id": "661", "kind": "basic", "name": "projectedNameModel", "accessibility": "public", @@ -8776,14 +9071,14 @@ ], "doc": "Model can have its projected name", "operation": { - "$id": "633", + "$id": "662", "name": "projectedNameModel", "resourceName": "SampleTypeSpec", "doc": "Model can have its projected name", "accessibility": "public", "parameters": [ { - "$id": "634", + "$id": "663", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -8800,7 +9095,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.contentType", "methodParameterSegments": [ { - "$id": "635", + "$id": "664", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -8820,7 +9115,7 @@ ] }, { - "$id": "636", + "$id": "665", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -8836,7 +9131,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.accept", "methodParameterSegments": [ { - "$id": "637", + "$id": "666", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -8855,12 +9150,12 @@ ] }, { - "$id": "638", + "$id": "667", "kind": "body", "name": "renamedModel", "serializedName": "renamedModel", "type": { - "$ref": "298" + "$ref": "314" }, "isApiVersion": false, "contentTypes": [ @@ -8874,13 +9169,13 @@ "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.body", "methodParameterSegments": [ { - "$id": "639", + "$id": "668", "kind": "method", "name": "otherName", "serializedName": "otherName", "doc": "name of the ModelWithClientName", "type": { - "$id": "640", + "$id": "669", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8904,7 +9199,7 @@ 200 ], "bodyType": { - "$ref": "298" + "$ref": "314" }, "headers": [], "isErrorResponse": false, @@ -8928,18 +9223,18 @@ }, "parameters": [ { - "$ref": "639" + "$ref": "668" }, { - "$ref": "635" + "$ref": "664" }, { - "$ref": "637" + "$ref": "666" } ], "response": { "type": { - "$ref": "298" + "$ref": "314" } }, "isOverride": false, @@ -8948,7 +9243,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel" }, { - "$id": "641", + "$id": "670", "kind": "basic", "name": "returnsAnonymousModel", "accessibility": "public", @@ -8958,14 +9253,14 @@ ], "doc": "return anonymous model", "operation": { - "$id": "642", + "$id": "671", "name": "returnsAnonymousModel", "resourceName": "SampleTypeSpec", "doc": "return anonymous model", "accessibility": "public", "parameters": [ { - "$id": "643", + "$id": "672", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -8981,7 +9276,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel.accept", "methodParameterSegments": [ { - "$id": "644", + "$id": "673", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -9006,7 +9301,7 @@ 200 ], "bodyType": { - "$ref": "301" + "$ref": "317" }, "headers": [], "isErrorResponse": false, @@ -9027,12 +9322,12 @@ }, "parameters": [ { - "$ref": "644" + "$ref": "673" } ], "response": { "type": { - "$ref": "301" + "$ref": "317" } }, "isOverride": false, @@ -9041,7 +9336,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel" }, { - "$id": "645", + "$id": "674", "kind": "basic", "name": "getUnknownValue", "accessibility": "public", @@ -9051,19 +9346,19 @@ ], "doc": "get extensible enum", "operation": { - "$id": "646", + "$id": "675", "name": "getUnknownValue", "resourceName": "SampleTypeSpec", "doc": "get extensible enum", "accessibility": "public", "parameters": [ { - "$id": "647", + "$id": "676", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$id": "648", + "$id": "677", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9078,12 +9373,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue.accept", "methodParameterSegments": [ { - "$id": "649", + "$id": "678", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "648" + "$ref": "677" }, "location": "Header", "isApiVersion": false, @@ -9103,7 +9398,7 @@ 200 ], "bodyType": { - "$id": "650", + "$id": "679", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9135,12 +9430,12 @@ }, "parameters": [ { - "$ref": "649" + "$ref": "678" } ], "response": { "type": { - "$ref": "650" + "$ref": "679" } }, "isOverride": false, @@ -9149,7 +9444,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue" }, { - "$id": "651", + "$id": "680", "kind": "basic", "name": "internalProtocol", "accessibility": "public", @@ -9159,14 +9454,14 @@ ], "doc": "When set protocol false and convenient true, then the protocol method should be internal", "operation": { - "$id": "652", + "$id": "681", "name": "internalProtocol", "resourceName": "SampleTypeSpec", "doc": "When set protocol false and convenient true, then the protocol method should be internal", "accessibility": "public", "parameters": [ { - "$id": "653", + "$id": "682", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -9183,7 +9478,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.contentType", "methodParameterSegments": [ { - "$id": "654", + "$id": "683", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -9203,7 +9498,7 @@ ] }, { - "$id": "655", + "$id": "684", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9219,7 +9514,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.accept", "methodParameterSegments": [ { - "$id": "656", + "$id": "685", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -9238,12 +9533,12 @@ ] }, { - "$id": "657", + "$id": "686", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "206" + "$ref": "222" }, "isApiVersion": false, "contentTypes": [ @@ -9257,12 +9552,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.body", "methodParameterSegments": [ { - "$id": "658", + "$id": "687", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "206" + "$ref": "222" }, "location": "Body", "isApiVersion": false, @@ -9282,7 +9577,7 @@ 200 ], "bodyType": { - "$ref": "206" + "$ref": "222" }, "headers": [], "isErrorResponse": false, @@ -9306,18 +9601,18 @@ }, "parameters": [ { - "$ref": "658" + "$ref": "687" }, { - "$ref": "654" + "$ref": "683" }, { - "$ref": "656" + "$ref": "685" } ], "response": { "type": { - "$ref": "206" + "$ref": "222" } }, "isOverride": false, @@ -9326,7 +9621,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol" }, { - "$id": "659", + "$id": "688", "kind": "basic", "name": "stillConvenient", "accessibility": "public", @@ -9336,7 +9631,7 @@ ], "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", "operation": { - "$id": "660", + "$id": "689", "name": "stillConvenient", "resourceName": "SampleTypeSpec", "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", @@ -9369,7 +9664,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient" }, { - "$id": "661", + "$id": "690", "kind": "basic", "name": "headAsBoolean", "accessibility": "public", @@ -9379,19 +9674,19 @@ ], "doc": "head as boolean.", "operation": { - "$id": "662", + "$id": "691", "name": "headAsBoolean", "resourceName": "SampleTypeSpec", "doc": "head as boolean.", "accessibility": "public", "parameters": [ { - "$id": "663", + "$id": "692", "kind": "path", "name": "id", "serializedName": "id", "type": { - "$id": "664", + "$id": "693", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9409,12 +9704,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean.id", "methodParameterSegments": [ { - "$id": "665", + "$id": "694", "kind": "method", "name": "id", "serializedName": "id", "type": { - "$id": "666", + "$id": "695", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9453,7 +9748,7 @@ }, "parameters": [ { - "$ref": "665" + "$ref": "694" } ], "response": {}, @@ -9463,7 +9758,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean" }, { - "$id": "667", + "$id": "696", "kind": "basic", "name": "WithApiVersion", "accessibility": "public", @@ -9473,19 +9768,19 @@ ], "doc": "Return hi again", "operation": { - "$id": "668", + "$id": "697", "name": "WithApiVersion", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "669", + "$id": "698", "kind": "header", "name": "p1", "serializedName": "p1", "type": { - "$id": "670", + "$id": "699", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9500,12 +9795,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion.p1", "methodParameterSegments": [ { - "$id": "671", + "$id": "700", "kind": "method", "name": "p1", "serializedName": "p1", "type": { - "$id": "672", + "$id": "701", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9523,12 +9818,12 @@ ] }, { - "$id": "673", + "$id": "702", "kind": "query", "name": "apiVersion", "serializedName": "apiVersion", "type": { - "$id": "674", + "$id": "703", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9538,7 +9833,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "675", + "$id": "704", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9552,12 +9847,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "676", + "$id": "705", "kind": "method", "name": "apiVersion", "serializedName": "apiVersion", "type": { - "$id": "677", + "$id": "706", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9567,7 +9862,7 @@ "isApiVersion": true, "defaultValue": { "type": { - "$id": "678", + "$id": "707", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9605,7 +9900,7 @@ }, "parameters": [ { - "$ref": "671" + "$ref": "700" } ], "response": {}, @@ -9615,7 +9910,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion" }, { - "$id": "679", + "$id": "708", "kind": "paging", "name": "ListWithNextLink", "accessibility": "public", @@ -9625,14 +9920,14 @@ ], "doc": "List things with nextlink", "operation": { - "$id": "680", + "$id": "709", "name": "ListWithNextLink", "resourceName": "SampleTypeSpec", "doc": "List things with nextlink", "accessibility": "public", "parameters": [ { - "$id": "681", + "$id": "710", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9648,7 +9943,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.accept", "methodParameterSegments": [ { - "$id": "682", + "$id": "711", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -9673,7 +9968,7 @@ 200 ], "bodyType": { - "$ref": "302" + "$ref": "318" }, "headers": [], "isErrorResponse": false, @@ -9694,12 +9989,12 @@ }, "parameters": [ { - "$ref": "682" + "$ref": "711" } ], "response": { "type": { - "$ref": "304" + "$ref": "320" }, "resultSegments": [ "things" @@ -9723,7 +10018,7 @@ } }, { - "$id": "683", + "$id": "712", "kind": "paging", "name": "ListWithStringNextLink", "accessibility": "public", @@ -9733,14 +10028,14 @@ ], "doc": "List things with nextlink", "operation": { - "$id": "684", + "$id": "713", "name": "ListWithStringNextLink", "resourceName": "SampleTypeSpec", "doc": "List things with nextlink", "accessibility": "public", "parameters": [ { - "$id": "685", + "$id": "714", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9756,7 +10051,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.ListWithStringNextLink.accept", "methodParameterSegments": [ { - "$id": "686", + "$id": "715", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -9781,7 +10076,7 @@ 200 ], "bodyType": { - "$ref": "307" + "$ref": "323" }, "headers": [], "isErrorResponse": false, @@ -9802,12 +10097,12 @@ }, "parameters": [ { - "$ref": "686" + "$ref": "715" } ], "response": { "type": { - "$ref": "304" + "$ref": "320" }, "resultSegments": [ "things" @@ -9831,7 +10126,7 @@ } }, { - "$id": "687", + "$id": "716", "kind": "paging", "name": "ListWithContinuationToken", "accessibility": "public", @@ -9841,19 +10136,19 @@ ], "doc": "List things with continuation token", "operation": { - "$id": "688", + "$id": "717", "name": "ListWithContinuationToken", "resourceName": "SampleTypeSpec", "doc": "List things with continuation token", "accessibility": "public", "parameters": [ { - "$id": "689", + "$id": "718", "kind": "query", "name": "token", "serializedName": "token", "type": { - "$id": "690", + "$id": "719", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9868,12 +10163,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "691", + "$id": "720", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "692", + "$id": "721", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9891,7 +10186,7 @@ ] }, { - "$id": "693", + "$id": "722", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9907,7 +10202,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.accept", "methodParameterSegments": [ { - "$id": "694", + "$id": "723", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -9932,7 +10227,7 @@ 200 ], "bodyType": { - "$ref": "311" + "$ref": "327" }, "headers": [], "isErrorResponse": false, @@ -9953,15 +10248,15 @@ }, "parameters": [ { - "$ref": "691" + "$ref": "720" }, { - "$ref": "694" + "$ref": "723" } ], "response": { "type": { - "$ref": "304" + "$ref": "320" }, "resultSegments": [ "things" @@ -9977,7 +10272,7 @@ ], "continuationToken": { "parameter": { - "$ref": "689" + "$ref": "718" }, "responseSegments": [ "nextToken" @@ -9988,7 +10283,7 @@ } }, { - "$id": "695", + "$id": "724", "kind": "paging", "name": "ListWithContinuationTokenHeaderResponse", "accessibility": "public", @@ -9998,19 +10293,19 @@ ], "doc": "List things with continuation token header response", "operation": { - "$id": "696", + "$id": "725", "name": "ListWithContinuationTokenHeaderResponse", "resourceName": "SampleTypeSpec", "doc": "List things with continuation token header response", "accessibility": "public", "parameters": [ { - "$id": "697", + "$id": "726", "kind": "query", "name": "token", "serializedName": "token", "type": { - "$id": "698", + "$id": "727", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10025,12 +10320,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "699", + "$id": "728", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "700", + "$id": "729", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10048,7 +10343,7 @@ ] }, { - "$id": "701", + "$id": "730", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -10064,7 +10359,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.accept", "methodParameterSegments": [ { - "$id": "702", + "$id": "731", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -10089,14 +10384,14 @@ 200 ], "bodyType": { - "$ref": "315" + "$ref": "331" }, "headers": [ { "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "703", + "$id": "732", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10122,15 +10417,15 @@ }, "parameters": [ { - "$ref": "699" + "$ref": "728" }, { - "$ref": "702" + "$ref": "731" } ], "response": { "type": { - "$ref": "304" + "$ref": "320" }, "resultSegments": [ "things" @@ -10146,7 +10441,7 @@ ], "continuationToken": { "parameter": { - "$ref": "697" + "$ref": "726" }, "responseSegments": [ "next-token" @@ -10157,7 +10452,7 @@ } }, { - "$id": "704", + "$id": "733", "kind": "paging", "name": "ListWithPaging", "accessibility": "public", @@ -10167,14 +10462,14 @@ ], "doc": "List things with paging", "operation": { - "$id": "705", + "$id": "734", "name": "ListWithPaging", "resourceName": "SampleTypeSpec", "doc": "List things with paging", "accessibility": "public", "parameters": [ { - "$id": "706", + "$id": "735", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -10190,7 +10485,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.ListWithPaging.accept", "methodParameterSegments": [ { - "$id": "707", + "$id": "736", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -10215,7 +10510,7 @@ 200 ], "bodyType": { - "$ref": "317" + "$ref": "333" }, "headers": [], "isErrorResponse": false, @@ -10236,12 +10531,12 @@ }, "parameters": [ { - "$ref": "707" + "$ref": "736" } ], "response": { "type": { - "$ref": "304" + "$ref": "320" }, "resultSegments": [ "items" @@ -10259,7 +10554,7 @@ } }, { - "$id": "708", + "$id": "737", "kind": "basic", "name": "EmbeddedParameters", "accessibility": "public", @@ -10269,20 +10564,20 @@ ], "doc": "An operation with embedded parameters within the body", "operation": { - "$id": "709", + "$id": "738", "name": "EmbeddedParameters", "resourceName": "SampleTypeSpec", "doc": "An operation with embedded parameters within the body", "accessibility": "public", "parameters": [ { - "$id": "710", + "$id": "739", "kind": "header", "name": "requiredHeader", "serializedName": "required-header", "doc": "required header parameter", "type": { - "$id": "711", + "$id": "740", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10297,12 +10592,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredHeader", "methodParameterSegments": [ { - "$id": "712", + "$id": "741", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "319" + "$ref": "335" }, "location": "Body", "isApiVersion": false, @@ -10314,13 +10609,13 @@ "decorators": [] }, { - "$id": "713", + "$id": "742", "kind": "method", "name": "requiredHeader", "serializedName": "requiredHeader", "doc": "required header parameter", "type": { - "$ref": "323" + "$ref": "339" }, "location": "", "isApiVersion": false, @@ -10334,13 +10629,13 @@ ] }, { - "$id": "714", + "$id": "743", "kind": "header", "name": "optionalHeader", "serializedName": "optional-header", "doc": "optional header parameter", "type": { - "$id": "715", + "$id": "744", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10355,16 +10650,16 @@ "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalHeader", "methodParameterSegments": [ { - "$ref": "712" + "$ref": "741" }, { - "$id": "716", + "$id": "745", "kind": "method", "name": "optionalHeader", "serializedName": "optionalHeader", "doc": "optional header parameter", "type": { - "$ref": "325" + "$ref": "341" }, "location": "", "isApiVersion": false, @@ -10378,13 +10673,13 @@ ] }, { - "$id": "717", + "$id": "746", "kind": "query", "name": "requiredQuery", "serializedName": "requiredQuery", "doc": "required query parameter", "type": { - "$id": "718", + "$id": "747", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10399,16 +10694,16 @@ "readOnly": false, "methodParameterSegments": [ { - "$ref": "712" + "$ref": "741" }, { - "$id": "719", + "$id": "748", "kind": "method", "name": "requiredQuery", "serializedName": "requiredQuery", "doc": "required query parameter", "type": { - "$ref": "327" + "$ref": "343" }, "location": "", "isApiVersion": false, @@ -10422,13 +10717,13 @@ ] }, { - "$id": "720", + "$id": "749", "kind": "query", "name": "optionalQuery", "serializedName": "optionalQuery", "doc": "optional query parameter", "type": { - "$id": "721", + "$id": "750", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10443,16 +10738,16 @@ "readOnly": false, "methodParameterSegments": [ { - "$ref": "712" + "$ref": "741" }, { - "$id": "722", + "$id": "751", "kind": "method", "name": "optionalQuery", "serializedName": "optionalQuery", "doc": "optional query parameter", "type": { - "$ref": "329" + "$ref": "345" }, "location": "", "isApiVersion": false, @@ -10466,7 +10761,7 @@ ] }, { - "$id": "723", + "$id": "752", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -10483,7 +10778,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters.contentType", "methodParameterSegments": [ { - "$id": "724", + "$id": "753", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -10503,12 +10798,12 @@ ] }, { - "$id": "725", + "$id": "754", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "319" + "$ref": "335" }, "isApiVersion": false, "contentTypes": [ @@ -10522,7 +10817,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters.body", "methodParameterSegments": [ { - "$ref": "712" + "$ref": "741" } ] } @@ -10551,10 +10846,10 @@ }, "parameters": [ { - "$ref": "712" + "$ref": "741" }, { - "$ref": "724" + "$ref": "753" } ], "response": {}, @@ -10564,7 +10859,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters" }, { - "$id": "726", + "$id": "755", "kind": "basic", "name": "DynamicModelOperation", "accessibility": "public", @@ -10574,14 +10869,14 @@ ], "doc": "An operation with a dynamic model", "operation": { - "$id": "727", + "$id": "756", "name": "DynamicModelOperation", "resourceName": "SampleTypeSpec", "doc": "An operation with a dynamic model", "accessibility": "public", "parameters": [ { - "$id": "728", + "$id": "757", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -10598,7 +10893,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation.contentType", "methodParameterSegments": [ { - "$id": "729", + "$id": "758", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -10618,12 +10913,12 @@ ] }, { - "$id": "730", + "$id": "759", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "330" + "$ref": "346" }, "isApiVersion": false, "contentTypes": [ @@ -10637,12 +10932,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation.body", "methodParameterSegments": [ { - "$id": "731", + "$id": "760", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "330" + "$ref": "346" }, "location": "Body", "isApiVersion": false, @@ -10680,10 +10975,10 @@ }, "parameters": [ { - "$ref": "731" + "$ref": "760" }, { - "$ref": "729" + "$ref": "758" } ], "response": {}, @@ -10693,7 +10988,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation" }, { - "$id": "732", + "$id": "761", "kind": "basic", "name": "GetXmlAdvancedModel", "accessibility": "public", @@ -10703,14 +10998,14 @@ ], "doc": "Get an advanced XML model with various property types", "operation": { - "$id": "733", + "$id": "762", "name": "GetXmlAdvancedModel", "resourceName": "SampleTypeSpec", "doc": "Get an advanced XML model with various property types", "accessibility": "public", "parameters": [ { - "$id": "734", + "$id": "763", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -10726,7 +11021,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.GetXmlAdvancedModel.accept", "methodParameterSegments": [ { - "$id": "735", + "$id": "764", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -10751,7 +11046,7 @@ 200 ], "bodyType": { - "$ref": "368" + "$ref": "384" }, "headers": [ { @@ -10780,29 +11075,212 @@ }, "parameters": [ { - "$ref": "735" + "$ref": "764" } ], "response": { "type": { - "$ref": "368" + "$ref": "384" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, "crossLanguageDefinitionId": "SampleTypeSpec.GetXmlAdvancedModel" - } - ], - "parameters": [ + }, { - "$id": "736", - "kind": "endpoint", - "name": "sampleTypeSpecUrl", - "serializedName": "sampleTypeSpecUrl", - "type": { - "$id": "737", - "kind": "url", + "$id": "765", + "kind": "basic", + "name": "UpdateXmlAdvancedModel", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Update an advanced XML model with various property types", + "operation": { + "$id": "766", + "name": "UpdateXmlAdvancedModel", + "resourceName": "SampleTypeSpec", + "doc": "Update an advanced XML model with various property types", + "accessibility": "public", + "parameters": [ + { + "$id": "767", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "180" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.UpdateXmlAdvancedModel.contentType", + "methodParameterSegments": [ + { + "$id": "768", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "180" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.UpdateXmlAdvancedModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "769", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "184" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.UpdateXmlAdvancedModel.accept", + "methodParameterSegments": [ + { + "$id": "770", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "184" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.UpdateXmlAdvancedModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "771", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "384" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "SampleTypeSpec.UpdateXmlAdvancedModel.body", + "methodParameterSegments": [ + { + "$id": "772", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "384" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.UpdateXmlAdvancedModel.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "384" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "186" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "PUT", + "uri": "{sampleTypeSpecUrl}", + "path": "/xmlAdvanced", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.UpdateXmlAdvancedModel", + "decorators": [], + "namespace": "SampleTypeSpec" + }, + "parameters": [ + { + "$ref": "772" + }, + { + "$ref": "768" + }, + { + "$ref": "770" + } + ], + "response": { + "type": { + "$ref": "384" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.UpdateXmlAdvancedModel" + } + ], + "parameters": [ + { + "$id": "773", + "kind": "endpoint", + "name": "sampleTypeSpecUrl", + "serializedName": "sampleTypeSpecUrl", + "type": { + "$id": "774", + "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" }, @@ -10816,7 +11294,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.sampleTypeSpecUrl" }, { - "$ref": "676" + "$ref": "705" } ], "initializedBy": 1, @@ -10828,13 +11306,13 @@ ], "children": [ { - "$id": "738", + "$id": "775", "kind": "client", "name": "AnimalOperations", "namespace": "SampleTypeSpec", "methods": [ { - "$id": "739", + "$id": "776", "kind": "basic", "name": "updatePetAsAnimal", "accessibility": "public", @@ -10844,20 +11322,20 @@ ], "doc": "Update a pet as an animal", "operation": { - "$id": "740", + "$id": "777", "name": "updatePetAsAnimal", "resourceName": "AnimalOperations", "doc": "Update a pet as an animal", "accessibility": "public", "parameters": [ { - "$id": "741", + "$id": "778", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "180" + "$ref": "188" }, "isApiVersion": false, "optional": false, @@ -10868,13 +11346,13 @@ "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.contentType", "methodParameterSegments": [ { - "$id": "742", + "$id": "779", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "180" + "$ref": "188" }, "location": "Header", "isApiVersion": false, @@ -10888,12 +11366,12 @@ ] }, { - "$id": "743", + "$id": "780", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "182" + "$ref": "190" }, "isApiVersion": false, "optional": false, @@ -10904,12 +11382,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.accept", "methodParameterSegments": [ { - "$id": "744", + "$id": "781", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "182" + "$ref": "190" }, "location": "Header", "isApiVersion": false, @@ -10923,12 +11401,12 @@ ] }, { - "$id": "745", + "$id": "782", "kind": "body", "name": "animal", "serializedName": "animal", "type": { - "$ref": "451" + "$ref": "480" }, "isApiVersion": false, "contentTypes": [ @@ -10942,12 +11420,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.animal", "methodParameterSegments": [ { - "$id": "746", + "$id": "783", "kind": "method", "name": "animal", "serializedName": "animal", "type": { - "$ref": "451" + "$ref": "480" }, "location": "Body", "isApiVersion": false, @@ -10967,7 +11445,7 @@ 200 ], "bodyType": { - "$ref": "451" + "$ref": "480" }, "headers": [], "isErrorResponse": false, @@ -10991,18 +11469,18 @@ }, "parameters": [ { - "$ref": "746" + "$ref": "783" }, { - "$ref": "742" + "$ref": "779" }, { - "$ref": "744" + "$ref": "781" } ], "response": { "type": { - "$ref": "451" + "$ref": "480" } }, "isOverride": false, @@ -11011,7 +11489,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal" }, { - "$id": "747", + "$id": "784", "kind": "basic", "name": "updateDogAsAnimal", "accessibility": "public", @@ -11021,20 +11499,20 @@ ], "doc": "Update a dog as an animal", "operation": { - "$id": "748", + "$id": "785", "name": "updateDogAsAnimal", "resourceName": "AnimalOperations", "doc": "Update a dog as an animal", "accessibility": "public", "parameters": [ { - "$id": "749", + "$id": "786", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "184" + "$ref": "192" }, "isApiVersion": false, "optional": false, @@ -11045,13 +11523,13 @@ "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.contentType", "methodParameterSegments": [ { - "$id": "750", + "$id": "787", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "184" + "$ref": "192" }, "location": "Header", "isApiVersion": false, @@ -11065,12 +11543,12 @@ ] }, { - "$id": "751", + "$id": "788", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "186" + "$ref": "194" }, "isApiVersion": false, "optional": false, @@ -11081,12 +11559,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.accept", "methodParameterSegments": [ { - "$id": "752", + "$id": "789", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "186" + "$ref": "194" }, "location": "Header", "isApiVersion": false, @@ -11100,12 +11578,12 @@ ] }, { - "$id": "753", + "$id": "790", "kind": "body", "name": "animal", "serializedName": "animal", "type": { - "$ref": "451" + "$ref": "480" }, "isApiVersion": false, "contentTypes": [ @@ -11119,12 +11597,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.animal", "methodParameterSegments": [ { - "$id": "754", + "$id": "791", "kind": "method", "name": "animal", "serializedName": "animal", "type": { - "$ref": "451" + "$ref": "480" }, "location": "Body", "isApiVersion": false, @@ -11144,7 +11622,7 @@ 200 ], "bodyType": { - "$ref": "451" + "$ref": "480" }, "headers": [], "isErrorResponse": false, @@ -11168,18 +11646,18 @@ }, "parameters": [ { - "$ref": "754" + "$ref": "791" }, { - "$ref": "750" + "$ref": "787" }, { - "$ref": "752" + "$ref": "789" } ], "response": { "type": { - "$ref": "451" + "$ref": "480" } }, "isOverride": false, @@ -11190,12 +11668,12 @@ ], "parameters": [ { - "$id": "755", + "$id": "792", "kind": "endpoint", "name": "sampleTypeSpecUrl", "serializedName": "sampleTypeSpecUrl", "type": { - "$id": "756", + "$id": "793", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11218,18 +11696,18 @@ "2024-08-16-preview" ], "parent": { - "$ref": "480" + "$ref": "509" }, "isMultiServiceClient": false }, { - "$id": "757", + "$id": "794", "kind": "client", "name": "PetOperations", "namespace": "SampleTypeSpec", "methods": [ { - "$id": "758", + "$id": "795", "kind": "basic", "name": "updatePetAsPet", "accessibility": "public", @@ -11239,20 +11717,20 @@ ], "doc": "Update a pet as a pet", "operation": { - "$id": "759", + "$id": "796", "name": "updatePetAsPet", "resourceName": "PetOperations", "doc": "Update a pet as a pet", "accessibility": "public", "parameters": [ { - "$id": "760", + "$id": "797", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "188" + "$ref": "196" }, "isApiVersion": false, "optional": false, @@ -11263,13 +11741,13 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.contentType", "methodParameterSegments": [ { - "$id": "761", + "$id": "798", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "188" + "$ref": "196" }, "location": "Header", "isApiVersion": false, @@ -11283,12 +11761,12 @@ ] }, { - "$id": "762", + "$id": "799", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "190" + "$ref": "198" }, "isApiVersion": false, "optional": false, @@ -11299,12 +11777,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.accept", "methodParameterSegments": [ { - "$id": "763", + "$id": "800", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "190" + "$ref": "198" }, "location": "Header", "isApiVersion": false, @@ -11318,12 +11796,12 @@ ] }, { - "$id": "764", + "$id": "801", "kind": "body", "name": "pet", "serializedName": "pet", "type": { - "$ref": "456" + "$ref": "485" }, "isApiVersion": false, "contentTypes": [ @@ -11337,12 +11815,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.pet", "methodParameterSegments": [ { - "$id": "765", + "$id": "802", "kind": "method", "name": "pet", "serializedName": "pet", "type": { - "$ref": "456" + "$ref": "485" }, "location": "Body", "isApiVersion": false, @@ -11362,7 +11840,7 @@ 200 ], "bodyType": { - "$ref": "456" + "$ref": "485" }, "headers": [], "isErrorResponse": false, @@ -11386,18 +11864,18 @@ }, "parameters": [ { - "$ref": "765" + "$ref": "802" }, { - "$ref": "761" + "$ref": "798" }, { - "$ref": "763" + "$ref": "800" } ], "response": { "type": { - "$ref": "456" + "$ref": "485" } }, "isOverride": false, @@ -11406,7 +11884,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet" }, { - "$id": "766", + "$id": "803", "kind": "basic", "name": "updateDogAsPet", "accessibility": "public", @@ -11416,20 +11894,20 @@ ], "doc": "Update a dog as a pet", "operation": { - "$id": "767", + "$id": "804", "name": "updateDogAsPet", "resourceName": "PetOperations", "doc": "Update a dog as a pet", "accessibility": "public", "parameters": [ { - "$id": "768", + "$id": "805", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "192" + "$ref": "200" }, "isApiVersion": false, "optional": false, @@ -11440,13 +11918,13 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.contentType", "methodParameterSegments": [ { - "$id": "769", + "$id": "806", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "192" + "$ref": "200" }, "location": "Header", "isApiVersion": false, @@ -11460,12 +11938,12 @@ ] }, { - "$id": "770", + "$id": "807", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "194" + "$ref": "202" }, "isApiVersion": false, "optional": false, @@ -11476,12 +11954,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.accept", "methodParameterSegments": [ { - "$id": "771", + "$id": "808", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "194" + "$ref": "202" }, "location": "Header", "isApiVersion": false, @@ -11495,12 +11973,12 @@ ] }, { - "$id": "772", + "$id": "809", "kind": "body", "name": "pet", "serializedName": "pet", "type": { - "$ref": "456" + "$ref": "485" }, "isApiVersion": false, "contentTypes": [ @@ -11514,12 +11992,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.pet", "methodParameterSegments": [ { - "$id": "773", + "$id": "810", "kind": "method", "name": "pet", "serializedName": "pet", "type": { - "$ref": "456" + "$ref": "485" }, "location": "Body", "isApiVersion": false, @@ -11539,7 +12017,7 @@ 200 ], "bodyType": { - "$ref": "456" + "$ref": "485" }, "headers": [], "isErrorResponse": false, @@ -11563,18 +12041,18 @@ }, "parameters": [ { - "$ref": "773" + "$ref": "810" }, { - "$ref": "769" + "$ref": "806" }, { - "$ref": "771" + "$ref": "808" } ], "response": { "type": { - "$ref": "456" + "$ref": "485" } }, "isOverride": false, @@ -11585,12 +12063,12 @@ ], "parameters": [ { - "$id": "774", + "$id": "811", "kind": "endpoint", "name": "sampleTypeSpecUrl", "serializedName": "sampleTypeSpecUrl", "type": { - "$id": "775", + "$id": "812", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11613,18 +12091,18 @@ "2024-08-16-preview" ], "parent": { - "$ref": "480" + "$ref": "509" }, "isMultiServiceClient": false }, { - "$id": "776", + "$id": "813", "kind": "client", "name": "DogOperations", "namespace": "SampleTypeSpec", "methods": [ { - "$id": "777", + "$id": "814", "kind": "basic", "name": "updateDogAsDog", "accessibility": "public", @@ -11634,20 +12112,20 @@ ], "doc": "Update a dog as a dog", "operation": { - "$id": "778", + "$id": "815", "name": "updateDogAsDog", "resourceName": "DogOperations", "doc": "Update a dog as a dog", "accessibility": "public", "parameters": [ { - "$id": "779", + "$id": "816", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "196" + "$ref": "204" }, "isApiVersion": false, "optional": false, @@ -11658,13 +12136,13 @@ "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.contentType", "methodParameterSegments": [ { - "$id": "780", + "$id": "817", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "196" + "$ref": "204" }, "location": "Header", "isApiVersion": false, @@ -11678,12 +12156,12 @@ ] }, { - "$id": "781", + "$id": "818", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "198" + "$ref": "206" }, "isApiVersion": false, "optional": false, @@ -11694,12 +12172,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.accept", "methodParameterSegments": [ { - "$id": "782", + "$id": "819", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "198" + "$ref": "206" }, "location": "Header", "isApiVersion": false, @@ -11713,12 +12191,12 @@ ] }, { - "$id": "783", + "$id": "820", "kind": "body", "name": "dog", "serializedName": "dog", "type": { - "$ref": "460" + "$ref": "489" }, "isApiVersion": false, "contentTypes": [ @@ -11732,12 +12210,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.dog", "methodParameterSegments": [ { - "$id": "784", + "$id": "821", "kind": "method", "name": "dog", "serializedName": "dog", "type": { - "$ref": "460" + "$ref": "489" }, "location": "Body", "isApiVersion": false, @@ -11757,7 +12235,7 @@ 200 ], "bodyType": { - "$ref": "460" + "$ref": "489" }, "headers": [], "isErrorResponse": false, @@ -11781,18 +12259,18 @@ }, "parameters": [ { - "$ref": "784" + "$ref": "821" }, { - "$ref": "780" + "$ref": "817" }, { - "$ref": "782" + "$ref": "819" } ], "response": { "type": { - "$ref": "460" + "$ref": "489" } }, "isOverride": false, @@ -11803,12 +12281,12 @@ ], "parameters": [ { - "$id": "785", + "$id": "822", "kind": "endpoint", "name": "sampleTypeSpecUrl", "serializedName": "sampleTypeSpecUrl", "type": { - "$id": "786", + "$id": "823", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11831,18 +12309,18 @@ "2024-08-16-preview" ], "parent": { - "$ref": "480" + "$ref": "509" }, "isMultiServiceClient": false }, { - "$id": "787", + "$id": "824", "kind": "client", "name": "PlantOperations", "namespace": "SampleTypeSpec", "methods": [ { - "$id": "788", + "$id": "825", "kind": "basic", "name": "getTree", "accessibility": "public", @@ -11852,19 +12330,19 @@ ], "doc": "Get a tree as a plant", "operation": { - "$id": "789", + "$id": "826", "name": "getTree", "resourceName": "PlantOperations", "doc": "Get a tree as a plant", "accessibility": "public", "parameters": [ { - "$id": "790", + "$id": "827", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "200" + "$ref": "208" }, "isApiVersion": false, "optional": false, @@ -11875,12 +12353,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.getTree.accept", "methodParameterSegments": [ { - "$id": "791", + "$id": "828", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "200" + "$ref": "208" }, "location": "Header", "isApiVersion": false, @@ -11900,14 +12378,14 @@ 200 ], "bodyType": { - "$ref": "464" + "$ref": "493" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "202" + "$ref": "210" } } ], @@ -11929,28 +12407,211 @@ }, "parameters": [ { - "$ref": "791" + "$ref": "828" } ], "response": { "type": { - "$ref": "464" + "$ref": "493" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.getTree" + }, + { + "$id": "829", + "kind": "basic", + "name": "updateTree", + "accessibility": "public", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ], + "doc": "Update a tree as a plant", + "operation": { + "$id": "830", + "name": "updateTree", + "resourceName": "PlantOperations", + "doc": "Update a tree as a plant", + "accessibility": "public", + "parameters": [ + { + "$id": "831", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "212" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.updateTree.contentType", + "methodParameterSegments": [ + { + "$id": "832", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "212" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.updateTree.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "833", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "216" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.updateTree.accept", + "methodParameterSegments": [ + { + "$id": "834", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "216" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.updateTree.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "835", + "kind": "body", + "name": "tree", + "serializedName": "tree", + "type": { + "$ref": "493" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.updateTree.tree", + "methodParameterSegments": [ + { + "$id": "836", + "kind": "method", + "name": "tree", + "serializedName": "tree", + "type": { + "$ref": "493" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.updateTree.tree", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "493" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "218" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "PUT", + "uri": "{sampleTypeSpecUrl}", + "path": "/plants/tree/as-plant", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.updateTree", + "decorators": [], + "namespace": "SampleTypeSpec" + }, + "parameters": [ + { + "$ref": "836" + }, + { + "$ref": "832" + }, + { + "$ref": "834" + } + ], + "response": { + "type": { + "$ref": "493" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.updateTree" } ], "parameters": [ { - "$id": "792", + "$id": "837", "kind": "endpoint", "name": "sampleTypeSpecUrl", "serializedName": "sampleTypeSpecUrl", "type": { - "$id": "793", + "$id": "838", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11973,18 +12634,18 @@ "2024-08-16-preview" ], "parent": { - "$ref": "480" + "$ref": "509" }, "isMultiServiceClient": false }, { - "$id": "794", + "$id": "839", "kind": "client", "name": "Metrics", "namespace": "SampleTypeSpec", "methods": [ { - "$id": "795", + "$id": "840", "kind": "basic", "name": "getWidgetMetrics", "accessibility": "public", @@ -11994,14 +12655,14 @@ ], "doc": "Get Widget metrics for given day of week", "operation": { - "$id": "796", + "$id": "841", "name": "getWidgetMetrics", "resourceName": "Metrics", "doc": "Get Widget metrics for given day of week", "accessibility": "public", "parameters": [ { - "$id": "797", + "$id": "842", "kind": "path", "name": "day", "serializedName": "day", @@ -12020,7 +12681,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.Metrics.getWidgetMetrics.day", "methodParameterSegments": [ { - "$id": "798", + "$id": "843", "kind": "method", "name": "day", "serializedName": "day", @@ -12039,12 +12700,12 @@ ] }, { - "$id": "799", + "$id": "844", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "204" + "$ref": "220" }, "isApiVersion": false, "optional": false, @@ -12055,12 +12716,12 @@ "crossLanguageDefinitionId": "SampleTypeSpec.Metrics.getWidgetMetrics.accept", "methodParameterSegments": [ { - "$id": "800", + "$id": "845", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "204" + "$ref": "220" }, "location": "Header", "isApiVersion": false, @@ -12080,7 +12741,7 @@ 200 ], "bodyType": { - "$ref": "475" + "$ref": "504" }, "headers": [], "isErrorResponse": false, @@ -12101,15 +12762,15 @@ }, "parameters": [ { - "$ref": "798" + "$ref": "843" }, { - "$ref": "800" + "$ref": "845" } ], "response": { "type": { - "$ref": "475" + "$ref": "504" } }, "isOverride": false, @@ -12120,12 +12781,12 @@ ], "parameters": [ { - "$id": "801", + "$id": "846", "kind": "endpoint", "name": "sampleTypeSpecUrl", "serializedName": "sampleTypeSpecUrl", "type": { - "$id": "802", + "$id": "847", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -12148,7 +12809,7 @@ "2024-08-16-preview" ], "parent": { - "$ref": "480" + "$ref": "509" }, "isMultiServiceClient": false } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedEnumArrayProperty.Serialization.cs index a87698582cb..a5971f65c20 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedEnumArrayProperty.Serialization.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedEnumArrayProperty.Serialization.cs @@ -15,24 +15,24 @@ public partial class CommaDelimitedEnumArrayProperty : IJsonModel throw null; - public static explicit operator CommaDelimitedEnumArrayProperty(ClientResult result) => throw null; + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + CommaDelimitedEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - CommaDelimitedEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - protected virtual CommaDelimitedEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + public static implicit operator BinaryContent(CommaDelimitedEnumArrayProperty commaDelimitedEnumArrayProperty) => throw null; - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + public static explicit operator CommaDelimitedEnumArrayProperty(ClientResult result) => throw null; - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - CommaDelimitedEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + CommaDelimitedEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - public static implicit operator BinaryContent(CommaDelimitedEnumArrayProperty commaDelimitedEnumArrayProperty) => throw null; + protected virtual CommaDelimitedEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedExtensibleEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedExtensibleEnumArrayProperty.Serialization.cs index a5927a8837e..41e725622a2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedExtensibleEnumArrayProperty.Serialization.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/CommaDelimitedExtensibleEnumArrayProperty.Serialization.cs @@ -15,24 +15,24 @@ public partial class CommaDelimitedExtensibleEnumArrayProperty : IJsonModel throw null; - public static explicit operator CommaDelimitedExtensibleEnumArrayProperty(ClientResult result) => throw null; + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + CommaDelimitedExtensibleEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - CommaDelimitedExtensibleEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - protected virtual CommaDelimitedExtensibleEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + public static implicit operator BinaryContent(CommaDelimitedExtensibleEnumArrayProperty commaDelimitedExtensibleEnumArrayProperty) => throw null; - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + public static explicit operator CommaDelimitedExtensibleEnumArrayProperty(ClientResult result) => throw null; - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - CommaDelimitedExtensibleEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + CommaDelimitedExtensibleEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - public static implicit operator BinaryContent(CommaDelimitedExtensibleEnumArrayProperty commaDelimitedExtensibleEnumArrayProperty) => throw null; + protected virtual CommaDelimitedExtensibleEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedEnumArrayProperty.Serialization.cs index 1a6dce53cb5..6854b3e6aef 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedEnumArrayProperty.Serialization.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedEnumArrayProperty.Serialization.cs @@ -15,24 +15,24 @@ public partial class NewlineDelimitedEnumArrayProperty : IJsonModel throw null; - public static explicit operator NewlineDelimitedEnumArrayProperty(ClientResult result) => throw null; + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + NewlineDelimitedEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - NewlineDelimitedEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - protected virtual NewlineDelimitedEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + public static implicit operator BinaryContent(NewlineDelimitedEnumArrayProperty newlineDelimitedEnumArrayProperty) => throw null; - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + public static explicit operator NewlineDelimitedEnumArrayProperty(ClientResult result) => throw null; - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - NewlineDelimitedEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + NewlineDelimitedEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - public static implicit operator BinaryContent(NewlineDelimitedEnumArrayProperty newlineDelimitedEnumArrayProperty) => throw null; + protected virtual NewlineDelimitedEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedExtensibleEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedExtensibleEnumArrayProperty.Serialization.cs index 11f3cbb5bc3..72ed6ecbb21 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedExtensibleEnumArrayProperty.Serialization.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/NewlineDelimitedExtensibleEnumArrayProperty.Serialization.cs @@ -15,24 +15,24 @@ public partial class NewlineDelimitedExtensibleEnumArrayProperty : IJsonModel throw null; - public static explicit operator NewlineDelimitedExtensibleEnumArrayProperty(ClientResult result) => throw null; + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + NewlineDelimitedExtensibleEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - NewlineDelimitedExtensibleEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - protected virtual NewlineDelimitedExtensibleEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + public static implicit operator BinaryContent(NewlineDelimitedExtensibleEnumArrayProperty newlineDelimitedExtensibleEnumArrayProperty) => throw null; - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + public static explicit operator NewlineDelimitedExtensibleEnumArrayProperty(ClientResult result) => throw null; - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - NewlineDelimitedExtensibleEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + NewlineDelimitedExtensibleEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - public static implicit operator BinaryContent(NewlineDelimitedExtensibleEnumArrayProperty newlineDelimitedExtensibleEnumArrayProperty) => throw null; + protected virtual NewlineDelimitedExtensibleEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedEnumArrayProperty.Serialization.cs index b3a5cfb5230..cb75b92391e 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedEnumArrayProperty.Serialization.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedEnumArrayProperty.Serialization.cs @@ -15,24 +15,24 @@ public partial class PipeDelimitedEnumArrayProperty : IJsonModel throw null; - public static explicit operator PipeDelimitedEnumArrayProperty(ClientResult result) => throw null; + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + PipeDelimitedEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - PipeDelimitedEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - protected virtual PipeDelimitedEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + public static implicit operator BinaryContent(PipeDelimitedEnumArrayProperty pipeDelimitedEnumArrayProperty) => throw null; - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + public static explicit operator PipeDelimitedEnumArrayProperty(ClientResult result) => throw null; - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - PipeDelimitedEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + PipeDelimitedEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - public static implicit operator BinaryContent(PipeDelimitedEnumArrayProperty pipeDelimitedEnumArrayProperty) => throw null; + protected virtual PipeDelimitedEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedExtensibleEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedExtensibleEnumArrayProperty.Serialization.cs index 97d29af0378..f8bdee4fd3c 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedExtensibleEnumArrayProperty.Serialization.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/PipeDelimitedExtensibleEnumArrayProperty.Serialization.cs @@ -15,24 +15,24 @@ public partial class PipeDelimitedExtensibleEnumArrayProperty : IJsonModel throw null; - public static explicit operator PipeDelimitedExtensibleEnumArrayProperty(ClientResult result) => throw null; + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + PipeDelimitedExtensibleEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - PipeDelimitedExtensibleEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - protected virtual PipeDelimitedExtensibleEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + public static implicit operator BinaryContent(PipeDelimitedExtensibleEnumArrayProperty pipeDelimitedExtensibleEnumArrayProperty) => throw null; - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + public static explicit operator PipeDelimitedExtensibleEnumArrayProperty(ClientResult result) => throw null; - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - PipeDelimitedExtensibleEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + PipeDelimitedExtensibleEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - public static implicit operator BinaryContent(PipeDelimitedExtensibleEnumArrayProperty pipeDelimitedExtensibleEnumArrayProperty) => throw null; + protected virtual PipeDelimitedExtensibleEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedEnumArrayProperty.Serialization.cs index 18a698831b6..ddb4262a384 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedEnumArrayProperty.Serialization.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedEnumArrayProperty.Serialization.cs @@ -15,24 +15,24 @@ public partial class SpaceDelimitedEnumArrayProperty : IJsonModel throw null; - public static explicit operator SpaceDelimitedEnumArrayProperty(ClientResult result) => throw null; + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + SpaceDelimitedEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - SpaceDelimitedEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - protected virtual SpaceDelimitedEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + public static implicit operator BinaryContent(SpaceDelimitedEnumArrayProperty spaceDelimitedEnumArrayProperty) => throw null; - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + public static explicit operator SpaceDelimitedEnumArrayProperty(ClientResult result) => throw null; - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - SpaceDelimitedEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + SpaceDelimitedEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - public static implicit operator BinaryContent(SpaceDelimitedEnumArrayProperty spaceDelimitedEnumArrayProperty) => throw null; + protected virtual SpaceDelimitedEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedExtensibleEnumArrayProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedExtensibleEnumArrayProperty.Serialization.cs index b0655f9133e..bdb973671d6 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedExtensibleEnumArrayProperty.Serialization.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Models/SpaceDelimitedExtensibleEnumArrayProperty.Serialization.cs @@ -15,24 +15,24 @@ public partial class SpaceDelimitedExtensibleEnumArrayProperty : IJsonModel throw null; - public static explicit operator SpaceDelimitedExtensibleEnumArrayProperty(ClientResult result) => throw null; + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + SpaceDelimitedExtensibleEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - SpaceDelimitedExtensibleEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - protected virtual SpaceDelimitedExtensibleEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + public static implicit operator BinaryContent(SpaceDelimitedExtensibleEnumArrayProperty spaceDelimitedExtensibleEnumArrayProperty) => throw null; - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + public static explicit operator SpaceDelimitedExtensibleEnumArrayProperty(ClientResult result) => throw null; - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - SpaceDelimitedExtensibleEnumArrayProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + SpaceDelimitedExtensibleEnumArrayProperty IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - public static implicit operator BinaryContent(SpaceDelimitedExtensibleEnumArrayProperty spaceDelimitedExtensibleEnumArrayProperty) => throw null; + protected virtual SpaceDelimitedExtensibleEnumArrayProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/XmlPet.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/XmlPet.Serialization.cs index 75060681b65..8858cd28df8 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/XmlPet.Serialization.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/XmlPet.Serialization.cs @@ -4,13 +4,24 @@ using System; using System.ClientModel.Primitives; +using System.Xml; namespace Payload.Pageable { - public partial class XmlPet + public partial class XmlPet : IPersistableModel { internal XmlPet() => throw null; protected virtual XmlPet PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + XmlPet IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + protected virtual void XmlModelWriteCore(XmlWriter writer, ModelReaderWriterOptions options) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/XmlClient.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/XmlClient.cs index 980b4fce21e..8b674b49e90 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/XmlClient.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/XmlClient.cs @@ -38,5 +38,7 @@ public partial class XmlClient public virtual ModelWithDictionaryValue GetModelWithDictionaryValueClient() => throw null; public virtual ModelWithEncodedNamesValue GetModelWithEncodedNamesValueClient() => throw null; + + public virtual XmlErrorValue GetXmlErrorValueClient() => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/XmlErrorValue.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/XmlErrorValue.cs new file mode 100644 index 00000000000..13069ff4ebb --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/XmlErrorValue.cs @@ -0,0 +1,26 @@ +// + +#nullable disable + +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Payload.Xml +{ + public partial class XmlErrorValue + { + protected XmlErrorValue() => throw null; + + public ClientPipeline Pipeline => throw null; + + public virtual ClientResult Get(RequestOptions options) => throw null; + + public virtual Task GetAsync(RequestOptions options) => throw null; + + public virtual ClientResult Get(CancellationToken cancellationToken = default) => throw null; + + public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/tspCodeModel.json index 5b54d1eba80..828e857852a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/tspCodeModel.json @@ -22,7 +22,7 @@ { "$id": "3", "kind": "constant", - "name": "GetResponseContentType", + "name": "XmlErrorContentType", "namespace": "", "usage": "None", "valueType": { @@ -38,7 +38,7 @@ { "$id": "5", "kind": "constant", - "name": "GetResponseContentType1", + "name": "XmlErrorContentType1", "namespace": "", "usage": "None", "valueType": { @@ -54,7 +54,7 @@ { "$id": "7", "kind": "constant", - "name": "GetResponseContentType2", + "name": "XmlErrorContentType2", "namespace": "", "usage": "None", "valueType": { @@ -86,7 +86,7 @@ { "$id": "11", "kind": "constant", - "name": "GetResponseContentType3", + "name": "XmlErrorContentType3", "namespace": "", "usage": "None", "valueType": { @@ -102,7 +102,7 @@ { "$id": "13", "kind": "constant", - "name": "GetResponseContentType4", + "name": "XmlErrorContentType4", "namespace": "", "usage": "None", "valueType": { @@ -118,7 +118,7 @@ { "$id": "15", "kind": "constant", - "name": "GetResponseContentType5", + "name": "XmlErrorContentType5", "namespace": "", "usage": "None", "valueType": { @@ -150,7 +150,7 @@ { "$id": "19", "kind": "constant", - "name": "GetResponseContentType6", + "name": "XmlErrorContentType6", "namespace": "", "usage": "None", "valueType": { @@ -166,7 +166,7 @@ { "$id": "21", "kind": "constant", - "name": "GetResponseContentType7", + "name": "XmlErrorContentType7", "namespace": "", "usage": "None", "valueType": { @@ -182,7 +182,7 @@ { "$id": "23", "kind": "constant", - "name": "GetResponseContentType8", + "name": "XmlErrorContentType8", "namespace": "", "usage": "None", "valueType": { @@ -214,7 +214,7 @@ { "$id": "27", "kind": "constant", - "name": "GetResponseContentType9", + "name": "XmlErrorContentType9", "namespace": "", "usage": "None", "valueType": { @@ -230,7 +230,7 @@ { "$id": "29", "kind": "constant", - "name": "GetResponseContentType10", + "name": "XmlErrorContentType10", "namespace": "", "usage": "None", "valueType": { @@ -246,7 +246,7 @@ { "$id": "31", "kind": "constant", - "name": "GetResponseContentType11", + "name": "XmlErrorContentType11", "namespace": "", "usage": "None", "valueType": { @@ -278,7 +278,7 @@ { "$id": "35", "kind": "constant", - "name": "GetResponseContentType12", + "name": "XmlErrorContentType12", "namespace": "", "usage": "None", "valueType": { @@ -294,7 +294,7 @@ { "$id": "37", "kind": "constant", - "name": "GetResponseContentType13", + "name": "XmlErrorContentType13", "namespace": "", "usage": "None", "valueType": { @@ -310,7 +310,7 @@ { "$id": "39", "kind": "constant", - "name": "GetResponseContentType14", + "name": "XmlErrorContentType14", "namespace": "", "usage": "None", "valueType": { @@ -342,7 +342,7 @@ { "$id": "43", "kind": "constant", - "name": "GetResponseContentType15", + "name": "XmlErrorContentType15", "namespace": "", "usage": "None", "valueType": { @@ -358,7 +358,7 @@ { "$id": "45", "kind": "constant", - "name": "GetResponseContentType16", + "name": "XmlErrorContentType16", "namespace": "", "usage": "None", "valueType": { @@ -374,7 +374,7 @@ { "$id": "47", "kind": "constant", - "name": "GetResponseContentType17", + "name": "XmlErrorContentType17", "namespace": "", "usage": "None", "valueType": { @@ -406,7 +406,7 @@ { "$id": "51", "kind": "constant", - "name": "GetResponseContentType18", + "name": "XmlErrorContentType18", "namespace": "", "usage": "None", "valueType": { @@ -422,7 +422,7 @@ { "$id": "53", "kind": "constant", - "name": "GetResponseContentType19", + "name": "XmlErrorContentType19", "namespace": "", "usage": "None", "valueType": { @@ -438,7 +438,7 @@ { "$id": "55", "kind": "constant", - "name": "GetResponseContentType20", + "name": "XmlErrorContentType20", "namespace": "", "usage": "None", "valueType": { @@ -470,7 +470,7 @@ { "$id": "59", "kind": "constant", - "name": "GetResponseContentType21", + "name": "XmlErrorContentType21", "namespace": "", "usage": "None", "valueType": { @@ -486,7 +486,7 @@ { "$id": "61", "kind": "constant", - "name": "GetResponseContentType22", + "name": "XmlErrorContentType22", "namespace": "", "usage": "None", "valueType": { @@ -502,7 +502,7 @@ { "$id": "63", "kind": "constant", - "name": "GetResponseContentType23", + "name": "XmlErrorContentType23", "namespace": "", "usage": "None", "valueType": { @@ -534,7 +534,7 @@ { "$id": "67", "kind": "constant", - "name": "GetResponseContentType24", + "name": "XmlErrorContentType24", "namespace": "", "usage": "None", "valueType": { @@ -550,7 +550,7 @@ { "$id": "69", "kind": "constant", - "name": "GetResponseContentType25", + "name": "XmlErrorContentType25", "namespace": "", "usage": "None", "valueType": { @@ -566,7 +566,7 @@ { "$id": "71", "kind": "constant", - "name": "GetResponseContentType26", + "name": "XmlErrorContentType26", "namespace": "", "usage": "None", "valueType": { @@ -598,7 +598,7 @@ { "$id": "75", "kind": "constant", - "name": "GetResponseContentType27", + "name": "XmlErrorContentType27", "namespace": "", "usage": "None", "valueType": { @@ -614,7 +614,7 @@ { "$id": "77", "kind": "constant", - "name": "GetResponseContentType28", + "name": "XmlErrorContentType28", "namespace": "", "usage": "None", "valueType": { @@ -630,7 +630,7 @@ { "$id": "79", "kind": "constant", - "name": "GetResponseContentType29", + "name": "XmlErrorContentType29", "namespace": "", "usage": "None", "valueType": { @@ -662,7 +662,7 @@ { "$id": "83", "kind": "constant", - "name": "GetResponseContentType30", + "name": "XmlErrorContentType30", "namespace": "", "usage": "None", "valueType": { @@ -678,7 +678,7 @@ { "$id": "85", "kind": "constant", - "name": "GetResponseContentType31", + "name": "XmlErrorContentType31", "namespace": "", "usage": "None", "valueType": { @@ -694,7 +694,7 @@ { "$id": "87", "kind": "constant", - "name": "GetResponseContentType32", + "name": "XmlErrorContentType32", "namespace": "", "usage": "None", "valueType": { @@ -726,7 +726,7 @@ { "$id": "91", "kind": "constant", - "name": "GetResponseContentType33", + "name": "XmlErrorContentType33", "namespace": "", "usage": "None", "valueType": { @@ -742,7 +742,7 @@ { "$id": "93", "kind": "constant", - "name": "GetResponseContentType34", + "name": "XmlErrorContentType34", "namespace": "", "usage": "None", "valueType": { @@ -758,7 +758,7 @@ { "$id": "95", "kind": "constant", - "name": "GetResponseContentType35", + "name": "XmlErrorContentType35", "namespace": "", "usage": "None", "valueType": { @@ -770,11 +770,43 @@ }, "value": "application/xml", "decorators": [] + }, + { + "$id": "97", + "kind": "constant", + "name": "getContentType12", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "98", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "99", + "kind": "constant", + "name": "XmlErrorContentType36", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] } ], "models": [ { - "$id": "97", + "$id": "101", "kind": "model", "name": "SimpleModel", "namespace": "Payload.Xml", @@ -791,12 +823,12 @@ }, "properties": [ { - "$id": "98", + "$id": "102", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "99", + "$id": "103", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -818,12 +850,12 @@ "isHttpMetadata": false }, { - "$id": "100", + "$id": "104", "kind": "property", "name": "age", "serializedName": "age", "type": { - "$id": "101", + "$id": "105", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -847,7 +879,7 @@ ] }, { - "$id": "102", + "$id": "106", "kind": "model", "name": "ModelWithSimpleArrays", "namespace": "Payload.Xml", @@ -864,16 +896,16 @@ }, "properties": [ { - "$id": "103", + "$id": "107", "kind": "property", "name": "colors", "serializedName": "colors", "type": { - "$id": "104", + "$id": "108", "kind": "array", "name": "Array", "valueType": { - "$id": "105", + "$id": "109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -899,16 +931,16 @@ "isHttpMetadata": false }, { - "$id": "106", + "$id": "110", "kind": "property", "name": "counts", "serializedName": "counts", "type": { - "$id": "107", + "$id": "111", "kind": "array", "name": "Array1", "valueType": { - "$id": "108", + "$id": "112", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -936,7 +968,7 @@ ] }, { - "$id": "109", + "$id": "113", "kind": "model", "name": "ModelWithArrayOfModel", "namespace": "Payload.Xml", @@ -953,16 +985,16 @@ }, "properties": [ { - "$id": "110", + "$id": "114", "kind": "property", "name": "items", "serializedName": "items", "type": { - "$id": "111", + "$id": "115", "kind": "array", "name": "ArraySimpleModel", "valueType": { - "$ref": "97" + "$ref": "101" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -986,7 +1018,7 @@ ] }, { - "$id": "112", + "$id": "116", "kind": "model", "name": "ModelWithOptionalField", "namespace": "Payload.Xml", @@ -1003,12 +1035,12 @@ }, "properties": [ { - "$id": "113", + "$id": "117", "kind": "property", "name": "item", "serializedName": "item", "type": { - "$id": "114", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1030,12 +1062,12 @@ "isHttpMetadata": false }, { - "$id": "115", + "$id": "119", "kind": "property", "name": "value", "serializedName": "value", "type": { - "$id": "116", + "$id": "120", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1059,7 +1091,7 @@ ] }, { - "$id": "117", + "$id": "121", "kind": "model", "name": "ModelWithAttributes", "namespace": "Payload.Xml", @@ -1076,12 +1108,12 @@ }, "properties": [ { - "$id": "118", + "$id": "122", "kind": "property", "name": "id1", "serializedName": "id1", "type": { - "$id": "119", + "$id": "123", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1108,12 +1140,12 @@ "isHttpMetadata": false }, { - "$id": "120", + "$id": "124", "kind": "property", "name": "id2", "serializedName": "id2", "type": { - "$id": "121", + "$id": "125", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1140,12 +1172,12 @@ "isHttpMetadata": false }, { - "$id": "122", + "$id": "126", "kind": "property", "name": "enabled", "serializedName": "enabled", "type": { - "$id": "123", + "$id": "127", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1169,7 +1201,7 @@ ] }, { - "$id": "124", + "$id": "128", "kind": "model", "name": "ModelWithUnwrappedArray", "namespace": "Payload.Xml", @@ -1186,12 +1218,12 @@ }, "properties": [ { - "$id": "125", + "$id": "129", "kind": "property", "name": "colors", "serializedName": "colors", "type": { - "$ref": "104" + "$ref": "108" }, "optional": false, "readOnly": false, @@ -1215,12 +1247,12 @@ "isHttpMetadata": false }, { - "$id": "126", + "$id": "130", "kind": "property", "name": "counts", "serializedName": "counts", "type": { - "$ref": "107" + "$ref": "111" }, "optional": false, "readOnly": false, @@ -1241,7 +1273,7 @@ ] }, { - "$id": "127", + "$id": "131", "kind": "model", "name": "ModelWithRenamedArrays", "namespace": "Payload.Xml", @@ -1258,12 +1290,12 @@ }, "properties": [ { - "$id": "128", + "$id": "132", "kind": "property", "name": "colors", "serializedName": "Colors", "type": { - "$ref": "104" + "$ref": "108" }, "optional": false, "readOnly": false, @@ -1293,12 +1325,12 @@ "isHttpMetadata": false }, { - "$id": "129", + "$id": "133", "kind": "property", "name": "counts", "serializedName": "Counts", "type": { - "$ref": "107" + "$ref": "111" }, "optional": false, "readOnly": false, @@ -1326,7 +1358,7 @@ ] }, { - "$id": "130", + "$id": "134", "kind": "model", "name": "ModelWithRenamedFields", "namespace": "Payload.Xml", @@ -1350,12 +1382,12 @@ }, "properties": [ { - "$id": "131", + "$id": "135", "kind": "property", "name": "inputData", "serializedName": "InputData", "type": { - "$ref": "97" + "$ref": "101" }, "optional": false, "readOnly": false, @@ -1380,12 +1412,12 @@ "isHttpMetadata": false }, { - "$id": "132", + "$id": "136", "kind": "property", "name": "outputData", "serializedName": "OutputData", "type": { - "$ref": "97" + "$ref": "101" }, "optional": false, "readOnly": false, @@ -1412,7 +1444,7 @@ ] }, { - "$id": "133", + "$id": "137", "kind": "model", "name": "ModelWithEmptyArray", "namespace": "Payload.Xml", @@ -1429,12 +1461,12 @@ }, "properties": [ { - "$id": "134", + "$id": "138", "kind": "property", "name": "items", "serializedName": "items", "type": { - "$ref": "111" + "$ref": "115" }, "optional": false, "readOnly": false, @@ -1455,7 +1487,7 @@ ] }, { - "$id": "135", + "$id": "139", "kind": "model", "name": "ModelWithText", "namespace": "Payload.Xml", @@ -1472,12 +1504,12 @@ }, "properties": [ { - "$id": "136", + "$id": "140", "kind": "property", "name": "language", "serializedName": "language", "type": { - "$id": "137", + "$id": "141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1504,12 +1536,12 @@ "isHttpMetadata": false }, { - "$id": "138", + "$id": "142", "kind": "property", "name": "content", "serializedName": "content", "type": { - "$id": "139", + "$id": "143", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1538,7 +1570,7 @@ ] }, { - "$id": "140", + "$id": "144", "kind": "model", "name": "ModelWithDictionary", "namespace": "Payload.Xml", @@ -1555,22 +1587,22 @@ }, "properties": [ { - "$id": "141", + "$id": "145", "kind": "property", "name": "metadata", "serializedName": "metadata", "type": { - "$id": "142", + "$id": "146", "kind": "dict", "keyType": { - "$id": "143", + "$id": "147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "144", + "$id": "148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1596,7 +1628,7 @@ ] }, { - "$id": "145", + "$id": "149", "kind": "model", "name": "ModelWithEncodedNames", "namespace": "Payload.Xml", @@ -1613,12 +1645,12 @@ }, "properties": [ { - "$id": "146", + "$id": "150", "kind": "property", "name": "modelData", "serializedName": "SimpleModelData", "type": { - "$ref": "97" + "$ref": "101" }, "optional": false, "readOnly": false, @@ -1636,12 +1668,12 @@ "isHttpMetadata": false }, { - "$id": "147", + "$id": "151", "kind": "property", "name": "colors", "serializedName": "PossibleColors", "type": { - "$ref": "104" + "$ref": "108" }, "optional": false, "readOnly": false, @@ -1660,11 +1692,84 @@ "isHttpMetadata": false } ] + }, + { + "$id": "152", + "kind": "model", + "name": "XmlErrorBody", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.XmlErrorBody", + "usage": "Output,Xml", + "doc": "The body of an XML error response.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "XmlErrorBody", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "153", + "kind": "property", + "name": "message", + "serializedName": "message", + "type": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.XmlErrorBody.message", + "serializationOptions": { + "xml": { + "name": "message", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "155", + "kind": "property", + "name": "code", + "serializedName": "code", + "type": { + "$id": "156", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.XmlErrorBody.code", + "serializationOptions": { + "xml": { + "name": "code", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] } ], "clients": [ { - "$id": "148", + "$id": "157", "kind": "client", "name": "XmlClient", "namespace": "Payload.Xml", @@ -1672,13 +1777,13 @@ "methods": [], "parameters": [ { - "$id": "149", + "$id": "158", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "150", + "$id": "159", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1689,7 +1794,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "151", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1708,26 +1813,26 @@ "apiVersions": [], "children": [ { - "$id": "152", + "$id": "161", "kind": "client", "name": "SimpleModelValue", "namespace": "Payload.Xml", "doc": "Operations for the SimpleModel type.", "methods": [ { - "$id": "153", + "$id": "162", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "154", + "$id": "163", "name": "get", "resourceName": "SimpleModelValue", "accessibility": "public", "parameters": [ { - "$id": "155", + "$id": "164", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1743,7 +1848,7 @@ "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.get.accept", "methodParameterSegments": [ { - "$id": "156", + "$id": "165", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -1768,7 +1873,7 @@ 200 ], "bodyType": { - "$ref": "97" + "$ref": "101" }, "headers": [ { @@ -1797,12 +1902,12 @@ }, "parameters": [ { - "$ref": "156" + "$ref": "165" } ], "response": { "type": { - "$ref": "97" + "$ref": "101" } }, "isOverride": false, @@ -1811,19 +1916,19 @@ "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.get" }, { - "$id": "157", + "$id": "166", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "158", + "$id": "167", "name": "put", "resourceName": "SimpleModelValue", "accessibility": "public", "parameters": [ { - "$id": "159", + "$id": "168", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -1839,7 +1944,7 @@ "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put.contentType", "methodParameterSegments": [ { - "$id": "160", + "$id": "169", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -1858,12 +1963,12 @@ ] }, { - "$id": "161", + "$id": "170", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "97" + "$ref": "101" }, "isApiVersion": false, "contentTypes": [ @@ -1877,12 +1982,12 @@ "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put.input", "methodParameterSegments": [ { - "$id": "162", + "$id": "171", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "97" + "$ref": "101" }, "location": "Body", "isApiVersion": false, @@ -1920,10 +2025,10 @@ }, "parameters": [ { - "$ref": "160" + "$ref": "169" }, { - "$ref": "162" + "$ref": "171" } ], "response": {}, @@ -1935,13 +2040,13 @@ ], "parameters": [ { - "$id": "163", + "$id": "172", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "164", + "$id": "173", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1952,7 +2057,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "165", + "$id": "174", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1970,31 +2075,31 @@ "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue", "apiVersions": [], "parent": { - "$ref": "148" + "$ref": "157" }, "isMultiServiceClient": false }, { - "$id": "166", + "$id": "175", "kind": "client", "name": "ModelWithSimpleArraysValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithSimpleArrays type.", "methods": [ { - "$id": "167", + "$id": "176", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "168", + "$id": "177", "name": "get", "resourceName": "ModelWithSimpleArraysValue", "accessibility": "public", "parameters": [ { - "$id": "169", + "$id": "178", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2010,7 +2115,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.get.accept", "methodParameterSegments": [ { - "$id": "170", + "$id": "179", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -2035,7 +2140,7 @@ 200 ], "bodyType": { - "$ref": "102" + "$ref": "106" }, "headers": [ { @@ -2064,12 +2169,12 @@ }, "parameters": [ { - "$ref": "170" + "$ref": "179" } ], "response": { "type": { - "$ref": "102" + "$ref": "106" } }, "isOverride": false, @@ -2078,19 +2183,19 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.get" }, { - "$id": "171", + "$id": "180", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "172", + "$id": "181", "name": "put", "resourceName": "ModelWithSimpleArraysValue", "accessibility": "public", "parameters": [ { - "$id": "173", + "$id": "182", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2106,7 +2211,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put.contentType", "methodParameterSegments": [ { - "$id": "174", + "$id": "183", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -2125,12 +2230,12 @@ ] }, { - "$id": "175", + "$id": "184", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "102" + "$ref": "106" }, "isApiVersion": false, "contentTypes": [ @@ -2144,12 +2249,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put.input", "methodParameterSegments": [ { - "$id": "176", + "$id": "185", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "102" + "$ref": "106" }, "location": "Body", "isApiVersion": false, @@ -2187,10 +2292,10 @@ }, "parameters": [ { - "$ref": "174" + "$ref": "183" }, { - "$ref": "176" + "$ref": "185" } ], "response": {}, @@ -2202,13 +2307,13 @@ ], "parameters": [ { - "$id": "177", + "$id": "186", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "178", + "$id": "187", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2219,7 +2324,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "179", + "$id": "188", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2237,31 +2342,31 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue", "apiVersions": [], "parent": { - "$ref": "148" + "$ref": "157" }, "isMultiServiceClient": false }, { - "$id": "180", + "$id": "189", "kind": "client", "name": "ModelWithArrayOfModelValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithArrayOfModel type.", "methods": [ { - "$id": "181", + "$id": "190", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "182", + "$id": "191", "name": "get", "resourceName": "ModelWithArrayOfModelValue", "accessibility": "public", "parameters": [ { - "$id": "183", + "$id": "192", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2277,7 +2382,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.get.accept", "methodParameterSegments": [ { - "$id": "184", + "$id": "193", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -2302,7 +2407,7 @@ 200 ], "bodyType": { - "$ref": "109" + "$ref": "113" }, "headers": [ { @@ -2331,12 +2436,12 @@ }, "parameters": [ { - "$ref": "184" + "$ref": "193" } ], "response": { "type": { - "$ref": "109" + "$ref": "113" } }, "isOverride": false, @@ -2345,19 +2450,19 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.get" }, { - "$id": "185", + "$id": "194", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "186", + "$id": "195", "name": "put", "resourceName": "ModelWithArrayOfModelValue", "accessibility": "public", "parameters": [ { - "$id": "187", + "$id": "196", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2373,7 +2478,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put.contentType", "methodParameterSegments": [ { - "$id": "188", + "$id": "197", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -2392,12 +2497,12 @@ ] }, { - "$id": "189", + "$id": "198", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "109" + "$ref": "113" }, "isApiVersion": false, "contentTypes": [ @@ -2411,12 +2516,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put.input", "methodParameterSegments": [ { - "$id": "190", + "$id": "199", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "109" + "$ref": "113" }, "location": "Body", "isApiVersion": false, @@ -2454,10 +2559,10 @@ }, "parameters": [ { - "$ref": "188" + "$ref": "197" }, { - "$ref": "190" + "$ref": "199" } ], "response": {}, @@ -2469,13 +2574,13 @@ ], "parameters": [ { - "$id": "191", + "$id": "200", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "192", + "$id": "201", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2486,7 +2591,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "193", + "$id": "202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2504,31 +2609,31 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue", "apiVersions": [], "parent": { - "$ref": "148" + "$ref": "157" }, "isMultiServiceClient": false }, { - "$id": "194", + "$id": "203", "kind": "client", "name": "ModelWithOptionalFieldValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithOptionalField type.", "methods": [ { - "$id": "195", + "$id": "204", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "196", + "$id": "205", "name": "get", "resourceName": "ModelWithOptionalFieldValue", "accessibility": "public", "parameters": [ { - "$id": "197", + "$id": "206", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2544,7 +2649,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.get.accept", "methodParameterSegments": [ { - "$id": "198", + "$id": "207", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -2569,7 +2674,7 @@ 200 ], "bodyType": { - "$ref": "112" + "$ref": "116" }, "headers": [ { @@ -2598,12 +2703,12 @@ }, "parameters": [ { - "$ref": "198" + "$ref": "207" } ], "response": { "type": { - "$ref": "112" + "$ref": "116" } }, "isOverride": false, @@ -2612,19 +2717,19 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.get" }, { - "$id": "199", + "$id": "208", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "200", + "$id": "209", "name": "put", "resourceName": "ModelWithOptionalFieldValue", "accessibility": "public", "parameters": [ { - "$id": "201", + "$id": "210", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2640,7 +2745,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put.contentType", "methodParameterSegments": [ { - "$id": "202", + "$id": "211", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -2659,12 +2764,12 @@ ] }, { - "$id": "203", + "$id": "212", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "112" + "$ref": "116" }, "isApiVersion": false, "contentTypes": [ @@ -2678,12 +2783,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put.input", "methodParameterSegments": [ { - "$id": "204", + "$id": "213", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "112" + "$ref": "116" }, "location": "Body", "isApiVersion": false, @@ -2721,10 +2826,10 @@ }, "parameters": [ { - "$ref": "202" + "$ref": "211" }, { - "$ref": "204" + "$ref": "213" } ], "response": {}, @@ -2736,13 +2841,13 @@ ], "parameters": [ { - "$id": "205", + "$id": "214", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "206", + "$id": "215", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2753,7 +2858,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "207", + "$id": "216", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2771,31 +2876,31 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue", "apiVersions": [], "parent": { - "$ref": "148" + "$ref": "157" }, "isMultiServiceClient": false }, { - "$id": "208", + "$id": "217", "kind": "client", "name": "ModelWithAttributesValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithAttributes type.", "methods": [ { - "$id": "209", + "$id": "218", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "210", + "$id": "219", "name": "get", "resourceName": "ModelWithAttributesValue", "accessibility": "public", "parameters": [ { - "$id": "211", + "$id": "220", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2811,7 +2916,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.get.accept", "methodParameterSegments": [ { - "$id": "212", + "$id": "221", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -2836,7 +2941,7 @@ 200 ], "bodyType": { - "$ref": "117" + "$ref": "121" }, "headers": [ { @@ -2865,12 +2970,12 @@ }, "parameters": [ { - "$ref": "212" + "$ref": "221" } ], "response": { "type": { - "$ref": "117" + "$ref": "121" } }, "isOverride": false, @@ -2879,19 +2984,19 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.get" }, { - "$id": "213", + "$id": "222", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "214", + "$id": "223", "name": "put", "resourceName": "ModelWithAttributesValue", "accessibility": "public", "parameters": [ { - "$id": "215", + "$id": "224", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2907,7 +3012,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put.contentType", "methodParameterSegments": [ { - "$id": "216", + "$id": "225", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -2926,12 +3031,12 @@ ] }, { - "$id": "217", + "$id": "226", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "117" + "$ref": "121" }, "isApiVersion": false, "contentTypes": [ @@ -2945,12 +3050,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put.input", "methodParameterSegments": [ { - "$id": "218", + "$id": "227", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "117" + "$ref": "121" }, "location": "Body", "isApiVersion": false, @@ -2988,10 +3093,10 @@ }, "parameters": [ { - "$ref": "216" + "$ref": "225" }, { - "$ref": "218" + "$ref": "227" } ], "response": {}, @@ -3003,13 +3108,13 @@ ], "parameters": [ { - "$id": "219", + "$id": "228", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "220", + "$id": "229", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3020,7 +3125,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "221", + "$id": "230", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3038,31 +3143,31 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue", "apiVersions": [], "parent": { - "$ref": "148" + "$ref": "157" }, "isMultiServiceClient": false }, { - "$id": "222", + "$id": "231", "kind": "client", "name": "ModelWithUnwrappedArrayValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithUnwrappedArray type.", "methods": [ { - "$id": "223", + "$id": "232", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "224", + "$id": "233", "name": "get", "resourceName": "ModelWithUnwrappedArrayValue", "accessibility": "public", "parameters": [ { - "$id": "225", + "$id": "234", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3078,7 +3183,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.get.accept", "methodParameterSegments": [ { - "$id": "226", + "$id": "235", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -3103,7 +3208,7 @@ 200 ], "bodyType": { - "$ref": "124" + "$ref": "128" }, "headers": [ { @@ -3132,12 +3237,12 @@ }, "parameters": [ { - "$ref": "226" + "$ref": "235" } ], "response": { "type": { - "$ref": "124" + "$ref": "128" } }, "isOverride": false, @@ -3146,19 +3251,19 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.get" }, { - "$id": "227", + "$id": "236", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "228", + "$id": "237", "name": "put", "resourceName": "ModelWithUnwrappedArrayValue", "accessibility": "public", "parameters": [ { - "$id": "229", + "$id": "238", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3174,7 +3279,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put.contentType", "methodParameterSegments": [ { - "$id": "230", + "$id": "239", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3193,12 +3298,12 @@ ] }, { - "$id": "231", + "$id": "240", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "124" + "$ref": "128" }, "isApiVersion": false, "contentTypes": [ @@ -3212,12 +3317,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put.input", "methodParameterSegments": [ { - "$id": "232", + "$id": "241", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "124" + "$ref": "128" }, "location": "Body", "isApiVersion": false, @@ -3255,10 +3360,10 @@ }, "parameters": [ { - "$ref": "230" + "$ref": "239" }, { - "$ref": "232" + "$ref": "241" } ], "response": {}, @@ -3270,13 +3375,13 @@ ], "parameters": [ { - "$id": "233", + "$id": "242", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "234", + "$id": "243", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3287,7 +3392,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "235", + "$id": "244", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3305,31 +3410,31 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue", "apiVersions": [], "parent": { - "$ref": "148" + "$ref": "157" }, "isMultiServiceClient": false }, { - "$id": "236", + "$id": "245", "kind": "client", "name": "ModelWithRenamedArraysValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithRenamedArrays type.", "methods": [ { - "$id": "237", + "$id": "246", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "238", + "$id": "247", "name": "get", "resourceName": "ModelWithRenamedArraysValue", "accessibility": "public", "parameters": [ { - "$id": "239", + "$id": "248", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3345,7 +3450,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.get.accept", "methodParameterSegments": [ { - "$id": "240", + "$id": "249", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -3370,7 +3475,7 @@ 200 ], "bodyType": { - "$ref": "127" + "$ref": "131" }, "headers": [ { @@ -3399,12 +3504,12 @@ }, "parameters": [ { - "$ref": "240" + "$ref": "249" } ], "response": { "type": { - "$ref": "127" + "$ref": "131" } }, "isOverride": false, @@ -3413,19 +3518,19 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.get" }, { - "$id": "241", + "$id": "250", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "242", + "$id": "251", "name": "put", "resourceName": "ModelWithRenamedArraysValue", "accessibility": "public", "parameters": [ { - "$id": "243", + "$id": "252", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3441,7 +3546,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put.contentType", "methodParameterSegments": [ { - "$id": "244", + "$id": "253", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3460,12 +3565,12 @@ ] }, { - "$id": "245", + "$id": "254", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "127" + "$ref": "131" }, "isApiVersion": false, "contentTypes": [ @@ -3479,12 +3584,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put.input", "methodParameterSegments": [ { - "$id": "246", + "$id": "255", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "127" + "$ref": "131" }, "location": "Body", "isApiVersion": false, @@ -3522,10 +3627,10 @@ }, "parameters": [ { - "$ref": "244" + "$ref": "253" }, { - "$ref": "246" + "$ref": "255" } ], "response": {}, @@ -3537,13 +3642,13 @@ ], "parameters": [ { - "$id": "247", + "$id": "256", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "248", + "$id": "257", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3554,7 +3659,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "249", + "$id": "258", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3572,31 +3677,31 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue", "apiVersions": [], "parent": { - "$ref": "148" + "$ref": "157" }, "isMultiServiceClient": false }, { - "$id": "250", + "$id": "259", "kind": "client", "name": "ModelWithRenamedFieldsValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithRenamedFields type.", "methods": [ { - "$id": "251", + "$id": "260", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "252", + "$id": "261", "name": "get", "resourceName": "ModelWithRenamedFieldsValue", "accessibility": "public", "parameters": [ { - "$id": "253", + "$id": "262", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3612,7 +3717,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.get.accept", "methodParameterSegments": [ { - "$id": "254", + "$id": "263", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -3637,7 +3742,7 @@ 200 ], "bodyType": { - "$ref": "130" + "$ref": "134" }, "headers": [ { @@ -3666,12 +3771,12 @@ }, "parameters": [ { - "$ref": "254" + "$ref": "263" } ], "response": { "type": { - "$ref": "130" + "$ref": "134" } }, "isOverride": false, @@ -3680,19 +3785,19 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.get" }, { - "$id": "255", + "$id": "264", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "256", + "$id": "265", "name": "put", "resourceName": "ModelWithRenamedFieldsValue", "accessibility": "public", "parameters": [ { - "$id": "257", + "$id": "266", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3708,7 +3813,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put.contentType", "methodParameterSegments": [ { - "$id": "258", + "$id": "267", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3727,12 +3832,12 @@ ] }, { - "$id": "259", + "$id": "268", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "130" + "$ref": "134" }, "isApiVersion": false, "contentTypes": [ @@ -3746,12 +3851,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put.input", "methodParameterSegments": [ { - "$id": "260", + "$id": "269", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "130" + "$ref": "134" }, "location": "Body", "isApiVersion": false, @@ -3789,10 +3894,10 @@ }, "parameters": [ { - "$ref": "258" + "$ref": "267" }, { - "$ref": "260" + "$ref": "269" } ], "response": {}, @@ -3804,13 +3909,13 @@ ], "parameters": [ { - "$id": "261", + "$id": "270", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "262", + "$id": "271", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3821,7 +3926,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "263", + "$id": "272", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3839,31 +3944,31 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue", "apiVersions": [], "parent": { - "$ref": "148" + "$ref": "157" }, "isMultiServiceClient": false }, { - "$id": "264", + "$id": "273", "kind": "client", "name": "ModelWithEmptyArrayValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithEmptyArray type.", "methods": [ { - "$id": "265", + "$id": "274", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "266", + "$id": "275", "name": "get", "resourceName": "ModelWithEmptyArrayValue", "accessibility": "public", "parameters": [ { - "$id": "267", + "$id": "276", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3879,7 +3984,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.get.accept", "methodParameterSegments": [ { - "$id": "268", + "$id": "277", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -3904,7 +4009,7 @@ 200 ], "bodyType": { - "$ref": "133" + "$ref": "137" }, "headers": [ { @@ -3933,12 +4038,12 @@ }, "parameters": [ { - "$ref": "268" + "$ref": "277" } ], "response": { "type": { - "$ref": "133" + "$ref": "137" } }, "isOverride": false, @@ -3947,19 +4052,19 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.get" }, { - "$id": "269", + "$id": "278", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "270", + "$id": "279", "name": "put", "resourceName": "ModelWithEmptyArrayValue", "accessibility": "public", "parameters": [ { - "$id": "271", + "$id": "280", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3975,7 +4080,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put.contentType", "methodParameterSegments": [ { - "$id": "272", + "$id": "281", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3994,12 +4099,12 @@ ] }, { - "$id": "273", + "$id": "282", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "133" + "$ref": "137" }, "isApiVersion": false, "contentTypes": [ @@ -4013,12 +4118,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put.input", "methodParameterSegments": [ { - "$id": "274", + "$id": "283", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "133" + "$ref": "137" }, "location": "Body", "isApiVersion": false, @@ -4056,10 +4161,10 @@ }, "parameters": [ { - "$ref": "272" + "$ref": "281" }, { - "$ref": "274" + "$ref": "283" } ], "response": {}, @@ -4071,13 +4176,13 @@ ], "parameters": [ { - "$id": "275", + "$id": "284", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "276", + "$id": "285", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4088,7 +4193,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "277", + "$id": "286", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4106,31 +4211,31 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue", "apiVersions": [], "parent": { - "$ref": "148" + "$ref": "157" }, "isMultiServiceClient": false }, { - "$id": "278", + "$id": "287", "kind": "client", "name": "ModelWithTextValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithText type.", "methods": [ { - "$id": "279", + "$id": "288", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "280", + "$id": "289", "name": "get", "resourceName": "ModelWithTextValue", "accessibility": "public", "parameters": [ { - "$id": "281", + "$id": "290", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -4146,7 +4251,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.get.accept", "methodParameterSegments": [ { - "$id": "282", + "$id": "291", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -4171,7 +4276,7 @@ 200 ], "bodyType": { - "$ref": "135" + "$ref": "139" }, "headers": [ { @@ -4200,12 +4305,12 @@ }, "parameters": [ { - "$ref": "282" + "$ref": "291" } ], "response": { "type": { - "$ref": "135" + "$ref": "139" } }, "isOverride": false, @@ -4214,19 +4319,19 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.get" }, { - "$id": "283", + "$id": "292", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "284", + "$id": "293", "name": "put", "resourceName": "ModelWithTextValue", "accessibility": "public", "parameters": [ { - "$id": "285", + "$id": "294", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4242,7 +4347,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put.contentType", "methodParameterSegments": [ { - "$id": "286", + "$id": "295", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4261,12 +4366,12 @@ ] }, { - "$id": "287", + "$id": "296", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "135" + "$ref": "139" }, "isApiVersion": false, "contentTypes": [ @@ -4280,12 +4385,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put.input", "methodParameterSegments": [ { - "$id": "288", + "$id": "297", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "135" + "$ref": "139" }, "location": "Body", "isApiVersion": false, @@ -4323,10 +4428,10 @@ }, "parameters": [ { - "$ref": "286" + "$ref": "295" }, { - "$ref": "288" + "$ref": "297" } ], "response": {}, @@ -4338,13 +4443,13 @@ ], "parameters": [ { - "$id": "289", + "$id": "298", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "290", + "$id": "299", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4355,7 +4460,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "291", + "$id": "300", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4373,31 +4478,31 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue", "apiVersions": [], "parent": { - "$ref": "148" + "$ref": "157" }, "isMultiServiceClient": false }, { - "$id": "292", + "$id": "301", "kind": "client", "name": "ModelWithDictionaryValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithDictionary type.", "methods": [ { - "$id": "293", + "$id": "302", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "294", + "$id": "303", "name": "get", "resourceName": "ModelWithDictionaryValue", "accessibility": "public", "parameters": [ { - "$id": "295", + "$id": "304", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -4413,7 +4518,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionaryValue.get.accept", "methodParameterSegments": [ { - "$id": "296", + "$id": "305", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -4438,7 +4543,7 @@ 200 ], "bodyType": { - "$ref": "140" + "$ref": "144" }, "headers": [ { @@ -4467,12 +4572,12 @@ }, "parameters": [ { - "$ref": "296" + "$ref": "305" } ], "response": { "type": { - "$ref": "140" + "$ref": "144" } }, "isOverride": false, @@ -4481,19 +4586,19 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionaryValue.get" }, { - "$id": "297", + "$id": "306", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "298", + "$id": "307", "name": "put", "resourceName": "ModelWithDictionaryValue", "accessibility": "public", "parameters": [ { - "$id": "299", + "$id": "308", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4509,7 +4614,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionaryValue.put.contentType", "methodParameterSegments": [ { - "$id": "300", + "$id": "309", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4528,12 +4633,12 @@ ] }, { - "$id": "301", + "$id": "310", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "140" + "$ref": "144" }, "isApiVersion": false, "contentTypes": [ @@ -4547,12 +4652,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionaryValue.put.input", "methodParameterSegments": [ { - "$id": "302", + "$id": "311", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "140" + "$ref": "144" }, "location": "Body", "isApiVersion": false, @@ -4590,10 +4695,10 @@ }, "parameters": [ { - "$ref": "300" + "$ref": "309" }, { - "$ref": "302" + "$ref": "311" } ], "response": {}, @@ -4605,13 +4710,13 @@ ], "parameters": [ { - "$id": "303", + "$id": "312", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "304", + "$id": "313", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4622,7 +4727,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "305", + "$id": "314", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4640,31 +4745,31 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionaryValue", "apiVersions": [], "parent": { - "$ref": "148" + "$ref": "157" }, "isMultiServiceClient": false }, { - "$id": "306", + "$id": "315", "kind": "client", "name": "ModelWithEncodedNamesValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithEncodedNames type.", "methods": [ { - "$id": "307", + "$id": "316", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "308", + "$id": "317", "name": "get", "resourceName": "ModelWithEncodedNamesValue", "accessibility": "public", "parameters": [ { - "$id": "309", + "$id": "318", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -4680,7 +4785,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNamesValue.get.accept", "methodParameterSegments": [ { - "$id": "310", + "$id": "319", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -4705,7 +4810,7 @@ 200 ], "bodyType": { - "$ref": "145" + "$ref": "149" }, "headers": [ { @@ -4734,12 +4839,12 @@ }, "parameters": [ { - "$ref": "310" + "$ref": "319" } ], "response": { "type": { - "$ref": "145" + "$ref": "149" } }, "isOverride": false, @@ -4748,19 +4853,19 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNamesValue.get" }, { - "$id": "311", + "$id": "320", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "312", + "$id": "321", "name": "put", "resourceName": "ModelWithEncodedNamesValue", "accessibility": "public", "parameters": [ { - "$id": "313", + "$id": "322", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4776,7 +4881,7 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNamesValue.put.contentType", "methodParameterSegments": [ { - "$id": "314", + "$id": "323", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4795,12 +4900,12 @@ ] }, { - "$id": "315", + "$id": "324", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "145" + "$ref": "149" }, "isApiVersion": false, "contentTypes": [ @@ -4814,12 +4919,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNamesValue.put.input", "methodParameterSegments": [ { - "$id": "316", + "$id": "325", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "145" + "$ref": "149" }, "location": "Body", "isApiVersion": false, @@ -4857,10 +4962,10 @@ }, "parameters": [ { - "$ref": "314" + "$ref": "323" }, { - "$ref": "316" + "$ref": "325" } ], "response": {}, @@ -4872,13 +4977,13 @@ ], "parameters": [ { - "$id": "317", + "$id": "326", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "318", + "$id": "327", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4889,7 +4994,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "319", + "$id": "328", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4907,7 +5012,152 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNamesValue", "apiVersions": [], "parent": { - "$ref": "148" + "$ref": "157" + }, + "isMultiServiceClient": false + }, + { + "$id": "329", + "kind": "client", + "name": "XmlErrorValue", + "namespace": "Payload.Xml", + "doc": "Operations that return an error response in XML format.", + "methods": [ + { + "$id": "330", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "331", + "name": "get", + "resourceName": "XmlErrorValue", + "accessibility": "public", + "parameters": [ + { + "$id": "332", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "97" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.XmlErrorValue.get.accept", + "methodParameterSegments": [ + { + "$id": "333", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "97" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.XmlErrorValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "101" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "99" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/xml/error", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.XmlErrorValue.get", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "333" + } + ], + "response": { + "type": { + "$ref": "101" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.XmlErrorValue.get" + } + ], + "parameters": [ + { + "$id": "334", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "335", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "336", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.XmlErrorValue.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.XmlErrorValue", + "apiVersions": [], + "parent": { + "$ref": "157" }, "isMultiServiceClient": false } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ModelWithList.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ModelWithList.Serialization.cs index 308b855cc9b..8b9c3b6b646 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ModelWithList.Serialization.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ModelWithList.Serialization.cs @@ -15,22 +15,22 @@ public partial class ModelWithList : IJsonModel protected virtual ModelWithList PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - ModelWithList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithList JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - ModelWithList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; public static implicit operator BinaryContent(ModelWithList modelWithList) => throw null; + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + ModelWithList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + protected virtual ModelWithList JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; } } From 65ab7a502969df3c08ae5f62815500d94eb8c749 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 00:11:06 +0000 Subject: [PATCH 07/10] Use InvariantCultureIgnoreCase for extensible enum comparison Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com> --- .../src/InputTypes/DateTimeKnownEncoding.cs | 9 ++++++--- .../src/InputTypes/DurationKnownEncoding.cs | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DateTimeKnownEncoding.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DateTimeKnownEncoding.cs index 85638760805..4d8bda45aa6 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DateTimeKnownEncoding.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DateTimeKnownEncoding.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.ComponentModel; namespace Microsoft.TypeSpec.Generator.Input { @@ -53,13 +54,15 @@ public DateTimeKnownEncoding(string value) public static implicit operator DateTimeKnownEncoding(string value) => new DateTimeKnownEncoding(value); /// - public bool Equals(DateTimeKnownEncoding other) => string.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase); + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object? obj) => obj is DateTimeKnownEncoding other && Equals(other); /// - public override bool Equals(object? obj) => obj is DateTimeKnownEncoding other && Equals(other); + public bool Equals(DateTimeKnownEncoding other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// - public override int GetHashCode() => _value?.GetHashCode() ?? 0; + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; /// public override string ToString() => _value; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DurationKnownEncoding.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DurationKnownEncoding.cs index 12ff4dd4c79..3d737d22e7f 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DurationKnownEncoding.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/DurationKnownEncoding.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.ComponentModel; namespace Microsoft.TypeSpec.Generator.Input { @@ -58,13 +59,15 @@ public DurationKnownEncoding(string value) public static implicit operator DurationKnownEncoding(string value) => new DurationKnownEncoding(value); /// - public bool Equals(DurationKnownEncoding other) => string.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase); + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object? obj) => obj is DurationKnownEncoding other && Equals(other); /// - public override bool Equals(object? obj) => obj is DurationKnownEncoding other && Equals(other); + public bool Equals(DurationKnownEncoding other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// - public override int GetHashCode() => _value?.GetHashCode() ?? 0; + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; /// public override string ToString() => _value; From dfa05eb488cdc446116a5303b5fdda2323248fca Mon Sep 17 00:00:00 2001 From: jolov Date: Fri, 13 Feb 2026 19:06:45 -0800 Subject: [PATCH 08/10] skip file --- .../eng/scripts/Spector-Helper.psm1 | 1 + .../Local/Sample-TypeSpec/tspCodeModel.json | 14 +++++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/http-client-csharp/eng/scripts/Spector-Helper.psm1 b/packages/http-client-csharp/eng/scripts/Spector-Helper.psm1 index 37fb3b7e057..898818015f3 100644 --- a/packages/http-client-csharp/eng/scripts/Spector-Helper.psm1 +++ b/packages/http-client-csharp/eng/scripts/Spector-Helper.psm1 @@ -3,6 +3,7 @@ $repoRoot = Resolve-Path (Join-Path $PSScriptRoot '..') $failingSpecs = @( Join-Path 'http' 'type' 'model' 'flatten' Join-Path 'http' 'type' 'model' 'templated' + Join-Path 'http' 'type' 'file' Join-Path 'http' 'client' 'naming' # pending until https://github.com/microsoft/typespec/issues/5653 is resolved Join-Path 'http' 'streaming' 'jsonl' ) diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json index 9890b0fa4a6..55c184d8933 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json @@ -5442,8 +5442,7 @@ }, "valueType": { "$ref": "453" - }, - "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns1" + } }, { "$id": "455", @@ -5456,8 +5455,7 @@ }, "valueType": { "$ref": "453" - }, - "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns2" + } } ], "isFixed": true, @@ -5474,8 +5472,7 @@ }, "valueType": { "$ref": "453" - }, - "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns1" + } } } }, @@ -5529,8 +5526,7 @@ }, "valueType": { "$ref": "453" - }, - "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns2" + } } } } @@ -9869,7 +9865,7 @@ }, "value": "2024-08-16-preview" }, - "optional": true, + "optional": false, "scope": "Method", "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion.apiVersion", "readOnly": false, From 780b92f6c2261de24f9e4fe85d64a2da8b3c7108 Mon Sep 17 00:00:00 2001 From: jolov Date: Fri, 13 Feb 2026 19:19:55 -0800 Subject: [PATCH 09/10] regen --- .../Local/Sample-TypeSpec/tspCodeModel.json | 14 +++++++++----- .../enum-discriminator/tspCodeModel.json | 6 ++++-- .../type/property/value-types/tspCodeModel.json | 3 ++- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json index 55c184d8933..9890b0fa4a6 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json @@ -5442,7 +5442,8 @@ }, "valueType": { "$ref": "453" - } + }, + "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns1" }, { "$id": "455", @@ -5455,7 +5456,8 @@ }, "valueType": { "$ref": "453" - } + }, + "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns2" } ], "isFixed": true, @@ -5472,7 +5474,8 @@ }, "valueType": { "$ref": "453" - } + }, + "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns1" } } }, @@ -5526,7 +5529,8 @@ }, "valueType": { "$ref": "453" - } + }, + "crossLanguageDefinitionId": "SampleTypeSpec.XmlNamespaces.ns2" } } } @@ -9865,7 +9869,7 @@ }, "value": "2024-08-16-preview" }, - "optional": false, + "optional": true, "scope": "Method", "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion.apiVersion", "readOnly": false, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json index 98567d53ff2..c87ce4ed9f8 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json @@ -334,7 +334,8 @@ }, "enumType": { "$ref": "30" - } + }, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.DogKind.Golden" } ], "isFixed": false, @@ -499,7 +500,8 @@ }, "valueType": { "$ref": "41" - } + }, + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.SnakeKind.Cobra" } ], "isFixed": true, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json index a5b1e521f53..f7b9b580f4d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json @@ -2549,7 +2549,8 @@ }, "enumType": { "$ref": "232" - } + }, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtendedEnum.EnumValue2" } ], "isFixed": false, From 8de9466a6e910fcc36172284735172ce03ffb57f Mon Sep 17 00:00:00 2001 From: jolov Date: Fri, 13 Feb 2026 20:22:58 -0800 Subject: [PATCH 10/10] fix enum array --- .../MrwSerializationTypeDefinition.cs | 48 +++++++++++-------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.cs index 89a034022d2..6574374d8fc 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.cs @@ -1957,14 +1957,15 @@ private MethodBodyStatement CreateEncodedArraySerializationStatement( { stringJoinExpression = StringSnippets.Join(Literal(delimiter), propertyExpression); } - else if (elementType.IsEnum && !elementType.IsStruct && elementType.UnderlyingEnumType?.Equals(typeof(string)) == true) + else if (elementType.IsEnum && elementType.UnderlyingEnumType?.Equals(typeof(string)) == true) { - var x = new VariableExpression(typeof(object), "x"); + var x = new VariableExpression(elementType, "x"); + var body = elementType.ToSerial(x); var selectExpression = propertyExpression.Invoke(nameof(Enumerable.Select), - new FuncExpression([x.Declaration], new TernaryConditionalExpression( - x.Equal(Null), - Literal(""), - elementType.ToSerial(x)))); + [new FuncExpression([x.Declaration], body)], + [], + false, + extensionType: typeof(Enumerable)); stringJoinExpression = StringSnippets.Join(Literal(delimiter), selectExpression); } else @@ -2028,25 +2029,32 @@ private MethodBodyStatement[] CreateEncodedArrayDeserializationStatements( createArrayStatement = variableExpression.Assign(conditionalExpression).Terminate(); } } - else if (elementType.IsEnum && !elementType.IsStruct && elementType.UnderlyingEnumType?.Equals(typeof(string)) == true) + else if (elementType.IsEnum && elementType.UnderlyingEnumType?.Equals(typeof(string)) == true) { - var splitExpression = new TernaryConditionalExpression( - isNullOrEmptyCheck, - New.Array(typeof(string)), - stringValueVar.As().Split(delimiterChar)); - var s = new VariableExpression(typeof(string), "s"); var trimmedS = s.Invoke(nameof(string.Trim)); + var parseExpression = elementType.ToEnum(trimmedS); - var parseExpression = Static(elementType).Invoke("Parse", trimmedS); - - var selectExpression = splitExpression.Invoke(nameof(Enumerable.Select), - new FuncExpression([s.Declaration], parseExpression)); + var splitAndParse = stringValueVar.As().Split(delimiterChar) + .Invoke(nameof(Enumerable.Select), new FuncExpression([s.Declaration], parseExpression)); - var finalExpression = propertyType.IsArray - ? selectExpression.Invoke(nameof(Enumerable.ToArray)) - : New.Instance(propertyType.PropertyInitializationType, selectExpression); - createArrayStatement = variableExpression.Assign(finalExpression).Terminate(); + if (propertyType.IsArray) + { + var conditionalExpression = new TernaryConditionalExpression( + isNullOrEmptyCheck, + New.Array(elementType), + splitAndParse.Invoke(nameof(Enumerable.ToArray))); + createArrayStatement = variableExpression.Assign(conditionalExpression).Terminate(); + } + else + { + var initType = propertyType.PropertyInitializationType; + var conditionalExpression = new TernaryConditionalExpression( + isNullOrEmptyCheck, + New.Instance(initType), + New.Instance(initType, splitAndParse.Invoke(nameof(Enumerable.ToList)).CastTo(new CSharpType(typeof(IList<>), elementType)))); + createArrayStatement = variableExpression.Assign(conditionalExpression).Terminate(); + } } else {