From 48290faebd08886701b320da9ba432997a53db06 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Fri, 21 Feb 2025 14:46:39 +0800 Subject: [PATCH 01/20] introduce the client type --- .../emitter/src/type/input-client.ts | 19 ---------------- .../emitter/src/type/input-type.ts | 22 +++++++++++++++++-- 2 files changed, 20 insertions(+), 21 deletions(-) delete mode 100644 packages/http-client-csharp/emitter/src/type/input-client.ts diff --git a/packages/http-client-csharp/emitter/src/type/input-client.ts b/packages/http-client-csharp/emitter/src/type/input-client.ts deleted file mode 100644 index 7867bc42ba6..00000000000 --- a/packages/http-client-csharp/emitter/src/type/input-client.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. - -import { DecoratorInfo } from "@azure-tools/typespec-client-generator-core"; -import { InputOperation } from "./input-operation.js"; -import { InputParameter } from "./input-parameter.js"; -import { Protocols } from "./protocols.js"; - -export interface InputClient { - Name: string; - Namespace: string; - Summary?: string; - Doc?: string; - Operations: InputOperation[]; - Protocol?: Protocols; - Parent?: string; - Parameters?: InputParameter[]; - Decorators?: DecoratorInfo[]; -} 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 d5f83708b43..3b3c832a701 100644 --- a/packages/http-client-csharp/emitter/src/type/input-type.ts +++ b/packages/http-client-csharp/emitter/src/type/input-type.ts @@ -9,13 +9,31 @@ import { UsageFlags, } from "@azure-tools/typespec-client-generator-core"; import { DateTimeKnownEncoding, DurationKnownEncoding } from "@typespec/compiler"; +import { InputOperation } from "./input-operation.js"; -interface InputTypeBase { +export interface InputClientType extends DecoratedType { + kind: "client"; + name: string; + namespace: string; + doc?: string; + summary?: string; + // clientInitialization: TODO; + operations: InputOperation[]; + apiVersions: string[]; + crossLanguageDefinitionId: string; + parent?: InputClientType; + children?: InputClientType[]; +} + +interface DecoratedType { + decorators?: DecoratorInfo[]; +} + +interface InputTypeBase extends DecoratedType { kind: string; summary?: string; doc?: string; deprecation?: string; - decorators?: DecoratorInfo[]; } export type InputType = From 6b30f7ee0f66e433a286b55389b97e80055cd8e1 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 3 Mar 2025 14:32:09 +0800 Subject: [PATCH 02/20] update accordingly, but operations we left empty --- .../http-client-csharp/emitter/src/emitter.ts | 1 + .../emitter/src/lib/client-converter.ts | 72 +++++ .../emitter/src/lib/client-model-builder.ts | 286 +++++++++--------- .../emitter/src/sdk-context.ts | 5 +- .../emitter/src/type/code-model.ts | 5 +- .../emitter/test/Unit/decorator-list.test.ts | 6 +- .../emitter/test/Unit/encode.test.ts | 6 +- .../emitter/test/Unit/input-parameter.test.ts | 72 ++--- .../emitter/test/Unit/property-type.test.ts | 10 +- .../emitter/test/Unit/scalar.test.ts | 2 +- .../emitter/test/Unit/string-format.test.ts | 2 +- .../emitter/test/Unit/utils/test-util.ts | 1 + 12 files changed, 265 insertions(+), 203 deletions(-) create mode 100644 packages/http-client-csharp/emitter/src/lib/client-converter.ts diff --git a/packages/http-client-csharp/emitter/src/emitter.ts b/packages/http-client-csharp/emitter/src/emitter.ts index 7d9a916a4e6..9c8ebdae682 100644 --- a/packages/http-client-csharp/emitter/src/emitter.ts +++ b/packages/http-client-csharp/emitter/src/emitter.ts @@ -73,6 +73,7 @@ export async function $onEmit(context: EmitContext) { logger: logger, __typeCache: { crossLanguageDefinitionIds: new Map(), + clients: new Map(), types: new Map(), models: new Map(), enums: new Map(), diff --git a/packages/http-client-csharp/emitter/src/lib/client-converter.ts b/packages/http-client-csharp/emitter/src/lib/client-converter.ts new file mode 100644 index 00000000000..093b85721bc --- /dev/null +++ b/packages/http-client-csharp/emitter/src/lib/client-converter.ts @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +import { SdkClientType as SdkClientTypeOfT, SdkHttpOperation } from "@azure-tools/typespec-client-generator-core"; +import { CSharpEmitterContext } from "../sdk-context.js"; +import { InputClientType } from "../type/input-type.js"; + +type SdkClientType = SdkClientTypeOfT; + +export function fromSdkClients( + sdkContext: CSharpEmitterContext, + clients: SdkClientType[], +): InputClientType[] { + const inputClients: InputClientType[] = []; + for (const client of clients) { + const inputClient = fromSdkClient(sdkContext, client); + inputClients.push(inputClient); + } + + return inputClients; +} + +function fromSdkClient(sdkContext: CSharpEmitterContext, client: SdkClientType): InputClientType { + let inputClient: InputClientType | undefined = sdkContext.__typeCache.clients.get(client); + if (inputClient) { + return inputClient; + } + + inputClient = { + kind: "client", + name: client.name, + namespace: client.namespace, + doc: client.doc, + summary: client.summary, + operations: [], + apiVersions: client.apiVersions, + crossLanguageDefinitionId: client.crossLanguageDefinitionId, + parent: undefined, + children: undefined, + }; + + updateSdkClientTypeReferences(sdkContext, client, inputClient); + + // fill operations - TODO + // fill parent + if (client.parent) { + const parent = fromSdkClient(sdkContext, client.parent); + inputClient.parent = parent; + } + // fill children + if (client.children) { + const children: InputClientType[] = []; + for (const child of client.children) { + children.push(fromSdkClient(sdkContext, child)); + } + inputClient.children = children; + } + + return inputClient; +} + +function updateSdkClientTypeReferences( + sdkContext: CSharpEmitterContext, + sdkClient: SdkClientType, + inputClient: InputClientType, +) { + sdkContext.__typeCache.clients.set(sdkClient, inputClient); + sdkContext.__typeCache.crossLanguageDefinitionIds.set( + sdkClient.crossLanguageDefinitionId, + sdkClient.__raw.type, + ); +} diff --git a/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts b/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts index b28a1af6044..f836fcb43de 100644 --- a/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts +++ b/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts @@ -2,25 +2,14 @@ // Licensed under the MIT License. See License.txt in the project root for license information. import { - SdkClientType, - SdkEndpointParameter, - SdkEndpointType, - SdkHttpOperation, - SdkServiceMethod, UsageFlags, } from "@azure-tools/typespec-client-generator-core"; import { NoTarget } from "@typespec/compiler"; import { CSharpEmitterContext } from "../sdk-context.js"; import { CodeModel } from "../type/code-model.js"; -import { InputClient } from "../type/input-client.js"; -import { InputOperationParameterKind } from "../type/input-operation-parameter-kind.js"; -import { InputParameter } from "../type/input-parameter.js"; -import { InputType } from "../type/input-type.js"; -import { RequestLocation } from "../type/request-location.js"; import { navigateModels } from "./model.js"; -import { fromSdkServiceMethod, getParameterDefaultValue } from "./operation-converter.js"; import { processServiceAuthentication } from "./service-authentication.js"; -import { fromSdkType } from "./type-converter.js"; +import { fromSdkClients } from "./client-converter.js"; /** * Creates the code model from the SDK context. @@ -35,7 +24,7 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { const sdkApiVersionEnums = sdkPackage.enums.filter((e) => e.usage === UsageFlags.ApiVersionEnum); - const rootClients = sdkPackage.clients.filter((c) => c.initialization.access === "public"); + const rootClients = sdkPackage.clients; if (rootClients.length === 0) { sdkContext.logger.reportDiagnostic({ code: "no-root-client", @@ -50,8 +39,7 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { ? sdkApiVersionEnums[0].values.map((v) => v.value as string).flat() : rootClients[0].apiVersions; - const inputClients: InputClient[] = []; - fromSdkClients(rootClients, inputClients, []); + const inputClients = fromSdkClients(sdkContext, rootClients); const clientModel: CodeModel = { // rootNamespace is really coalescing the `package-name` option and the first namespace found. @@ -65,142 +53,142 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { return clientModel; - function fromSdkClients( - clients: SdkClientType[], - inputClients: InputClient[], - parentClientNames: string[], - ) { - for (const client of clients) { - const inputClient = fromSdkClient(client, parentClientNames); - inputClients.push(inputClient); - const subClients = client.methods - .filter((m) => m.kind === "clientaccessor") - .map((m) => m.response as SdkClientType); - parentClientNames.push(inputClient.Name); - fromSdkClients(subClients, inputClients, parentClientNames); - parentClientNames.pop(); - } - } - - function fromSdkClient( - client: SdkClientType, - parentNames: string[], - ): InputClient { - const endpointParameter = client.initialization.properties.find( - (p) => p.kind === "endpoint", - ) as SdkEndpointParameter; - const uri = getMethodUri(endpointParameter); - const clientParameters = fromSdkEndpointParameter(endpointParameter); - const clientName = getClientName(client, parentNames); - - sdkContext.__typeCache.crossLanguageDefinitionIds.set( - client.crossLanguageDefinitionId, - client.__raw.type, - ); - return { - Name: clientName, - Namespace: client.namespace, - Summary: client.summary, - Doc: client.doc, - Operations: client.methods - .filter((m) => m.kind !== "clientaccessor") - .map((m) => - fromSdkServiceMethod( - sdkContext, - m as SdkServiceMethod, - uri, - rootApiVersions, - ), - ), - Protocol: {}, - Parent: parentNames.length > 0 ? parentNames[parentNames.length - 1] : undefined, - Parameters: clientParameters, - Decorators: client.decorators, - CrossLanguageDefinitionId: client.crossLanguageDefinitionId, - }; - } - - function getClientName( - client: SdkClientType, - parentClientNames: string[], - ): string { - const clientName = client.name; - - if (parentClientNames.length === 0) return clientName; - if (parentClientNames.length >= 2) - return `${parentClientNames.slice(parentClientNames.length - 1).join("")}${clientName}`; - - return clientName; - } - - function fromSdkEndpointParameter(p: SdkEndpointParameter): InputParameter[] { - if (p.type.kind === "union") { - return fromSdkEndpointType(p.type.variantTypes[0]); - } else { - return fromSdkEndpointType(p.type); - } - } - - function fromSdkEndpointType(type: SdkEndpointType): InputParameter[] { - // TODO: support free-style endpoint url with multiple parameters - const endpointExpr = type.serverUrl - .replace("https://", "") - .replace("http://", "") - .split("/")[0]; - if (!/^\{\w+\}$/.test(endpointExpr)) { - sdkContext.logger.reportDiagnostic({ - code: "unsupported-endpoint-url", - format: { endpoint: type.serverUrl }, - target: NoTarget, - }); - return []; - } - const endpointVariableName = endpointExpr.substring(1, endpointExpr.length - 1); - - const parameters: InputParameter[] = []; - for (const parameter of type.templateArguments) { - const isEndpoint = parameter.name === endpointVariableName; - const parameterType: InputType = isEndpoint - ? { - kind: "url", - name: "url", - crossLanguageDefinitionId: "TypeSpec.url", - } - : fromSdkType(sdkContext, parameter.type); // TODO: consolidate with converter.fromSdkEndpointType - parameters.push({ - Name: parameter.name, - NameInRequest: parameter.serializedName, - Summary: parameter.summary, - Doc: parameter.doc, - // TODO: we should do the magic in generator - Type: parameterType, - Location: RequestLocation.Uri, - IsApiVersion: parameter.isApiVersionParam, - IsResourceParameter: false, - IsContentType: false, - IsRequired: !parameter.optional, - IsEndpoint: isEndpoint, - SkipUrlEncoding: false, - Explode: false, - Kind: InputOperationParameterKind.Client, - DefaultValue: getParameterDefaultValue( - sdkContext, - parameter.clientDefaultValue, - parameterType, - ), - }); - } - return parameters; - } + // function fromSdkClients( + // clients: SdkClientType[], + // inputClients: InputClient[], + // parentClientNames: string[], + // ) { + // for (const client of clients) { + // const inputClient = fromSdkClient(client, parentClientNames); + // inputClients.push(inputClient); + // const subClients = client.methods + // .filter((m) => m.kind === "clientaccessor") + // .map((m) => m.response as SdkClientType); + // parentClientNames.push(inputClient.Name); + // fromSdkClients(subClients, inputClients, parentClientNames); + // parentClientNames.pop(); + // } + // } + + // function fromSdkClient( + // client: SdkClientType, + // parentNames: string[], + // ): InputClient { + // const endpointParameter = client.initialization.properties.find( + // (p) => p.kind === "endpoint", + // ) as SdkEndpointParameter; + // const uri = getMethodUri(endpointParameter); + // const clientParameters = fromSdkEndpointParameter(endpointParameter); + // const clientName = getClientName(client, parentNames); + + // sdkContext.__typeCache.crossLanguageDefinitionIds.set( + // client.crossLanguageDefinitionId, + // client.__raw.type, + // ); + // return { + // Name: clientName, + // Namespace: client.namespace, + // Summary: client.summary, + // Doc: client.doc, + // Operations: client.methods + // .filter((m) => m.kind !== "clientaccessor") + // .map((m) => + // fromSdkServiceMethod( + // sdkContext, + // m as SdkServiceMethod, + // uri, + // rootApiVersions, + // ), + // ), + // Protocol: {}, + // Parent: parentNames.length > 0 ? parentNames[parentNames.length - 1] : undefined, + // Parameters: clientParameters, + // Decorators: client.decorators, + // CrossLanguageDefinitionId: client.crossLanguageDefinitionId, + // }; + // } + + // function getClientName( + // client: SdkClientType, + // parentClientNames: string[], + // ): string { + // const clientName = client.name; + + // if (parentClientNames.length === 0) return clientName; + // if (parentClientNames.length >= 2) + // return `${parentClientNames.slice(parentClientNames.length - 1).join("")}${clientName}`; + + // return clientName; + // } + + // function fromSdkEndpointParameter(p: SdkEndpointParameter): InputParameter[] { + // if (p.type.kind === "union") { + // return fromSdkEndpointType(p.type.variantTypes[0]); + // } else { + // return fromSdkEndpointType(p.type); + // } + // } + + // function fromSdkEndpointType(type: SdkEndpointType): InputParameter[] { + // // TODO: support free-style endpoint url with multiple parameters + // const endpointExpr = type.serverUrl + // .replace("https://", "") + // .replace("http://", "") + // .split("/")[0]; + // if (!/^\{\w+\}$/.test(endpointExpr)) { + // sdkContext.logger.reportDiagnostic({ + // code: "unsupported-endpoint-url", + // format: { endpoint: type.serverUrl }, + // target: NoTarget, + // }); + // return []; + // } + // const endpointVariableName = endpointExpr.substring(1, endpointExpr.length - 1); + + // const parameters: InputParameter[] = []; + // for (const parameter of type.templateArguments) { + // const isEndpoint = parameter.name === endpointVariableName; + // const parameterType: InputType = isEndpoint + // ? { + // kind: "url", + // name: "url", + // crossLanguageDefinitionId: "TypeSpec.url", + // } + // : fromSdkType(sdkContext, parameter.type); // TODO: consolidate with converter.fromSdkEndpointType + // parameters.push({ + // Name: parameter.name, + // NameInRequest: parameter.serializedName, + // Summary: parameter.summary, + // Doc: parameter.doc, + // // TODO: we should do the magic in generator + // Type: parameterType, + // Location: RequestLocation.Uri, + // IsApiVersion: parameter.isApiVersionParam, + // IsResourceParameter: false, + // IsContentType: false, + // IsRequired: !parameter.optional, + // IsEndpoint: isEndpoint, + // SkipUrlEncoding: false, + // Explode: false, + // Kind: InputOperationParameterKind.Client, + // DefaultValue: getParameterDefaultValue( + // sdkContext, + // parameter.clientDefaultValue, + // parameterType, + // ), + // }); + // } + // return parameters; + // } } -function getMethodUri(p: SdkEndpointParameter | undefined): string { - if (!p) return ""; +// function getMethodUri(p: SdkEndpointParameter | undefined): string { +// if (!p) return ""; - if (p.type.kind === "endpoint" && p.type.templateArguments.length > 0) return p.type.serverUrl; +// if (p.type.kind === "endpoint" && p.type.templateArguments.length > 0) return p.type.serverUrl; - if (p.type.kind === "union" && p.type.variantTypes.length > 0) - return (p.type.variantTypes[0] as SdkEndpointType).serverUrl; +// if (p.type.kind === "union" && p.type.variantTypes.length > 0) +// return (p.type.variantTypes[0] as SdkEndpointType).serverUrl; - return `{${p.name}}`; -} +// return `{${p.name}}`; +// } diff --git a/packages/http-client-csharp/emitter/src/sdk-context.ts b/packages/http-client-csharp/emitter/src/sdk-context.ts index 17af9301b02..ef057dd2dcb 100644 --- a/packages/http-client-csharp/emitter/src/sdk-context.ts +++ b/packages/http-client-csharp/emitter/src/sdk-context.ts @@ -1,11 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { SdkContext, SdkType } from "@azure-tools/typespec-client-generator-core"; +import { SdkClientType, SdkContext, SdkHttpOperation, SdkType } from "@azure-tools/typespec-client-generator-core"; import { Type } from "@typespec/compiler"; import { Logger } from "./lib/logger.js"; import { CSharpEmitterOptions } from "./options.js"; -import { InputEnumType, InputModelType, InputType } from "./type/input-type.js"; +import { InputClientType, InputEnumType, InputModelType, InputType } from "./type/input-type.js"; /** * The emitter context for the CSharp emitter. @@ -18,6 +18,7 @@ export interface CSharpEmitterContext extends SdkContext { export interface SdkTypeMap { crossLanguageDefinitionIds: Map; + clients: Map, InputClientType>; types: Map; models: Map; enums: Map; diff --git a/packages/http-client-csharp/emitter/src/type/code-model.ts b/packages/http-client-csharp/emitter/src/type/code-model.ts index b2efbf54ec9..bb2e732e806 100644 --- a/packages/http-client-csharp/emitter/src/type/code-model.ts +++ b/packages/http-client-csharp/emitter/src/type/code-model.ts @@ -2,14 +2,13 @@ // Licensed under the MIT License. See License.txt in the project root for license information. import { InputAuth } from "./input-auth.js"; -import { InputClient } from "./input-client.js"; -import { InputEnumType, InputModelType } from "./input-type.js"; +import { InputClientType, InputEnumType, InputModelType } from "./input-type.js"; export interface CodeModel { Name: string; ApiVersions: string[]; Enums: InputEnumType[]; Models: InputModelType[]; - Clients: InputClient[]; + Clients: InputClientType[]; Auth?: InputAuth; } diff --git a/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts b/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts index 5075de01402..c6a75ca27b9 100644 --- a/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts +++ b/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts @@ -34,7 +34,7 @@ describe("Test emitting decorator list", () => { const root = createModel(sdkContext); const clients = root.Clients; strictEqual(clients.length, 2); - deepStrictEqual(clients[1].Decorators, [ + deepStrictEqual(clients[1].decorators, [ { name: "Azure.ClientGenerator.Core.@clientName", arguments: { @@ -61,7 +61,7 @@ describe("Test emitting decorator list", () => { additionalDecorators: ["Azure\\.ClientGenerator\\.Core\\.@clientName"], }); const root = createModel(sdkContext); - const operations = root.Clients[0].Operations; + const operations = root.Clients[0].operations; strictEqual(operations.length, 1); deepStrictEqual(operations[0].Decorators, [ { @@ -147,7 +147,7 @@ describe("Test emitting decorator list", () => { additionalDecorators: ["Azure\\.ClientGenerator\\.Core\\.@clientName"], }); const root = createModel(sdkContext); - const operations = root.Clients[0].Operations; + const operations = root.Clients[0].operations; strictEqual(operations.length, 1); const idParameters = operations[0].Parameters.filter((p) => p.Name === "ClientId"); strictEqual(idParameters.length, 1); diff --git a/packages/http-client-csharp/emitter/test/Unit/encode.test.ts b/packages/http-client-csharp/emitter/test/Unit/encode.test.ts index b3783713c4d..b6510904333 100644 --- a/packages/http-client-csharp/emitter/test/Unit/encode.test.ts +++ b/packages/http-client-csharp/emitter/test/Unit/encode.test.ts @@ -30,7 +30,7 @@ describe("Test encode duration", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "input", ); strictEqual(1, inputParamArray.length); @@ -59,7 +59,7 @@ describe("Test encode duration", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "input", ); strictEqual(1, inputParamArray.length); @@ -88,7 +88,7 @@ describe("Test encode duration", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "input", ); strictEqual(1, inputParamArray.length); diff --git a/packages/http-client-csharp/emitter/test/Unit/input-parameter.test.ts b/packages/http-client-csharp/emitter/test/Unit/input-parameter.test.ts index 5cf16378c54..b32312776c6 100644 --- a/packages/http-client-csharp/emitter/test/Unit/input-parameter.test.ts +++ b/packages/http-client-csharp/emitter/test/Unit/input-parameter.test.ts @@ -34,10 +34,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/primitive{param}"); strictEqual(1, inputParamArray.length); @@ -65,10 +65,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/array{param}"); strictEqual(1, inputParamArray.length); @@ -96,10 +96,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/record{param}"); strictEqual(1, inputParamArray.length); @@ -129,10 +129,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/primitive{param}"); strictEqual(1, inputParamArray.length); @@ -160,10 +160,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/array{param}"); strictEqual(1, inputParamArray.length); @@ -191,10 +191,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/record{param}"); strictEqual(1, inputParamArray.length); @@ -224,10 +224,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/primitive{param}"); strictEqual(1, inputParamArray.length); @@ -255,10 +255,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/array{param}"); strictEqual(1, inputParamArray.length); @@ -286,10 +286,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/record{param}"); strictEqual(1, inputParamArray.length); @@ -319,10 +319,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/primitive{param}"); strictEqual(1, inputParamArray.length); @@ -350,10 +350,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/array{param}"); strictEqual(1, inputParamArray.length); @@ -381,10 +381,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/record{param}"); strictEqual(1, inputParamArray.length); @@ -416,10 +416,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/primitive"); strictEqual(1, inputParamArray.length); @@ -447,10 +447,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/array"); strictEqual(1, inputParamArray.length); @@ -478,10 +478,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/record"); strictEqual(1, inputParamArray.length); @@ -511,10 +511,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/primitive?fixed=true"); strictEqual(1, inputParamArray.length); @@ -542,10 +542,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/array?fixed=true"); strictEqual(1, inputParamArray.length); @@ -573,10 +573,10 @@ describe("Test Parameter Explode", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "param", ); - const route = root.Clients[0].Operations[0].Path; + const route = root.Clients[0].operations[0].Path; strictEqual(route, "/record?fixed=true"); strictEqual(1, inputParamArray.length); diff --git a/packages/http-client-csharp/emitter/test/Unit/property-type.test.ts b/packages/http-client-csharp/emitter/test/Unit/property-type.test.ts index ffbfaa6d609..e1dc08f184c 100644 --- a/packages/http-client-csharp/emitter/test/Unit/property-type.test.ts +++ b/packages/http-client-csharp/emitter/test/Unit/property-type.test.ts @@ -27,7 +27,7 @@ describe("Test GetInputType for array", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "input", ); strictEqual(1, inputParamArray.length); @@ -48,7 +48,7 @@ describe("Test GetInputType for array", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const bodyType = root.Clients[0].Operations[0].Responses[0].BodyType; + const bodyType = root.Clients[0].operations[0].Responses[0].BodyType; strictEqual(bodyType?.kind, "array"); strictEqual(bodyType.crossLanguageDefinitionId, "TypeSpec.Array"); strictEqual(bodyType.valueType.kind, "string"); @@ -87,7 +87,7 @@ describe("Test GetInputType for enum", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "input", ); strictEqual(1, inputParamArray.length); @@ -133,7 +133,7 @@ describe("Test GetInputType for enum", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "input", ); strictEqual(1, inputParamArray.length); @@ -172,7 +172,7 @@ describe("Test GetInputType for enum", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "input", ); strictEqual(1, inputParamArray.length); diff --git a/packages/http-client-csharp/emitter/test/Unit/scalar.test.ts b/packages/http-client-csharp/emitter/test/Unit/scalar.test.ts index a0f9ae58e00..558badb79b2 100644 --- a/packages/http-client-csharp/emitter/test/Unit/scalar.test.ts +++ b/packages/http-client-csharp/emitter/test/Unit/scalar.test.ts @@ -27,7 +27,7 @@ describe("Test GetInputType for scalar", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "location", ); strictEqual(1, inputParamArray.length); diff --git a/packages/http-client-csharp/emitter/test/Unit/string-format.test.ts b/packages/http-client-csharp/emitter/test/Unit/string-format.test.ts index 425268957f2..ec1b4fe0a07 100644 --- a/packages/http-client-csharp/emitter/test/Unit/string-format.test.ts +++ b/packages/http-client-csharp/emitter/test/Unit/string-format.test.ts @@ -26,7 +26,7 @@ describe("Test string format", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const inputParamArray = root.Clients[0].Operations[0].Parameters.filter( + const inputParamArray = root.Clients[0].operations[0].Parameters.filter( (p) => p.Name === "sourceUrl", ); strictEqual(1, inputParamArray.length); diff --git a/packages/http-client-csharp/emitter/test/Unit/utils/test-util.ts b/packages/http-client-csharp/emitter/test/Unit/utils/test-util.ts index 953ab1f5202..fa091ec13f0 100644 --- a/packages/http-client-csharp/emitter/test/Unit/utils/test-util.ts +++ b/packages/http-client-csharp/emitter/test/Unit/utils/test-util.ts @@ -119,6 +119,7 @@ export async function createCSharpSdkContext( logger: new Logger(program.program, LoggerLevel.INFO), __typeCache: { crossLanguageDefinitionIds: new Map(), + clients: new Map(), types: new Map(), models: new Map(), enums: new Map(), From ed297f574887c82cbb73c87b1b8391e82d086271 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 3 Mar 2025 14:42:42 +0800 Subject: [PATCH 03/20] update deserialization accordingly --- .../TypeSpecInputClientConverter.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs index 4557da36b99..a8cb56c592e 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs @@ -46,15 +46,16 @@ public override void Write(Utf8JsonWriter writer, InputClient value, JsonSeriali while (reader.TokenType != JsonTokenType.EndObject) { - var isKnownProperty = reader.TryReadString(nameof(InputClient.Name), ref name) - || reader.TryReadString("Namespace", ref @namespace) - || reader.TryReadString("Summary", ref summary) - || reader.TryReadString("Doc", ref doc) - || reader.TryReadWithConverter(nameof(InputClient.Operations), options, ref operations) - || reader.TryReadWithConverter(nameof(InputClient.Parameters), options, ref parameters) - || reader.TryReadString(nameof(InputClient.Parent), ref parent) - || reader.TryReadWithConverter(nameof(InputClient.Decorators), options, ref decorators) - || reader.TryReadString("CrossLanguageDefinitionId", ref crossLanguageDefinitionId); + var isKnownProperty = reader.TryReadString("name", ref name) + || reader.TryReadString("namespace", ref @namespace) + || reader.TryReadString("summary", ref summary) + || reader.TryReadString("doc", ref doc) + || reader.TryReadWithConverter("operations", options, ref operations) + || reader.TryReadWithConverter("parameters", options, ref parameters) + || reader.TryReadWithConverter("decorators", options, ref decorators) + || reader.TryReadString("crossLanguageDefinitionId", ref crossLanguageDefinitionId); + //|| reader.TryReadWithConverter("parent", options, ref parent) + //|| reader.TryReadWithConverter("children", options, ref children) if (!isKnownProperty) { From 086a72028ba024cca9bdbe5ad83a5b487c92d4b2 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 3 Mar 2025 15:46:41 +0800 Subject: [PATCH 04/20] update around parent client --- .../emitter/src/lib/client-converter.ts | 5 +- .../emitter/src/lib/client-model-builder.ts | 6 +- .../emitter/src/sdk-context.ts | 7 +- .../src/Providers/ClientProvider.cs | 59 +- .../src/ScmOutputLibrary.cs | 35 +- .../src/InputTypes/InputClient.cs | 8 +- .../TypeSpecInputClientConverter.cs | 12 +- .../Unbranded-TypeSpec/tspCodeModel.json | 1841 +---------------- .../structure/default/tspCodeModel.json | 668 +----- 9 files changed, 173 insertions(+), 2468 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/lib/client-converter.ts b/packages/http-client-csharp/emitter/src/lib/client-converter.ts index 093b85721bc..b386d32eab7 100644 --- a/packages/http-client-csharp/emitter/src/lib/client-converter.ts +++ b/packages/http-client-csharp/emitter/src/lib/client-converter.ts @@ -1,7 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { SdkClientType as SdkClientTypeOfT, SdkHttpOperation } from "@azure-tools/typespec-client-generator-core"; +import { + SdkClientType as SdkClientTypeOfT, + SdkHttpOperation, +} from "@azure-tools/typespec-client-generator-core"; import { CSharpEmitterContext } from "../sdk-context.js"; import { InputClientType } from "../type/input-type.js"; diff --git a/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts b/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts index f836fcb43de..271b67c9b8f 100644 --- a/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts +++ b/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts @@ -1,15 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { - UsageFlags, -} from "@azure-tools/typespec-client-generator-core"; +import { UsageFlags } from "@azure-tools/typespec-client-generator-core"; import { NoTarget } from "@typespec/compiler"; import { CSharpEmitterContext } from "../sdk-context.js"; import { CodeModel } from "../type/code-model.js"; +import { fromSdkClients } from "./client-converter.js"; import { navigateModels } from "./model.js"; import { processServiceAuthentication } from "./service-authentication.js"; -import { fromSdkClients } from "./client-converter.js"; /** * Creates the code model from the SDK context. diff --git a/packages/http-client-csharp/emitter/src/sdk-context.ts b/packages/http-client-csharp/emitter/src/sdk-context.ts index ef057dd2dcb..38e111110fa 100644 --- a/packages/http-client-csharp/emitter/src/sdk-context.ts +++ b/packages/http-client-csharp/emitter/src/sdk-context.ts @@ -1,7 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { SdkClientType, SdkContext, SdkHttpOperation, SdkType } from "@azure-tools/typespec-client-generator-core"; +import { + SdkClientType, + SdkContext, + SdkHttpOperation, + SdkType, +} from "@azure-tools/typespec-client-generator-core"; import { Type } from "@typespec/compiler"; import { Logger } from "./lib/logger.js"; import { CSharpEmitterOptions } from "./options.js"; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs index ce62c030157..f52b8b49f98 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Text; using System.Threading; using Microsoft.TypeSpec.Generator.ClientModel.Primitives; using Microsoft.TypeSpec.Generator.EmitterRpc; @@ -36,6 +37,9 @@ private record OAuth2Fields(FieldProvider AuthField, FieldProvider Authorization private readonly InputClient _inputClient; private readonly InputAuth? _inputAuth; private readonly ParameterProvider _endpointParameter; + /// + /// This field is not one of the fields in this client, but the field in my parent client to get myself. + /// private readonly FieldProvider? _clientCachingField; private readonly ApiKeyFields? _apiKeyAuthFields; @@ -232,7 +236,45 @@ private IReadOnlyList GetClientParameters() protected override string BuildRelativeFilePath() => Path.Combine("src", "Generated", $"{Name}.cs"); - protected override string BuildName() => _inputClient.Name.ToCleanName(); + protected override string BuildName() + { + var myName = _inputClient.Name.ToCleanName(); + if (_inputClient.Parent == null) + { + // if this client does not have a parent, it is a toplevel client + return myName; + } + + var parents = new List(); + var parent = _inputClient.Parent; + while (parent != null) + { + parents.Add(parent); + parent = parent.Parent; + } + + // General rule for client name: + // We alaways concat all its parents' name together as the prefix of the client name, but we exclude the root client's name. + // Therefore: + // for the first level children, its client name is its original name + // for deeper children, we add its parents' name as the prefix until the root (excluded) + + if (parents.Count >= 2) + { + // when this client is more than second level client (its parent is not the root client), + // we concat all its parents' name together as the client name prefix, but exclude the root client's name. + var clientName = new StringBuilder(); + for (int i = parents.Count - 2; i >= 0; i--) + { + clientName.Append(parents[i].Name.ToCleanName()); + } + clientName.Append(myName); + return clientName.ToString(); + } + + // when this client is the first level client (its parent is the root client), we just use its name + return myName; + } protected override FieldProvider[] BuildFields() { @@ -597,19 +639,14 @@ private ParameterProvider BuildClientEndpointParameter() private IReadOnlyList GetSubClients() { - var inputClients = ScmCodeModelPlugin.Instance.InputLibrary.InputNamespace.Clients; - var subClients = new List(inputClients.Count); + var subClients = new List(_inputClient.Children.Count); - foreach (var client in inputClients) + foreach (var client in _inputClient.Children) { - // add direct child clients - if (client.Parent != null && client.Parent == _inputClient.Key) + var subClient = ScmCodeModelPlugin.Instance.TypeFactory.CreateClient(client); + if (subClient != null) { - var subClient = ScmCodeModelPlugin.Instance.TypeFactory.CreateClient(client); - if (subClient != null) - { - subClients.Add(subClient); - } + subClients.Add(subClient); } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmOutputLibrary.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmOutputLibrary.cs index cc3d5b3b575..e216f412db2 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmOutputLibrary.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmOutputLibrary.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using Microsoft.TypeSpec.Generator.ClientModel.Providers; +using Microsoft.TypeSpec.Generator.Input; using Microsoft.TypeSpec.Generator.Providers; namespace Microsoft.TypeSpec.Generator.ClientModel @@ -15,23 +16,33 @@ private static TypeProvider[] BuildClients() var clients = new List(inputClients.Count * 3); foreach (var inputClient in inputClients) { - var client = ScmCodeModelPlugin.Instance.TypeFactory.CreateClient(inputClient); - if (client == null) - { - continue; - } - clients.Add(client); - clients.Add(client.RestClient); - var clientOptions = client.ClientOptions.Value; - if (clientOptions != null) - { - clients.Add(clientOptions); - } + BuildClient(inputClient, clients); } return [.. clients]; } + private static void BuildClient(InputClient inputClient, IList clients) + { + var client = ScmCodeModelPlugin.Instance.TypeFactory.CreateClient(inputClient); + if (client == null) + { + return; + } + clients.Add(client); + clients.Add(client.RestClient); + var clientOptions = client.ClientOptions.Value; + if (clientOptions != null) + { + clients.Add(clientOptions); + } + + foreach (var child in inputClient.Children) + { + BuildClient(child, clients); + } + } + protected override TypeProvider[] BuildTypeProviders() { var baseTypes = base.BuildTypeProviders(); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs index e8059ce4d51..264a208fcdb 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs @@ -11,7 +11,7 @@ public class InputClient private readonly string? _key; private IReadOnlyDictionary? _examples; - public InputClient(string name, string @namespace, string crossLanguageDefinitionId, string? summary, string? doc, IReadOnlyList operations, IReadOnlyList parameters, string? parent) + public InputClient(string name, string @namespace, string crossLanguageDefinitionId, string? summary, string? doc, IReadOnlyList operations, IReadOnlyList parameters, InputClient? parent, IReadOnlyList? children) { Name = name; Namespace = @namespace; @@ -21,9 +21,10 @@ public InputClient(string name, string @namespace, string crossLanguageDefinitio Operations = operations; Parameters = parameters; Parent = parent; + Children = children ?? []; } - public InputClient() : this(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, Array.Empty(), Array.Empty(), null) { } + public InputClient() : this(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, Array.Empty(), Array.Empty(), null, null) { } public string Name { get; internal set; } public string Namespace { get; internal set; } @@ -32,7 +33,8 @@ public InputClient() : this(string.Empty, string.Empty, string.Empty, string.Emp public string? Doc { get; internal set; } public IReadOnlyList Operations { get; internal set; } public IReadOnlyList Parameters { get; internal set; } - public string? Parent { get; internal set; } + public InputClient? Parent { get; internal set; } + public IReadOnlyList Children { get; internal set; } public IReadOnlyList Decorators { get; internal set; } = new List(); public string Key diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs index a8cb56c592e..252e0e049ff 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs @@ -41,8 +41,9 @@ public override void Write(Utf8JsonWriter writer, InputClient value, JsonSeriali IReadOnlyList? operations = null; IReadOnlyList? parameters = null; IReadOnlyList? decorators = null; - string? parent = null; string? crossLanguageDefinitionId = null; + InputClient? parent = null; + IReadOnlyList? children = null; while (reader.TokenType != JsonTokenType.EndObject) { @@ -53,9 +54,9 @@ public override void Write(Utf8JsonWriter writer, InputClient value, JsonSeriali || reader.TryReadWithConverter("operations", options, ref operations) || reader.TryReadWithConverter("parameters", options, ref parameters) || reader.TryReadWithConverter("decorators", options, ref decorators) - || reader.TryReadString("crossLanguageDefinitionId", ref crossLanguageDefinitionId); - //|| reader.TryReadWithConverter("parent", options, ref parent) - //|| reader.TryReadWithConverter("children", options, ref children) + || reader.TryReadString("crossLanguageDefinitionId", ref crossLanguageDefinitionId) + || reader.TryReadWithConverter("parent", options, ref parent) + || reader.TryReadWithConverter("children", options, ref children); if (!isKnownProperty) { @@ -70,8 +71,9 @@ public override void Write(Utf8JsonWriter writer, InputClient value, JsonSeriali client.Doc = doc; client.Operations = operations ?? []; client.Parameters = parameters ?? []; - client.Parent = parent; client.Decorators = decorators ?? []; + client.Parent = parent; + client.Children = children ?? []; var lastSegment = GetLastSegment(client.Namespace); if (lastSegment == client.Name) diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json index 293e99de8e8..2539295bb40 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json @@ -2236,1841 +2236,22 @@ "Clients": [ { "$id": "285", - "Name": "UnbrandedTypeSpecClient", - "Namespace": "UnbrandedTypeSpec", - "Doc": "This is a sample typespec project.", - "Operations": [ - { - "$id": "286", - "Name": "sayHi", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "Return hi", - "Accessibility": "public", - "Parameters": [ - { - "$id": "287", - "Name": "headParameter", - "NameInRequest": "head-parameter", - "Type": { - "$id": "288", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "289", - "Name": "queryParameter", - "NameInRequest": "queryParameter", - "Type": { - "$id": "290", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "291", - "Name": "optionalQuery", - "NameInRequest": "optionalQuery", - "Type": { - "$id": "292", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": false, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "293", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "294", - "kind": "constant", - "valueType": { - "$id": "295", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "296", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "90" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/hello", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.sayHi", - "Decorators": [] - }, - { - "$id": "297", - "Name": "helloAgain", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "Return hi again", - "Accessibility": "public", - "Parameters": [ - { - "$id": "298", - "Name": "p1", - "NameInRequest": "p1", - "Type": { - "$id": "299", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "300", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "301", - "kind": "constant", - "valueType": { - "$id": "302", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "303", - "Name": "p2", - "NameInRequest": "p2", - "Type": { - "$id": "304", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "305", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "306", - "kind": "constant", - "valueType": { - "$id": "307", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "308", - "Name": "action", - "NameInRequest": "action", - "Type": { - "$ref": "163" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "309", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "163" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "Json", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/againHi/{p2}", - "RequestMediaTypes": [ - "text/plain" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.helloAgain", - "Decorators": [] - }, - { - "$id": "310", - "Name": "noContentType", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "Return hi again", - "Accessibility": "public", - "Parameters": [ - { - "$id": "311", - "Name": "p1", - "NameInRequest": "p1", - "Type": { - "$id": "312", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "313", - "Name": "p2", - "NameInRequest": "p2", - "Type": { - "$id": "314", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "315", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "316", - "kind": "constant", - "valueType": { - "$id": "317", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "318", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "319", - "kind": "constant", - "valueType": { - "$id": "320", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "321", - "Name": "action", - "NameInRequest": "action", - "Type": { - "$ref": "163" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "322", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "163" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "Json", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/noContentType/{p2}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.noContentType", - "Decorators": [] - }, - { - "$id": "323", - "Name": "helloDemo2", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "Return hi in demo2", - "Accessibility": "public", - "Parameters": [ - { - "$id": "324", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "325", - "kind": "constant", - "valueType": { - "$id": "326", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "327", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "90" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/demoHi", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.helloDemo2", - "Decorators": [] - }, - { - "$id": "328", - "Name": "createLiteral", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "Create with literal value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "329", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "330", - "kind": "constant", - "valueType": { - "$id": "331", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "332", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "333", - "kind": "constant", - "valueType": { - "$id": "334", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "335", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "90" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "336", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "90" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.createLiteral", - "Decorators": [] - }, - { - "$id": "337", - "Name": "helloLiteral", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "Send literal parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "338", - "Name": "p1", - "NameInRequest": "p1", - "Type": { - "$id": "339", - "kind": "constant", - "valueType": { - "$id": "340", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "test", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "341", - "Name": "p2", - "NameInRequest": "p2", - "Type": { - "$id": "342", - "kind": "constant", - "valueType": { - "$id": "343", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "value": 123, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "344", - "Name": "p3", - "NameInRequest": "p3", - "Type": { - "$id": "345", - "kind": "constant", - "valueType": { - "$id": "346", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "value": true, - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "347", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "348", - "kind": "constant", - "valueType": { - "$id": "349", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "350", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "90" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/helloLiteral/{p2}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.helloLiteral", - "Decorators": [] - }, - { - "$id": "351", - "Name": "topAction", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "top level method", - "Accessibility": "public", - "Parameters": [ - { - "$id": "352", - "Name": "action", - "NameInRequest": "action", - "Type": { - "$id": "353", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "354", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "355", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "356", - "kind": "constant", - "valueType": { - "$id": "357", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "358", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "90" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/top/{action}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.topAction", - "Decorators": [] - }, - { - "$id": "359", - "Name": "topAction2", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "top level method2", - "Accessibility": "public", - "Parameters": [ - { - "$id": "360", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "361", - "kind": "constant", - "valueType": { - "$id": "362", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "363", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "90" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/top2", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.topAction2", - "Decorators": [] - }, - { - "$id": "364", - "Name": "patchAction", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "top level patch", - "Accessibility": "public", - "Parameters": [ - { - "$id": "365", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "366", - "kind": "constant", - "valueType": { - "$id": "367", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "368", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "369", - "kind": "constant", - "valueType": { - "$id": "370", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "371", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "90" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "372", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "90" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/patch", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.patchAction", - "Decorators": [] - }, - { - "$id": "373", - "Name": "anonymousBody", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "body parameter without body decorator", - "Accessibility": "public", - "Parameters": [ - { - "$id": "374", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "375", - "kind": "constant", - "valueType": { - "$id": "376", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "377", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "378", - "kind": "constant", - "valueType": { - "$id": "379", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "380", - "Name": "thing", - "NameInRequest": "thing", - "Type": { - "$ref": "90" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "381", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "90" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/anonymousBody", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.anonymousBody", - "Decorators": [] - }, - { - "$id": "382", - "Name": "friendlyModel", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "Model can have its friendly name", - "Accessibility": "public", - "Parameters": [ - { - "$id": "383", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "384", - "kind": "constant", - "valueType": { - "$id": "385", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "386", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "387", - "kind": "constant", - "valueType": { - "$id": "388", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "389", - "Name": "friend", - "NameInRequest": "friend", - "Type": { - "$ref": "274" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "390", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "274" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/friendlyName", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.friendlyModel", - "Decorators": [] - }, - { - "$id": "391", - "Name": "addTimeHeader", - "ResourceName": "UnbrandedTypeSpec", - "Accessibility": "public", - "Parameters": [ - { - "$id": "392", - "Name": "repeatabilityFirstSent", - "NameInRequest": "Repeatability-First-Sent", - "Type": { - "$id": "393", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "394", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": false, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "395", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.addTimeHeader", - "Decorators": [] - }, - { - "$id": "396", - "Name": "projectedNameModel", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "Model can have its projected name", - "Accessibility": "public", - "Parameters": [ - { - "$id": "397", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "398", - "kind": "constant", - "valueType": { - "$id": "399", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "400", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "401", - "kind": "constant", - "valueType": { - "$id": "402", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "403", - "Name": "projectedModel", - "NameInRequest": "projectedModel", - "Type": { - "$ref": "279" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "404", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "279" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/projectedName", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.projectedNameModel", - "Decorators": [] - }, - { - "$id": "405", - "Name": "returnsAnonymousModel", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "return anonymous model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "406", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "407", - "kind": "constant", - "valueType": { - "$id": "408", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "409", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "284" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/returnsAnonymousModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.returnsAnonymousModel", - "Decorators": [] - }, - { - "$id": "410", - "Name": "getUnknownValue", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "get extensible enum", - "Accessibility": "public", - "Parameters": [ - { - "$id": "411", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "412", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "413", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "414", - "kind": "constant", - "valueType": { - "$id": "415", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "Sunday", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json", - "application/json", - "application/json", - "application/json", - "application/json", - "application/json", - "application/json", - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/unknown-value", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.getUnknownValue", - "Decorators": [] - }, - { - "$id": "416", - "Name": "internalProtocol", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "When set protocol false and convenient true, then the protocol method should be internal", - "Accessibility": "public", - "Parameters": [ - { - "$id": "417", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "418", - "kind": "constant", - "valueType": { - "$id": "419", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "420", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "421", - "kind": "constant", - "valueType": { - "$id": "422", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "423", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "90" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "424", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "90" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/internalProtocol", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": false, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.internalProtocol", - "Decorators": [] - }, - { - "$id": "425", - "Name": "stillConvenient", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "426", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/stillConvenient", - "BufferResponse": true, - "GenerateProtocolMethod": false, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.stillConvenient", - "Decorators": [] - }, - { - "$id": "427", - "Name": "headAsBoolean", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "head as boolean.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "428", - "Name": "id", - "NameInRequest": "id", - "Type": { - "$id": "429", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "430", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "HEAD", - "RequestBodyMediaType": "None", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/headAsBoolean/{id}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.headAsBoolean", - "Decorators": [] - }, - { - "$id": "431", - "Name": "WithApiVersion", - "ResourceName": "UnbrandedTypeSpec", - "Doc": "Return hi again", - "Accessibility": "public", - "Parameters": [ - { - "$id": "432", - "Name": "p1", - "NameInRequest": "p1", - "Type": { - "$id": "433", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "434", - "Name": "apiVersion", - "NameInRequest": "apiVersion", - "Type": { - "$id": "435", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": true, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Client", - "DefaultValue": { - "$id": "436", - "Type": { - "$id": "437", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "2024-08-16-preview" - }, - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "438", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{unbrandedTypeSpecUrl}", - "Path": "/WithApiVersion", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "UnbrandedTypeSpec.WithApiVersion", - "Decorators": [] - } - ], - "Protocol": { - "$id": "439" - }, - "Parameters": [ - { - "$id": "440", - "Name": "unbrandedTypeSpecUrl", - "NameInRequest": "unbrandedTypeSpecUrl", - "Type": { - "$id": "441", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "kind": "client", + "name": "UnbrandedTypeSpecClient", + "namespace": "UnbrandedTypeSpec", + "doc": "This is a sample typespec project.", + "operations": [], + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" ], - "Decorators": [], - "CrossLanguageDefinitionId": "UnbrandedTypeSpec" + "crossLanguageDefinitionId": "UnbrandedTypeSpec" } ], "Auth": { - "$id": "442", + "$id": "286", "ApiKey": { - "$id": "443", + "$id": "287", "Name": "my-api-key", "In": "header" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json index 334d5b31df1..adaf2103650 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json @@ -113,623 +113,89 @@ "Clients": [ { "$id": "14", - "Name": "ServiceClient", - "Namespace": "Client.Structure.Service", - "Doc": "Test that we can use @client and @operationGroup decorators to customize client side code structure, such as:\n1. have everything as default.\n2. to rename client or operation group\n3. one client can have more than one operations groups\n4. split one interface into two clients\n5. have two clients with operations come from different interfaces\n6. have two clients with a hierarchy relation.", - "Operations": [ + "kind": "client", + "name": "ServiceClient", + "namespace": "Client.Structure.Service", + "doc": "Test that we can use @client and @operationGroup decorators to customize client side code structure, such as:\n1. have everything as default.\n2. to rename client or operation group\n3. one client can have more than one operations groups\n4. split one interface into two clients\n5. have two clients with operations come from different interfaces\n6. have two clients with a hierarchy relation.", + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.Service", + "children": [ { "$id": "15", - "Name": "one", - "ResourceName": "Service", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "kind": "client", + "name": "Baz", + "namespace": "Client.Structure.Service.Baz", + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Baz", + "parent": { + "$ref": "14" + }, + "children": [ { "$id": "16", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "kind": "client", + "name": "Foo", + "namespace": "Client.Structure.Service.Baz", + "operations": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo", + "parent": { + "$ref": "15" + } } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/one", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.one", - "Decorators": [] + ] }, { "$id": "17", - "Name": "two", - "ResourceName": "Service", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "kind": "client", + "name": "Qux", + "namespace": "Client.Structure.Service.Qux", + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Qux", + "parent": { + "$ref": "14" + }, + "children": [ { "$id": "18", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/two", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.two", - "Decorators": [] - } - ], - "Protocol": { - "$id": "19" - }, - "Parameters": [ - { - "$id": "20", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "21", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "22", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service" - }, - { - "$id": "23", - "Name": "Baz", - "Namespace": "Client.Structure.Service.Baz", - "Operations": [], - "Protocol": { - "$id": "24" - }, - "Parent": "ServiceClient", - "Parameters": [ - { - "$id": "25", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "26", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "27", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service.Baz" - }, - { - "$id": "28", - "Name": "BazFoo", - "Namespace": "Client.Structure.Service.Baz", - "Operations": [ - { - "$id": "29", - "Name": "seven", - "ResourceName": "Foo", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "30", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/seven", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo.seven", - "Decorators": [] - } - ], - "Protocol": { - "$id": "31" - }, - "Parent": "Baz", - "Parameters": [ - { - "$id": "32", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "33", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "34", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo" - }, - { - "$id": "35", - "Name": "Qux", - "Namespace": "Client.Structure.Service.Qux", - "Operations": [ - { - "$id": "36", - "Name": "eight", - "ResourceName": "Qux", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "37", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/eight", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Qux.eight", - "Decorators": [] - } - ], - "Protocol": { - "$id": "38" - }, - "Parent": "ServiceClient", - "Parameters": [ - { - "$id": "39", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "40", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "41", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service.Qux" - }, - { - "$id": "42", - "Name": "QuxBar", - "Namespace": "Client.Structure.Service.Qux", - "Operations": [ - { - "$id": "43", - "Name": "nine", - "ResourceName": "Bar", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "44", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "kind": "client", + "name": "Bar", + "namespace": "Client.Structure.Service.Qux", + "operations": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar", + "parent": { + "$ref": "17" + } } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/nine", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar.nine", - "Decorators": [] - } - ], - "Protocol": { - "$id": "45" - }, - "Parent": "Qux", - "Parameters": [ - { - "$id": "46", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "47", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + ] }, { - "$id": "48", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar" - }, - { - "$id": "49", - "Name": "Foo", - "Namespace": "Client.Structure.Service", - "Operations": [ - { - "$id": "50", - "Name": "three", - "ResourceName": "Foo", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "51", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/three", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Foo.three", - "Decorators": [] + "$id": "19", + "kind": "client", + "name": "Foo", + "namespace": "Client.Structure.Service", + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Foo", + "parent": { + "$ref": "14" + } }, { - "$id": "52", - "Name": "four", - "ResourceName": "Foo", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "53", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/four", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Foo.four", - "Decorators": [] - } - ], - "Protocol": { - "$id": "54" - }, - "Parent": "ServiceClient", - "Parameters": [ - { - "$id": "55", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "56", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "57", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service.Foo" - }, - { - "$id": "58", - "Name": "Bar", - "Namespace": "Client.Structure.Service", - "Operations": [ - { - "$id": "59", - "Name": "five", - "ResourceName": "Bar", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "60", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/five", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Bar.five", - "Decorators": [] - }, - { - "$id": "61", - "Name": "six", - "ResourceName": "Bar", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "62", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/six", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Bar.six", - "Decorators": [] - } - ], - "Protocol": { - "$id": "63" - }, - "Parent": "ServiceClient", - "Parameters": [ - { - "$id": "64", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "65", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "66", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "$id": "20", + "kind": "client", + "name": "Bar", + "namespace": "Client.Structure.Service", + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Bar", + "parent": { + "$ref": "14" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service.Bar" + ] } ] } From f020f15096b4dfeeced8056277042da5c23f24a7 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 3 Mar 2025 16:44:04 +0800 Subject: [PATCH 05/20] making fixes on those test cases for clientprovider --- .../emitter/src/lib/client-converter.ts | 112 +- .../emitter/src/lib/client-model-builder.ts | 141 +- .../emitter/src/type/input-type.ts | 2 + .../ClientProviderCustomizationTests.cs | 6 +- .../ClientProviderSubClientTests.cs | 25 +- .../ClientProviders/ClientProviderTests.cs | 23 +- .../SubClientWithMultipleSubClients.cs | 18 +- .../SubClientWithSingleSubClient.cs | 8 +- .../test/common/InputFactory.cs | 16 +- .../Unbranded-TypeSpec/tspCodeModel.json | 1826 ++++++++++++++++- 10 files changed, 1979 insertions(+), 198 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/lib/client-converter.ts b/packages/http-client-csharp/emitter/src/lib/client-converter.ts index b386d32eab7..47a65fc7f6e 100644 --- a/packages/http-client-csharp/emitter/src/lib/client-converter.ts +++ b/packages/http-client-csharp/emitter/src/lib/client-converter.ts @@ -3,31 +3,49 @@ import { SdkClientType as SdkClientTypeOfT, + SdkEndpointParameter, + SdkEndpointType, SdkHttpOperation, } from "@azure-tools/typespec-client-generator-core"; +import { NoTarget } from "@typespec/compiler"; import { CSharpEmitterContext } from "../sdk-context.js"; -import { InputClientType } from "../type/input-type.js"; +import { InputOperationParameterKind } from "../type/input-operation-parameter-kind.js"; +import { InputParameter } from "../type/input-parameter.js"; +import { InputClientType, InputType } from "../type/input-type.js"; +import { RequestLocation } from "../type/request-location.js"; +import { fromSdkServiceMethod, getParameterDefaultValue } from "./operation-converter.js"; +import { fromSdkType } from "./type-converter.js"; type SdkClientType = SdkClientTypeOfT; export function fromSdkClients( sdkContext: CSharpEmitterContext, clients: SdkClientType[], + rootApiVersions: string[], ): InputClientType[] { const inputClients: InputClientType[] = []; for (const client of clients) { - const inputClient = fromSdkClient(sdkContext, client); + const inputClient = fromSdkClient(sdkContext, client, rootApiVersions); inputClients.push(inputClient); } return inputClients; } -function fromSdkClient(sdkContext: CSharpEmitterContext, client: SdkClientType): InputClientType { +function fromSdkClient( + sdkContext: CSharpEmitterContext, + client: SdkClientType, + rootApiVersions: string[], +): InputClientType { let inputClient: InputClientType | undefined = sdkContext.__typeCache.clients.get(client); if (inputClient) { return inputClient; } + const endpointParameter = client.clientInitialization.parameters.find( + (p) => p.kind === "endpoint", + ) as SdkEndpointParameter; + const uri = getMethodUri(endpointParameter); + const clientParameters = fromSdkEndpointParameter(endpointParameter); inputClient = { kind: "client", @@ -35,7 +53,10 @@ function fromSdkClient(sdkContext: CSharpEmitterContext, client: SdkClientType): namespace: client.namespace, doc: client.doc, summary: client.summary, - operations: [], + parameters: clientParameters, + operations: client.methods + .filter((m) => m.kind !== "clientaccessor") + .map((m) => fromSdkServiceMethod(sdkContext, m, uri, rootApiVersions)), apiVersions: client.apiVersions, crossLanguageDefinitionId: client.crossLanguageDefinitionId, parent: undefined, @@ -44,22 +65,78 @@ function fromSdkClient(sdkContext: CSharpEmitterContext, client: SdkClientType): updateSdkClientTypeReferences(sdkContext, client, inputClient); - // fill operations - TODO // fill parent if (client.parent) { - const parent = fromSdkClient(sdkContext, client.parent); - inputClient.parent = parent; + inputClient.parent = fromSdkClient(sdkContext, client.parent, rootApiVersions); } // fill children if (client.children) { - const children: InputClientType[] = []; - for (const child of client.children) { - children.push(fromSdkClient(sdkContext, child)); - } - inputClient.children = children; + inputClient.children = client.children.map((c) => + fromSdkClient(sdkContext, c, rootApiVersions), + ); } return inputClient; + + function fromSdkEndpointParameter(p: SdkEndpointParameter): InputParameter[] { + if (p.type.kind === "union") { + return fromSdkEndpointType(p.type.variantTypes[0]); + } else { + return fromSdkEndpointType(p.type); + } + } + + function fromSdkEndpointType(type: SdkEndpointType): InputParameter[] { + // TODO: support free-style endpoint url with multiple parameters + const endpointExpr = type.serverUrl + .replace("https://", "") + .replace("http://", "") + .split("/")[0]; + if (!/^\{\w+\}$/.test(endpointExpr)) { + sdkContext.logger.reportDiagnostic({ + code: "unsupported-endpoint-url", + format: { endpoint: type.serverUrl }, + target: NoTarget, + }); + return []; + } + const endpointVariableName = endpointExpr.substring(1, endpointExpr.length - 1); + + const parameters: InputParameter[] = []; + for (const parameter of type.templateArguments) { + const isEndpoint = parameter.name === endpointVariableName; + const parameterType: InputType = isEndpoint + ? { + kind: "url", + name: "url", + crossLanguageDefinitionId: "TypeSpec.url", + } + : fromSdkType(sdkContext, parameter.type); // TODO: consolidate with converter.fromSdkEndpointType + parameters.push({ + Name: parameter.name, + NameInRequest: parameter.serializedName, + Summary: parameter.summary, + Doc: parameter.doc, + // TODO: we should do the magic in generator + Type: parameterType, + Location: RequestLocation.Uri, + IsApiVersion: parameter.isApiVersionParam, + IsResourceParameter: false, + IsContentType: false, + IsRequired: !parameter.optional, + IsEndpoint: isEndpoint, + SkipUrlEncoding: false, + Explode: false, + Kind: InputOperationParameterKind.Client, + DefaultValue: getParameterDefaultValue( + sdkContext, + parameter.clientDefaultValue, + parameterType, + ), + }); + } + return parameters; + } } function updateSdkClientTypeReferences( @@ -73,3 +150,14 @@ function updateSdkClientTypeReferences( sdkClient.__raw.type, ); } + +function getMethodUri(p: SdkEndpointParameter | undefined): string { + if (!p) return ""; + + if (p.type.kind === "endpoint" && p.type.templateArguments.length > 0) return p.type.serverUrl; + + if (p.type.kind === "union" && p.type.variantTypes.length > 0) + return (p.type.variantTypes[0] as SdkEndpointType).serverUrl; + + return `{${p.name}}`; +} diff --git a/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts b/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts index 271b67c9b8f..4e1ad5a060c 100644 --- a/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts +++ b/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts @@ -37,7 +37,7 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { ? sdkApiVersionEnums[0].values.map((v) => v.value as string).flat() : rootClients[0].apiVersions; - const inputClients = fromSdkClients(sdkContext, rootClients); + const inputClients = fromSdkClients(sdkContext, rootClients, rootApiVersions); const clientModel: CodeModel = { // rootNamespace is really coalescing the `package-name` option and the first namespace found. @@ -50,143 +50,4 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { }; return clientModel; - - // function fromSdkClients( - // clients: SdkClientType[], - // inputClients: InputClient[], - // parentClientNames: string[], - // ) { - // for (const client of clients) { - // const inputClient = fromSdkClient(client, parentClientNames); - // inputClients.push(inputClient); - // const subClients = client.methods - // .filter((m) => m.kind === "clientaccessor") - // .map((m) => m.response as SdkClientType); - // parentClientNames.push(inputClient.Name); - // fromSdkClients(subClients, inputClients, parentClientNames); - // parentClientNames.pop(); - // } - // } - - // function fromSdkClient( - // client: SdkClientType, - // parentNames: string[], - // ): InputClient { - // const endpointParameter = client.initialization.properties.find( - // (p) => p.kind === "endpoint", - // ) as SdkEndpointParameter; - // const uri = getMethodUri(endpointParameter); - // const clientParameters = fromSdkEndpointParameter(endpointParameter); - // const clientName = getClientName(client, parentNames); - - // sdkContext.__typeCache.crossLanguageDefinitionIds.set( - // client.crossLanguageDefinitionId, - // client.__raw.type, - // ); - // return { - // Name: clientName, - // Namespace: client.namespace, - // Summary: client.summary, - // Doc: client.doc, - // Operations: client.methods - // .filter((m) => m.kind !== "clientaccessor") - // .map((m) => - // fromSdkServiceMethod( - // sdkContext, - // m as SdkServiceMethod, - // uri, - // rootApiVersions, - // ), - // ), - // Protocol: {}, - // Parent: parentNames.length > 0 ? parentNames[parentNames.length - 1] : undefined, - // Parameters: clientParameters, - // Decorators: client.decorators, - // CrossLanguageDefinitionId: client.crossLanguageDefinitionId, - // }; - // } - - // function getClientName( - // client: SdkClientType, - // parentClientNames: string[], - // ): string { - // const clientName = client.name; - - // if (parentClientNames.length === 0) return clientName; - // if (parentClientNames.length >= 2) - // return `${parentClientNames.slice(parentClientNames.length - 1).join("")}${clientName}`; - - // return clientName; - // } - - // function fromSdkEndpointParameter(p: SdkEndpointParameter): InputParameter[] { - // if (p.type.kind === "union") { - // return fromSdkEndpointType(p.type.variantTypes[0]); - // } else { - // return fromSdkEndpointType(p.type); - // } - // } - - // function fromSdkEndpointType(type: SdkEndpointType): InputParameter[] { - // // TODO: support free-style endpoint url with multiple parameters - // const endpointExpr = type.serverUrl - // .replace("https://", "") - // .replace("http://", "") - // .split("/")[0]; - // if (!/^\{\w+\}$/.test(endpointExpr)) { - // sdkContext.logger.reportDiagnostic({ - // code: "unsupported-endpoint-url", - // format: { endpoint: type.serverUrl }, - // target: NoTarget, - // }); - // return []; - // } - // const endpointVariableName = endpointExpr.substring(1, endpointExpr.length - 1); - - // const parameters: InputParameter[] = []; - // for (const parameter of type.templateArguments) { - // const isEndpoint = parameter.name === endpointVariableName; - // const parameterType: InputType = isEndpoint - // ? { - // kind: "url", - // name: "url", - // crossLanguageDefinitionId: "TypeSpec.url", - // } - // : fromSdkType(sdkContext, parameter.type); // TODO: consolidate with converter.fromSdkEndpointType - // parameters.push({ - // Name: parameter.name, - // NameInRequest: parameter.serializedName, - // Summary: parameter.summary, - // Doc: parameter.doc, - // // TODO: we should do the magic in generator - // Type: parameterType, - // Location: RequestLocation.Uri, - // IsApiVersion: parameter.isApiVersionParam, - // IsResourceParameter: false, - // IsContentType: false, - // IsRequired: !parameter.optional, - // IsEndpoint: isEndpoint, - // SkipUrlEncoding: false, - // Explode: false, - // Kind: InputOperationParameterKind.Client, - // DefaultValue: getParameterDefaultValue( - // sdkContext, - // parameter.clientDefaultValue, - // parameterType, - // ), - // }); - // } - // return parameters; - // } } - -// function getMethodUri(p: SdkEndpointParameter | undefined): string { -// if (!p) return ""; - -// if (p.type.kind === "endpoint" && p.type.templateArguments.length > 0) return p.type.serverUrl; - -// if (p.type.kind === "union" && p.type.variantTypes.length > 0) -// return (p.type.variantTypes[0] as SdkEndpointType).serverUrl; - -// return `{${p.name}}`; -// } 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 3b3c832a701..75d6ecb4023 100644 --- a/packages/http-client-csharp/emitter/src/type/input-type.ts +++ b/packages/http-client-csharp/emitter/src/type/input-type.ts @@ -10,6 +10,7 @@ import { } from "@azure-tools/typespec-client-generator-core"; import { DateTimeKnownEncoding, DurationKnownEncoding } from "@typespec/compiler"; import { InputOperation } from "./input-operation.js"; +import { InputParameter } from "./input-parameter.js"; export interface InputClientType extends DecoratedType { kind: "client"; @@ -18,6 +19,7 @@ export interface InputClientType extends DecoratedType { doc?: string; summary?: string; // clientInitialization: TODO; + parameters?: InputParameter[]; // TODO -- this should be replaced by clientInitialization when the clientInitialization related stuffs are done. operations: InputOperation[]; apiVersions: string[]; crossLanguageDefinitionId: string; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderCustomizationTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderCustomizationTests.cs index 4107eaa0161..cd03cb63b0d 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderCustomizationTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderCustomizationTests.cs @@ -275,9 +275,9 @@ public async Task CanRenameSubClient() InputFactory.Parameter("p1", InputFactory.Array(InputPrimitiveType.String)) ]); var inputClient = InputFactory.Client("TestClient", operations: [inputOperation]); - InputClient subClient = InputFactory.Client("custom", parent: inputClient.Name); + InputClient subClient = InputFactory.Client("custom", parent: inputClient); var plugin = await MockHelpers.LoadMockPluginAsync( - clients: () => [inputClient, subClient], + clients: () => [inputClient], compilation: async () => await Helpers.GetCompilationFromDirectoryAsync()); // Find the sub-client provider @@ -302,7 +302,7 @@ public async Task CanRemoveCachingField() InputFactory.Parameter("p1", InputFactory.Array(InputPrimitiveType.String)) ]); var inputClient = InputFactory.Client("TestClient", operations: [inputOperation]); - InputClient subClient = InputFactory.Client("dog", operations: [], parameters: [], parent: inputClient.Name); + InputClient subClient = InputFactory.Client("dog", operations: [], parameters: [], parent: inputClient); var plugin = await MockHelpers.LoadMockPluginAsync( clients: () => [inputClient, subClient], compilation: async () => await Helpers.GetCompilationFromDirectoryAsync()); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderSubClientTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderSubClientTests.cs index 6b4223c17de..817af1e6f50 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderSubClientTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderSubClientTests.cs @@ -13,28 +13,27 @@ namespace Microsoft.TypeSpec.Generator.ClientModel.Tests.Providers.ClientProvide { public class ClientProviderSubClientTests { - private const string TestClientName = "TestClient"; - private static readonly InputClient _animalClient = InputFactory.Client("animal", doc: "AnimalClient description", parent: TestClientName); - private static readonly InputClient _dogClient = InputFactory.Client("dog", doc: "DogClient description", parent: _animalClient.Name); - private static readonly InputClient _catClient = InputFactory.Client("cat", doc: "CatClient description", parent: _animalClient.Name); - private static readonly InputClient _hawkClient = InputFactory.Client("hawkClient", doc: "HawkClient description", parent: _animalClient.Name); - private static readonly InputClient _huskyClient = InputFactory.Client("husky", doc: "HuskyClient description", parent: _dogClient.Name); + private static readonly InputClient _testClient = InputFactory.Client("TestClient"); + private static readonly InputClient _animalClient = InputFactory.Client("animal", doc: "AnimalClient description", parent: _testClient); + private static readonly InputClient _dogClient = InputFactory.Client("dog", doc: "DogClient description", parent: _animalClient); + private static readonly InputClient _catClient = InputFactory.Client("cat", doc: "CatClient description", parent: _animalClient); + private static readonly InputClient _hawkClient = InputFactory.Client("hawkClient", doc: "HawkClient description", parent: _animalClient); + private static readonly InputClient _huskyClient = InputFactory.Client("husky", doc: "HuskyClient description", parent: _dogClient); [SetUp] public void SetUp() { MockHelpers.LoadMockPlugin( auth: () => new(new InputApiKeyAuth("mock", null), null), - clients: () => [_animalClient, _dogClient, _catClient, _huskyClient, _hawkClient]); + clients: () => [_testClient]); } // This test validates that the generated code is correct when the client has one direct subclient. [Test] public void ServiceClientWithSubClient() { - var client = InputFactory.Client(TestClientName); string[] expectedSubClientFactoryMethodNames = [$"Get{_animalClient.Name.ToCleanName()}Client"]; - var clientProvider = new MockClientProvider(client, expectedSubClientFactoryMethodNames); + var clientProvider = new MockClientProvider(_testClient, expectedSubClientFactoryMethodNames); var writer = new TypeProviderWriter(clientProvider); var file = writer.Write(); Assert.AreEqual(Helpers.GetExpectedFromFile(), file.Content); @@ -44,7 +43,7 @@ public void ServiceClientWithSubClient() [Test] public void SubClientWithSingleSubClient() { - string[] expectedSubClientFactoryMethodNames = [$"Get{_huskyClient.Name.ToCleanName()}Client"]; + string[] expectedSubClientFactoryMethodNames = [$"Get{_animalClient.Name.ToCleanName()}{_dogClient.Name.ToCleanName()}{_huskyClient.Name.ToCleanName()}Client"]; var clientProvider = new MockClientProvider(_dogClient, expectedSubClientFactoryMethodNames); var writer = new TypeProviderWriter(clientProvider); var file = writer.Write(); @@ -57,9 +56,9 @@ public void SubClientWithMultipleSubClients() { string[] expectedSubClientFactoryMethodNames = [ - $"Get{_dogClient.Name.ToCleanName()}Client", - $"Get{_catClient.Name.ToCleanName()}Client", - $"Get{_hawkClient.Name.ToCleanName()}" + $"Get{_animalClient.Name.ToCleanName()}{_dogClient.Name.ToCleanName()}Client", + $"Get{_animalClient.Name.ToCleanName()}{_catClient.Name.ToCleanName()}Client", + $"Get{_animalClient.Name.ToCleanName()}{_hawkClient.Name.ToCleanName()}" ]; var clientProvider = new MockClientProvider(_animalClient, expectedSubClientFactoryMethodNames); var writer = new TypeProviderWriter(clientProvider); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs index a16614b3920..165fc470bc9 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs @@ -27,9 +27,10 @@ public class ClientProviderTests private const string OAuth2Category = "WithOAuth2"; private const string OnlyUnsupportedAuthCategory = "WithOnlyUnsupportedAuth"; private const string TestClientName = "TestClient"; - private static readonly InputClient _animalClient = InputFactory.Client("animal", doc: "AnimalClient description", parent: TestClientName); - private static readonly InputClient _dogClient = InputFactory.Client("dog", doc: "DogClient description", parent: _animalClient.Name); - private static readonly InputClient _huskyClient = InputFactory.Client("husky", doc: "HuskyClient description", parent: _dogClient.Name); + private static readonly InputClient _testClient = InputFactory.Client(TestClientName); + private static readonly InputClient _animalClient = InputFactory.Client("animal", doc: "AnimalClient description", parent: _testClient); + private static readonly InputClient _dogClient = InputFactory.Client("dog", doc: "DogClient description", parent: _animalClient); + private static readonly InputClient _huskyClient = InputFactory.Client("husky", doc: "HuskyClient description", parent: _dogClient); private static readonly InputModelType _spreadModel = InputFactory.Model( "spreadModel", usage: InputModelTypeUsage.Spread, @@ -55,7 +56,7 @@ public void SetUp() _hasOnlyUnsupportedAuth = categories?.Contains(OnlyUnsupportedAuthCategory) ?? false; Func>? clients = _containsSubClients ? - () => [_animalClient, _dogClient, _huskyClient] : + () => [_testClient] : null; InputApiKeyAuth? apiKeyAuth = _hasKeyAuth ? new InputApiKeyAuth("mock", null) : null; InputOAuth2Auth? oauth2Auth = _hasOAuth2 ? new InputOAuth2Auth(["mock"]) : null; @@ -510,13 +511,13 @@ public void EndpointInitializationValue(InputParameter endpointParameter, ValueE [TestCase(false)] public void TestGetClientOptions(bool isSubClient) { - string? parentClientName = null; + InputClient? parentClient = null; if (isSubClient) { - parentClientName = "parent"; + parentClient = InputFactory.Client("parent"); } - var client = InputFactory.Client(TestClientName, parent: parentClientName); + var client = InputFactory.Client(TestClientName, parent: parentClient); var clientProvider = new ClientProvider(client); Assert.IsNotNull(clientProvider); @@ -1017,7 +1018,7 @@ public static IEnumerable SubClientFieldsTestCases { get { - yield return new TestCaseData(InputFactory.Client(TestClientName), new List + yield return new TestCaseData(_testClient, new List { new(FieldModifiers.Private | FieldModifiers.ReadOnly, new CSharpType(typeof(Uri)), "_endpoint"), new(FieldModifiers.Private, new ExpectedCSharpType("Animal", "Sample", false), "_cachedAnimal"), @@ -1025,12 +1026,12 @@ public static IEnumerable SubClientFieldsTestCases yield return new TestCaseData(_animalClient, new List { new(FieldModifiers.Private | FieldModifiers.ReadOnly, new CSharpType(typeof(Uri)), "_endpoint"), - new(FieldModifiers.Private, new ExpectedCSharpType("Dog", "Sample", false), "_cachedDog"), + new(FieldModifiers.Private, new ExpectedCSharpType("AnimalDog", "Sample", false), "_cachedAnimalDog"), }); yield return new TestCaseData(_dogClient, new List { new(FieldModifiers.Private | FieldModifiers.ReadOnly, new CSharpType(typeof(Uri)), "_endpoint"), - new(FieldModifiers.Private, new ExpectedCSharpType("Husky", "Sample", false), "_cachedHusky"), + new(FieldModifiers.Private, new ExpectedCSharpType("AnimalDogHusky", "Sample", false), "_cachedAnimalDogHusky"), }); yield return new TestCaseData(_huskyClient, new List { @@ -1066,7 +1067,7 @@ public static IEnumerable SubClientFactoryMethodTestCases { get { - yield return new TestCaseData(InputFactory.Client(TestClientName), true); + yield return new TestCaseData(_testClient, true); yield return new TestCaseData(_animalClient, true); yield return new TestCaseData(_dogClient, true); yield return new TestCaseData(_huskyClient, false); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithMultipleSubClients.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithMultipleSubClients.cs index fb66a1786d9..10ee61b1293 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithMultipleSubClients.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithMultipleSubClients.cs @@ -9,22 +9,22 @@ namespace Sample /// AnimalClient description. public partial class Animal { - /// Initializes a new instance of Dog. - public virtual global::Sample.Dog GetDogClient() + /// Initializes a new instance of AnimalDog. + public virtual global::Sample.AnimalDog GetAnimalDogClient() { - return (global::System.Threading.Volatile.Read(ref _cachedDog) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedDog, new global::Sample.Dog(), null) ?? _cachedDog)); + return (global::System.Threading.Volatile.Read(ref _cachedAnimalDog) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedAnimalDog, new global::Sample.AnimalDog(), null) ?? _cachedAnimalDog)); } - /// Initializes a new instance of Cat. - public virtual global::Sample.Cat GetCatClient() + /// Initializes a new instance of AnimalCat. + public virtual global::Sample.AnimalCat GetAnimalCatClient() { - return (global::System.Threading.Volatile.Read(ref _cachedCat) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedCat, new global::Sample.Cat(), null) ?? _cachedCat)); + return (global::System.Threading.Volatile.Read(ref _cachedAnimalCat) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedAnimalCat, new global::Sample.AnimalCat(), null) ?? _cachedAnimalCat)); } - /// Initializes a new instance of HawkClient. - public virtual global::Sample.HawkClient GetHawkClient() + /// Initializes a new instance of AnimalHawkClient. + public virtual global::Sample.AnimalHawkClient GetAnimalHawkClient() { - return (global::System.Threading.Volatile.Read(ref _cachedHawkClient) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedHawkClient, new global::Sample.HawkClient(), null) ?? _cachedHawkClient)); + return (global::System.Threading.Volatile.Read(ref _cachedAnimalHawkClient) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedAnimalHawkClient, new global::Sample.AnimalHawkClient(), null) ?? _cachedAnimalHawkClient)); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithSingleSubClient.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithSingleSubClient.cs index 273c195bac9..c4e30d39618 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithSingleSubClient.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithSingleSubClient.cs @@ -7,12 +7,12 @@ namespace Sample { /// DogClient description. - public partial class Dog + public partial class AnimalDog { - /// Initializes a new instance of Husky. - public virtual global::Sample.Husky GetHuskyClient() + /// Initializes a new instance of AnimalDogHusky. + public virtual global::Sample.AnimalDogHusky GetAnimalDogHuskyClient() { - return (global::System.Threading.Volatile.Read(ref _cachedHusky) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedHusky, new global::Sample.Husky(), null) ?? _cachedHusky)); + return (global::System.Threading.Volatile.Read(ref _cachedAnimalDogHusky) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedAnimalDogHusky, new global::Sample.AnimalDogHusky(), null) ?? _cachedAnimalDogHusky)); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs index 233e1b5dfe0..11402f3a675 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs @@ -256,9 +256,10 @@ public static OperationResponse OperationResponse(IEnumerable? statusCodes ["application/json"]); } - public static InputClient Client(string name, string clientNamespace = "Sample", string? doc = null, IEnumerable? operations = null, IEnumerable? parameters = null, string? parent = null, string? crossLanguageDefinitionId = null) + public static InputClient Client(string name, string clientNamespace = "Sample", string? doc = null, IEnumerable? operations = null, IEnumerable? parameters = null, InputClient? parent = null, string? crossLanguageDefinitionId = null) { - return new InputClient( + // when this client has parent, we add the constructed client into the `children` list of the parent + var client = new InputClient( name, clientNamespace, crossLanguageDefinitionId ?? $"{clientNamespace}.{name}", @@ -266,7 +267,16 @@ public static InputClient Client(string name, string clientNamespace = "Sample", doc ?? $"{name} description", operations is null ? [] : [.. operations], parameters is null ? [] : [.. parameters], - parent); + parent, + null); + if (parent != null) + { + // parent.Children is internal here we have to use reflection to set the proper value + var propertyInfo = typeof(InputClient).GetProperty("Children", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance); + List newChildren = [.. parent.Children, client]; + propertyInfo!.SetValue(parent, newChildren); + } + return client; } } } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json index 2539295bb40..df54e201bab 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json @@ -2240,7 +2240,1827 @@ "name": "UnbrandedTypeSpecClient", "namespace": "UnbrandedTypeSpec", "doc": "This is a sample typespec project.", - "operations": [], + "parameters": [ + { + "$id": "286", + "Name": "unbrandedTypeSpecUrl", + "NameInRequest": "unbrandedTypeSpecUrl", + "Type": { + "$id": "287", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "288", + "Name": "sayHi", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "Return hi", + "Accessibility": "public", + "Parameters": [ + { + "$id": "289", + "Name": "headParameter", + "NameInRequest": "head-parameter", + "Type": { + "$id": "290", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "291", + "Name": "queryParameter", + "NameInRequest": "queryParameter", + "Type": { + "$id": "292", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "293", + "Name": "optionalQuery", + "NameInRequest": "optionalQuery", + "Type": { + "$id": "294", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "295", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "296", + "kind": "constant", + "valueType": { + "$id": "297", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "298", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "90" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/hello", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.sayHi", + "Decorators": [] + }, + { + "$id": "299", + "Name": "helloAgain", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "Return hi again", + "Accessibility": "public", + "Parameters": [ + { + "$id": "300", + "Name": "p1", + "NameInRequest": "p1", + "Type": { + "$id": "301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "302", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "303", + "kind": "constant", + "valueType": { + "$id": "304", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "305", + "Name": "p2", + "NameInRequest": "p2", + "Type": { + "$id": "306", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "307", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "308", + "kind": "constant", + "valueType": { + "$id": "309", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "310", + "Name": "action", + "NameInRequest": "action", + "Type": { + "$ref": "163" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "311", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "163" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "Json", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/againHi/{p2}", + "RequestMediaTypes": [ + "text/plain" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.helloAgain", + "Decorators": [] + }, + { + "$id": "312", + "Name": "noContentType", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "Return hi again", + "Accessibility": "public", + "Parameters": [ + { + "$id": "313", + "Name": "p1", + "NameInRequest": "p1", + "Type": { + "$id": "314", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "315", + "Name": "p2", + "NameInRequest": "p2", + "Type": { + "$id": "316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "317", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "318", + "kind": "constant", + "valueType": { + "$id": "319", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "320", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "321", + "kind": "constant", + "valueType": { + "$id": "322", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "323", + "Name": "action", + "NameInRequest": "action", + "Type": { + "$ref": "163" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "324", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "163" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "Json", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/noContentType/{p2}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.noContentType", + "Decorators": [] + }, + { + "$id": "325", + "Name": "helloDemo2", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "Return hi in demo2", + "Accessibility": "public", + "Parameters": [ + { + "$id": "326", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "327", + "kind": "constant", + "valueType": { + "$id": "328", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "329", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "90" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/demoHi", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.helloDemo2", + "Decorators": [] + }, + { + "$id": "330", + "Name": "createLiteral", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "Create with literal value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "331", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "332", + "kind": "constant", + "valueType": { + "$id": "333", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "334", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "335", + "kind": "constant", + "valueType": { + "$id": "336", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "337", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "90" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "338", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "90" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/literal", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.createLiteral", + "Decorators": [] + }, + { + "$id": "339", + "Name": "helloLiteral", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "Send literal parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "340", + "Name": "p1", + "NameInRequest": "p1", + "Type": { + "$id": "341", + "kind": "constant", + "valueType": { + "$id": "342", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "test", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "343", + "Name": "p2", + "NameInRequest": "p2", + "Type": { + "$id": "344", + "kind": "constant", + "valueType": { + "$id": "345", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "value": 123, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "346", + "Name": "p3", + "NameInRequest": "p3", + "Type": { + "$id": "347", + "kind": "constant", + "valueType": { + "$id": "348", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "value": true, + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "349", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "350", + "kind": "constant", + "valueType": { + "$id": "351", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "352", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "90" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/helloLiteral/{p2}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.helloLiteral", + "Decorators": [] + }, + { + "$id": "353", + "Name": "topAction", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "top level method", + "Accessibility": "public", + "Parameters": [ + { + "$id": "354", + "Name": "action", + "NameInRequest": "action", + "Type": { + "$id": "355", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "356", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "357", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "358", + "kind": "constant", + "valueType": { + "$id": "359", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "360", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "90" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/top/{action}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.topAction", + "Decorators": [] + }, + { + "$id": "361", + "Name": "topAction2", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "top level method2", + "Accessibility": "public", + "Parameters": [ + { + "$id": "362", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "363", + "kind": "constant", + "valueType": { + "$id": "364", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "365", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "90" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/top2", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.topAction2", + "Decorators": [] + }, + { + "$id": "366", + "Name": "patchAction", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "top level patch", + "Accessibility": "public", + "Parameters": [ + { + "$id": "367", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "368", + "kind": "constant", + "valueType": { + "$id": "369", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "370", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "371", + "kind": "constant", + "valueType": { + "$id": "372", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "373", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "90" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "374", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "90" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/patch", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.patchAction", + "Decorators": [] + }, + { + "$id": "375", + "Name": "anonymousBody", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "body parameter without body decorator", + "Accessibility": "public", + "Parameters": [ + { + "$id": "376", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "377", + "kind": "constant", + "valueType": { + "$id": "378", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "379", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "380", + "kind": "constant", + "valueType": { + "$id": "381", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "382", + "Name": "thing", + "NameInRequest": "thing", + "Type": { + "$ref": "90" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "383", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "90" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/anonymousBody", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.anonymousBody", + "Decorators": [] + }, + { + "$id": "384", + "Name": "friendlyModel", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "Model can have its friendly name", + "Accessibility": "public", + "Parameters": [ + { + "$id": "385", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "386", + "kind": "constant", + "valueType": { + "$id": "387", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "388", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "389", + "kind": "constant", + "valueType": { + "$id": "390", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "391", + "Name": "friend", + "NameInRequest": "friend", + "Type": { + "$ref": "274" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "392", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "274" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/friendlyName", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.friendlyModel", + "Decorators": [] + }, + { + "$id": "393", + "Name": "addTimeHeader", + "ResourceName": "UnbrandedTypeSpec", + "Accessibility": "public", + "Parameters": [ + { + "$id": "394", + "Name": "repeatabilityFirstSent", + "NameInRequest": "Repeatability-First-Sent", + "Type": { + "$id": "395", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "396", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "397", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.addTimeHeader", + "Decorators": [] + }, + { + "$id": "398", + "Name": "projectedNameModel", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "Model can have its projected name", + "Accessibility": "public", + "Parameters": [ + { + "$id": "399", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "400", + "kind": "constant", + "valueType": { + "$id": "401", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "402", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "403", + "kind": "constant", + "valueType": { + "$id": "404", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "405", + "Name": "projectedModel", + "NameInRequest": "projectedModel", + "Type": { + "$ref": "279" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "406", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "279" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/projectedName", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.projectedNameModel", + "Decorators": [] + }, + { + "$id": "407", + "Name": "returnsAnonymousModel", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "return anonymous model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "408", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "409", + "kind": "constant", + "valueType": { + "$id": "410", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "411", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "284" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/returnsAnonymousModel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.returnsAnonymousModel", + "Decorators": [] + }, + { + "$id": "412", + "Name": "getUnknownValue", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "get extensible enum", + "Accessibility": "public", + "Parameters": [ + { + "$id": "413", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "414", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "415", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "416", + "kind": "constant", + "valueType": { + "$id": "417", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "Sunday", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json", + "application/json", + "application/json", + "application/json", + "application/json", + "application/json", + "application/json", + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/unknown-value", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.getUnknownValue", + "Decorators": [] + }, + { + "$id": "418", + "Name": "internalProtocol", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "When set protocol false and convenient true, then the protocol method should be internal", + "Accessibility": "public", + "Parameters": [ + { + "$id": "419", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "420", + "kind": "constant", + "valueType": { + "$id": "421", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "422", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "423", + "kind": "constant", + "valueType": { + "$id": "424", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "425", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "90" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "426", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "90" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/internalProtocol", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": false, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.internalProtocol", + "Decorators": [] + }, + { + "$id": "427", + "Name": "stillConvenient", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "428", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/stillConvenient", + "BufferResponse": true, + "GenerateProtocolMethod": false, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.stillConvenient", + "Decorators": [] + }, + { + "$id": "429", + "Name": "headAsBoolean", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "head as boolean.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "430", + "Name": "id", + "NameInRequest": "id", + "Type": { + "$id": "431", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "432", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "HEAD", + "RequestBodyMediaType": "None", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/headAsBoolean/{id}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.headAsBoolean", + "Decorators": [] + }, + { + "$id": "433", + "Name": "WithApiVersion", + "ResourceName": "UnbrandedTypeSpec", + "Doc": "Return hi again", + "Accessibility": "public", + "Parameters": [ + { + "$id": "434", + "Name": "p1", + "NameInRequest": "p1", + "Type": { + "$id": "435", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "436", + "Name": "apiVersion", + "NameInRequest": "apiVersion", + "Type": { + "$id": "437", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "438", + "Type": { + "$id": "439", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-08-16-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "440", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{unbrandedTypeSpecUrl}", + "Path": "/WithApiVersion", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "UnbrandedTypeSpec.WithApiVersion", + "Decorators": [] + } + ], "apiVersions": [ "2024-07-16-preview", "2024-08-16-preview" @@ -2249,9 +4069,9 @@ } ], "Auth": { - "$id": "286", + "$id": "441", "ApiKey": { - "$id": "287", + "$id": "442", "Name": "my-api-key", "In": "header" } From f8e1f8156d0734dda542c8a0847f46e00ac93dd5 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 3 Mar 2025 17:28:34 +0800 Subject: [PATCH 06/20] regen --- .../authentication/api-key/tspCodeModel.json | 98 +- .../http/custom/tspCodeModel.json | 98 +- .../authentication/oauth2/tspCodeModel.json | 98 +- .../authentication/union/tspCodeModel.json | 94 +- .../client-operation-group/tspCodeModel.json | 570 +- .../structure/default/tspCodeModel.json | 564 +- .../structure/multi-client/tspCodeModel.json | 146 +- .../renamed-operation/tspCodeModel.json | 324 +- .../two-operation-group/tspCodeModel.json | 512 +- .../http/encode/bytes/tspCodeModel.json | 3460 ++--- .../http/encode/datetime/tspCodeModel.json | 2786 ++-- .../http/encode/duration/tspCodeModel.json | 2838 ++-- .../http/encode/numeric/tspCodeModel.json | 718 +- .../http/parameters/basic/tspCodeModel.json | 458 +- .../body-optionality/tspCodeModel.json | 466 +- .../collection-format/tspCodeModel.json | 824 +- .../http/parameters/spread/tspCodeModel.json | 2086 +-- .../content-negotiation/tspCodeModel.json | 714 +- .../json-merge-patch/tspCodeModel.json | 134 +- .../http/payload/media-type/tspCodeModel.json | 670 +- .../multipart/src/Generated/FormData.cs | 2 +- .../src/Generated/FormDataHttpParts.cs | 6 +- .../Generated/FormDataHttpPartsContentType.cs | 2 +- .../Generated/FormDataHttpPartsNonString.cs | 2 +- .../MultiPartFormDataBinaryContent.cs | 50 - .../http/payload/multipart/tspCodeModel.json | 2143 +-- .../srv-driven/v1/tspCodeModel.json | 188 +- .../srv-driven/v2/tspCodeModel.json | 205 +- .../status-code-range/tspCodeModel.json | 108 +- .../routes/src/Generated/PathParameters.cs | 10 +- .../Generated/PathParametersLabelExpansion.cs | 6 +- .../PathParametersLabelExpansionExplode.cs | 2 +- .../PathParametersLabelExpansionStandard.cs | 2 +- .../PathParametersMatrixExpansion.cs | 6 +- .../PathParametersMatrixExpansionExplode.cs | 2 +- .../PathParametersMatrixExpansionStandard.cs | 2 +- .../Generated/PathParametersPathExpansion.cs | 6 +- .../PathParametersPathExpansionExplode.cs | 2 +- .../PathParametersPathExpansionStandard.cs | 2 +- .../PathParametersReservedExpansion.cs | 2 +- .../PathParametersSimpleExpansion.cs | 6 +- .../PathParametersSimpleExpansionExplode.cs | 2 +- .../PathParametersSimpleExpansionStandard.cs | 2 +- .../routes/src/Generated/QueryParameters.cs | 4 +- .../QueryParametersQueryContinuation.cs | 6 +- ...QueryParametersQueryContinuationExplode.cs | 2 +- ...ueryParametersQueryContinuationStandard.cs | 2 +- .../QueryParametersQueryExpansion.cs | 6 +- .../QueryParametersQueryExpansionExplode.cs | 2 +- .../QueryParametersQueryExpansionStandard.cs | 2 +- .../Spector/http/routes/tspCodeModel.json | 6793 +++++----- .../encoded-name/json/tspCodeModel.json | 356 +- .../endpoint/not-defined/tspCodeModel.json | 64 +- .../server/path/multiple/tspCodeModel.json | 126 +- .../http/server/path/single/tspCodeModel.json | 64 +- .../versions/not-versioned/tspCodeModel.json | 80 +- .../versions/versioned/tspCodeModel.json | 101 +- .../conditional-request/tspCodeModel.json | 116 +- .../repeatability/tspCodeModel.json | 96 +- .../http/special-words/tspCodeModel.json | 10226 +++++++------- .../Spector/http/type/array/tspCodeModel.json | 5470 ++++---- .../http/type/dictionary/tspCodeModel.json | 4442 +++---- .../type/enum/extensible/tspCodeModel.json | 614 +- .../http/type/enum/fixed/tspCodeModel.json | 508 +- .../http/type/model/empty/tspCodeModel.json | 120 +- .../enum-discriminator/tspCodeModel.json | 164 +- .../nested-discriminator/tspCodeModel.json | 144 +- .../not-discriminated/tspCodeModel.json | 120 +- .../inheritance/recursive/tspCodeModel.json | 102 +- .../single-discriminator/tspCodeModel.json | 154 +- .../http/type/model/usage/tspCodeModel.json | 120 +- .../type/model/visibility/tspCodeModel.json | 176 +- .../additional-properties/tspCodeModel.json | 11018 ++++++++-------- .../type/property/nullable/tspCodeModel.json | 4328 +++--- .../property/optionality/tspCodeModel.json | 9828 +++++++------- .../property/value-types/tspCodeModel.json | 10048 +++++++------- .../http/type/scalar/tspCodeModel.json | 2730 ++-- .../Spector/http/type/union/tspCodeModel.json | 3366 ++--- .../versioning/added/v1/tspCodeModel.json | 114 +- .../versioning/added/v2/tspCodeModel.json | 419 +- .../madeOptional/v1/tspCodeModel.json | 118 +- .../madeOptional/v2/tspCodeModel.json | 119 +- .../versioning/removed/v1/tspCodeModel.json | 438 +- .../versioning/removed/v2/tspCodeModel.json | 134 +- .../removed/v2Preview/tspCodeModel.json | 440 +- .../renamedFrom/v1/tspCodeModel.json | 400 +- .../renamedFrom/v2/tspCodeModel.json | 402 +- .../v1/tspCodeModel.json | 118 +- .../v2/tspCodeModel.json | 119 +- .../typeChangedFrom/v1/tspCodeModel.json | 118 +- .../typeChangedFrom/v2/tspCodeModel.json | 119 +- 91 files changed, 47723 insertions(+), 47249 deletions(-) delete mode 100644 packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/Internal/MultiPartFormDataBinaryContent.cs diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json index bd54a9da4ae..6c6b06c0460 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json @@ -45,12 +45,46 @@ "Clients": [ { "$id": "7", - "Name": "ApiKeyClient", - "Namespace": "Authentication.ApiKey", - "Doc": "Illustrates clients generated with ApiKey authentication.", - "Operations": [ + "kind": "client", + "name": "ApiKeyClient", + "namespace": "Authentication.ApiKey", + "doc": "Illustrates clients generated with ApiKey authentication.", + "parameters": [ { "$id": "8", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "9", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "10", + "Type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "12", "Name": "valid", "ResourceName": "ApiKey", "Doc": "Check whether client is authenticated", @@ -58,7 +92,7 @@ "Parameters": [], "Responses": [ { - "$id": "9", + "$id": "13", "StatusCodes": [ 204 ], @@ -78,21 +112,21 @@ "Decorators": [] }, { - "$id": "10", + "$id": "14", "Name": "invalid", "ResourceName": "ApiKey", "Doc": "Check whether client is authenticated.", "Accessibility": "public", "Parameters": [ { - "$id": "11", + "$id": "15", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "12", + "$id": "16", "kind": "constant", "valueType": { - "$id": "13", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -114,7 +148,7 @@ ], "Responses": [ { - "$id": "14", + "$id": "18", "StatusCodes": [ 204 ], @@ -134,50 +168,14 @@ "Decorators": [] } ], - "Protocol": { - "$id": "15" - }, - "Parameters": [ - { - "$id": "16", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "17", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "18", - "Type": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Authentication.ApiKey" + "apiVersions": [], + "crossLanguageDefinitionId": "Authentication.ApiKey" } ], "Auth": { - "$id": "20", + "$id": "19", "ApiKey": { - "$id": "21", + "$id": "20", "Name": "x-ms-api-key", "In": "header" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json index f7fb8364860..f9a4dd23f10 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json @@ -45,12 +45,46 @@ "Clients": [ { "$id": "7", - "Name": "CustomClient", - "Namespace": "Authentication.Http.Custom", - "Doc": "Illustrates clients generated with generic HTTP auth.", - "Operations": [ + "kind": "client", + "name": "CustomClient", + "namespace": "Authentication.Http.Custom", + "doc": "Illustrates clients generated with generic HTTP auth.", + "parameters": [ { "$id": "8", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "9", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "10", + "Type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "12", "Name": "valid", "ResourceName": "Custom", "Doc": "Check whether client is authenticated", @@ -58,7 +92,7 @@ "Parameters": [], "Responses": [ { - "$id": "9", + "$id": "13", "StatusCodes": [ 204 ], @@ -78,21 +112,21 @@ "Decorators": [] }, { - "$id": "10", + "$id": "14", "Name": "invalid", "ResourceName": "Custom", "Doc": "Check whether client is authenticated.", "Accessibility": "public", "Parameters": [ { - "$id": "11", + "$id": "15", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "12", + "$id": "16", "kind": "constant", "valueType": { - "$id": "13", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -114,7 +148,7 @@ ], "Responses": [ { - "$id": "14", + "$id": "18", "StatusCodes": [ 204 ], @@ -134,50 +168,14 @@ "Decorators": [] } ], - "Protocol": { - "$id": "15" - }, - "Parameters": [ - { - "$id": "16", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "17", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "18", - "Type": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Authentication.Http.Custom" + "apiVersions": [], + "crossLanguageDefinitionId": "Authentication.Http.Custom" } ], "Auth": { - "$id": "20", + "$id": "19", "ApiKey": { - "$id": "21", + "$id": "20", "Name": "Authorization", "In": "header", "Prefix": "SharedAccessKey" diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json index 2c68d619dab..38e0442f1e5 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json @@ -45,12 +45,46 @@ "Clients": [ { "$id": "7", - "Name": "OAuth2Client", - "Namespace": "Authentication.OAuth2", - "Doc": "Illustrates clients generated with OAuth2 authentication.", - "Operations": [ + "kind": "client", + "name": "OAuth2Client", + "namespace": "Authentication.OAuth2", + "doc": "Illustrates clients generated with OAuth2 authentication.", + "parameters": [ { "$id": "8", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "9", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "10", + "Type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "12", "Name": "valid", "ResourceName": "OAuth2", "Doc": "Check whether client is authenticated", @@ -58,7 +92,7 @@ "Parameters": [], "Responses": [ { - "$id": "9", + "$id": "13", "StatusCodes": [ 204 ], @@ -78,21 +112,21 @@ "Decorators": [] }, { - "$id": "10", + "$id": "14", "Name": "invalid", "ResourceName": "OAuth2", "Doc": "Check whether client is authenticated. Will return an invalid bearer error.", "Accessibility": "public", "Parameters": [ { - "$id": "11", + "$id": "15", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "12", + "$id": "16", "kind": "constant", "valueType": { - "$id": "13", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -114,7 +148,7 @@ ], "Responses": [ { - "$id": "14", + "$id": "18", "StatusCodes": [ 204 ], @@ -134,50 +168,14 @@ "Decorators": [] } ], - "Protocol": { - "$id": "15" - }, - "Parameters": [ - { - "$id": "16", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "17", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "18", - "Type": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Authentication.OAuth2" + "apiVersions": [], + "crossLanguageDefinitionId": "Authentication.OAuth2" } ], "Auth": { - "$id": "20", + "$id": "19", "OAuth2": { - "$id": "21", + "$id": "20", "Scopes": [ "https://security.microsoft.com/.default" ] diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json index 646cc543c47..13048b39794 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json @@ -7,12 +7,46 @@ "Clients": [ { "$id": "2", - "Name": "UnionClient", - "Namespace": "Authentication.Union", - "Doc": "Illustrates clients generated with ApiKey and OAuth2 authentication.", - "Operations": [ + "kind": "client", + "name": "UnionClient", + "namespace": "Authentication.Union", + "doc": "Illustrates clients generated with ApiKey and OAuth2 authentication.", + "parameters": [ { "$id": "3", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "4", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "5", + "Type": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "7", "Name": "validKey", "ResourceName": "Union", "Doc": "Check whether client is authenticated", @@ -20,7 +54,7 @@ "Parameters": [], "Responses": [ { - "$id": "4", + "$id": "8", "StatusCodes": [ 204 ], @@ -40,7 +74,7 @@ "Decorators": [] }, { - "$id": "5", + "$id": "9", "Name": "validToken", "ResourceName": "Union", "Doc": "Check whether client is authenticated", @@ -48,7 +82,7 @@ "Parameters": [], "Responses": [ { - "$id": "6", + "$id": "10", "StatusCodes": [ 204 ], @@ -68,55 +102,19 @@ "Decorators": [] } ], - "Protocol": { - "$id": "7" - }, - "Parameters": [ - { - "$id": "8", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "9", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "10", - "Type": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Authentication.Union" + "apiVersions": [], + "crossLanguageDefinitionId": "Authentication.Union" } ], "Auth": { - "$id": "12", + "$id": "11", "ApiKey": { - "$id": "13", + "$id": "12", "Name": "x-ms-api-key", "In": "header" }, "OAuth2": { - "$id": "14", + "$id": "13", "Scopes": [ "https://security.microsoft.com/.default" ] diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json index c98da388622..f2ca55ae468 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json @@ -113,48 +113,17 @@ "Clients": [ { "$id": "14", - "Name": "FirstClient", - "Namespace": "Client.Structure.ClientOperationGroup", - "Operations": [ + "kind": "client", + "name": "FirstClient", + "namespace": "Client.Structure.ClientOperationGroup", + "parameters": [ { "$id": "15", - "Name": "one", - "ResourceName": "ClientOperationGroup", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "16", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/one", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.one", - "Decorators": [] - } - ], - "Protocol": { - "$id": "17" - }, - "Parameters": [ - { - "$id": "18", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "19", + "$id": "16", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -170,7 +139,7 @@ "Kind": "Client" }, { - "$id": "20", + "$id": "17", "Name": "client", "NameInRequest": "client", "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -188,23 +157,16 @@ "Kind": "Client" } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup" - }, - { - "$id": "21", - "Name": "Group3", - "Namespace": "Client.Structure.ClientOperationGroup", - "Operations": [ + "operations": [ { - "$id": "22", - "Name": "two", - "ResourceName": "Group3", + "$id": "18", + "Name": "one", + "ResourceName": "ClientOperationGroup", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "23", + "$id": "19", "StatusCodes": [ 204 ], @@ -216,134 +178,221 @@ "HttpMethod": "POST", "RequestBodyMediaType": "None", "Uri": "{endpoint}/client/structure/{client}", - "Path": "/two", + "Path": "/one", "BufferResponse": true, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.two", + "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.one", "Decorators": [] - }, + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup", + "children": [ { - "$id": "24", - "Name": "three", - "ResourceName": "Group3", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "$id": "20", + "kind": "client", + "name": "Group3", + "namespace": "Client.Structure.ClientOperationGroup", + "parameters": [ { - "$id": "25", - "StatusCodes": [ - 204 + "$id": "21", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "22", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "23", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "24", + "Name": "two", + "ResourceName": "Group3", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "25", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/two", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.two", + "Decorators": [] + }, + { + "$id": "26", + "Name": "three", + "ResourceName": "Group3", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "27", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/three", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.three", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/three", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.three", - "Decorators": [] - } - ], - "Protocol": { - "$id": "26" - }, - "Parent": "FirstClient", - "Parameters": [ - { - "$id": "27", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "28", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3", + "parent": { + "$ref": "14" + } }, { - "$id": "29", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3" - }, - { - "$id": "30", - "Name": "Group4", - "Namespace": "Client.Structure.ClientOperationGroup", - "Operations": [ - { - "$id": "31", - "Name": "four", - "ResourceName": "Group4", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "$id": "28", + "kind": "client", + "name": "Group4", + "namespace": "Client.Structure.ClientOperationGroup", + "parameters": [ + { + "$id": "29", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "30", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "31", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ { "$id": "32", - "StatusCodes": [ - 204 + "Name": "four", + "ResourceName": "Group4", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "33", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/four", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4.four", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/four", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4.four", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4", + "parent": { + "$ref": "14" + } } - ], - "Protocol": { - "$id": "33" - }, - "Parent": "FirstClient", - "Parameters": [ + ] + }, + { + "$id": "34", + "kind": "client", + "name": "SubNamespace.SecondClient", + "namespace": "Client.Structure.AnotherClientOperationGroup", + "parameters": [ { - "$id": "34", + "$id": "35", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "35", + "$id": "36", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -359,7 +408,7 @@ "Kind": "Client" }, { - "$id": "36", + "$id": "37", "Name": "client", "NameInRequest": "client", "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -377,14 +426,7 @@ "Kind": "Client" } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4" - }, - { - "$id": "37", - "Name": "SubNamespace.SecondClient", - "Namespace": "Client.Structure.AnotherClientOperationGroup", - "Operations": [ + "operations": [ { "$id": "38", "Name": "five", @@ -413,133 +455,91 @@ "Decorators": [] } ], - "Protocol": { - "$id": "40" - }, - "Parameters": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup", + "children": [ { - "$id": "41", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "42", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "43", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup" - }, - { - "$id": "44", - "Name": "Group5", - "Namespace": "Client.Structure.AnotherClientOperationGroup", - "Operations": [ - { - "$id": "45", - "Name": "six", - "ResourceName": "Group5", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "$id": "40", + "kind": "client", + "name": "Group5", + "namespace": "Client.Structure.AnotherClientOperationGroup", + "parameters": [ { - "$id": "46", - "StatusCodes": [ - 204 + "$id": "41", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "42", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "43", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "44", + "Name": "six", + "ResourceName": "Group5", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "45", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/six", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5.six", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/six", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5.six", - "Decorators": [] - } - ], - "Protocol": { - "$id": "47" - }, - "Parent": "SubNamespace.SecondClient", - "Parameters": [ - { - "$id": "48", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "49", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "50", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5", + "parent": { + "$ref": "34" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json index adaf2103650..304060cfead 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json @@ -117,15 +117,152 @@ "name": "ServiceClient", "namespace": "Client.Structure.Service", "doc": "Test that we can use @client and @operationGroup decorators to customize client side code structure, such as:\n1. have everything as default.\n2. to rename client or operation group\n3. one client can have more than one operations groups\n4. split one interface into two clients\n5. have two clients with operations come from different interfaces\n6. have two clients with a hierarchy relation.", - "operations": [], + "parameters": [ + { + "$id": "15", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "16", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "17", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "18", + "Name": "one", + "ResourceName": "Service", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "19", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/one", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.one", + "Decorators": [] + }, + { + "$id": "20", + "Name": "two", + "ResourceName": "Service", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "21", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/two", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.two", + "Decorators": [] + } + ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.Service", "children": [ { - "$id": "15", + "$id": "22", "kind": "client", "name": "Baz", "namespace": "Client.Structure.Service.Baz", + "parameters": [ + { + "$id": "23", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "24", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "25", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.Service.Baz", @@ -134,24 +271,162 @@ }, "children": [ { - "$id": "16", + "$id": "26", "kind": "client", "name": "Foo", "namespace": "Client.Structure.Service.Baz", - "operations": [], + "parameters": [ + { + "$id": "27", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "28", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "29", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "30", + "Name": "seven", + "ResourceName": "Foo", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "31", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/seven", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo.seven", + "Decorators": [] + } + ], "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo", "parent": { - "$ref": "15" + "$ref": "22" } } ] }, { - "$id": "17", + "$id": "32", "kind": "client", "name": "Qux", "namespace": "Client.Structure.Service.Qux", - "operations": [], + "parameters": [ + { + "$id": "33", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "34", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "35", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "36", + "Name": "eight", + "ResourceName": "Qux", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "37", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/eight", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Qux.eight", + "Decorators": [] + } + ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.Service.Qux", "parent": { @@ -159,24 +434,189 @@ }, "children": [ { - "$id": "18", + "$id": "38", "kind": "client", "name": "Bar", "namespace": "Client.Structure.Service.Qux", - "operations": [], + "parameters": [ + { + "$id": "39", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "40", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "41", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "42", + "Name": "nine", + "ResourceName": "Bar", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "43", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/nine", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar.nine", + "Decorators": [] + } + ], "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar", "parent": { - "$ref": "17" + "$ref": "32" } } ] }, { - "$id": "19", + "$id": "44", "kind": "client", "name": "Foo", "namespace": "Client.Structure.Service", - "operations": [], + "parameters": [ + { + "$id": "45", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "46", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "47", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "48", + "Name": "three", + "ResourceName": "Foo", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "49", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/three", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Foo.three", + "Decorators": [] + }, + { + "$id": "50", + "Name": "four", + "ResourceName": "Foo", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "51", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/four", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Foo.four", + "Decorators": [] + } + ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.Service.Foo", "parent": { @@ -184,11 +624,107 @@ } }, { - "$id": "20", + "$id": "52", "kind": "client", "name": "Bar", "namespace": "Client.Structure.Service", - "operations": [], + "parameters": [ + { + "$id": "53", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "54", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "55", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "56", + "Name": "five", + "ResourceName": "Bar", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "57", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/five", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Bar.five", + "Decorators": [] + }, + { + "$id": "58", + "Name": "six", + "ResourceName": "Bar", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "59", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/six", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Bar.six", + "Decorators": [] + } + ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.Service.Bar", "parent": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json index 7265ea6b062..f1469574e72 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json @@ -113,18 +113,60 @@ "Clients": [ { "$id": "14", - "Name": "ClientAClient", - "Namespace": "Client.Structure.MultiClient", - "Operations": [ + "kind": "client", + "name": "ClientAClient", + "namespace": "Client.Structure.MultiClient", + "parameters": [ { "$id": "15", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "16", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "17", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "18", "Name": "renamedOne", "ResourceName": "ClientA", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "16", + "$id": "19", "StatusCodes": [ 204 ], @@ -144,14 +186,14 @@ "Decorators": [] }, { - "$id": "17", + "$id": "20", "Name": "renamedThree", "ResourceName": "ClientA", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "18", + "$id": "21", "StatusCodes": [ 204 ], @@ -171,14 +213,14 @@ "Decorators": [] }, { - "$id": "19", + "$id": "22", "Name": "renamedFive", "ResourceName": "ClientA", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "20", + "$id": "23", "StatusCodes": [ 204 ], @@ -198,17 +240,22 @@ "Decorators": [] } ], - "Protocol": { - "$id": "21" - }, - "Parameters": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA" + }, + { + "$id": "24", + "kind": "client", + "name": "ClientBClient", + "namespace": "Client.Structure.MultiClient", + "parameters": [ { - "$id": "22", + "$id": "25", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "23", + "$id": "26", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -224,7 +271,7 @@ "Kind": "Client" }, { - "$id": "24", + "$id": "27", "Name": "client", "NameInRequest": "client", "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -242,23 +289,16 @@ "Kind": "Client" } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA" - }, - { - "$id": "25", - "Name": "ClientBClient", - "Namespace": "Client.Structure.MultiClient", - "Operations": [ + "operations": [ { - "$id": "26", + "$id": "28", "Name": "renamedTwo", "ResourceName": "ClientB", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "27", + "$id": "29", "StatusCodes": [ 204 ], @@ -278,14 +318,14 @@ "Decorators": [] }, { - "$id": "28", + "$id": "30", "Name": "renamedFour", "ResourceName": "ClientB", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "29", + "$id": "31", "StatusCodes": [ 204 ], @@ -305,14 +345,14 @@ "Decorators": [] }, { - "$id": "30", + "$id": "32", "Name": "renamedSix", "ResourceName": "ClientB", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "31", + "$id": "33", "StatusCodes": [ 204 ], @@ -332,52 +372,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "32" - }, - "Parameters": [ - { - "$id": "33", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "34", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "35", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB" + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json index 1a6304813fc..583b8eeba6d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json @@ -113,102 +113,17 @@ "Clients": [ { "$id": "14", - "Name": "RenamedOperationClient", - "Namespace": "Client.Structure.RenamedOperation", - "Operations": [ + "kind": "client", + "name": "RenamedOperationClient", + "namespace": "Client.Structure.RenamedOperation", + "parameters": [ { "$id": "15", - "Name": "renamedOne", - "ResourceName": "RenamedOperation", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "16", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/one", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedOne", - "Decorators": [] - }, - { - "$id": "17", - "Name": "renamedThree", - "ResourceName": "RenamedOperation", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "18", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/three", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedThree", - "Decorators": [] - }, - { - "$id": "19", - "Name": "renamedFive", - "ResourceName": "RenamedOperation", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "20", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/five", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedFive", - "Decorators": [] - } - ], - "Protocol": { - "$id": "21" - }, - "Parameters": [ - { - "$id": "22", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "23", + "$id": "16", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -224,7 +139,7 @@ "Kind": "Client" }, { - "$id": "24", + "$id": "17", "Name": "client", "NameInRequest": "client", "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -242,23 +157,16 @@ "Kind": "Client" } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation" - }, - { - "$id": "25", - "Name": "Group", - "Namespace": "Client.Structure.RenamedOperation", - "Operations": [ + "operations": [ { - "$id": "26", - "Name": "renamedTwo", - "ResourceName": "Group", + "$id": "18", + "Name": "renamedOne", + "ResourceName": "RenamedOperation", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "27", + "$id": "19", "StatusCodes": [ 204 ], @@ -270,22 +178,22 @@ "HttpMethod": "POST", "RequestBodyMediaType": "None", "Uri": "{endpoint}/client/structure/{client}", - "Path": "/two", + "Path": "/one", "BufferResponse": true, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedTwo", + "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedOne", "Decorators": [] }, { - "$id": "28", - "Name": "renamedFour", - "ResourceName": "Group", + "$id": "20", + "Name": "renamedThree", + "ResourceName": "RenamedOperation", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "29", + "$id": "21", "StatusCodes": [ 204 ], @@ -297,22 +205,22 @@ "HttpMethod": "POST", "RequestBodyMediaType": "None", "Uri": "{endpoint}/client/structure/{client}", - "Path": "/four", + "Path": "/three", "BufferResponse": true, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedFour", + "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedThree", "Decorators": [] }, { - "$id": "30", - "Name": "renamedSix", - "ResourceName": "Group", + "$id": "22", + "Name": "renamedFive", + "ResourceName": "RenamedOperation", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "31", + "$id": "23", "StatusCodes": [ 204 ], @@ -324,61 +232,153 @@ "HttpMethod": "POST", "RequestBodyMediaType": "None", "Uri": "{endpoint}/client/structure/{client}", - "Path": "/six", + "Path": "/five", "BufferResponse": true, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedSix", + "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedFive", "Decorators": [] } ], - "Protocol": { - "$id": "32" - }, - "Parent": "RenamedOperationClient", - "Parameters": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation", + "children": [ { - "$id": "33", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "34", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "35", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "$id": "24", + "kind": "client", + "name": "Group", + "namespace": "Client.Structure.RenamedOperation", + "parameters": [ + { + "$id": "25", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "26", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "27", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "28", + "Name": "renamedTwo", + "ResourceName": "Group", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "29", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/two", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedTwo", + "Decorators": [] + }, + { + "$id": "30", + "Name": "renamedFour", + "ResourceName": "Group", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "31", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/four", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedFour", + "Decorators": [] + }, + { + "$id": "32", + "Name": "renamedSix", + "ResourceName": "Group", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "33", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/six", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedSix", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group", + "parent": { + "$ref": "14" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json index 8d1997bcccf..7745b6e3ef0 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json @@ -113,20 +113,17 @@ "Clients": [ { "$id": "14", - "Name": "TwoOperationGroupClient", - "Namespace": "Client.Structure.TwoOperationGroup", - "Operations": [], - "Protocol": { - "$id": "15" - }, - "Parameters": [ + "kind": "client", + "name": "TwoOperationGroupClient", + "namespace": "Client.Structure.TwoOperationGroup", + "parameters": [ { - "$id": "16", + "$id": "15", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "17", + "$id": "16", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -142,7 +139,7 @@ "Kind": "Client" }, { - "$id": "18", + "$id": "17", "Name": "client", "NameInRequest": "client", "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -160,278 +157,281 @@ "Kind": "Client" } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup" - }, - { - "$id": "19", - "Name": "Group1", - "Namespace": "Client.Structure.TwoOperationGroup", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup", + "children": [ { - "$id": "20", - "Name": "one", - "ResourceName": "Group1", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "$id": "18", + "kind": "client", + "name": "Group1", + "namespace": "Client.Structure.TwoOperationGroup", + "parameters": [ + { + "$id": "19", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "20", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, { "$id": "21", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/one", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.one", - "Decorators": [] - }, - { - "$id": "22", - "Name": "three", - "ResourceName": "Group1", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "operations": [ + { + "$id": "22", + "Name": "one", + "ResourceName": "Group1", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "23", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/one", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.one", + "Decorators": [] + }, { - "$id": "23", - "StatusCodes": [ - 204 + "$id": "24", + "Name": "three", + "ResourceName": "Group1", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "25", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/three", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.three", + "Decorators": [] + }, + { + "$id": "26", + "Name": "four", + "ResourceName": "Group1", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "27", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/four", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.four", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/three", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.three", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1", + "parent": { + "$ref": "14" + } }, { - "$id": "24", - "Name": "four", - "ResourceName": "Group1", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "$id": "28", + "kind": "client", + "name": "Group2", + "namespace": "Client.Structure.TwoOperationGroup", + "parameters": [ { - "$id": "25", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "$id": "29", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "30", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "31", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/four", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.four", - "Decorators": [] - } - ], - "Protocol": { - "$id": "26" - }, - "Parent": "TwoOperationGroupClient", - "Parameters": [ - { - "$id": "27", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "28", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "29", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1" - }, - { - "$id": "30", - "Name": "Group2", - "Namespace": "Client.Structure.TwoOperationGroup", - "Operations": [ - { - "$id": "31", - "Name": "two", - "ResourceName": "Group2", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "operations": [ { "$id": "32", - "StatusCodes": [ - 204 + "Name": "two", + "ResourceName": "Group2", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "33", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/two", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.two", - "Decorators": [] - }, - { - "$id": "33", - "Name": "five", - "ResourceName": "Group2", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/two", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.two", + "Decorators": [] + }, { "$id": "34", - "StatusCodes": [ - 204 + "Name": "five", + "ResourceName": "Group2", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "35", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/five", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.five", - "Decorators": [] - }, - { - "$id": "35", - "Name": "six", - "ResourceName": "Group2", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/five", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.five", + "Decorators": [] + }, { "$id": "36", - "StatusCodes": [ - 204 + "Name": "six", + "ResourceName": "Group2", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "37", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/six", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.six", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/six", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.six", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2", + "parent": { + "$ref": "14" + } } - ], - "Protocol": { - "$id": "37" - }, - "Parent": "TwoOperationGroupClient", - "Parameters": [ - { - "$id": "38", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "39", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "40", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json index 6d580dba1a3..919538a9957 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json @@ -175,21 +175,18 @@ "Clients": [ { "$id": "24", - "Name": "BytesClient", - "Namespace": "Encode.Bytes", - "Doc": "Test for encode decorator on bytes.", - "Operations": [], - "Protocol": { - "$id": "25" - }, - "Parameters": [ + "kind": "client", + "name": "BytesClient", + "namespace": "Encode.Bytes", + "doc": "Test for encode decorator on bytes.", + "parameters": [ { - "$id": "26", + "$id": "25", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "27", + "$id": "26", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -204,9 +201,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "28", + "$id": "27", "Type": { - "$id": "29", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -215,1591 +212,1583 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Bytes" - }, - { - "$id": "30", - "Name": "Query", - "Namespace": "Encode.Bytes.Query", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Bytes", + "children": [ { - "$id": "31", - "Name": "default", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "$id": "29", + "kind": "client", + "name": "Query", + "namespace": "Encode.Bytes.Query", + "parameters": [ { - "$id": "32", - "Name": "value", - "NameInRequest": "value", + "$id": "30", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "33", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] + "$id": "31", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "32", + "Type": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { "$id": "34", - "StatusCodes": [ - 204 + "Name": "default", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "35", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "36", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/query/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Query.default", - "Decorators": [] - }, - { - "$id": "35", - "Name": "base64", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "36", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "37", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "Responses": [ + { + "$id": "37", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/query/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Query.default", + "Decorators": [] + }, { "$id": "38", - "StatusCodes": [ - 204 + "Name": "base64", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "39", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "40", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/query/base64", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Query.base64", - "Decorators": [] - }, - { - "$id": "39", - "Name": "base64url", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "40", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "41", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "42", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "41", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/query/base64url", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Query.base64url", - "Decorators": [] - }, - { - "$id": "43", - "Name": "base64urlArray", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/query/base64", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Query.base64", + "Decorators": [] + }, { - "$id": "44", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "45", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "46", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "47", + "$id": "42", + "Name": "base64url", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "43", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "44", "kind": "bytes", "name": "bytes", - "encode": "base64", + "encode": "base64url", "crossLanguageDefinitionId": "TypeSpec.bytes", "decorators": [] }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "45", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/query/base64url", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Query.base64url", + "Decorators": [] + }, { - "$id": "48", - "StatusCodes": [ - 204 + "$id": "46", + "Name": "base64urlArray", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "47", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "48", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "49", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "50", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "51", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/query/base64url-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/query/base64url-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "49" - }, - "Parent": "BytesClient", - "Parameters": [ - { - "$id": "50", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "51", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "52", - "Type": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Bytes.Query", + "parent": { + "$ref": "24" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Bytes.Query" - }, - { - "$id": "54", - "Name": "Property", - "Namespace": "Encode.Bytes.Property", - "Operations": [ + }, { - "$id": "55", - "Name": "default", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + "$id": "52", + "kind": "client", + "name": "Property", + "namespace": "Encode.Bytes.Property", + "parameters": [ { - "$id": "56", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "53", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "57", - "kind": "constant", - "valueType": { - "$id": "58", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "54", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "59", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "60", - "kind": "constant", - "valueType": { - "$id": "61", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "55", + "Type": { + "$id": "56", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "62", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "63", - "StatusCodes": [ - 200 + "$id": "57", + "Name": "default", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "58", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "59", + "kind": "constant", + "valueType": { + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "61", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "62", + "kind": "constant", + "valueType": { + "$id": "63", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "64", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "2" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "65", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/bytes/property/default", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/bytes/property/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Property.default", - "Decorators": [] - }, - { - "$id": "64", - "Name": "base64", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Property.default", + "Decorators": [] + }, { - "$id": "65", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "66", - "kind": "constant", - "valueType": { + "$id": "66", + "Name": "base64", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "68", + "kind": "constant", + "valueType": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "68", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "69", - "kind": "constant", - "valueType": { + { "$id": "70", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "71", + "kind": "constant", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "73", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "7" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "74", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "7" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/bytes/property/base64", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Property.base64", + "Decorators": [] }, { - "$id": "71", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "7" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "75", + "Name": "base64url", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "76", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "77", + "kind": "constant", + "valueType": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "79", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "80", + "kind": "constant", + "valueType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "82", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "12" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "83", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "12" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/bytes/property/base64url", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Property.base64url", + "Decorators": [] + }, { - "$id": "72", - "StatusCodes": [ - 200 + "$id": "84", + "Name": "base64urlArray", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "85", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "86", + "kind": "constant", + "valueType": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "88", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "89", + "kind": "constant", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "91", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "17" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "7" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "92", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "17" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/bytes/property/base64url-array", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/bytes/property/base64", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Property.base64", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Bytes.Property", + "parent": { + "$ref": "24" + } }, { - "$id": "73", - "Name": "base64url", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + "$id": "93", + "kind": "client", + "name": "Header", + "namespace": "Encode.Bytes.Header", + "parameters": [ { - "$id": "74", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "94", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "75", - "kind": "constant", - "valueType": { - "$id": "76", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "95", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "77", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "78", - "kind": "constant", - "valueType": { - "$id": "79", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "96", + "Type": { + "$id": "97", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "80", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "12" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "98", + "Name": "default", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "99", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "100", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "101", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/header/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Header.default", + "Decorators": [] + }, { - "$id": "81", - "StatusCodes": [ - 200 + "$id": "102", + "Name": "base64", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "103", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "104", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "12" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] + "Responses": [ + { + "$id": "105", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/header/base64", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Header.base64", + "Decorators": [] + }, + { + "$id": "106", + "Name": "base64url", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "107", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "108", + "kind": "bytes", + "name": "bytes", + "encode": "base64url", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "109", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/header/base64url", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Header.base64url", + "Decorators": [] + }, + { + "$id": "110", + "Name": "base64urlArray", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "111", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "112", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "113", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "114", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "115", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/header/base64url-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/bytes/property/base64url", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Property.base64url", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Bytes.Header", + "parent": { + "$ref": "24" + } }, { - "$id": "82", - "Name": "base64urlArray", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + "$id": "116", + "kind": "client", + "name": "RequestBody", + "namespace": "Encode.Bytes.RequestBody", + "parameters": [ { - "$id": "83", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "117", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "84", - "kind": "constant", - "valueType": { - "$id": "85", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "118", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "86", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "87", - "kind": "constant", - "valueType": { - "$id": "88", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "119", + "Type": { + "$id": "120", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "89", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "17" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "90", - "StatusCodes": [ - 200 + "$id": "121", + "Name": "default", + "ResourceName": "RequestBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "122", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "123", + "kind": "constant", + "valueType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "125", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "126", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "17" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "127", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Binary", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/request/default", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/bytes/property/base64url-array", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "91" - }, - "Parent": "BytesClient", - "Parameters": [ - { - "$id": "92", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "93", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "94", - "Type": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Bytes.Property" - }, - { - "$id": "96", - "Name": "Header", - "Namespace": "Encode.Bytes.Header", - "Operations": [ - { - "$id": "97", - "Name": "default", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "98", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "99", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "100", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/header/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Header.default", - "Decorators": [] - }, - { - "$id": "101", - "Name": "base64", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "102", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "103", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "104", - "StatusCodes": [ - 204 ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/header/base64", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Header.base64", - "Decorators": [] - }, - { - "$id": "105", - "Name": "base64url", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "106", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "107", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "108", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/header/base64url", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Header.base64url", - "Decorators": [] - }, - { - "$id": "109", - "Name": "base64urlArray", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.default", + "Decorators": [] + }, { - "$id": "110", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "111", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "112", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "113", + "$id": "128", + "Name": "octetStream", + "ResourceName": "RequestBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "129", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "130", + "kind": "constant", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "132", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "133", "kind": "bytes", "name": "bytes", - "encode": "base64", "crossLanguageDefinitionId": "TypeSpec.bytes", "decorators": [] }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "114", - "StatusCodes": [ - 204 + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/header/base64url-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "115" - }, - "Parent": "BytesClient", - "Parameters": [ - { - "$id": "116", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "117", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "118", - "Type": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "134", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Binary", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/request/octet-stream", + "RequestMediaTypes": [ + "application/octet-stream" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Bytes.Header" - }, - { - "$id": "120", - "Name": "RequestBody", - "Namespace": "Encode.Bytes.RequestBody", - "Operations": [ - { - "$id": "121", - "Name": "default", - "ResourceName": "RequestBody", - "Accessibility": "public", - "Parameters": [ { - "$id": "122", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "123", - "kind": "constant", - "valueType": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "135", + "Name": "customContentType", + "ResourceName": "RequestBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "136", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "137", + "kind": "constant", + "valueType": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "125", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "126", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "127", - "StatusCodes": [ - 204 + { + "$id": "139", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "140", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Binary", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/request/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.default", - "Decorators": [] - }, - { - "$id": "128", - "Name": "octetStream", - "ResourceName": "RequestBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "129", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "130", - "kind": "constant", - "valueType": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "132", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "133", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "134", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "141", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Binary", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/request/octet-stream", - "RequestMediaTypes": [ - "application/octet-stream" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream", - "Decorators": [] - }, - { - "$id": "135", - "Name": "customContentType", - "ResourceName": "RequestBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "136", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "137", - "kind": "constant", - "valueType": { - "$id": "138", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "139", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "140", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "141", - "StatusCodes": [ - 204 + "HttpMethod": "POST", + "RequestBodyMediaType": "Binary", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/request/custom-content-type", + "RequestMediaTypes": [ + "image/png" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Binary", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/request/custom-content-type", - "RequestMediaTypes": [ - "image/png" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType", - "Decorators": [] - }, - { - "$id": "142", - "Name": "base64", - "ResourceName": "RequestBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "143", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "144", - "kind": "constant", - "valueType": { - "$id": "145", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType", + "Decorators": [] }, { - "$id": "146", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "147", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "148", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Binary", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/request/base64", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64", - "Decorators": [] - }, - { - "$id": "149", - "Name": "base64url", - "ResourceName": "RequestBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "150", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "151", - "kind": "constant", - "valueType": { - "$id": "152", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "142", + "Name": "base64", + "ResourceName": "RequestBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "143", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "144", + "kind": "constant", + "valueType": { + "$id": "145", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "153", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "154", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "155", - "StatusCodes": [ - 204 + { + "$id": "146", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "147", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Binary", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/request/base64url", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url", - "Decorators": [] - } - ], - "Protocol": { - "$id": "156" - }, - "Parent": "BytesClient", - "Parameters": [ - { - "$id": "157", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "158", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "159", - "Type": { - "$id": "160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody" - }, - { - "$id": "161", - "Name": "ResponseBody", - "Namespace": "Encode.Bytes.ResponseBody", - "Operations": [ - { - "$id": "162", - "Name": "default", - "ResourceName": "ResponseBody", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "148", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Binary", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/request/base64", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64", + "Decorators": [] + }, { - "$id": "163", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "164", - "kind": "constant", - "valueType": { - "$id": "165", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "149", + "Name": "base64url", + "ResourceName": "RequestBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "150", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "151", + "kind": "constant", + "valueType": { + "$id": "152", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "166", - "StatusCodes": [ - 200 + { + "$id": "153", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "154", + "kind": "bytes", + "name": "bytes", + "encode": "base64url", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "167", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "155", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Binary", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/request/base64url", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/response/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody", + "parent": { + "$ref": "24" + } }, { - "$id": "168", - "Name": "octetStream", - "ResourceName": "ResponseBody", - "Accessibility": "public", - "Parameters": [ + "$id": "156", + "kind": "client", + "name": "ResponseBody", + "namespace": "Encode.Bytes.ResponseBody", + "parameters": [ { - "$id": "169", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "157", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "170", - "kind": "constant", - "valueType": { - "$id": "171", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] + "$id": "158", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "159", + "Type": { + "$id": "160", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "172", - "StatusCodes": [ - 200 + "$id": "161", + "Name": "default", + "ResourceName": "ResponseBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "162", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "163", + "kind": "constant", + "valueType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "173", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [ + "Responses": [ { - "$id": "174", - "Name": "contentType", - "NameInResponse": "content-type", + "$id": "165", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "166", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/response/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default", + "Decorators": [] + }, + { + "$id": "167", + "Name": "octetStream", + "ResourceName": "ResponseBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "168", + "Name": "accept", + "NameInRequest": "Accept", "Type": { - "$id": "175", + "$id": "169", "kind": "constant", "valueType": { - "$id": "176", + "$id": "170", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1807,83 +1796,83 @@ }, "value": "application/octet-stream", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/octet-stream" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/response/octet-stream", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream", - "Decorators": [] - }, - { - "$id": "177", - "Name": "customContentType", - "ResourceName": "ResponseBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "178", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "179", - "kind": "constant", - "valueType": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "181", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "171", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "172", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "173", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "174", + "kind": "constant", + "valueType": { + "$id": "175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/octet-stream" + ] + } ], - "BodyType": { - "$id": "182", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/response/octet-stream", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream", + "Decorators": [] + }, + { + "$id": "176", + "Name": "customContentType", + "ResourceName": "ResponseBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "183", - "Name": "contentType", - "NameInResponse": "content-type", + "$id": "177", + "Name": "accept", + "NameInRequest": "Accept", "Type": { - "$id": "184", + "$id": "178", "kind": "constant", "valueType": { - "$id": "185", + "$id": "179", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1891,205 +1880,216 @@ }, "value": "image/png", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "180", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "181", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "182", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "183", + "kind": "constant", + "valueType": { + "$id": "184", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "image/png" + ] } ], - "IsErrorResponse": false, - "ContentTypes": [ - "image/png" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/response/custom-content-type", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType", - "Decorators": [] - }, - { - "$id": "186", - "Name": "base64", - "ResourceName": "ResponseBody", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/response/custom-content-type", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType", + "Decorators": [] + }, { - "$id": "187", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "188", - "kind": "constant", - "valueType": { + "$id": "185", + "Name": "base64", + "ResourceName": "ResponseBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "186", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "187", + "kind": "constant", + "valueType": { + "$id": "188", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { "$id": "189", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "190", - "StatusCodes": [ - 200 + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "190", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyType": { - "$id": "191", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/response/base64", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64", - "Decorators": [] - }, - { - "$id": "192", - "Name": "base64url", - "ResourceName": "ResponseBody", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/response/base64", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64", + "Decorators": [] + }, { - "$id": "193", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "194", - "kind": "constant", - "valueType": { + "$id": "191", + "Name": "base64url", + "ResourceName": "ResponseBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "192", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "193", + "kind": "constant", + "valueType": { + "$id": "194", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { "$id": "195", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "196", - "StatusCodes": [ - 200 + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "196", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "197", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyType": { - "$id": "197", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "198", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/response/base64url", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64url", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/response/base64url", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64url", - "Decorators": [] - } - ], - "Protocol": { - "$id": "199" - }, - "Parent": "BytesClient", - "Parameters": [ - { - "$id": "200", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "201", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "202", - "Type": { - "$id": "203", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody", + "parent": { + "$ref": "24" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json index f7e300ee8d3..c15976b71a5 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json @@ -255,21 +255,18 @@ "Clients": [ { "$id": "35", - "Name": "DatetimeClient", - "Namespace": "Encode.Datetime", - "Doc": "Test for encode decorator on datetime.", - "Operations": [], - "Protocol": { - "$id": "36" - }, - "Parameters": [ + "kind": "client", + "name": "DatetimeClient", + "namespace": "Encode.Datetime", + "doc": "Test for encode decorator on datetime.", + "parameters": [ { - "$id": "37", + "$id": "36", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "38", + "$id": "37", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -284,9 +281,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "39", + "$id": "38", "Type": { - "$id": "40", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -295,276 +292,180 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Datetime" - }, - { - "$id": "41", - "Name": "Query", - "Namespace": "Encode.Datetime.Query", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Datetime", + "children": [ { - "$id": "42", - "Name": "default", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "$id": "40", + "kind": "client", + "name": "Query", + "namespace": "Encode.Datetime.Query", + "parameters": [ { - "$id": "43", - "Name": "value", - "NameInRequest": "value", + "$id": "41", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "44", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "$id": "42", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "46", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/query/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Query.default", - "Decorators": [] - }, - { - "$id": "47", - "Name": "rfc3339", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "48", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "49", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, + "IsEndpoint": true, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "51", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/query/rfc3339", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339", - "Decorators": [] - }, - { - "$id": "52", - "Name": "rfc7231", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "53", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "54", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "55", + "Kind": "Client", + "DefaultValue": { + "$id": "43", + "Type": { + "$id": "44", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "56", - "StatusCodes": [ - 204 + "$id": "45", + "Name": "default", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "46", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "47", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/query/rfc7231", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Query.rfc7231", - "Decorators": [] - }, - { - "$id": "57", - "Name": "unixTimestamp", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "58", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "59", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "60", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "61", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "49", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/query/unix-timestamp", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp", - "Decorators": [] - }, - { - "$id": "62", - "Name": "unixTimestampArray", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/query/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Query.default", + "Decorators": [] + }, { - "$id": "63", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "64", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "65", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "66", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", + "$id": "50", + "Name": "rfc3339", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "51", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "52", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "53", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "67", + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "54", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/query/rfc3339", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339", + "Decorators": [] + }, + { + "$id": "55", + "Name": "rfc7231", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "56", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "57", "kind": "utcDateTime", "name": "utcDateTime", - "encode": "rfc3339", + "encode": "rfc7231", "wireType": { - "$id": "68", + "$id": "58", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -573,1060 +474,829 @@ "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "59", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/query/rfc7231", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Query.rfc7231", + "Decorators": [] + }, + { + "$id": "60", + "Name": "unixTimestamp", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "61", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "62", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "63", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "64", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/query/unix-timestamp", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp", + "Decorators": [] + }, { - "$id": "69", - "StatusCodes": [ - 204 + "$id": "65", + "Name": "unixTimestampArray", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "66", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "67", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "68", + "kind": "utcDateTime", + "name": "unixTimestampDatetime", + "encode": "unixTimestamp", + "wireType": { + "$id": "69", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", + "baseType": { + "$id": "70", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "71", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "72", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/query/unix-timestamp-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestampArray", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/query/unix-timestamp-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestampArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "70" - }, - "Parent": "DatetimeClient", - "Parameters": [ - { - "$id": "71", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "72", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "73", - "Type": { - "$id": "74", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Datetime.Query", + "parent": { + "$ref": "35" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Datetime.Query" - }, - { - "$id": "75", - "Name": "Property", - "Namespace": "Encode.Datetime.Property", - "Operations": [ + }, { - "$id": "76", - "Name": "default", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + "$id": "73", + "kind": "client", + "name": "Property", + "namespace": "Encode.Datetime.Property", + "parameters": [ { - "$id": "77", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "74", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "78", - "kind": "constant", - "valueType": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "75", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "80", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "81", - "kind": "constant", - "valueType": { - "$id": "82", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "76", + "Type": { + "$id": "77", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "83", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "84", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "2" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/datetime/property/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Property.default", - "Decorators": [] - }, - { - "$id": "85", - "Name": "rfc3339", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "86", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "87", - "kind": "constant", - "valueType": { - "$id": "88", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "78", + "Name": "default", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "79", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "80", + "kind": "constant", + "valueType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "89", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "90", - "kind": "constant", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "82", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "83", + "kind": "constant", + "valueType": { + "$id": "84", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "92", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "8" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "93", - "StatusCodes": [ - 200 + { + "$id": "85", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "8" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/datetime/property/rfc3339", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339", - "Decorators": [] - }, - { - "$id": "94", - "Name": "rfc7231", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "95", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "96", - "kind": "constant", - "valueType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "98", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "99", - "kind": "constant", - "valueType": { - "$id": "100", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "101", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "14" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "102", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "86", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyType": { - "$ref": "14" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/datetime/property/default", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/datetime/property/rfc7231", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231", - "Decorators": [] - }, - { - "$id": "103", - "Name": "unixTimestamp", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "104", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "105", - "kind": "constant", - "valueType": { - "$id": "106", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "107", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "108", - "kind": "constant", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "110", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "20" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "111", - "StatusCodes": [ - 200 ], - "BodyType": { - "$ref": "20" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/datetime/property/unix-timestamp", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp", - "Decorators": [] - }, - { - "$id": "112", - "Name": "unixTimestampArray", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "113", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "114", - "kind": "constant", - "valueType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Property.default", + "Decorators": [] }, { - "$id": "116", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "117", - "kind": "constant", - "valueType": { - "$id": "118", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "87", + "Name": "rfc3339", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "88", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "89", + "kind": "constant", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "119", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "26" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "120", - "StatusCodes": [ - 200 + { + "$id": "91", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "92", + "kind": "constant", + "valueType": { + "$id": "93", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "94", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "8" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "26" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "95", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "8" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/datetime/property/rfc3339", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/datetime/property/unix-timestamp-array", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "121" - }, - "Parent": "DatetimeClient", - "Parameters": [ - { - "$id": "122", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "123", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "124", - "Type": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Datetime.Property" - }, - { - "$id": "126", - "Name": "Header", - "Namespace": "Encode.Datetime.Header", - "Operations": [ - { - "$id": "127", - "Name": "default", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ { - "$id": "128", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "129", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "130", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "96", + "Name": "rfc7231", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "97", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "98", + "kind": "constant", + "valueType": { + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "131", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/header/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Header.default", - "Decorators": [] - }, - { - "$id": "132", - "Name": "rfc3339", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "133", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "134", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "100", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "101", + "kind": "constant", + "valueType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "136", - "StatusCodes": [ - 204 + { + "$id": "103", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "14" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/header/rfc3339", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339", - "Decorators": [] - }, - { - "$id": "137", - "Name": "rfc7231", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "138", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "139", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "141", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "104", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "14" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/datetime/property/rfc7231", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/header/rfc7231", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231", - "Decorators": [] - }, - { - "$id": "142", - "Name": "unixTimestamp", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231", + "Decorators": [] + }, { - "$id": "143", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "144", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "145", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] + "$id": "105", + "Name": "unixTimestamp", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "106", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "107", + "kind": "constant", + "valueType": { + "$id": "108", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "146", - "StatusCodes": [ - 204 + { + "$id": "109", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "110", + "kind": "constant", + "valueType": { + "$id": "111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "112", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "20" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/header/unix-timestamp", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp", - "Decorators": [] - }, - { - "$id": "147", - "Name": "unixTimestampArray", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "113", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "20" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/datetime/property/unix-timestamp", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp", + "Decorators": [] + }, { - "$id": "148", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "149", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "150", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "151", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", + "$id": "114", + "Name": "unixTimestampArray", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "115", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "116", + "kind": "constant", + "valueType": { + "$id": "117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "152", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "153", + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "118", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "119", + "kind": "constant", + "valueType": { + "$id": "120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "value": "application/json", "decorators": [] }, - "decorators": [] + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "121", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "26" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "122", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "26" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/datetime/property/unix-timestamp-array", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Datetime.Property", + "parent": { + "$ref": "35" + } + }, + { + "$id": "123", + "kind": "client", + "name": "Header", + "namespace": "Encode.Datetime.Header", + "parameters": [ + { + "$id": "124", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "125", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "154", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "126", + "Type": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/header/unix-timestamp-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "155" - }, - "Parent": "DatetimeClient", - "Parameters": [ - { - "$id": "156", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "157", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "158", - "Type": { - "$id": "159", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Datetime.Header" - }, - { - "$id": "160", - "Name": "ResponseHeader", - "Namespace": "Encode.Datetime.ResponseHeader", - "Operations": [ - { - "$id": "161", - "Name": "default", - "ResourceName": "ResponseHeader", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "operations": [ { - "$id": "162", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [ + "$id": "128", + "Name": "default", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ { - "$id": "163", + "$id": "129", "Name": "value", - "NameInResponse": "value", + "NameInRequest": "value", "Type": { - "$id": "164", + "$id": "130", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "165", + "$id": "131", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1634,47 +1304,56 @@ }, "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/responseheader/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.default", - "Decorators": [] - }, - { - "$id": "166", - "Name": "rfc3339", - "ResourceName": "ResponseHeader", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "167", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "132", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/header/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Header.default", + "Decorators": [] + }, + { + "$id": "133", + "Name": "rfc3339", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ { - "$id": "168", + "$id": "134", "Name": "value", - "NameInResponse": "value", + "NameInRequest": "value", "Type": { - "$id": "169", + "$id": "135", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "170", + "$id": "136", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1682,47 +1361,56 @@ }, "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/responseheader/rfc3339", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc3339", - "Decorators": [] - }, - { - "$id": "171", - "Name": "rfc7231", - "ResourceName": "ResponseHeader", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "172", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "137", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/header/rfc3339", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339", + "Decorators": [] + }, + { + "$id": "138", + "Name": "rfc7231", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ { - "$id": "173", + "$id": "139", "Name": "value", - "NameInResponse": "value", + "NameInRequest": "value", "Type": { - "$id": "174", + "$id": "140", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "175", + "$id": "141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1730,47 +1418,56 @@ }, "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/responseheader/rfc7231", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc7231", - "Decorators": [] - }, - { - "$id": "176", - "Name": "unixTimestamp", - "ResourceName": "ResponseHeader", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "177", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "142", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/header/rfc7231", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231", + "Decorators": [] + }, + { + "$id": "143", + "Name": "unixTimestamp", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ { - "$id": "178", + "$id": "144", "Name": "value", - "NameInResponse": "value", + "NameInRequest": "value", "Type": { - "$id": "179", + "$id": "145", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "180", + "$id": "146", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -1778,62 +1475,365 @@ }, "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "147", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/header/unix-timestamp", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp", + "Decorators": [] + }, + { + "$id": "148", + "Name": "unixTimestampArray", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "149", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "150", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "151", + "kind": "utcDateTime", + "name": "unixTimestampDatetime", + "encode": "unixTimestamp", + "wireType": { + "$id": "152", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", + "baseType": { + "$id": "153", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "155", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false } ], - "IsErrorResponse": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/header/unix-timestamp-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/datetime/responseheader/unix-timestamp", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.unixTimestamp", - "Decorators": [] - } - ], - "Protocol": { - "$id": "181" - }, - "Parent": "DatetimeClient", - "Parameters": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Datetime.Header", + "parent": { + "$ref": "35" + } + }, { - "$id": "182", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "183", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "184", - "Type": { - "$id": "185", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "156", + "kind": "client", + "name": "ResponseHeader", + "namespace": "Encode.Datetime.ResponseHeader", + "parameters": [ + { + "$id": "157", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "158", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "159", + "Type": { + "$id": "160", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "161", + "Name": "default", + "ResourceName": "ResponseHeader", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "162", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "163", + "Name": "value", + "NameInResponse": "value", + "Type": { + "$id": "164", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "165", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/responseheader/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.default", + "Decorators": [] }, - "Value": "http://localhost:3000" + { + "$id": "166", + "Name": "rfc3339", + "ResourceName": "ResponseHeader", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "167", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "168", + "Name": "value", + "NameInResponse": "value", + "Type": { + "$id": "169", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "170", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/responseheader/rfc3339", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc3339", + "Decorators": [] + }, + { + "$id": "171", + "Name": "rfc7231", + "ResourceName": "ResponseHeader", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "172", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "173", + "Name": "value", + "NameInResponse": "value", + "Type": { + "$id": "174", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/responseheader/rfc7231", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc7231", + "Decorators": [] + }, + { + "$id": "176", + "Name": "unixTimestamp", + "ResourceName": "ResponseHeader", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "177", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "178", + "Name": "value", + "NameInResponse": "value", + "Type": { + "$id": "179", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "180", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/datetime/responseheader/unix-timestamp", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.unixTimestamp", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader", + "parent": { + "$ref": "35" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json index ec9da06baf2..ab149db5ef8 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json @@ -300,21 +300,18 @@ "Clients": [ { "$id": "41", - "Name": "DurationClient", - "Namespace": "Encode.Duration", - "Doc": "Test for encode decorator on duration.", - "Operations": [], - "Protocol": { - "$id": "42" - }, - "Parameters": [ + "kind": "client", + "name": "DurationClient", + "namespace": "Encode.Duration", + "doc": "Test for encode decorator on duration.", + "parameters": [ { - "$id": "43", + "$id": "42", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "44", + "$id": "43", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -329,9 +326,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "45", + "$id": "44", "Type": { - "$id": "46", + "$id": "45", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -340,1273 +337,1234 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Duration" - }, - { - "$id": "47", - "Name": "Query", - "Namespace": "Encode.Duration.Query", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Duration", + "children": [ { - "$id": "48", - "Name": "default", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "$id": "46", + "kind": "client", + "name": "Query", + "namespace": "Encode.Duration.Query", + "parameters": [ { - "$id": "49", - "Name": "input", - "NameInRequest": "input", + "$id": "47", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "50", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] + "$id": "48", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "52", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/duration/query/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Query.default", - "Decorators": [] - }, - { - "$id": "53", - "Name": "iso8601", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "54", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$id": "55", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "56", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "49", + "Type": { + "$id": "50", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "57", - "StatusCodes": [ - 204 + "$id": "51", + "Name": "default", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "52", + "Name": "input", + "NameInRequest": "input", + "Type": { + "$id": "53", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/duration/query/iso8601", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Query.iso8601", - "Decorators": [] - }, - { - "$id": "58", - "Name": "int32Seconds", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "55", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/duration/query/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Query.default", + "Decorators": [] + }, { - "$id": "59", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$id": "60", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "61", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "56", + "Name": "iso8601", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "57", + "Name": "input", + "NameInRequest": "input", + "Type": { + "$id": "58", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "59", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "60", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/duration/query/iso8601", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Query.iso8601", + "Decorators": [] + }, { - "$id": "62", - "StatusCodes": [ - 204 + "$id": "61", + "Name": "int32Seconds", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "62", + "Name": "input", + "NameInRequest": "input", + "Type": { + "$id": "63", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "64", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/duration/query/int32-seconds", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Query.int32Seconds", - "Decorators": [] - }, - { - "$id": "63", - "Name": "floatSeconds", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "65", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/duration/query/int32-seconds", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Query.int32Seconds", + "Decorators": [] + }, { - "$id": "64", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$id": "65", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "66", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "66", + "Name": "floatSeconds", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "67", + "Name": "input", + "NameInRequest": "input", + "Type": { + "$id": "68", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "69", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "70", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/duration/query/float-seconds", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds", + "Decorators": [] + }, { - "$id": "67", - "StatusCodes": [ - 204 + "$id": "71", + "Name": "float64Seconds", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "72", + "Name": "input", + "NameInRequest": "input", + "Type": { + "$id": "73", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "74", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "75", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/duration/query/float64-seconds", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds", + "Decorators": [] + }, + { + "$id": "76", + "Name": "int32SecondsArray", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "77", + "Name": "input", + "NameInRequest": "input", + "Type": { + "$id": "78", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "79", + "kind": "duration", + "name": "Int32Duration", + "encode": "seconds", + "wireType": { + "$id": "80", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", + "baseType": { + "$id": "81", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "82", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "83", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/duration/query/int32-seconds-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsArray", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/duration/query/float-seconds", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Duration.Query", + "parent": { + "$ref": "41" + } }, { - "$id": "68", - "Name": "float64Seconds", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "$id": "84", + "kind": "client", + "name": "Property", + "namespace": "Encode.Duration.Property", + "parameters": [ { - "$id": "69", - "Name": "input", - "NameInRequest": "input", + "$id": "85", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "70", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "71", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] + "$id": "86", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "87", + "Type": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "72", - "StatusCodes": [ - 204 + "$id": "89", + "Name": "default", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "90", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "91", + "kind": "constant", + "valueType": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "93", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "94", + "kind": "constant", + "valueType": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "96", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/duration/query/float64-seconds", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds", - "Decorators": [] - }, - { - "$id": "73", - "Name": "int32SecondsArray", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "97", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/duration/property/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Property.default", + "Decorators": [] + }, { - "$id": "74", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$id": "75", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "76", - "kind": "duration", - "name": "Int32Duration", - "encode": "seconds", - "wireType": { - "$id": "77", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "98", + "Name": "iso8601", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "99", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "100", + "kind": "constant", + "valueType": { + "$id": "101", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", - "baseType": { - "$id": "78", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "79", + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "102", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "103", + "kind": "constant", + "valueType": { + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", + "value": "application/json", "decorators": [] }, - "decorators": [] + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "80", - "StatusCodes": [ - 204 + { + "$id": "105", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "8" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/duration/query/int32-seconds-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "81" - }, - "Parent": "DurationClient", - "Parameters": [ - { - "$id": "82", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "83", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "84", - "Type": { - "$id": "85", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "106", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "8" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/duration/property/iso8601", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Property.iso8601", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Duration.Query" - }, - { - "$id": "86", - "Name": "Property", - "Namespace": "Encode.Duration.Property", - "Operations": [ - { - "$id": "87", - "Name": "default", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ { - "$id": "88", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "89", - "kind": "constant", - "valueType": { - "$id": "90", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "91", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "92", - "kind": "constant", - "valueType": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "94", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "95", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "2" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/duration/property/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Property.default", - "Decorators": [] - }, - { - "$id": "96", - "Name": "iso8601", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "97", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "98", - "kind": "constant", - "valueType": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "100", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "101", - "kind": "constant", - "valueType": { - "$id": "102", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "103", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "8" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "104", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "8" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/duration/property/iso8601", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Property.iso8601", - "Decorators": [] - }, - { - "$id": "105", - "Name": "int32Seconds", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "106", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "107", - "kind": "constant", - "valueType": { + "$id": "107", + "Name": "int32Seconds", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { "$id": "108", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "109", + "kind": "constant", + "valueType": { + "$id": "110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "109", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "110", - "kind": "constant", - "valueType": { + { "$id": "111", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "112", + "kind": "constant", + "valueType": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "112", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "14" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "113", - "StatusCodes": [ - 200 + { + "$id": "114", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "14" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "14" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "115", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "14" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/duration/property/int32-seconds", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/duration/property/int32-seconds", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds", - "Decorators": [] - }, - { - "$id": "114", - "Name": "floatSeconds", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds", + "Decorators": [] + }, { - "$id": "115", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "116", - "kind": "constant", - "valueType": { + "$id": "116", + "Name": "floatSeconds", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "118", + "kind": "constant", + "valueType": { + "$id": "119", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "118", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "119", - "kind": "constant", - "valueType": { + { "$id": "120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "121", + "kind": "constant", + "valueType": { + "$id": "122", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "121", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "20" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "122", - "StatusCodes": [ - 200 + { + "$id": "123", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "20" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "20" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "124", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "20" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/duration/property/float-seconds", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/duration/property/float-seconds", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds", - "Decorators": [] - }, - { - "$id": "123", - "Name": "float64Seconds", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds", + "Decorators": [] + }, { - "$id": "124", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "125", - "kind": "constant", - "valueType": { + "$id": "125", + "Name": "float64Seconds", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { "$id": "126", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "127", + "kind": "constant", + "valueType": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "127", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "128", - "kind": "constant", - "valueType": { + { "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "130", + "kind": "constant", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "130", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "26" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "131", - "StatusCodes": [ - 200 + { + "$id": "132", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "26" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "26" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "133", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "26" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/duration/property/float64-seconds", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/duration/property/float64-seconds", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds", - "Decorators": [] - }, - { - "$id": "132", - "Name": "floatSecondsArray", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "133", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "134", - "kind": "constant", - "valueType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "136", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "137", - "kind": "constant", - "valueType": { - "$id": "138", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds", + "Decorators": [] }, { - "$id": "139", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "32" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "140", - "StatusCodes": [ - 200 + "$id": "134", + "Name": "floatSecondsArray", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "135", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "136", + "kind": "constant", + "valueType": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "138", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "139", + "kind": "constant", + "valueType": { + "$id": "140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "141", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "32" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "32" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "142", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "32" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/duration/property/float-seconds-array", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/duration/property/float-seconds-array", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "141" - }, - "Parent": "DurationClient", - "Parameters": [ - { - "$id": "142", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "143", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "144", - "Type": { - "$id": "145", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Duration.Property", + "parent": { + "$ref": "41" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Duration.Property" - }, - { - "$id": "146", - "Name": "Header", - "Namespace": "Encode.Duration.Header", - "Operations": [ + }, { - "$id": "147", - "Name": "default", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "$id": "143", + "kind": "client", + "name": "Header", + "namespace": "Encode.Duration.Header", + "parameters": [ { - "$id": "148", - "Name": "duration", - "NameInRequest": "duration", + "$id": "144", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "149", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] + "$id": "145", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "151", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/duration/header/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Header.default", - "Decorators": [] - }, - { - "$id": "152", - "Name": "iso8601", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "153", - "Name": "duration", - "NameInRequest": "duration", - "Type": { - "$id": "154", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "155", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "146", + "Type": { + "$id": "147", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "156", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Value": "http://localhost:3000" + } } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/duration/header/iso8601", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Header.iso8601", - "Decorators": [] - }, - { - "$id": "157", - "Name": "iso8601Array", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "operations": [ { - "$id": "158", - "Name": "duration", - "NameInRequest": "duration", - "Type": { - "$id": "159", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "160", - "kind": "duration", - "name": "Iso8601Duration", - "encode": "ISO8601", - "wireType": { - "$id": "161", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "148", + "Name": "default", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "149", + "Name": "duration", + "NameInRequest": "duration", + "Type": { + "$id": "150", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "151", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", "decorators": [] }, - "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", - "baseType": { - "$id": "162", + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "152", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/duration/header/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Header.default", + "Decorators": [] + }, + { + "$id": "153", + "Name": "iso8601", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "154", + "Name": "duration", + "NameInRequest": "duration", + "Type": { + "$id": "155", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "163", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1615,255 +1573,297 @@ "crossLanguageDefinitionId": "TypeSpec.duration", "decorators": [] }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "157", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/duration/header/iso8601", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Header.iso8601", + "Decorators": [] + }, { - "$id": "164", - "StatusCodes": [ - 204 + "$id": "158", + "Name": "iso8601Array", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "159", + "Name": "duration", + "NameInRequest": "duration", + "Type": { + "$id": "160", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "161", + "kind": "duration", + "name": "Iso8601Duration", + "encode": "ISO8601", + "wireType": { + "$id": "162", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", + "baseType": { + "$id": "163", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/duration/header/iso8601-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array", - "Decorators": [] - }, - { - "$id": "165", - "Name": "int32Seconds", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "165", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/duration/header/iso8601-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array", + "Decorators": [] + }, { "$id": "166", - "Name": "duration", - "NameInRequest": "duration", - "Type": { - "$id": "167", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "168", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "169", - "StatusCodes": [ - 204 + "Name": "int32Seconds", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "167", + "Name": "duration", + "NameInRequest": "duration", + "Type": { + "$id": "168", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "169", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/duration/header/int32-seconds", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds", - "Decorators": [] - }, - { - "$id": "170", - "Name": "floatSeconds", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "170", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/duration/header/int32-seconds", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds", + "Decorators": [] + }, { "$id": "171", - "Name": "duration", - "NameInRequest": "duration", - "Type": { - "$id": "172", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "173", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "174", - "StatusCodes": [ - 204 + "Name": "floatSeconds", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "172", + "Name": "duration", + "NameInRequest": "duration", + "Type": { + "$id": "173", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "174", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/duration/header/float-seconds", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds", - "Decorators": [] - }, - { - "$id": "175", - "Name": "float64Seconds", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "175", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/duration/header/float-seconds", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds", + "Decorators": [] + }, { "$id": "176", - "Name": "duration", - "NameInRequest": "duration", - "Type": { - "$id": "177", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "178", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "179", - "StatusCodes": [ - 204 + "Name": "float64Seconds", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "177", + "Name": "duration", + "NameInRequest": "duration", + "Type": { + "$id": "178", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "179", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "180", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/encode/duration/header/float64-seconds", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/encode/duration/header/float64-seconds", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds", - "Decorators": [] - } - ], - "Protocol": { - "$id": "180" - }, - "Parent": "DurationClient", - "Parameters": [ - { - "$id": "181", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "182", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "183", - "Type": { - "$id": "184", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Duration.Header", + "parent": { + "$ref": "41" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Duration.Header" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json index 25279daeb05..9fd5d5b2898 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json @@ -122,21 +122,18 @@ "Clients": [ { "$id": "17", - "Name": "NumericClient", - "Namespace": "Encode.Numeric", - "Doc": "Test for encode decorator on integer.", - "Operations": [], - "Protocol": { - "$id": "18" - }, - "Parameters": [ + "kind": "client", + "name": "NumericClient", + "namespace": "Encode.Numeric", + "doc": "Test for encode decorator on integer.", + "parameters": [ { - "$id": "19", + "$id": "18", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "20", + "$id": "19", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -151,9 +148,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "21", + "$id": "20", "Type": { - "$id": "22", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -162,381 +159,384 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Numeric" - }, - { - "$id": "23", - "Name": "Property", - "Namespace": "Encode.Numeric.Property", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Numeric", + "children": [ { - "$id": "24", - "Name": "safeintAsString", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + "$id": "22", + "kind": "client", + "name": "Property", + "namespace": "Encode.Numeric.Property", + "parameters": [ { - "$id": "25", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "23", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "26", - "kind": "constant", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "24", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "28", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "29", - "kind": "constant", - "valueType": { - "$id": "30", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "25", + "Type": { + "$id": "26", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "31", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "32", - "StatusCodes": [ - 200 + "$id": "27", + "Name": "safeintAsString", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "28", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "29", + "kind": "constant", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "31", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "32", + "kind": "constant", + "valueType": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "34", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "2" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "35", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/numeric/property/safeint", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/numeric/property/safeint", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString", - "Decorators": [] - }, - { - "$id": "33", - "Name": "uint32AsStringOptional", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "34", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "35", - "kind": "constant", - "valueType": { - "$id": "36", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString", + "Decorators": [] }, { - "$id": "37", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "38", - "kind": "constant", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "36", + "Name": "uint32AsStringOptional", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "37", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "38", + "kind": "constant", + "valueType": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "40", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$ref": "7" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "41", - "StatusCodes": [ - 200 + { + "$id": "40", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "41", + "kind": "constant", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "43", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$ref": "7" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "7" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "44", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "7" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/numeric/property/uint32", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/numeric/property/uint32", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional", - "Decorators": [] - }, - { - "$id": "42", - "Name": "uint8AsString", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "43", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "44", - "kind": "constant", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional", + "Decorators": [] }, { - "$id": "46", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "47", - "kind": "constant", - "valueType": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "45", + "Name": "uint8AsString", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "46", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "47", + "kind": "constant", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "49", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$ref": "12" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "50", - "StatusCodes": [ - 200 + { + "$id": "49", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "50", + "kind": "constant", + "valueType": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "52", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$ref": "12" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "12" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "53", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "12" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/encode/numeric/property/uint8", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/encode/numeric/property/uint8", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString", - "Decorators": [] - } - ], - "Protocol": { - "$id": "51" - }, - "Parent": "NumericClient", - "Parameters": [ - { - "$id": "52", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "53", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "54", - "Type": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Numeric.Property", + "parent": { + "$ref": "17" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Numeric.Property" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json index 83c7a7cf8d4..316fab7ea61 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json @@ -83,21 +83,18 @@ "Clients": [ { "$id": "12", - "Name": "BasicClient", - "Namespace": "Parameters.Basic", - "Doc": "Test for basic parameters cases.", - "Operations": [], - "Protocol": { - "$id": "13" - }, - "Parameters": [ + "kind": "client", + "name": "BasicClient", + "namespace": "Parameters.Basic", + "doc": "Test for basic parameters cases.", + "parameters": [ { - "$id": "14", + "$id": "13", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "15", + "$id": "14", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -112,9 +109,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "16", + "$id": "15", "Type": { - "$id": "17", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -123,252 +120,255 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.Basic" - }, - { - "$id": "18", - "Name": "ExplicitBody", - "Namespace": "Parameters.Basic.ExplicitBody", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.Basic", + "children": [ { - "$id": "19", - "Name": "simple", - "ResourceName": "ExplicitBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "20", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "21", - "kind": "constant", - "valueType": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "17", + "kind": "client", + "name": "ExplicitBody", + "namespace": "Parameters.Basic.ExplicitBody", + "parameters": [ { - "$id": "23", - "Name": "body", - "NameInRequest": "body", + "$id": "18", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "7" + "$id": "19", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "20", + "Type": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "24", - "StatusCodes": [ - 204 + "$id": "22", + "Name": "simple", + "ResourceName": "ExplicitBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "23", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "24", + "kind": "constant", + "valueType": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "26", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "7" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "27", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/basic/explicit-body/simple", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/basic/explicit-body/simple", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple", - "Decorators": [] - } - ], - "Protocol": { - "$id": "25" - }, - "Parent": "BasicClient", - "Parameters": [ - { - "$id": "26", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "27", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "28", - "Type": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody", + "parent": { + "$ref": "12" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.Basic.ExplicitBody" - }, - { - "$id": "30", - "Name": "ImplicitBody", - "Namespace": "Parameters.Basic.ImplicitBody", - "Operations": [ + }, { - "$id": "31", - "Name": "simple", - "ResourceName": "ImplicitBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "32", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "33", - "kind": "constant", - "valueType": { - "$id": "34", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "28", + "kind": "client", + "name": "ImplicitBody", + "namespace": "Parameters.Basic.ImplicitBody", + "parameters": [ { - "$id": "35", - "Name": "simpleRequest", - "NameInRequest": "simpleRequest", + "$id": "29", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "2" + "$id": "30", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "31", + "Type": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "36", - "StatusCodes": [ - 204 + "$id": "33", + "Name": "simple", + "ResourceName": "ImplicitBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "34", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "35", + "kind": "constant", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "37", + "Name": "simpleRequest", + "NameInRequest": "simpleRequest", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "38", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/basic/implicit-body/simple", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/basic/implicit-body/simple", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple", - "Decorators": [] - } - ], - "Protocol": { - "$id": "37" - }, - "Parent": "BasicClient", - "Parameters": [ - { - "$id": "38", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "39", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "40", - "Type": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody", + "parent": { + "$ref": "12" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.Basic.ImplicitBody" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json index 764b73c076b..85c37a44a4b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json @@ -45,26 +45,60 @@ "Clients": [ { "$id": "7", - "Name": "BodyOptionalityClient", - "Namespace": "Parameters.BodyOptionality", - "Doc": "Test describing optionality of the request body.", - "Operations": [ + "kind": "client", + "name": "BodyOptionalityClient", + "namespace": "Parameters.BodyOptionality", + "doc": "Test describing optionality of the request body.", + "parameters": [ { "$id": "8", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "9", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "10", + "Type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "12", "Name": "requiredExplicit", "ResourceName": "BodyOptionality", "Accessibility": "public", "Parameters": [ { - "$id": "9", + "$id": "13", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "10", + "$id": "14", "kind": "constant", "valueType": { - "$id": "11", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -84,7 +118,7 @@ "SkipUrlEncoding": false }, { - "$id": "12", + "$id": "16", "Name": "body", "NameInRequest": "body", "Type": { @@ -103,7 +137,7 @@ ], "Responses": [ { - "$id": "13", + "$id": "17", "StatusCodes": [ 204 ], @@ -126,21 +160,21 @@ "Decorators": [] }, { - "$id": "14", + "$id": "18", "Name": "requiredImplicit", "ResourceName": "BodyOptionality", "Accessibility": "public", "Parameters": [ { - "$id": "15", + "$id": "19", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "16", + "$id": "20", "kind": "constant", "valueType": { - "$id": "17", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -160,7 +194,7 @@ "SkipUrlEncoding": false }, { - "$id": "18", + "$id": "22", "Name": "bodyModel", "NameInRequest": "bodyModel", "Type": { @@ -179,7 +213,7 @@ ], "Responses": [ { - "$id": "19", + "$id": "23", "StatusCodes": [ 204 ], @@ -202,242 +236,208 @@ "Decorators": [] } ], - "Protocol": { - "$id": "20" - }, - "Parameters": [ - { - "$id": "21", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "22", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "23", - "Type": { - "$id": "24", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.BodyOptionality" - }, - { - "$id": "25", - "Name": "OptionalExplicit", - "Namespace": "Parameters.BodyOptionality.OptionalExplicit", - "Operations": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.BodyOptionality", + "children": [ { - "$id": "26", - "Name": "set", - "ResourceName": "OptionalExplicit", - "Accessibility": "public", - "Parameters": [ + "$id": "24", + "kind": "client", + "name": "OptionalExplicit", + "namespace": "Parameters.BodyOptionality.OptionalExplicit", + "parameters": [ { - "$id": "27", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "25", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "28", - "kind": "constant", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "26", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": false, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "30", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": false, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "31", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/body-optionality/optional-explicit/set", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set", - "Decorators": [] - }, - { - "$id": "32", - "Name": "omit", - "ResourceName": "OptionalExplicit", - "Accessibility": "public", - "Parameters": [ - { - "$id": "33", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "34", - "kind": "constant", - "valueType": { - "$id": "35", + "Kind": "Client", + "DefaultValue": { + "$id": "27", + "Type": { + "$id": "28", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": false, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "36", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": false, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "37", - "StatusCodes": [ - 204 + "$id": "29", + "Name": "set", + "ResourceName": "OptionalExplicit", + "Accessibility": "public", + "Parameters": [ + { + "$id": "30", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "31", + "kind": "constant", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "33", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "34", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/body-optionality/optional-explicit/set", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set", + "Decorators": [] + }, + { + "$id": "35", + "Name": "omit", + "ResourceName": "OptionalExplicit", + "Accessibility": "public", + "Parameters": [ + { + "$id": "36", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "37", + "kind": "constant", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "39", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "40", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/body-optionality/optional-explicit/omit", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/body-optionality/optional-explicit/omit", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit", - "Decorators": [] - } - ], - "Protocol": { - "$id": "38" - }, - "Parent": "BodyOptionalityClient", - "Parameters": [ - { - "$id": "39", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "40", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "41", - "Type": { - "$id": "42", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit", + "parent": { + "$ref": "7" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json index 174faf0aa8f..2c965d6ca6b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json @@ -7,21 +7,18 @@ "Clients": [ { "$id": "2", - "Name": "CollectionFormatClient", - "Namespace": "Parameters.CollectionFormat", - "Doc": "Test for collectionFormat.", - "Operations": [], - "Protocol": { - "$id": "3" - }, - "Parameters": [ + "kind": "client", + "name": "CollectionFormatClient", + "namespace": "Parameters.CollectionFormat", + "doc": "Test for collectionFormat.", + "parameters": [ { - "$id": "4", + "$id": "3", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "5", + "$id": "4", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -36,9 +33,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "6", + "$id": "5", "Type": { - "$id": "7", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -47,447 +44,450 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.CollectionFormat" - }, - { - "$id": "8", - "Name": "Query", - "Namespace": "Parameters.CollectionFormat.Query", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat", + "children": [ { - "$id": "9", - "Name": "multi", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "$id": "7", + "kind": "client", + "name": "Query", + "namespace": "Parameters.CollectionFormat.Query", + "parameters": [ { - "$id": "10", - "Name": "colors", - "NameInRequest": "colors", - "Doc": "Possible values for colors are [blue,red,green]", + "$id": "8", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "11", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "9", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": true, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "13", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/parameters/collection-format/query/multi", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi", - "Decorators": [] - }, - { - "$id": "14", - "Name": "ssv", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "15", - "Name": "colors", - "NameInRequest": "colors", - "Doc": "Possible values for colors are [blue,red,green]", - "Type": { - "$id": "16", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "17", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "10", + "Type": { + "$id": "11", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": " ", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "18", - "StatusCodes": [ - 204 + "$id": "12", + "Name": "multi", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "13", + "Name": "colors", + "NameInRequest": "colors", + "Doc": "Possible values for colors are [blue,red,green]", + "Type": { + "$id": "14", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/parameters/collection-format/query/ssv", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv", - "Decorators": [] - }, - { - "$id": "19", - "Name": "tsv", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "16", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/parameters/collection-format/query/multi", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi", + "Decorators": [] + }, { - "$id": "20", - "Name": "colors", - "NameInRequest": "colors", - "Doc": "Possible values for colors are [blue,red,green]", - "Type": { - "$id": "21", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": "\t", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "17", + "Name": "ssv", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "18", + "Name": "colors", + "NameInRequest": "colors", + "Doc": "Possible values for colors are [blue,red,green]", + "Type": { + "$id": "19", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": " ", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "21", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/parameters/collection-format/query/ssv", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv", + "Decorators": [] + }, { - "$id": "23", - "StatusCodes": [ - 204 + "$id": "22", + "Name": "tsv", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "23", + "Name": "colors", + "NameInRequest": "colors", + "Doc": "Possible values for colors are [blue,red,green]", + "Type": { + "$id": "24", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": "\t", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/parameters/collection-format/query/tsv", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.tsv", - "Decorators": [] - }, - { - "$id": "24", - "Name": "pipes", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "26", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/parameters/collection-format/query/tsv", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.tsv", + "Decorators": [] + }, { - "$id": "25", - "Name": "colors", - "NameInRequest": "colors", - "Doc": "Possible values for colors are [blue,red,green]", - "Type": { - "$id": "26", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": "|", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "27", + "Name": "pipes", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "28", + "Name": "colors", + "NameInRequest": "colors", + "Doc": "Possible values for colors are [blue,red,green]", + "Type": { + "$id": "29", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": "|", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "31", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/parameters/collection-format/query/pipes", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes", + "Decorators": [] + }, { - "$id": "28", - "StatusCodes": [ - 204 + "$id": "32", + "Name": "csv", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "33", + "Name": "colors", + "NameInRequest": "colors", + "Doc": "Possible values for colors are [blue,red,green]", + "Type": { + "$id": "34", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "35", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "36", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/parameters/collection-format/query/csv", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/parameters/collection-format/query/pipes", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query", + "parent": { + "$ref": "2" + } }, { - "$id": "29", - "Name": "csv", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "$id": "37", + "kind": "client", + "name": "Header", + "namespace": "Parameters.CollectionFormat.Header", + "parameters": [ { - "$id": "30", - "Name": "colors", - "NameInRequest": "colors", - "Doc": "Possible values for colors are [blue,red,green]", + "$id": "38", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "31", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "32", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "39", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "33", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/parameters/collection-format/query/csv", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv", - "Decorators": [] - } - ], - "Protocol": { - "$id": "34" - }, - "Parent": "CollectionFormatClient", - "Parameters": [ - { - "$id": "35", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "36", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "37", - "Type": { - "$id": "38", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query" - }, - { - "$id": "39", - "Name": "Header", - "Namespace": "Parameters.CollectionFormat.Header", - "Operations": [ - { - "$id": "40", - "Name": "csv", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "41", - "Name": "colors", - "NameInRequest": "colors", - "Doc": "Possible values for colors are [blue,red,green]", - "Type": { - "$id": "42", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "43", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "40", + "Type": { + "$id": "41", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "44", - "StatusCodes": [ - 204 + "$id": "42", + "Name": "csv", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "43", + "Name": "colors", + "NameInRequest": "colors", + "Doc": "Possible values for colors are [blue,red,green]", + "Type": { + "$id": "44", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "45", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "46", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/parameters/collection-format/header/csv", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/parameters/collection-format/header/csv", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv", - "Decorators": [] - } - ], - "Protocol": { - "$id": "45" - }, - "Parent": "CollectionFormatClient", - "Parameters": [ - { - "$id": "46", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "47", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "48", - "Type": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header", + "parent": { + "$ref": "2" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Header" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json index dc72c0f554b..77fe0b04e2a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json @@ -392,21 +392,18 @@ "Clients": [ { "$id": "55", - "Name": "SpreadClient", - "Namespace": "Parameters.Spread", - "Doc": "Test for the spread operator.", - "Operations": [], - "Protocol": { - "$id": "56" - }, - "Parameters": [ + "kind": "client", + "name": "SpreadClient", + "namespace": "Parameters.Spread", + "doc": "Test for the spread operator.", + "parameters": [ { - "$id": "57", + "$id": "56", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "58", + "$id": "57", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -421,9 +418,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "59", + "$id": "58", "Type": { - "$id": "60", + "$id": "59", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -432,1107 +429,1110 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.Spread" - }, - { - "$id": "61", - "Name": "Model", - "Namespace": "Parameters.Spread.Model", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.Spread", + "children": [ { - "$id": "62", - "Name": "spreadAsRequestBody", - "ResourceName": "Model", - "Accessibility": "public", - "Parameters": [ + "$id": "60", + "kind": "client", + "name": "Model", + "namespace": "Parameters.Spread.Model", + "parameters": [ { - "$id": "63", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "61", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "64", - "kind": "constant", - "valueType": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "62", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "66", - "Name": "bodyParameter", - "NameInRequest": "bodyParameter", - "Type": { - "$ref": "45" - }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "67", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/spread/model/request-body", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody", - "Decorators": [] - }, - { - "$id": "68", - "Name": "spreadCompositeRequestOnlyWithBody", - "ResourceName": "Model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "69", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "70", - "kind": "constant", - "valueType": { - "$id": "71", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "63", + "Type": { + "$id": "64", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "72", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "45" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "73", - "StatusCodes": [ - 204 + "$id": "65", + "Name": "spreadAsRequestBody", + "ResourceName": "Model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "66", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "67", + "kind": "constant", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "69", + "Name": "bodyParameter", + "NameInRequest": "bodyParameter", + "Type": { + "$ref": "45" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/spread/model/composite-request-only-with-body", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody", - "Decorators": [] - }, - { - "$id": "74", - "Name": "spreadCompositeRequestWithoutBody", - "ResourceName": "Model", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "70", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/spread/model/request-body", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody", + "Decorators": [] + }, { - "$id": "75", - "Name": "name", - "NameInRequest": "name", - "Type": { - "$id": "76", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "71", + "Name": "spreadCompositeRequestOnlyWithBody", + "ResourceName": "Model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "72", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "73", + "kind": "constant", + "valueType": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "75", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "45" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "76", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/spread/model/composite-request-only-with-body", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody", + "Decorators": [] }, { "$id": "77", - "Name": "testHeader", - "NameInRequest": "test-header", - "Type": { - "$id": "78", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "79", - "StatusCodes": [ - 204 + "Name": "spreadCompositeRequestWithoutBody", + "ResourceName": "Model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "78", + "Name": "name", + "NameInRequest": "name", + "Type": { + "$id": "79", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "80", + "Name": "testHeader", + "NameInRequest": "test-header", + "Type": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/parameters/spread/model/composite-request-without-body/{name}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody", - "Decorators": [] - }, - { - "$id": "80", - "Name": "spreadCompositeRequest", - "ResourceName": "Model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "81", - "Name": "name", - "NameInRequest": "name", - "Type": { - "$id": "82", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "82", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/parameters/spread/model/composite-request-without-body/{name}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody", + "Decorators": [] }, { "$id": "83", - "Name": "testHeader", - "NameInRequest": "test-header", - "Type": { - "$id": "84", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "85", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "86", - "kind": "constant", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "spreadCompositeRequest", + "ResourceName": "Model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "84", + "Name": "name", + "NameInRequest": "name", + "Type": { + "$id": "85", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "86", + "Name": "testHeader", + "NameInRequest": "test-header", + "Type": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "88", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "89", + "kind": "constant", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "91", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "45" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "92", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/spread/model/composite-request/{name}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest", + "Decorators": [] }, { - "$id": "88", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "45" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "89", - "StatusCodes": [ - 204 + "$id": "93", + "Name": "spreadCompositeRequestMix", + "ResourceName": "Model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "94", + "Name": "name", + "NameInRequest": "name", + "Type": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "96", + "Name": "testHeader", + "NameInRequest": "test-header", + "Type": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "98", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "99", + "kind": "constant", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "101", + "Name": "spreadCompositeRequestMixRequest", + "NameInRequest": "spreadCompositeRequestMixRequest", + "Type": { + "$ref": "50" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "102", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/spread/model/composite-request-mix/{name}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/spread/model/composite-request/{name}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.Spread.Model", + "parent": { + "$ref": "55" + } }, { - "$id": "90", - "Name": "spreadCompositeRequestMix", - "ResourceName": "Model", - "Accessibility": "public", - "Parameters": [ + "$id": "103", + "kind": "client", + "name": "Alias", + "namespace": "Parameters.Spread.Alias", + "parameters": [ { - "$id": "91", - "Name": "name", - "NameInRequest": "name", + "$id": "104", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "92", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "105", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Path", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "93", - "Name": "testHeader", - "NameInRequest": "test-header", - "Type": { - "$id": "94", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, + "IsEndpoint": true, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "95", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "96", - "kind": "constant", - "valueType": { - "$id": "97", + "Kind": "Client", + "DefaultValue": { + "$id": "106", + "Type": { + "$id": "107", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "98", - "Name": "spreadCompositeRequestMixRequest", - "NameInRequest": "spreadCompositeRequestMixRequest", - "Type": { - "$ref": "50" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "99", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Value": "http://localhost:3000" + } } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/spread/model/composite-request-mix/{name}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix", - "Decorators": [] - } - ], - "Protocol": { - "$id": "100" - }, - "Parent": "SpreadClient", - "Parameters": [ - { - "$id": "101", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "102", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "103", - "Type": { - "$id": "104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.Spread.Model" - }, - { - "$id": "105", - "Name": "Alias", - "Namespace": "Parameters.Spread.Alias", - "Operations": [ - { - "$id": "106", - "Name": "spreadAsRequestBody", - "ResourceName": "Alias", - "Accessibility": "public", - "Parameters": [ + "operations": [ { - "$id": "107", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "108", - "kind": "constant", - "valueType": { + "$id": "108", + "Name": "spreadAsRequestBody", + "ResourceName": "Alias", + "Accessibility": "public", + "Parameters": [ + { "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "110", + "kind": "constant", + "valueType": { + "$id": "111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "110", - "Name": "spreadAsRequestBodyRequest", - "NameInRequest": "spreadAsRequestBodyRequest", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "111", - "StatusCodes": [ - 204 + { + "$id": "112", + "Name": "spreadAsRequestBodyRequest", + "NameInRequest": "spreadAsRequestBodyRequest", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/spread/alias/request-body", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody", - "Decorators": [] - }, - { - "$id": "112", - "Name": "spreadParameterWithInnerModel", - "ResourceName": "Alias", - "Accessibility": "public", - "Parameters": [ - { - "$id": "113", - "Name": "id", - "NameInRequest": "id", - "Type": { - "$id": "114", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "115", - "Name": "x-ms-test-header", - "NameInRequest": "x-ms-test-header", - "Type": { - "$id": "116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "113", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/spread/alias/request-body", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody", + "Decorators": [] }, { - "$id": "117", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "118", - "kind": "constant", - "valueType": { + "$id": "114", + "Name": "spreadParameterWithInnerModel", + "ResourceName": "Alias", + "Accessibility": "public", + "Parameters": [ + { + "$id": "115", + "Name": "id", + "NameInRequest": "id", + "Type": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "117", + "Name": "x-ms-test-header", + "NameInRequest": "x-ms-test-header", + "Type": { + "$id": "118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "120", + "kind": "constant", + "valueType": { + "$id": "121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "120", - "Name": "spreadParameterWithInnerModelRequest", - "NameInRequest": "spreadParameterWithInnerModelRequest", - "Type": { - "$ref": "7" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "121", - "StatusCodes": [ - 204 + { + "$id": "122", + "Name": "spreadParameterWithInnerModelRequest", + "NameInRequest": "spreadParameterWithInnerModelRequest", + "Type": { + "$ref": "7" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/spread/alias/inner-model-parameter/{id}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel", - "Decorators": [] - }, - { - "$id": "122", - "Name": "spreadAsRequestParameter", - "ResourceName": "Alias", - "Accessibility": "public", - "Parameters": [ - { - "$id": "123", - "Name": "id", - "NameInRequest": "id", - "Type": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "125", - "Name": "x-ms-test-header", - "NameInRequest": "x-ms-test-header", - "Type": { - "$id": "126", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "123", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/spread/alias/inner-model-parameter/{id}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel", + "Decorators": [] }, { - "$id": "127", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "128", - "kind": "constant", - "valueType": { + "$id": "124", + "Name": "spreadAsRequestParameter", + "ResourceName": "Alias", + "Accessibility": "public", + "Parameters": [ + { + "$id": "125", + "Name": "id", + "NameInRequest": "id", + "Type": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "127", + "Name": "x-ms-test-header", + "NameInRequest": "x-ms-test-header", + "Type": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "130", + "kind": "constant", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "130", - "Name": "spreadAsRequestParameterRequest", - "NameInRequest": "spreadAsRequestParameterRequest", - "Type": { - "$ref": "12" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "131", - "StatusCodes": [ - 204 + { + "$id": "132", + "Name": "spreadAsRequestParameterRequest", + "NameInRequest": "spreadAsRequestParameterRequest", + "Type": { + "$ref": "12" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/spread/alias/request-parameter/{id}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter", - "Decorators": [] - }, - { - "$id": "132", - "Name": "spreadWithMultipleParameters", - "ResourceName": "Alias", - "Accessibility": "public", - "Parameters": [ - { - "$id": "133", - "Name": "id", - "NameInRequest": "id", - "Type": { - "$id": "134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "135", - "Name": "x-ms-test-header", - "NameInRequest": "x-ms-test-header", - "Type": { - "$id": "136", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "133", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/spread/alias/request-parameter/{id}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter", + "Decorators": [] }, { - "$id": "137", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "138", - "kind": "constant", - "valueType": { + "$id": "134", + "Name": "spreadWithMultipleParameters", + "ResourceName": "Alias", + "Accessibility": "public", + "Parameters": [ + { + "$id": "135", + "Name": "id", + "NameInRequest": "id", + "Type": { + "$id": "136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "137", + "Name": "x-ms-test-header", + "NameInRequest": "x-ms-test-header", + "Type": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { "$id": "139", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "140", + "kind": "constant", + "valueType": { + "$id": "141", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "140", - "Name": "spreadWithMultipleParametersRequest", - "NameInRequest": "spreadWithMultipleParametersRequest", - "Type": { - "$ref": "17" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "141", - "StatusCodes": [ - 204 + { + "$id": "142", + "Name": "spreadWithMultipleParametersRequest", + "NameInRequest": "spreadWithMultipleParametersRequest", + "Type": { + "$ref": "17" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/spread/alias/multiple-parameters/{id}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters", - "Decorators": [] - }, - { - "$id": "142", - "Name": "spreadParameterWithInnerAlias", - "ResourceName": "Alias", - "Doc": "spread an alias with contains another alias property as body.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "143", - "Name": "id", - "NameInRequest": "id", - "Type": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "145", - "Name": "x-ms-test-header", - "NameInRequest": "x-ms-test-header", - "Type": { - "$id": "146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "143", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/spread/alias/multiple-parameters/{id}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters", + "Decorators": [] }, { - "$id": "147", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "148", - "kind": "constant", - "valueType": { + "$id": "144", + "Name": "spreadParameterWithInnerAlias", + "ResourceName": "Alias", + "Doc": "spread an alias with contains another alias property as body.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "145", + "Name": "id", + "NameInRequest": "id", + "Type": { + "$id": "146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "147", + "Name": "x-ms-test-header", + "NameInRequest": "x-ms-test-header", + "Type": { + "$id": "148", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "150", + "kind": "constant", + "valueType": { + "$id": "151", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "150", - "Name": "spreadParameterWithInnerAliasRequest", - "NameInRequest": "spreadParameterWithInnerAliasRequest", - "Type": { - "$ref": "36" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "151", - "StatusCodes": [ - 204 + { + "$id": "152", + "Name": "spreadParameterWithInnerAliasRequest", + "NameInRequest": "spreadParameterWithInnerAliasRequest", + "Type": { + "$ref": "36" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "153", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/parameters/spread/alias/inner-alias-parameter/{id}", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/parameters/spread/alias/inner-alias-parameter/{id}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias", - "Decorators": [] - } - ], - "Protocol": { - "$id": "152" - }, - "Parent": "SpreadClient", - "Parameters": [ - { - "$id": "153", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "154", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "155", - "Type": { - "$id": "156", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.Spread.Alias", + "parent": { + "$ref": "55" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.Spread.Alias" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json index 85622399380..b5241d8256c 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json @@ -46,21 +46,18 @@ "Clients": [ { "$id": "7", - "Name": "ContentNegotiationClient", - "Namespace": "Payload.ContentNegotiation", - "Doc": "Test describing optionality of the request body.", - "Operations": [], - "Protocol": { - "$id": "8" - }, - "Parameters": [ + "kind": "client", + "name": "ContentNegotiationClient", + "namespace": "Payload.ContentNegotiation", + "doc": "Test describing optionality of the request body.", + "parameters": [ { - "$id": "9", + "$id": "8", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "10", + "$id": "9", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -75,9 +72,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "11", + "$id": "10", "Type": { - "$id": "12", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -86,72 +83,64 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.ContentNegotiation" - }, - { - "$id": "13", - "Name": "SameBody", - "Namespace": "Payload.ContentNegotiation.SameBody", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation", + "children": [ { - "$id": "14", - "Name": "getAvatarAsPng", - "ResourceName": "SameBody", - "Accessibility": "public", - "Parameters": [ + "$id": "12", + "kind": "client", + "name": "SameBody", + "namespace": "Payload.ContentNegotiation.SameBody", + "parameters": [ { - "$id": "15", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "13", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "16", - "kind": "constant", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] + "$id": "14", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "15", + "Type": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "18", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "19", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [ + "$id": "17", + "Name": "getAvatarAsPng", + "ResourceName": "SameBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "20", - "Name": "contentType", - "NameInResponse": "content-type", + "$id": "18", + "Name": "accept", + "NameInRequest": "Accept", "Type": { - "$id": "21", + "$id": "19", "kind": "constant", "valueType": { - "$id": "22", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -159,83 +148,83 @@ }, "value": "image/png", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false, - "ContentTypes": [ - "image/png" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/content-negotiation/same-body", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng", - "Decorators": [] - }, - { - "$id": "23", - "Name": "getAvatarAsJpeg", - "ResourceName": "SameBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "24", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "25", - "kind": "constant", - "valueType": { - "$id": "26", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/jpeg", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "27", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "21", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "22", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "23", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "24", + "kind": "constant", + "valueType": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "image/png" + ] + } ], - "BodyType": { - "$id": "28", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/content-negotiation/same-body", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng", + "Decorators": [] + }, + { + "$id": "26", + "Name": "getAvatarAsJpeg", + "ResourceName": "SameBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "29", - "Name": "contentType", - "NameInResponse": "content-type", + "$id": "27", + "Name": "accept", + "NameInRequest": "Accept", "Type": { - "$id": "30", + "$id": "28", "kind": "constant", "valueType": { - "$id": "31", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -243,129 +232,129 @@ }, "value": "image/jpeg", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false, - "ContentTypes": [ - "image/jpeg" - ] + "Responses": [ + { + "$id": "30", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "31", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "32", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "33", + "kind": "constant", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/jpeg", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "image/jpeg" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/content-negotiation/same-body", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsJpeg", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/content-negotiation/same-body", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsJpeg", - "Decorators": [] - } - ], - "Protocol": { - "$id": "32" - }, - "Parent": "ContentNegotiationClient", - "Parameters": [ - { - "$id": "33", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "34", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "35", - "Type": { - "$id": "36", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody", + "parent": { + "$ref": "7" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody" - }, - { - "$id": "37", - "Name": "DifferentBody", - "Namespace": "Payload.ContentNegotiation.DifferentBody", - "Operations": [ + }, { - "$id": "38", - "Name": "getAvatarAsPng", - "ResourceName": "DifferentBody", - "Accessibility": "public", - "Parameters": [ + "$id": "35", + "kind": "client", + "name": "DifferentBody", + "namespace": "Payload.ContentNegotiation.DifferentBody", + "parameters": [ { - "$id": "39", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "36", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "40", - "kind": "constant", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] + "$id": "37", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "38", + "Type": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "42", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "43", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [ + "$id": "40", + "Name": "getAvatarAsPng", + "ResourceName": "DifferentBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "44", - "Name": "contentType", - "NameInResponse": "content-type", + "$id": "41", + "Name": "accept", + "NameInRequest": "Accept", "Type": { - "$id": "45", + "$id": "42", "kind": "constant", "valueType": { - "$id": "46", + "$id": "43", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -373,79 +362,83 @@ }, "value": "image/png", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false, - "ContentTypes": [ - "image/png" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/content-negotiation/different-body", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng", - "Decorators": [] - }, - { - "$id": "47", - "Name": "getAvatarAsJson", - "ResourceName": "DifferentBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "48", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "49", - "kind": "constant", - "valueType": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "51", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "44", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "45", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "46", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "47", + "kind": "constant", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "image/png" + ] + } ], - "BodyType": { - "$ref": "2" - }, - "BodyMediaType": "Json", - "Headers": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/content-negotiation/different-body", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng", + "Decorators": [] + }, + { + "$id": "49", + "Name": "getAvatarAsJson", + "ResourceName": "DifferentBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "52", - "Name": "contentType", - "NameInResponse": "content-type", + "$id": "50", + "Name": "accept", + "NameInRequest": "Accept", "Type": { - "$id": "53", + "$id": "51", "kind": "constant", "valueType": { - "$id": "54", + "$id": "52", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -453,65 +446,72 @@ }, "value": "application/json", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "53", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "54", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "55", + "kind": "constant", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/content-negotiation/different-body", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsJson", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/content-negotiation/different-body", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsJson", - "Decorators": [] - } - ], - "Protocol": { - "$id": "55" - }, - "Parent": "ContentNegotiationClient", - "Parameters": [ - { - "$id": "56", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "57", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "58", - "Type": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody", + "parent": { + "$ref": "7" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json index a423a01ffb8..1a44bfabc81 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json @@ -514,27 +514,61 @@ "Clients": [ { "$id": "75", - "Name": "JsonMergePatchClient", - "Namespace": "Payload.JsonMergePatch", - "Doc": "Test for merge-patch+json content-type", - "Operations": [ + "kind": "client", + "name": "JsonMergePatchClient", + "namespace": "Payload.JsonMergePatch", + "doc": "Test for merge-patch+json content-type", + "parameters": [ { "$id": "76", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "77", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "78", + "Type": { + "$id": "79", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "80", "Name": "createResource", "ResourceName": "JsonMergePatch", "Doc": "Test content-type: application/merge-patch+json with required body", "Accessibility": "public", "Parameters": [ { - "$id": "77", + "$id": "81", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "78", + "$id": "82", "kind": "constant", "valueType": { - "$id": "79", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -554,14 +588,14 @@ "SkipUrlEncoding": false }, { - "$id": "80", + "$id": "84", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "81", + "$id": "85", "kind": "constant", "valueType": { - "$id": "82", + "$id": "86", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -581,7 +615,7 @@ "SkipUrlEncoding": false }, { - "$id": "83", + "$id": "87", "Name": "body", "NameInRequest": "body", "Type": { @@ -600,7 +634,7 @@ ], "Responses": [ { - "$id": "84", + "$id": "88", "StatusCodes": [ 200 ], @@ -629,21 +663,21 @@ "Decorators": [] }, { - "$id": "85", + "$id": "89", "Name": "updateResource", "ResourceName": "JsonMergePatch", "Doc": "Test content-type: application/merge-patch+json with required body", "Accessibility": "public", "Parameters": [ { - "$id": "86", + "$id": "90", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "87", + "$id": "91", "kind": "constant", "valueType": { - "$id": "88", + "$id": "92", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -663,14 +697,14 @@ "SkipUrlEncoding": false }, { - "$id": "89", + "$id": "93", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "90", + "$id": "94", "kind": "constant", "valueType": { - "$id": "91", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -690,7 +724,7 @@ "SkipUrlEncoding": false }, { - "$id": "92", + "$id": "96", "Name": "body", "NameInRequest": "body", "Type": { @@ -709,7 +743,7 @@ ], "Responses": [ { - "$id": "93", + "$id": "97", "StatusCodes": [ 200 ], @@ -738,21 +772,21 @@ "Decorators": [] }, { - "$id": "94", + "$id": "98", "Name": "updateOptionalResource", "ResourceName": "JsonMergePatch", "Doc": "Test content-type: application/merge-patch+json with optional body", "Accessibility": "public", "Parameters": [ { - "$id": "95", + "$id": "99", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "96", + "$id": "100", "kind": "constant", "valueType": { - "$id": "97", + "$id": "101", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -772,14 +806,14 @@ "SkipUrlEncoding": false }, { - "$id": "98", + "$id": "102", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "99", + "$id": "103", "kind": "constant", "valueType": { - "$id": "100", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -799,7 +833,7 @@ "SkipUrlEncoding": false }, { - "$id": "101", + "$id": "105", "Name": "body", "NameInRequest": "body", "Type": { @@ -818,7 +852,7 @@ ], "Responses": [ { - "$id": "102", + "$id": "106", "StatusCodes": [ 200 ], @@ -847,44 +881,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "103" - }, - "Parameters": [ - { - "$id": "104", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "105", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "106", - "Type": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.JsonMergePatch" + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.JsonMergePatch" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json index a72be2eb6fe..7a3d1d6c669 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json @@ -7,21 +7,18 @@ "Clients": [ { "$id": "2", - "Name": "MediaTypeClient", - "Namespace": "Payload.MediaType", - "Doc": "Test the payload with different media types and different types of the payload itself.", - "Operations": [], - "Protocol": { - "$id": "3" - }, - "Parameters": [ + "kind": "client", + "name": "MediaTypeClient", + "namespace": "Payload.MediaType", + "doc": "Test the payload with different media types and different types of the payload itself.", + "parameters": [ { - "$id": "4", + "$id": "3", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "5", + "$id": "4", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -36,9 +33,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "6", + "$id": "5", "Type": { - "$id": "7", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -47,151 +44,64 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MediaType" - }, - { - "$id": "8", - "Name": "StringBody", - "Namespace": "Payload.MediaType.StringBody", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.MediaType", + "children": [ { - "$id": "9", - "Name": "sendAsText", - "ResourceName": "StringBody", - "Accessibility": "public", - "Parameters": [ + "$id": "7", + "kind": "client", + "name": "StringBody", + "namespace": "Payload.MediaType.StringBody", + "parameters": [ { - "$id": "10", - "Name": "contentType", - "NameInRequest": "Content-Type", + "$id": "8", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "11", - "kind": "constant", - "valueType": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] + "$id": "9", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "13", - "Name": "text", - "NameInRequest": "text", - "Type": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "15", - "StatusCodes": [ - 200 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Text", - "Uri": "{endpoint}", - "Path": "/payload/media-type/string-body/sendAsText", - "RequestMediaTypes": [ - "text/plain" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText", - "Decorators": [] - }, - { - "$id": "16", - "Name": "getAsText", - "ResourceName": "StringBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "17", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "18", - "kind": "constant", - "valueType": { - "$id": "19", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "10", + "Type": { + "$id": "11", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "text/plain", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "20", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [ + "$id": "12", + "Name": "sendAsText", + "ResourceName": "StringBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "22", + "$id": "13", "Name": "contentType", - "NameInResponse": "content-type", + "NameInRequest": "Content-Type", "Type": { - "$id": "23", + "$id": "14", "kind": "constant", "valueType": { - "$id": "24", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -199,162 +109,162 @@ }, "value": "text/plain", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "16", + "Name": "text", + "NameInRequest": "text", + "Type": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "18", + "StatusCodes": [ + 200 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false } ], - "IsErrorResponse": false, - "ContentTypes": [ + "HttpMethod": "POST", + "RequestBodyMediaType": "Text", + "Uri": "{endpoint}", + "Path": "/payload/media-type/string-body/sendAsText", + "RequestMediaTypes": [ "text/plain" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/media-type/string-body/getAsText", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText", - "Decorators": [] - }, - { - "$id": "25", - "Name": "sendAsJson", - "ResourceName": "StringBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "26", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "27", - "kind": "constant", - "valueType": { - "$id": "28", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText", + "Decorators": [] }, { - "$id": "29", - "Name": "text", - "NameInRequest": "text", - "Type": { - "$id": "30", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "31", - "StatusCodes": [ - 200 + "$id": "19", + "Name": "getAsText", + "ResourceName": "StringBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "20", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "21", + "kind": "constant", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Text", - "Uri": "{endpoint}", - "Path": "/payload/media-type/string-body/sendAsJson", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson", - "Decorators": [] - }, - { - "$id": "32", - "Name": "getAsJson", - "ResourceName": "StringBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "33", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "34", - "kind": "constant", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "36", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "23", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "25", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "26", + "kind": "constant", + "valueType": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "text/plain" + ] + } ], - "BodyType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/payload/media-type/string-body/getAsText", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText", + "Decorators": [] + }, + { + "$id": "28", + "Name": "sendAsJson", + "ResourceName": "StringBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "38", + "$id": "29", "Name": "contentType", - "NameInResponse": "content-type", + "NameInRequest": "Content-Type", "Type": { - "$id": "39", + "$id": "30", "kind": "constant", "valueType": { - "$id": "40", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -362,65 +272,155 @@ }, "value": "application/json", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "32", + "Name": "text", + "NameInRequest": "text", + "Type": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "34", + "StatusCodes": [ + 200 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Text", + "Uri": "{endpoint}", + "Path": "/payload/media-type/string-body/sendAsJson", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson", + "Decorators": [] + }, + { + "$id": "35", + "Name": "getAsJson", + "ResourceName": "StringBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "36", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "37", + "kind": "constant", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "39", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "41", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "42", + "kind": "constant", + "valueType": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/payload/media-type/string-body/getAsJson", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsJson", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/media-type/string-body/getAsJson", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsJson", - "Decorators": [] - } - ], - "Protocol": { - "$id": "41" - }, - "Parent": "MediaTypeClient", - "Parameters": [ - { - "$id": "42", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "43", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "44", - "Type": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.MediaType.StringBody", + "parent": { + "$ref": "2" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MediaType.StringBody" + ] } ] } 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 0d2268a2a18..6482a516e6f 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,7 +5,7 @@ using System.ClientModel; using System.ClientModel.Primitives; using System.Threading.Tasks; -using Payload.MultiPart._FormData.HttpParts; +using Payload.MultiPart._FormData._HttpParts; namespace Payload.MultiPart._FormData { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpParts.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpParts.cs index 033e295e92d..9191886e40d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpParts.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpParts.cs @@ -5,10 +5,10 @@ using System.ClientModel; using System.ClientModel.Primitives; using System.Threading.Tasks; -using Payload.MultiPart._FormData.HttpParts.ContentType; -using Payload.MultiPart._FormData.HttpParts.NonString; +using Payload.MultiPart._FormData._HttpParts._ContentType; +using Payload.MultiPart._FormData._HttpParts._NonString; -namespace Payload.MultiPart._FormData.HttpParts +namespace Payload.MultiPart._FormData._HttpParts { public partial class FormDataHttpParts { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsContentType.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsContentType.cs index 32cb80df3d0..f2e5551be65 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsContentType.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsContentType.cs @@ -6,7 +6,7 @@ using System.ClientModel.Primitives; using System.Threading.Tasks; -namespace Payload.MultiPart._FormData.HttpParts.ContentType +namespace Payload.MultiPart._FormData._HttpParts._ContentType { public partial class FormDataHttpPartsContentType { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsNonString.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsNonString.cs index 47557d7876b..c4b3c4fab44 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsNonString.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsNonString.cs @@ -6,7 +6,7 @@ using System.ClientModel.Primitives; using System.Threading.Tasks; -namespace Payload.MultiPart._FormData.HttpParts.NonString +namespace Payload.MultiPart._FormData._HttpParts._NonString { public partial class FormDataHttpPartsNonString { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/Internal/MultiPartFormDataBinaryContent.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/Internal/MultiPartFormDataBinaryContent.cs deleted file mode 100644 index 70bc3dbd765..00000000000 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/Internal/MultiPartFormDataBinaryContent.cs +++ /dev/null @@ -1,50 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.IO; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; - -namespace Payload.MultiPart -{ - internal partial class MultiPartFormDataBinaryContent : BinaryContent - { - public MultiPartFormDataBinaryContent() => throw null; - - public string ContentType => throw null; - - public void Add(string content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(int content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(long content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(float content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(double content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(decimal content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(bool content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(Stream content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(byte[] content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(BinaryData content, string name, string filename = default, string contentType = default) => throw null; - - public static void AddContentTypeHeader(HttpContent content, string contentType) => throw null; - - public override bool TryComputeLength(out long length) => throw null; - - public override void WriteTo(Stream stream, CancellationToken cancellationToken = default) => throw null; - - public override Task WriteToAsync(Stream stream, CancellationToken cancellationToken = default) => throw null; - - public override void Dispose() => throw null; - } -} 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 4e4b5d28e7f..65bba5f1049 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 @@ -1360,21 +1360,18 @@ "Clients": [ { "$id": "5651", - "Name": "MultiPartClient", - "Namespace": "Payload.MultiPart", - "Doc": "Test for multipart", - "Operations": [], - "Protocol": { - "$id": "5652" - }, - "Parameters": [ + "kind": "client", + "name": "MultiPartClient", + "namespace": "Payload.MultiPart", + "doc": "Test for multipart", + "parameters": [ { - "$id": "5653", + "$id": "5652", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "5654", + "$id": "5653", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1389,9 +1386,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "5655", + "$id": "5654", "Type": { - "$id": "5656", + "$id": "5655", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1400,1104 +1397,1108 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MultiPart" - }, - { - "$id": "5657", - "Name": "FormData", - "Namespace": "Payload.MultiPart.FormData", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.MultiPart", + "children": [ { - "$id": "5658", - "Name": "basic", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5659", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5660", - "kind": "constant", - "valueType": { - "$id": "5661", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "5656", + "kind": "client", + "name": "FormData", + "namespace": "Payload.MultiPart.FormData", + "parameters": [ { - "$id": "5662", - "Name": "body", - "NameInRequest": "body", + "$id": "5657", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "5" + "$id": "5658", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5663", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/mixed-parts", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.basic", - "Decorators": [] - }, - { - "$id": "5664", - "Name": "fileArrayAndBasic", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data for mixed scenarios", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5665", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5666", - "kind": "constant", - "valueType": { - "$id": "5667", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5668", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "14" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, + "IsEndpoint": true, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5669", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/complex-parts", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic", - "Decorators": [] - }, - { - "$id": "5670", - "Name": "jsonPart", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5671", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5672", - "kind": "constant", - "valueType": { - "$id": "5673", + "Kind": "Client", + "DefaultValue": { + "$id": "5659", + "Type": { + "$id": "5660", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5674", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "36" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5675", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Value": "http://localhost:3000" + } } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/json-part", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart", - "Decorators": [] - }, - { - "$id": "5676", - "Name": "binaryArrayParts", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", - "Accessibility": "public", - "Parameters": [ + "operations": [ { - "$id": "5677", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5678", - "kind": "constant", - "valueType": { - "$id": "5679", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5661", + "Name": "basic", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5662", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5663", + "kind": "constant", + "valueType": { + "$id": "5664", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5680", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "44" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5681", - "StatusCodes": [ - 204 + { + "$id": "5665", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "5" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/binary-array-parts", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts", - "Decorators": [] - }, - { - "$id": "5682", - "Name": "multiBinaryParts", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "5666", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/mixed-parts", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.basic", + "Decorators": [] + }, { - "$id": "5683", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5684", - "kind": "constant", - "valueType": { - "$id": "5685", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5667", + "Name": "fileArrayAndBasic", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data for mixed scenarios", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5668", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5669", + "kind": "constant", + "valueType": { + "$id": "5670", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "5671", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "14" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5672", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/complex-parts", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic", + "Decorators": [] }, { - "$id": "5686", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "54" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5687", - "StatusCodes": [ - 204 + "$id": "5673", + "Name": "jsonPart", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5674", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5675", + "kind": "constant", + "valueType": { + "$id": "5676", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5677", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "36" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/multi-binary-parts", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts", - "Decorators": [] - }, - { - "$id": "5688", - "Name": "checkFileNameAndContentType", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "5678", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/json-part", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart", + "Decorators": [] + }, { - "$id": "5689", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5690", - "kind": "constant", - "valueType": { - "$id": "5691", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5679", + "Name": "binaryArrayParts", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5680", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5681", + "kind": "constant", + "valueType": { + "$id": "5682", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "5683", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "44" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5684", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/binary-array-parts", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts", + "Decorators": [] }, { - "$id": "5692", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "5" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5693", - "StatusCodes": [ - 204 + "$id": "5685", + "Name": "multiBinaryParts", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5686", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5687", + "kind": "constant", + "valueType": { + "$id": "5688", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5689", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "54" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/check-filename-and-content-type", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType", - "Decorators": [] - }, - { - "$id": "5694", - "Name": "anonymousModel", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "5690", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/multi-binary-parts", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts", + "Decorators": [] + }, { - "$id": "5695", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5696", - "kind": "constant", - "valueType": { - "$id": "5697", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5691", + "Name": "checkFileNameAndContentType", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5692", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5693", + "kind": "constant", + "valueType": { + "$id": "5694", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "5695", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "5" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5696", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/check-filename-and-content-type", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType", + "Decorators": [] }, { - "$id": "5698", - "Name": "anonymousModelRequest", - "NameInRequest": "anonymousModelRequest", - "Type": { - "$ref": "63" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "5697", + "Name": "anonymousModel", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5698", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5699", + "kind": "constant", + "valueType": { + "$id": "5700", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5701", + "Name": "anonymousModelRequest", + "NameInRequest": "anonymousModelRequest", + "Type": { + "$ref": "63" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5702", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/anonymous-model", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel", + "Decorators": [] } ], - "Responses": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData", + "parent": { + "$ref": "5651" + }, + "children": [ { - "$id": "5699", - "StatusCodes": [ - 204 + "$id": "5703", + "kind": "client", + "name": "HttpParts", + "namespace": "Payload.MultiPart.FormData.HttpParts", + "parameters": [ + { + "$id": "5704", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "5705", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "5706", + "Type": { + "$id": "5707", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/anonymous-model", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel", - "Decorators": [] - } - ], - "Protocol": { - "$id": "5700" - }, - "Parent": "MultiPartClient", - "Parameters": [ - { - "$id": "5701", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "5702", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "5703", - "Type": { - "$id": "5704", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData" - }, - { - "$id": "5705", - "Name": "FormDataHttpParts", - "Namespace": "Payload.MultiPart.FormData.HttpParts", - "Operations": [ - { - "$id": "5706", - "Name": "jsonArrayAndFileArray", - "ResourceName": "HttpParts", - "Doc": "Test content-type: multipart/form-data for mixed scenarios", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5707", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5708", - "kind": "constant", - "valueType": { - "$id": "5709", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5710", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "68" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5711", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/complex-parts-with-httppart", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "5712" - }, - "Parent": "FormData", - "Parameters": [ - { - "$id": "5713", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "5714", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "5715", - "Type": { - "$id": "5716", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts" - }, - { - "$id": "5717", - "Name": "FormDataHttpPartsContentType", - "Namespace": "Payload.MultiPart.FormData.HttpParts.ContentType", - "Operations": [ - { - "$id": "5718", - "Name": "imageJpegContentType", - "ResourceName": "ContentType", - "Doc": "Test content-type: multipart/form-data", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5719", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5720", - "kind": "constant", - "valueType": { - "$id": "5721", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5722", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "5614" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5723", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/check-filename-and-specific-content-type-with-httppart", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType", - "Decorators": [] - }, - { - "$id": "5724", - "Name": "requiredContentType", - "ResourceName": "ContentType", - "Doc": "Test content-type: multipart/form-data", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5725", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5726", - "kind": "constant", - "valueType": { - "$id": "5727", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5728", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "5633" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5729", - "StatusCodes": [ - 204 + "operations": [ + { + "$id": "5708", + "Name": "jsonArrayAndFileArray", + "ResourceName": "HttpParts", + "Doc": "Test content-type: multipart/form-data for mixed scenarios", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5709", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5710", + "kind": "constant", + "valueType": { + "$id": "5711", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5712", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "68" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5713", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/complex-parts-with-httppart", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray", + "Decorators": [] + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/check-filename-and-required-content-type-with-httppart", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType", - "Decorators": [] - }, - { - "$id": "5730", - "Name": "optionalContentType", - "ResourceName": "ContentType", - "Doc": "Test content-type: multipart/form-data for optional content type", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5731", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5732", - "kind": "constant", - "valueType": { - "$id": "5733", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts", + "parent": { + "$ref": "5656" }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5734", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "5637" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5735", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/file-with-http-part-optional-content-type", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType", - "Decorators": [] - } - ], - "Protocol": { - "$id": "5736" - }, - "Parent": "FormDataHttpParts", - "Parameters": [ - { - "$id": "5737", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "5738", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "5739", - "Type": { - "$id": "5740", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType" - }, - { - "$id": "5741", - "Name": "FormDataHttpPartsNonString", - "Namespace": "Payload.MultiPart.FormData.HttpParts.NonString", - "Operations": [ - { - "$id": "5742", - "Name": "float", - "ResourceName": "NonString", - "Doc": "Test content-type: multipart/form-data for non string", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5743", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5744", - "kind": "constant", - "valueType": { - "$id": "5745", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "children": [ + { + "$id": "5714", + "kind": "client", + "name": "ContentType", + "namespace": "Payload.MultiPart.FormData.HttpParts.ContentType", + "parameters": [ + { + "$id": "5715", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "5716", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "5717", + "Type": { + "$id": "5718", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "5719", + "Name": "imageJpegContentType", + "ResourceName": "ContentType", + "Doc": "Test content-type: multipart/form-data", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5720", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5721", + "kind": "constant", + "valueType": { + "$id": "5722", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5723", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "5614" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5724", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/check-filename-and-specific-content-type-with-httppart", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType", + "Decorators": [] + }, + { + "$id": "5725", + "Name": "requiredContentType", + "ResourceName": "ContentType", + "Doc": "Test content-type: multipart/form-data", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5726", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5727", + "kind": "constant", + "valueType": { + "$id": "5728", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5729", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "5633" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5730", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/check-filename-and-required-content-type-with-httppart", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType", + "Decorators": [] + }, + { + "$id": "5731", + "Name": "optionalContentType", + "ResourceName": "ContentType", + "Doc": "Test content-type: multipart/form-data for optional content type", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5732", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5733", + "kind": "constant", + "valueType": { + "$id": "5734", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5735", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "5637" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5736", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/file-with-http-part-optional-content-type", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType", + "parent": { + "$ref": "5703" + } }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5746", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "4774" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5747", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + { + "$id": "5737", + "kind": "client", + "name": "NonString", + "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", + "parameters": [ + { + "$id": "5738", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "5739", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "5740", + "Type": { + "$id": "5741", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "5742", + "Name": "float", + "ResourceName": "NonString", + "Doc": "Test content-type: multipart/form-data for non string", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5743", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5744", + "kind": "constant", + "valueType": { + "$id": "5745", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5746", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "4774" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5747", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/non-string-float", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString", + "parent": { + "$ref": "5703" + } + } + ] } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/non-string-float", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float", - "Decorators": [] + ] } - ], - "Protocol": { - "$id": "5748" - }, - "Parent": "FormDataHttpParts", - "Parameters": [ - { - "$id": "5749", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "5750", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "5751", - "Type": { - "$id": "5752", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json index c8a10db2156..73e7c2ac71d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json @@ -49,12 +49,90 @@ "Clients": [ { "$id": "6", - "Name": "ResiliencyServiceDrivenClient", - "Namespace": "Resiliency.ServiceDriven", - "Doc": "Test that we can grow up a service spec and service deployment into a multi-versioned service with full client support.", - "Operations": [ + "kind": "client", + "name": "ResiliencyServiceDrivenClient", + "namespace": "Resiliency.ServiceDriven", + "doc": "Test that we can grow up a service spec and service deployment into a multi-versioned service with full client support.", + "parameters": [ { "$id": "7", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "8", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "9", + "Name": "serviceDeploymentVersion", + "NameInRequest": "serviceDeploymentVersion", + "Doc": "Pass in either 'v1' or 'v2'. This represents a version of the service deployment in history. 'v1' is for the deployment when the service had only one api version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'.", + "Type": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "11", + "Name": "apiVersion", + "NameInRequest": "apiVersion", + "Doc": "Pass in 'v1'. This represents the API version of the service. Will grow up in the next deployment to be both 'v1' and 'v2'", + "Type": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": true, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "13", + "Type": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "v1" + } + } + ], + "operations": [ + { + "$id": "15", "Name": "fromNone", "ResourceName": "AddOptionalParam", "Doc": "Test that currently accepts no parameters, will be updated in next spec to accept a new optional parameter as well", @@ -62,7 +140,7 @@ "Parameters": [], "Responses": [ { - "$id": "8", + "$id": "16", "StatusCodes": [ 204 ], @@ -82,19 +160,19 @@ "Decorators": [] }, { - "$id": "9", + "$id": "17", "Name": "fromOneRequired", "ResourceName": "AddOptionalParam", "Doc": "Test that currently accepts one required parameter, will be updated in next spec to accept a new optional parameter as well", "Accessibility": "public", "Parameters": [ { - "$id": "10", + "$id": "18", "Name": "parameter", "NameInRequest": "parameter", "Doc": "I am a required parameter", "Type": { - "$id": "11", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -113,7 +191,7 @@ ], "Responses": [ { - "$id": "12", + "$id": "20", "StatusCodes": [ 204 ], @@ -133,19 +211,19 @@ "Decorators": [] }, { - "$id": "13", + "$id": "21", "Name": "fromOneOptional", "ResourceName": "AddOptionalParam", "Doc": "Test that currently accepts one optional parameter, will be updated in next spec to accept a new optional parameter as well", "Accessibility": "public", "Parameters": [ { - "$id": "14", + "$id": "22", "Name": "parameter", "NameInRequest": "parameter", "Doc": "I am an optional parameter", "Type": { - "$id": "15", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -164,7 +242,7 @@ ], "Responses": [ { - "$id": "16", + "$id": "24", "StatusCodes": [ 204 ], @@ -184,88 +262,10 @@ "Decorators": [] } ], - "Protocol": { - "$id": "17" - }, - "Parameters": [ - { - "$id": "18", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "19", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "20", - "Name": "serviceDeploymentVersion", - "NameInRequest": "serviceDeploymentVersion", - "Doc": "Pass in either 'v1' or 'v2'. This represents a version of the service deployment in history. 'v1' is for the deployment when the service had only one api version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'.", - "Type": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "22", - "Name": "apiVersion", - "NameInRequest": "apiVersion", - "Doc": "Pass in 'v1'. This represents the API version of the service. Will grow up in the next deployment to be both 'v1' and 'v2'", - "Type": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Uri", - "IsApiVersion": true, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "24", - "Type": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "v1" - } - } + "apiVersions": [ + "v1" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Resiliency.ServiceDriven" + "crossLanguageDefinitionId": "Resiliency.ServiceDriven" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json index b24dcbb45b6..9d162b272a3 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json @@ -68,12 +68,90 @@ "Clients": [ { "$id": "8", - "Name": "ResiliencyServiceDrivenClient", - "Namespace": "Resiliency.ServiceDriven", - "Doc": "Test that we can grow up a service spec and service deployment into a multi-versioned service with full client support.\n\nThere are three concepts that should be clarified:\n1. Client spec version: refers to the spec that the client is generated from. 'v1' is a client generated from old.tsp and 'v2' is a client generated from main.tsp.\n2. Service deployment version: refers to a deployment version of the service. 'v1' represents the initial deployment of the service with a single api version. 'v2' represents the new deployment of a service with multiple api versions\n3. Api version: The initial deployment of the service only supports api version 'v1'. The new deployment of the service supports api versions 'v1' and 'v2'.\n\nWe test the following configurations from this service spec:\n- A client generated from the second service spec can call the second deployment of a service with api version v1\n- A client generated from the second service spec can call the second deployment of a service with api version v2", - "Operations": [ + "kind": "client", + "name": "ResiliencyServiceDrivenClient", + "namespace": "Resiliency.ServiceDriven", + "doc": "Test that we can grow up a service spec and service deployment into a multi-versioned service with full client support.\n\nThere are three concepts that should be clarified:\n1. Client spec version: refers to the spec that the client is generated from. 'v1' is a client generated from old.tsp and 'v2' is a client generated from main.tsp.\n2. Service deployment version: refers to a deployment version of the service. 'v1' represents the initial deployment of the service with a single api version. 'v2' represents the new deployment of a service with multiple api versions\n3. Api version: The initial deployment of the service only supports api version 'v1'. The new deployment of the service supports api versions 'v1' and 'v2'.\n\nWe test the following configurations from this service spec:\n- A client generated from the second service spec can call the second deployment of a service with api version v1\n- A client generated from the second service spec can call the second deployment of a service with api version v2", + "parameters": [ { "$id": "9", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "10", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "11", + "Name": "serviceDeploymentVersion", + "NameInRequest": "serviceDeploymentVersion", + "Doc": "Pass in either 'v1' or 'v2'. This represents a version of the service deployment in history. 'v1' is for the deployment when the service had only one api version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'.", + "Type": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "13", + "Name": "apiVersion", + "NameInRequest": "apiVersion", + "Doc": "Pass in either 'v1' or 'v2'. This represents the API version of a service.", + "Type": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": true, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "15", + "Type": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "v2" + } + } + ], + "operations": [ + { + "$id": "17", "Name": "addOperation", "ResourceName": "ServiceDriven", "Doc": "Added operation", @@ -81,7 +159,7 @@ "Parameters": [], "Responses": [ { - "$id": "10", + "$id": "18", "StatusCodes": [ 204 ], @@ -101,19 +179,19 @@ "Decorators": [] }, { - "$id": "11", + "$id": "19", "Name": "fromNone", "ResourceName": "AddOptionalParam", "Doc": "Test that grew up from accepting no parameters to an optional input parameter", "Accessibility": "public", "Parameters": [ { - "$id": "12", + "$id": "20", "Name": "new-parameter", "NameInRequest": "new-parameter", "Doc": "I'm a new input optional parameter", "Type": { - "$id": "13", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -132,7 +210,7 @@ ], "Responses": [ { - "$id": "14", + "$id": "22", "StatusCodes": [ 204 ], @@ -152,19 +230,19 @@ "Decorators": [] }, { - "$id": "15", + "$id": "23", "Name": "fromOneRequired", "ResourceName": "AddOptionalParam", "Doc": "Operation that grew up from accepting one required parameter to accepting a required parameter and an optional parameter.", "Accessibility": "public", "Parameters": [ { - "$id": "16", + "$id": "24", "Name": "parameter", "NameInRequest": "parameter", "Doc": "I am a required parameter", "Type": { - "$id": "17", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -181,12 +259,12 @@ "SkipUrlEncoding": false }, { - "$id": "18", + "$id": "26", "Name": "new-parameter", "NameInRequest": "new-parameter", "Doc": "I'm a new input optional parameter", "Type": { - "$id": "19", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -205,7 +283,7 @@ ], "Responses": [ { - "$id": "20", + "$id": "28", "StatusCodes": [ 204 ], @@ -225,19 +303,19 @@ "Decorators": [] }, { - "$id": "21", + "$id": "29", "Name": "fromOneOptional", "ResourceName": "AddOptionalParam", "Doc": "Tests that we can grow up an operation from accepting one optional parameter to accepting two optional parameters.", "Accessibility": "public", "Parameters": [ { - "$id": "22", + "$id": "30", "Name": "parameter", "NameInRequest": "parameter", "Doc": "I am an optional parameter", "Type": { - "$id": "23", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -254,12 +332,12 @@ "SkipUrlEncoding": false }, { - "$id": "24", + "$id": "32", "Name": "new-parameter", "NameInRequest": "new-parameter", "Doc": "I'm a new input optional parameter", "Type": { - "$id": "25", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -278,7 +356,7 @@ ], "Responses": [ { - "$id": "26", + "$id": "34", "StatusCodes": [ 204 ], @@ -298,88 +376,11 @@ "Decorators": [] } ], - "Protocol": { - "$id": "27" - }, - "Parameters": [ - { - "$id": "28", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "29", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "30", - "Name": "serviceDeploymentVersion", - "NameInRequest": "serviceDeploymentVersion", - "Doc": "Pass in either 'v1' or 'v2'. This represents a version of the service deployment in history. 'v1' is for the deployment when the service had only one api version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'.", - "Type": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "32", - "Name": "apiVersion", - "NameInRequest": "apiVersion", - "Doc": "Pass in either 'v1' or 'v2'. This represents the API version of a service.", - "Type": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Uri", - "IsApiVersion": true, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "34", - "Type": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "v2" - } - } + "apiVersions": [ + "v1", + "v2" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Resiliency.ServiceDriven" + "crossLanguageDefinitionId": "Resiliency.ServiceDriven" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json index 853814e95b4..3f82dc31a43 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json @@ -208,25 +208,59 @@ "Clients": [ { "$id": "30", - "Name": "StatusCodeRangeClient", - "Namespace": "Response.StatusCodeRange", - "Doc": "Test for range of status code.", - "Operations": [ + "kind": "client", + "name": "StatusCodeRangeClient", + "namespace": "Response.StatusCodeRange", + "doc": "Test for range of status code.", + "parameters": [ { "$id": "31", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "32", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "33", + "Type": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "35", "Name": "errorResponseStatusCodeInRange", "ResourceName": "StatusCodeRange", "Accessibility": "public", "Parameters": [ { - "$id": "32", + "$id": "36", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "33", + "$id": "37", "kind": "constant", "valueType": { - "$id": "34", + "$id": "38", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -248,15 +282,15 @@ ], "Responses": [ { - "$id": "35", + "$id": "39", "StatusCodes": [ 200 ], "BodyType": { - "$id": "36", + "$id": "40", "kind": "constant", "valueType": { - "$id": "37", + "$id": "41", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -284,20 +318,20 @@ "Decorators": [] }, { - "$id": "38", + "$id": "42", "Name": "errorResponseStatusCode404", "ResourceName": "StatusCodeRange", "Accessibility": "public", "Parameters": [ { - "$id": "39", + "$id": "43", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "40", + "$id": "44", "kind": "constant", "valueType": { - "$id": "41", + "$id": "45", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -319,15 +353,15 @@ ], "Responses": [ { - "$id": "42", + "$id": "46", "StatusCodes": [ 200 ], "BodyType": { - "$id": "43", + "$id": "47", "kind": "constant", "valueType": { - "$id": "44", + "$id": "48", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -355,44 +389,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "45" - }, - "Parameters": [ - { - "$id": "46", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "47", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "48", - "Type": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Response.StatusCodeRange" + "apiVersions": [], + "crossLanguageDefinitionId": "Response.StatusCodeRange" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParameters.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParameters.cs index 3e17767b7d8..3d40712a9a0 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParameters.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParameters.cs @@ -6,11 +6,11 @@ using System.ClientModel.Primitives; using System.Threading; using System.Threading.Tasks; -using Routes._PathParameters.LabelExpansion; -using Routes._PathParameters.MatrixExpansion; -using Routes._PathParameters.PathExpansion; -using Routes._PathParameters.ReservedExpansion; -using Routes._PathParameters.SimpleExpansion; +using Routes._PathParameters._LabelExpansion; +using Routes._PathParameters._MatrixExpansion; +using Routes._PathParameters._PathExpansion; +using Routes._PathParameters._ReservedExpansion; +using Routes._PathParameters._SimpleExpansion; namespace Routes._PathParameters { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansion.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansion.cs index b7d6a6cbc7c..f09f947d576 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansion.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansion.cs @@ -3,10 +3,10 @@ #nullable disable using System.ClientModel.Primitives; -using Routes._PathParameters.LabelExpansion.Explode; -using Routes._PathParameters.LabelExpansion.Standard; +using Routes._PathParameters._LabelExpansion._Explode; +using Routes._PathParameters._LabelExpansion._Standard; -namespace Routes._PathParameters.LabelExpansion +namespace Routes._PathParameters._LabelExpansion { public partial class PathParametersLabelExpansion { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionExplode.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionExplode.cs index 79470e680e1..8387c5f96da 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionExplode.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionExplode.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters.LabelExpansion.Explode +namespace Routes._PathParameters._LabelExpansion._Explode { public partial class PathParametersLabelExpansionExplode { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionStandard.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionStandard.cs index 0b742d05724..0429ac92326 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionStandard.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionStandard.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters.LabelExpansion.Standard +namespace Routes._PathParameters._LabelExpansion._Standard { public partial class PathParametersLabelExpansionStandard { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansion.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansion.cs index 6bf98190256..7ee6cb912c2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansion.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansion.cs @@ -3,10 +3,10 @@ #nullable disable using System.ClientModel.Primitives; -using Routes._PathParameters.MatrixExpansion.Explode; -using Routes._PathParameters.MatrixExpansion.Standard; +using Routes._PathParameters._MatrixExpansion._Explode; +using Routes._PathParameters._MatrixExpansion._Standard; -namespace Routes._PathParameters.MatrixExpansion +namespace Routes._PathParameters._MatrixExpansion { public partial class PathParametersMatrixExpansion { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionExplode.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionExplode.cs index b92df406571..c998157b652 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionExplode.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionExplode.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters.MatrixExpansion.Explode +namespace Routes._PathParameters._MatrixExpansion._Explode { public partial class PathParametersMatrixExpansionExplode { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionStandard.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionStandard.cs index d40c1696d15..3e9eb20c7c2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionStandard.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionStandard.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters.MatrixExpansion.Standard +namespace Routes._PathParameters._MatrixExpansion._Standard { public partial class PathParametersMatrixExpansionStandard { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansion.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansion.cs index ec2f665c1a2..fcdb41d412b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansion.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansion.cs @@ -3,10 +3,10 @@ #nullable disable using System.ClientModel.Primitives; -using Routes._PathParameters.PathExpansion.Explode; -using Routes._PathParameters.PathExpansion.Standard; +using Routes._PathParameters._PathExpansion._Explode; +using Routes._PathParameters._PathExpansion._Standard; -namespace Routes._PathParameters.PathExpansion +namespace Routes._PathParameters._PathExpansion { public partial class PathParametersPathExpansion { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionExplode.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionExplode.cs index b7f10f1c6d4..628d3cf2848 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionExplode.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionExplode.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters.PathExpansion.Explode +namespace Routes._PathParameters._PathExpansion._Explode { public partial class PathParametersPathExpansionExplode { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionStandard.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionStandard.cs index d58ca6fbc4d..d812398daf3 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionStandard.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionStandard.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters.PathExpansion.Standard +namespace Routes._PathParameters._PathExpansion._Standard { public partial class PathParametersPathExpansionStandard { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersReservedExpansion.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersReservedExpansion.cs index 3becc3ca8f2..dd014ad482e 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersReservedExpansion.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersReservedExpansion.cs @@ -7,7 +7,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters.ReservedExpansion +namespace Routes._PathParameters._ReservedExpansion { public partial class PathParametersReservedExpansion { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansion.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansion.cs index cb3b2ce1c3a..86d2b14c30a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansion.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansion.cs @@ -3,10 +3,10 @@ #nullable disable using System.ClientModel.Primitives; -using Routes._PathParameters.SimpleExpansion.Explode; -using Routes._PathParameters.SimpleExpansion.Standard; +using Routes._PathParameters._SimpleExpansion._Explode; +using Routes._PathParameters._SimpleExpansion._Standard; -namespace Routes._PathParameters.SimpleExpansion +namespace Routes._PathParameters._SimpleExpansion { public partial class PathParametersSimpleExpansion { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionExplode.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionExplode.cs index 00c4d218a1c..ecb4f5f7a16 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionExplode.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionExplode.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters.SimpleExpansion.Explode +namespace Routes._PathParameters._SimpleExpansion._Explode { public partial class PathParametersSimpleExpansionExplode { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionStandard.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionStandard.cs index 63477a318ae..ca7b738848e 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionStandard.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionStandard.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters.SimpleExpansion.Standard +namespace Routes._PathParameters._SimpleExpansion._Standard { public partial class PathParametersSimpleExpansionStandard { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParameters.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParameters.cs index 4ccfde73030..bb7e8d1aaac 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParameters.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParameters.cs @@ -6,8 +6,8 @@ using System.ClientModel.Primitives; using System.Threading; using System.Threading.Tasks; -using Routes._QueryParameters.QueryContinuation; -using Routes._QueryParameters.QueryExpansion; +using Routes._QueryParameters._QueryContinuation; +using Routes._QueryParameters._QueryExpansion; namespace Routes._QueryParameters { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuation.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuation.cs index c1e1821e791..a129eb2c72f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuation.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuation.cs @@ -3,10 +3,10 @@ #nullable disable using System.ClientModel.Primitives; -using Routes._QueryParameters.QueryContinuation.Explode; -using Routes._QueryParameters.QueryContinuation.Standard; +using Routes._QueryParameters._QueryContinuation._Explode; +using Routes._QueryParameters._QueryContinuation._Standard; -namespace Routes._QueryParameters.QueryContinuation +namespace Routes._QueryParameters._QueryContinuation { public partial class QueryParametersQueryContinuation { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationExplode.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationExplode.cs index b9a3cb696d4..c3a41f016c8 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationExplode.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationExplode.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._QueryParameters.QueryContinuation.Explode +namespace Routes._QueryParameters._QueryContinuation._Explode { public partial class QueryParametersQueryContinuationExplode { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationStandard.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationStandard.cs index 679ca546a46..e8b73c86669 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationStandard.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationStandard.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._QueryParameters.QueryContinuation.Standard +namespace Routes._QueryParameters._QueryContinuation._Standard { public partial class QueryParametersQueryContinuationStandard { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansion.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansion.cs index 7038262cc30..345e14a717f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansion.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansion.cs @@ -3,10 +3,10 @@ #nullable disable using System.ClientModel.Primitives; -using Routes._QueryParameters.QueryExpansion.Explode; -using Routes._QueryParameters.QueryExpansion.Standard; +using Routes._QueryParameters._QueryExpansion._Explode; +using Routes._QueryParameters._QueryExpansion._Standard; -namespace Routes._QueryParameters.QueryExpansion +namespace Routes._QueryParameters._QueryExpansion { public partial class QueryParametersQueryExpansion { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionExplode.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionExplode.cs index cedde7fe6aa..002991d200b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionExplode.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionExplode.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._QueryParameters.QueryExpansion.Explode +namespace Routes._QueryParameters._QueryExpansion._Explode { public partial class QueryParametersQueryExpansionExplode { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionStandard.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionStandard.cs index dd88da3b509..b53282b322e 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionStandard.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionStandard.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._QueryParameters.QueryExpansion.Standard +namespace Routes._QueryParameters._QueryExpansion._Standard { public partial class QueryParametersQueryExpansionStandard { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json index a4524f288b1..0f11015e37f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json @@ -7,49 +7,18 @@ "Clients": [ { "$id": "2", - "Name": "RoutesClient", - "Namespace": "Routes", - "Doc": "Define scenario in building the http route/uri", - "Operations": [ + "kind": "client", + "name": "RoutesClient", + "namespace": "Routes", + "doc": "Define scenario in building the http route/uri", + "parameters": [ { "$id": "3", - "Name": "fixed", - "ResourceName": "Routes", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "4", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/fixed", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.fixed", - "Decorators": [] - } - ], - "Protocol": { - "$id": "5" - }, - "Parameters": [ - { - "$id": "6", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "7", + "$id": "4", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -64,9 +33,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "8", + "$id": "5", "Type": { - "$id": "9", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -75,45 +44,16 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes" - }, - { - "$id": "10", - "Name": "PathParameters", - "Namespace": "Routes.PathParameters", - "Operations": [ + "operations": [ { - "$id": "11", - "Name": "templateOnly", - "ResourceName": "PathParameters", + "$id": "7", + "Name": "fixed", + "ResourceName": "Routes", "Accessibility": "public", - "Parameters": [ - { - "$id": "12", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], + "Parameters": [], "Responses": [ { - "$id": "14", + "$id": "8", "StatusCodes": [ 204 ], @@ -125,3375 +65,3432 @@ "HttpMethod": "GET", "RequestBodyMediaType": "None", "Uri": "{endpoint}", - "Path": "/routes/path/template-only/{param}", + "Path": "/routes/fixed", "BufferResponse": true, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.templateOnly", + "CrossLanguageDefinitionId": "Routes.fixed", "Decorators": [] - }, - { - "$id": "15", - "Name": "explicit", - "ResourceName": "PathParameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "16", - "Name": "param", - "NameInRequest": "param", + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Routes", + "children": [ + { + "$id": "9", + "kind": "client", + "name": "PathParameters", + "namespace": "Routes.PathParameters", + "parameters": [ + { + "$id": "10", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "11", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Path", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "12", + "Type": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "14", + "Name": "templateOnly", + "ResourceName": "PathParameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "15", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "17", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/template-only/{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.templateOnly", + "Decorators": [] + }, { "$id": "18", - "StatusCodes": [ - 204 + "Name": "explicit", + "ResourceName": "PathParameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "19", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/explicit/{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.explicit", - "Decorators": [] + "Responses": [ + { + "$id": "21", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/explicit/{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.explicit", + "Decorators": [] + }, + { + "$id": "22", + "Name": "annotationOnly", + "ResourceName": "PathParameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "23", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "25", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/annotation-only/{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.annotationOnly", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Routes.PathParameters", + "parent": { + "$ref": "2" + }, + "children": [ + { + "$id": "26", + "kind": "client", + "name": "ReservedExpansion", + "namespace": "Routes.PathParameters.ReservedExpansion", + "parameters": [ + { + "$id": "27", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "28", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "29", + "Type": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "31", + "Name": "template", + "ResourceName": "ReservedExpansion", + "Accessibility": "public", + "Parameters": [ + { + "$id": "32", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": true + } + ], + "Responses": [ + { + "$id": "34", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/reserved-expansion/template/{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template", + "Decorators": [] + }, + { + "$id": "35", + "Name": "annotation", + "ResourceName": "ReservedExpansion", + "Accessibility": "public", + "Parameters": [ + { + "$id": "36", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "37", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": true + } + ], + "Responses": [ + { + "$id": "38", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/reserved-expansion/annotation/{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.annotation", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion", + "parent": { + "$ref": "9" + } + }, + { + "$id": "39", + "kind": "client", + "name": "SimpleExpansion", + "namespace": "Routes.PathParameters.SimpleExpansion", + "parameters": [ + { + "$id": "40", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "41", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "42", + "Type": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion", + "parent": { + "$ref": "9" + }, + "children": [ + { + "$id": "44", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.SimpleExpansion.Standard", + "parameters": [ + { + "$id": "45", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "46", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "47", + "Type": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "49", + "Name": "primitive", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "50", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "52", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/simple/standard/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive", + "Decorators": [] + }, + { + "$id": "53", + "Name": "array", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "54", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "55", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "57", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/simple/standard/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array", + "Decorators": [] + }, + { + "$id": "58", + "Name": "record", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "59", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "60", + "kind": "dict", + "keyType": { + "$id": "61", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "62", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "63", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/simple/standard/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard", + "parent": { + "$ref": "39" + } + }, + { + "$id": "64", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.SimpleExpansion.Explode", + "parameters": [ + { + "$id": "65", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "66", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "67", + "Type": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "69", + "Name": "primitive", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "70", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "71", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "72", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/simple/explode/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive", + "Decorators": [] + }, + { + "$id": "73", + "Name": "array", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "74", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "75", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "76", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "77", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/simple/explode/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array", + "Decorators": [] + }, + { + "$id": "78", + "Name": "record", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "79", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "80", + "kind": "dict", + "keyType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "82", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "83", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/simple/explode/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode", + "parent": { + "$ref": "39" + } + } + ] + }, + { + "$id": "84", + "kind": "client", + "name": "PathExpansion", + "namespace": "Routes.PathParameters.PathExpansion", + "parameters": [ + { + "$id": "85", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "86", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "87", + "Type": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion", + "parent": { + "$ref": "9" + }, + "children": [ + { + "$id": "89", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.PathExpansion.Standard", + "parameters": [ + { + "$id": "90", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "91", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "92", + "Type": { + "$id": "93", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "94", + "Name": "primitive", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "95", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "97", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/path/standard/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive", + "Decorators": [] + }, + { + "$id": "98", + "Name": "array", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "99", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "100", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "101", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "102", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/path/standard/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array", + "Decorators": [] + }, + { + "$id": "103", + "Name": "record", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "104", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "105", + "kind": "dict", + "keyType": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "107", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "108", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/path/standard/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard", + "parent": { + "$ref": "84" + } + }, + { + "$id": "109", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.PathExpansion.Explode", + "parameters": [ + { + "$id": "110", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "111", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "112", + "Type": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "114", + "Name": "primitive", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "115", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "117", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/path/explode/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive", + "Decorators": [] + }, + { + "$id": "118", + "Name": "array", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "119", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "120", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "122", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/path/explode/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array", + "Decorators": [] + }, + { + "$id": "123", + "Name": "record", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "124", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "125", + "kind": "dict", + "keyType": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "127", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "128", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/path/explode/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode", + "parent": { + "$ref": "84" + } + } + ] + }, + { + "$id": "129", + "kind": "client", + "name": "LabelExpansion", + "namespace": "Routes.PathParameters.LabelExpansion", + "parameters": [ + { + "$id": "130", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "131", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "132", + "Type": { + "$id": "133", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion", + "parent": { + "$ref": "9" + }, + "children": [ + { + "$id": "134", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.LabelExpansion.Standard", + "parameters": [ + { + "$id": "135", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "136", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "137", + "Type": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "139", + "Name": "primitive", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "140", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "141", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "142", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/label/standard/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive", + "Decorators": [] + }, + { + "$id": "143", + "Name": "array", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "144", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "145", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "147", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/label/standard/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array", + "Decorators": [] + }, + { + "$id": "148", + "Name": "record", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "149", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "150", + "kind": "dict", + "keyType": { + "$id": "151", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "152", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "153", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/label/standard/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard", + "parent": { + "$ref": "129" + } + }, + { + "$id": "154", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.LabelExpansion.Explode", + "parameters": [ + { + "$id": "155", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "156", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "157", + "Type": { + "$id": "158", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "159", + "Name": "primitive", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "160", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "161", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "162", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/label/explode/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive", + "Decorators": [] + }, + { + "$id": "163", + "Name": "array", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "164", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "165", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "166", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "167", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/label/explode/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array", + "Decorators": [] + }, + { + "$id": "168", + "Name": "record", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "169", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "170", + "kind": "dict", + "keyType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "172", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "173", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/label/explode/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode", + "parent": { + "$ref": "129" + } + } + ] + }, + { + "$id": "174", + "kind": "client", + "name": "MatrixExpansion", + "namespace": "Routes.PathParameters.MatrixExpansion", + "parameters": [ + { + "$id": "175", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "176", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "177", + "Type": { + "$id": "178", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion", + "parent": { + "$ref": "9" + }, + "children": [ + { + "$id": "179", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.MatrixExpansion.Standard", + "parameters": [ + { + "$id": "180", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "181", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "182", + "Type": { + "$id": "183", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "184", + "Name": "primitive", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "185", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "186", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "187", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/matrix/standard/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive", + "Decorators": [] + }, + { + "$id": "188", + "Name": "array", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "189", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "190", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "192", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/matrix/standard/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array", + "Decorators": [] + }, + { + "$id": "193", + "Name": "record", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "194", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "195", + "kind": "dict", + "keyType": { + "$id": "196", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "197", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "198", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/matrix/standard/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard", + "parent": { + "$ref": "174" + } + }, + { + "$id": "199", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.MatrixExpansion.Explode", + "parameters": [ + { + "$id": "200", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "201", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "202", + "Type": { + "$id": "203", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "204", + "Name": "primitive", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "205", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "206", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "207", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/matrix/explode/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive", + "Decorators": [] + }, + { + "$id": "208", + "Name": "array", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "209", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "210", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "212", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/matrix/explode/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array", + "Decorators": [] + }, + { + "$id": "213", + "Name": "record", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "214", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "215", + "kind": "dict", + "keyType": { + "$id": "216", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "217", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "218", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/path/matrix/explode/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode", + "parent": { + "$ref": "174" + } + } + ] + } + ] }, { - "$id": "19", - "Name": "annotationOnly", - "ResourceName": "PathParameters", - "Accessibility": "public", - "Parameters": [ + "$id": "219", + "kind": "client", + "name": "QueryParameters", + "namespace": "Routes.QueryParameters", + "parameters": [ { - "$id": "20", - "Name": "param", - "NameInRequest": "param", + "$id": "220", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "221", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Path", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "222", + "Type": { + "$id": "223", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "22", - "StatusCodes": [ - 204 + "$id": "224", + "Name": "templateOnly", + "ResourceName": "QueryParameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "225", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/annotation-only/{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.annotationOnly", - "Decorators": [] - } - ], - "Protocol": { - "$id": "23" - }, - "Parent": "RoutesClient", - "Parameters": [ - { - "$id": "24", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "25", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "26", - "Type": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "227", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/template-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.templateOnly", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters" - }, - { - "$id": "28", - "Name": "PathParametersReservedExpansion", - "Namespace": "Routes.PathParameters.ReservedExpansion", - "Operations": [ - { - "$id": "29", - "Name": "template", - "ResourceName": "ReservedExpansion", - "Accessibility": "public", - "Parameters": [ { - "$id": "30", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "228", + "Name": "explicit", + "ResourceName": "QueryParameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "229", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "230", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "231", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/explicit", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.explicit", + "Decorators": [] + }, + { + "$id": "232", + "Name": "annotationOnly", + "ResourceName": "QueryParameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "233", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "234", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "235", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/annotation-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.annotationOnly", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Routes.QueryParameters", + "parent": { + "$ref": "2" + }, + "children": [ + { + "$id": "236", + "kind": "client", + "name": "QueryExpansion", + "namespace": "Routes.QueryParameters.QueryExpansion", + "parameters": [ + { + "$id": "237", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "238", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "239", + "Type": { + "$id": "240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion", + "parent": { + "$ref": "219" }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": true - } - ], - "Responses": [ + "children": [ + { + "$id": "241", + "kind": "client", + "name": "Standard", + "namespace": "Routes.QueryParameters.QueryExpansion.Standard", + "parameters": [ + { + "$id": "242", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "243", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "244", + "Type": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "246", + "Name": "primitive", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "247", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "248", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "249", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/query-expansion/standard/primitive", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive", + "Decorators": [] + }, + { + "$id": "250", + "Name": "array", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "251", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "252", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "254", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/query-expansion/standard/array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array", + "Decorators": [] + }, + { + "$id": "255", + "Name": "record", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "256", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "257", + "kind": "dict", + "keyType": { + "$id": "258", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "259", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "260", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/query-expansion/standard/record", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard", + "parent": { + "$ref": "236" + } + }, + { + "$id": "261", + "kind": "client", + "name": "Explode", + "namespace": "Routes.QueryParameters.QueryExpansion.Explode", + "parameters": [ + { + "$id": "262", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "263", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "264", + "Type": { + "$id": "265", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "266", + "Name": "primitive", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "267", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "268", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "269", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/query-expansion/explode/primitive", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive", + "Decorators": [] + }, + { + "$id": "270", + "Name": "array", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "271", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "272", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "273", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "274", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/query-expansion/explode/array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array", + "Decorators": [] + }, + { + "$id": "275", + "Name": "record", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "276", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "277", + "kind": "dict", + "keyType": { + "$id": "278", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "279", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "280", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/query-expansion/explode/record", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode", + "parent": { + "$ref": "236" + } + } + ] + }, { - "$id": "32", - "StatusCodes": [ - 204 + "$id": "281", + "kind": "client", + "name": "QueryContinuation", + "namespace": "Routes.QueryParameters.QueryContinuation", + "parameters": [ + { + "$id": "282", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "283", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "284", + "Type": { + "$id": "285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/reserved-expansion/template/{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template", - "Decorators": [] + "operations": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation", + "parent": { + "$ref": "219" + }, + "children": [ + { + "$id": "286", + "kind": "client", + "name": "Standard", + "namespace": "Routes.QueryParameters.QueryContinuation.Standard", + "parameters": [ + { + "$id": "287", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "288", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "289", + "Type": { + "$id": "290", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "291", + "Name": "primitive", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "292", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "294", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/query-continuation/standard/primitive?fixed=true", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive", + "Decorators": [] + }, + { + "$id": "295", + "Name": "array", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "296", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "297", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "298", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "299", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/query-continuation/standard/array?fixed=true", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array", + "Decorators": [] + }, + { + "$id": "300", + "Name": "record", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "301", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "302", + "kind": "dict", + "keyType": { + "$id": "303", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "304", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "305", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/query-continuation/standard/record?fixed=true", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard", + "parent": { + "$ref": "281" + } + }, + { + "$id": "306", + "kind": "client", + "name": "Explode", + "namespace": "Routes.QueryParameters.QueryContinuation.Explode", + "parameters": [ + { + "$id": "307", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "308", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "309", + "Type": { + "$id": "310", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "311", + "Name": "primitive", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "312", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "313", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "314", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/query-continuation/explode/primitive?fixed=true", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive", + "Decorators": [] + }, + { + "$id": "315", + "Name": "array", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "316", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "317", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "318", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "319", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/query-continuation/explode/array?fixed=true", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array", + "Decorators": [] + }, + { + "$id": "320", + "Name": "record", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "321", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "322", + "kind": "dict", + "keyType": { + "$id": "323", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "324", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "325", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/query/query-continuation/explode/record?fixed=true", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode", + "parent": { + "$ref": "281" + } + } + ] + } + ] }, { - "$id": "33", - "Name": "annotation", - "ResourceName": "ReservedExpansion", - "Accessibility": "public", - "Parameters": [ + "$id": "326", + "kind": "client", + "name": "InInterface", + "namespace": "Routes", + "parameters": [ { - "$id": "34", - "Name": "param", - "NameInRequest": "param", + "$id": "327", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "328", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Path", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": true + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "329", + "Type": { + "$id": "330", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "36", - "StatusCodes": [ - 204 + "$id": "331", + "Name": "fixed", + "ResourceName": "InInterface", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "332", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/reserved-expansion/annotation/{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.annotation", - "Decorators": [] - } - ], - "Protocol": { - "$id": "37" - }, - "Parent": "PathParameters", - "Parameters": [ - { - "$id": "38", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "39", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "40", - "Type": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/routes/in-interface/fixed", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.InInterface.fixed", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Routes.InInterface", + "parent": { + "$ref": "2" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion" - }, - { - "$id": "42", - "Name": "PathParametersSimpleExpansion", - "Namespace": "Routes.PathParameters.SimpleExpansion", - "Operations": [], - "Protocol": { - "$id": "43" - }, - "Parent": "PathParameters", - "Parameters": [ - { - "$id": "44", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "45", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "46", - "Type": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion" - }, - { - "$id": "48", - "Name": "PathParametersSimpleExpansionStandard", - "Namespace": "Routes.PathParameters.SimpleExpansion.Standard", - "Operations": [ - { - "$id": "49", - "Name": "primitive", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "50", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "52", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/simple/standard/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive", - "Decorators": [] - }, - { - "$id": "53", - "Name": "array", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "54", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "55", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "56", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "57", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/simple/standard/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array", - "Decorators": [] - }, - { - "$id": "58", - "Name": "record", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "59", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "60", - "kind": "dict", - "keyType": { - "$id": "61", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "62", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "63", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/simple/standard/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "64" - }, - "Parent": "PathParametersSimpleExpansion", - "Parameters": [ - { - "$id": "65", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "66", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "67", - "Type": { - "$id": "68", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard" - }, - { - "$id": "69", - "Name": "PathParametersSimpleExpansionExplode", - "Namespace": "Routes.PathParameters.SimpleExpansion.Explode", - "Operations": [ - { - "$id": "70", - "Name": "primitive", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "71", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "72", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "73", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/simple/explode/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive", - "Decorators": [] - }, - { - "$id": "74", - "Name": "array", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "75", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "76", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "78", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/simple/explode/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array", - "Decorators": [] - }, - { - "$id": "79", - "Name": "record", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "80", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "81", - "kind": "dict", - "keyType": { - "$id": "82", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "83", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "84", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/simple/explode/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "85" - }, - "Parent": "PathParametersSimpleExpansion", - "Parameters": [ - { - "$id": "86", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "87", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "88", - "Type": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode" - }, - { - "$id": "90", - "Name": "PathParametersPathExpansion", - "Namespace": "Routes.PathParameters.PathExpansion", - "Operations": [], - "Protocol": { - "$id": "91" - }, - "Parent": "PathParameters", - "Parameters": [ - { - "$id": "92", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "93", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "94", - "Type": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion" - }, - { - "$id": "96", - "Name": "PathParametersPathExpansionStandard", - "Namespace": "Routes.PathParameters.PathExpansion.Standard", - "Operations": [ - { - "$id": "97", - "Name": "primitive", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "98", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "100", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/path/standard/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive", - "Decorators": [] - }, - { - "$id": "101", - "Name": "array", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "102", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "103", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "105", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/path/standard/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array", - "Decorators": [] - }, - { - "$id": "106", - "Name": "record", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "107", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "108", - "kind": "dict", - "keyType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "110", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "111", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/path/standard/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "112" - }, - "Parent": "PathParametersPathExpansion", - "Parameters": [ - { - "$id": "113", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "114", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "115", - "Type": { - "$id": "116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard" - }, - { - "$id": "117", - "Name": "PathParametersPathExpansionExplode", - "Namespace": "Routes.PathParameters.PathExpansion.Explode", - "Operations": [ - { - "$id": "118", - "Name": "primitive", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "119", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "121", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/path/explode/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive", - "Decorators": [] - }, - { - "$id": "122", - "Name": "array", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "123", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "124", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "126", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/path/explode/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array", - "Decorators": [] - }, - { - "$id": "127", - "Name": "record", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "128", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "129", - "kind": "dict", - "keyType": { - "$id": "130", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "131", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "132", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/path/explode/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "133" - }, - "Parent": "PathParametersPathExpansion", - "Parameters": [ - { - "$id": "134", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "135", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "136", - "Type": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode" - }, - { - "$id": "138", - "Name": "PathParametersLabelExpansion", - "Namespace": "Routes.PathParameters.LabelExpansion", - "Operations": [], - "Protocol": { - "$id": "139" - }, - "Parent": "PathParameters", - "Parameters": [ - { - "$id": "140", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "141", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "142", - "Type": { - "$id": "143", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion" - }, - { - "$id": "144", - "Name": "PathParametersLabelExpansionStandard", - "Namespace": "Routes.PathParameters.LabelExpansion.Standard", - "Operations": [ - { - "$id": "145", - "Name": "primitive", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "146", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "148", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/label/standard/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive", - "Decorators": [] - }, - { - "$id": "149", - "Name": "array", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "150", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "151", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "152", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "153", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/label/standard/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array", - "Decorators": [] - }, - { - "$id": "154", - "Name": "record", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "155", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "156", - "kind": "dict", - "keyType": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "158", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "159", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/label/standard/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "160" - }, - "Parent": "PathParametersLabelExpansion", - "Parameters": [ - { - "$id": "161", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "162", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "163", - "Type": { - "$id": "164", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard" - }, - { - "$id": "165", - "Name": "PathParametersLabelExpansionExplode", - "Namespace": "Routes.PathParameters.LabelExpansion.Explode", - "Operations": [ - { - "$id": "166", - "Name": "primitive", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "167", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "168", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "169", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/label/explode/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive", - "Decorators": [] - }, - { - "$id": "170", - "Name": "array", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "171", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "172", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "173", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "174", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/label/explode/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array", - "Decorators": [] - }, - { - "$id": "175", - "Name": "record", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "176", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "177", - "kind": "dict", - "keyType": { - "$id": "178", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "179", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "180", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/label/explode/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "181" - }, - "Parent": "PathParametersLabelExpansion", - "Parameters": [ - { - "$id": "182", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "183", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "184", - "Type": { - "$id": "185", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode" - }, - { - "$id": "186", - "Name": "PathParametersMatrixExpansion", - "Namespace": "Routes.PathParameters.MatrixExpansion", - "Operations": [], - "Protocol": { - "$id": "187" - }, - "Parent": "PathParameters", - "Parameters": [ - { - "$id": "188", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "189", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "190", - "Type": { - "$id": "191", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion" - }, - { - "$id": "192", - "Name": "PathParametersMatrixExpansionStandard", - "Namespace": "Routes.PathParameters.MatrixExpansion.Standard", - "Operations": [ - { - "$id": "193", - "Name": "primitive", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "194", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "195", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "196", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/matrix/standard/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive", - "Decorators": [] - }, - { - "$id": "197", - "Name": "array", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "198", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "199", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "200", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "201", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/matrix/standard/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array", - "Decorators": [] - }, - { - "$id": "202", - "Name": "record", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "203", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "204", - "kind": "dict", - "keyType": { - "$id": "205", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "206", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "207", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/matrix/standard/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "208" - }, - "Parent": "PathParametersMatrixExpansion", - "Parameters": [ - { - "$id": "209", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "210", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "211", - "Type": { - "$id": "212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard" - }, - { - "$id": "213", - "Name": "PathParametersMatrixExpansionExplode", - "Namespace": "Routes.PathParameters.MatrixExpansion.Explode", - "Operations": [ - { - "$id": "214", - "Name": "primitive", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "215", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "217", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/matrix/explode/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive", - "Decorators": [] - }, - { - "$id": "218", - "Name": "array", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "219", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "220", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "221", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "222", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/matrix/explode/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array", - "Decorators": [] - }, - { - "$id": "223", - "Name": "record", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "224", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "225", - "kind": "dict", - "keyType": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "227", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "228", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/path/matrix/explode/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "229" - }, - "Parent": "PathParametersMatrixExpansion", - "Parameters": [ - { - "$id": "230", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "231", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "232", - "Type": { - "$id": "233", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode" - }, - { - "$id": "234", - "Name": "QueryParameters", - "Namespace": "Routes.QueryParameters", - "Operations": [ - { - "$id": "235", - "Name": "templateOnly", - "ResourceName": "QueryParameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "236", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "237", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "238", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/template-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.templateOnly", - "Decorators": [] - }, - { - "$id": "239", - "Name": "explicit", - "ResourceName": "QueryParameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "240", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "242", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/explicit", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.explicit", - "Decorators": [] - }, - { - "$id": "243", - "Name": "annotationOnly", - "ResourceName": "QueryParameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "244", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "245", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "246", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/annotation-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.annotationOnly", - "Decorators": [] - } - ], - "Protocol": { - "$id": "247" - }, - "Parent": "RoutesClient", - "Parameters": [ - { - "$id": "248", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "249", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "250", - "Type": { - "$id": "251", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters" - }, - { - "$id": "252", - "Name": "QueryParametersQueryExpansion", - "Namespace": "Routes.QueryParameters.QueryExpansion", - "Operations": [], - "Protocol": { - "$id": "253" - }, - "Parent": "QueryParameters", - "Parameters": [ - { - "$id": "254", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "255", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "256", - "Type": { - "$id": "257", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion" - }, - { - "$id": "258", - "Name": "QueryParametersQueryExpansionStandard", - "Namespace": "Routes.QueryParameters.QueryExpansion.Standard", - "Operations": [ - { - "$id": "259", - "Name": "primitive", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "260", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "261", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "262", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/query-expansion/standard/primitive", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive", - "Decorators": [] - }, - { - "$id": "263", - "Name": "array", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "264", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "265", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "266", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "267", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/query-expansion/standard/array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array", - "Decorators": [] - }, - { - "$id": "268", - "Name": "record", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "269", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "270", - "kind": "dict", - "keyType": { - "$id": "271", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "272", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "273", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/query-expansion/standard/record", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "274" - }, - "Parent": "QueryParametersQueryExpansion", - "Parameters": [ - { - "$id": "275", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "276", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "277", - "Type": { - "$id": "278", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard" - }, - { - "$id": "279", - "Name": "QueryParametersQueryExpansionExplode", - "Namespace": "Routes.QueryParameters.QueryExpansion.Explode", - "Operations": [ - { - "$id": "280", - "Name": "primitive", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "281", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "282", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "283", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/query-expansion/explode/primitive", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive", - "Decorators": [] - }, - { - "$id": "284", - "Name": "array", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "285", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "286", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "287", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "288", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/query-expansion/explode/array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array", - "Decorators": [] - }, - { - "$id": "289", - "Name": "record", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "290", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "291", - "kind": "dict", - "keyType": { - "$id": "292", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "293", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "294", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/query-expansion/explode/record", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "295" - }, - "Parent": "QueryParametersQueryExpansion", - "Parameters": [ - { - "$id": "296", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "297", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "298", - "Type": { - "$id": "299", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode" - }, - { - "$id": "300", - "Name": "QueryParametersQueryContinuation", - "Namespace": "Routes.QueryParameters.QueryContinuation", - "Operations": [], - "Protocol": { - "$id": "301" - }, - "Parent": "QueryParameters", - "Parameters": [ - { - "$id": "302", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "303", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "304", - "Type": { - "$id": "305", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation" - }, - { - "$id": "306", - "Name": "QueryParametersQueryContinuationStandard", - "Namespace": "Routes.QueryParameters.QueryContinuation.Standard", - "Operations": [ - { - "$id": "307", - "Name": "primitive", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "308", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "309", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "310", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/query-continuation/standard/primitive?fixed=true", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive", - "Decorators": [] - }, - { - "$id": "311", - "Name": "array", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "312", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "313", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "314", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "315", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/query-continuation/standard/array?fixed=true", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array", - "Decorators": [] - }, - { - "$id": "316", - "Name": "record", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "317", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "318", - "kind": "dict", - "keyType": { - "$id": "319", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "320", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "321", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/query-continuation/standard/record?fixed=true", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "322" - }, - "Parent": "QueryParametersQueryContinuation", - "Parameters": [ - { - "$id": "323", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "324", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "325", - "Type": { - "$id": "326", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard" - }, - { - "$id": "327", - "Name": "QueryParametersQueryContinuationExplode", - "Namespace": "Routes.QueryParameters.QueryContinuation.Explode", - "Operations": [ - { - "$id": "328", - "Name": "primitive", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "329", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "330", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "331", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/query-continuation/explode/primitive?fixed=true", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive", - "Decorators": [] - }, - { - "$id": "332", - "Name": "array", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "333", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "334", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "335", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "336", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/query-continuation/explode/array?fixed=true", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array", - "Decorators": [] - }, - { - "$id": "337", - "Name": "record", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "338", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "339", - "kind": "dict", - "keyType": { - "$id": "340", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "341", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "342", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/query/query-continuation/explode/record?fixed=true", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "343" - }, - "Parent": "QueryParametersQueryContinuation", - "Parameters": [ - { - "$id": "344", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "345", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "346", - "Type": { - "$id": "347", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode" - }, - { - "$id": "348", - "Name": "InInterface", - "Namespace": "Routes", - "Operations": [ - { - "$id": "349", - "Name": "fixed", - "ResourceName": "InInterface", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "350", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/routes/in-interface/fixed", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.InInterface.fixed", - "Decorators": [] - } - ], - "Protocol": { - "$id": "351" - }, - "Parent": "RoutesClient", - "Parameters": [ - { - "$id": "352", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "353", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "354", - "Type": { - "$id": "355", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.InInterface" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json index 18821233e2d..0c6eb64ffcd 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json @@ -46,21 +46,18 @@ "Clients": [ { "$id": "7", - "Name": "JsonClient", - "Namespace": "Serialization.EncodedName.Json", - "Doc": "Projection", - "Operations": [], - "Protocol": { - "$id": "8" - }, - "Parameters": [ + "kind": "client", + "name": "JsonClient", + "namespace": "Serialization.EncodedName.Json", + "doc": "Projection", + "parameters": [ { - "$id": "9", + "$id": "8", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "10", + "$id": "9", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -75,9 +72,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "11", + "$id": "10", "Type": { - "$id": "12", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -86,191 +83,194 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Serialization.EncodedName.Json" - }, - { - "$id": "13", - "Name": "Property", - "Namespace": "Serialization.EncodedName.Json.Property", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Serialization.EncodedName.Json", + "children": [ { - "$id": "14", - "Name": "send", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + "$id": "12", + "kind": "client", + "name": "Property", + "namespace": "Serialization.EncodedName.Json.Property", + "parameters": [ { - "$id": "15", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "13", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "16", - "kind": "constant", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "14", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "18", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "19", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/serialization/encoded-name/json/property", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send", - "Decorators": [] - }, - { - "$id": "20", - "Name": "get", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "21", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "22", - "kind": "constant", - "valueType": { - "$id": "23", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "15", + "Type": { + "$id": "16", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "24", - "StatusCodes": [ - 200 + "$id": "17", + "Name": "send", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "18", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "19", + "kind": "constant", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "21", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "2" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "22", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/serialization/encoded-name/json/property", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send", + "Decorators": [] + }, + { + "$id": "23", + "Name": "get", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "24", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "25", + "kind": "constant", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "27", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/serialization/encoded-name/json/property", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.get", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/serialization/encoded-name/json/property", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.get", - "Decorators": [] - } - ], - "Protocol": { - "$id": "25" - }, - "Parent": "JsonClient", - "Parameters": [ - { - "$id": "26", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "27", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "28", - "Type": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property", + "parent": { + "$ref": "7" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Serialization.EncodedName.Json.Property" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json index 27634fd07bc..b47ae9e8761 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json @@ -7,19 +7,43 @@ "Clients": [ { "$id": "2", - "Name": "NotDefinedClient", - "Namespace": "Server.Endpoint.NotDefined", - "Doc": "Illustrates server doesn't define endpoint. Client should automatically add an endpoint to let user pass in.", - "Operations": [ + "kind": "client", + "name": "NotDefinedClient", + "namespace": "Server.Endpoint.NotDefined", + "doc": "Illustrates server doesn't define endpoint. Client should automatically add an endpoint to let user pass in.", + "parameters": [ { "$id": "3", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "4", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "5", "Name": "valid", "ResourceName": "NotDefined", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "4", + "$id": "6", "StatusCodes": [ 200 ], @@ -39,34 +63,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "5" - }, - "Parameters": [ - { - "$id": "6", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "7", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Server.Endpoint.NotDefined" + "apiVersions": [], + "crossLanguageDefinitionId": "Server.Endpoint.NotDefined" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json index b272f85e03d..b2c81b0f1f0 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json @@ -49,18 +49,70 @@ "Clients": [ { "$id": "6", - "Name": "MultipleClient", - "Namespace": "Server.Path.Multiple", - "Operations": [ + "kind": "client", + "name": "MultipleClient", + "namespace": "Server.Path.Multiple", + "parameters": [ { "$id": "7", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Pass in http://localhost:3000 for endpoint.", + "Type": { + "$id": "8", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "9", + "Name": "apiVersion", + "NameInRequest": "apiVersion", + "Doc": "Pass in v1.0 for API version.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": true, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "10", + "Type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "v1.0" + } + } + ], + "operations": [ + { + "$id": "12", "Name": "noOperationParams", "ResourceName": "Multiple", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "8", + "$id": "13", "StatusCodes": [ 204 ], @@ -80,17 +132,17 @@ "Decorators": [] }, { - "$id": "9", + "$id": "14", "Name": "withOperationPathParam", "ResourceName": "Multiple", "Accessibility": "public", "Parameters": [ { - "$id": "10", + "$id": "15", "Name": "keyword", "NameInRequest": "keyword", "Type": { - "$id": "11", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -109,7 +161,7 @@ ], "Responses": [ { - "$id": "12", + "$id": "17", "StatusCodes": [ 204 ], @@ -129,62 +181,10 @@ "Decorators": [] } ], - "Protocol": { - "$id": "13" - }, - "Parameters": [ - { - "$id": "14", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Pass in http://localhost:3000 for endpoint.", - "Type": { - "$id": "15", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "16", - "Name": "apiVersion", - "NameInRequest": "apiVersion", - "Doc": "Pass in v1.0 for API version.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": true, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "17", - "Type": { - "$id": "18", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "v1.0" - } - } + "apiVersions": [ + "v1.0" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Server.Path.Multiple" + "crossLanguageDefinitionId": "Server.Path.Multiple" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json index 06ddc35df10..49bd7d1cddb 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json @@ -7,19 +7,43 @@ "Clients": [ { "$id": "2", - "Name": "SingleClient", - "Namespace": "Server.Path.Single", - "Doc": "Illustrates server with a single path parameter @server", - "Operations": [ + "kind": "client", + "name": "SingleClient", + "namespace": "Server.Path.Single", + "doc": "Illustrates server with a single path parameter @server", + "parameters": [ { "$id": "3", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "4", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "5", "Name": "myOp", "ResourceName": "Single", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "4", + "$id": "6", "StatusCodes": [ 200 ], @@ -39,34 +63,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "5" - }, - "Parameters": [ - { - "$id": "6", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "7", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Server.Path.Single" + "apiVersions": [], + "crossLanguageDefinitionId": "Server.Path.Single" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json index 2dab15bcb53..415d7f75766 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json @@ -7,19 +7,43 @@ "Clients": [ { "$id": "2", - "Name": "NotVersionedClient", - "Namespace": "Server.Versions.NotVersioned", - "Doc": "Illustrates not-versioned server.", - "Operations": [ + "kind": "client", + "name": "NotVersionedClient", + "namespace": "Server.Versions.NotVersioned", + "doc": "Illustrates not-versioned server.", + "parameters": [ { "$id": "3", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "4", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "5", "Name": "withoutApiVersion", "ResourceName": "NotVersioned", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "4", + "$id": "6", "StatusCodes": [ 200 ], @@ -39,17 +63,17 @@ "Decorators": [] }, { - "$id": "5", + "$id": "7", "Name": "withQueryApiVersion", "ResourceName": "NotVersioned", "Accessibility": "public", "Parameters": [ { - "$id": "6", + "$id": "8", "Name": "apiVersion", "NameInRequest": "api-version", "Type": { - "$id": "7", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -68,7 +92,7 @@ ], "Responses": [ { - "$id": "8", + "$id": "10", "StatusCodes": [ 200 ], @@ -88,17 +112,17 @@ "Decorators": [] }, { - "$id": "9", + "$id": "11", "Name": "withPathApiVersion", "ResourceName": "NotVersioned", "Accessibility": "public", "Parameters": [ { - "$id": "10", + "$id": "12", "Name": "apiVersion", "NameInRequest": "apiVersion", "Type": { - "$id": "11", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -117,7 +141,7 @@ ], "Responses": [ { - "$id": "12", + "$id": "14", "StatusCodes": [ 200 ], @@ -137,34 +161,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "13" - }, - "Parameters": [ - { - "$id": "14", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "15", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Server.Versions.NotVersioned" + "apiVersions": [], + "crossLanguageDefinitionId": "Server.Versions.NotVersioned" } ] } 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 8d1e7151650..0f77c675c4a 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 @@ -68,19 +68,43 @@ "Clients": [ { "$id": "8", - "Name": "VersionedClient", - "Namespace": "Server.Versions.Versioned", - "Doc": "Illustrates versioned server.", - "Operations": [ + "kind": "client", + "name": "VersionedClient", + "namespace": "Server.Versions.Versioned", + "doc": "Illustrates versioned server.", + "parameters": [ { "$id": "9", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "10", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "11", "Name": "withoutApiVersion", "ResourceName": "Versioned", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "10", + "$id": "12", "StatusCodes": [ 200 ], @@ -100,17 +124,17 @@ "Decorators": [] }, { - "$id": "11", + "$id": "13", "Name": "withQueryApiVersion", "ResourceName": "Versioned", "Accessibility": "public", "Parameters": [ { - "$id": "12", + "$id": "14", "Name": "apiVersion", "NameInRequest": "api-version", "Type": { - "$id": "13", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -124,9 +148,9 @@ "IsRequired": true, "Kind": "Client", "DefaultValue": { - "$id": "14", + "$id": "16", "Type": { - "$id": "15", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -139,7 +163,7 @@ ], "Responses": [ { - "$id": "16", + "$id": "18", "StatusCodes": [ 200 ], @@ -159,17 +183,17 @@ "Decorators": [] }, { - "$id": "17", + "$id": "19", "Name": "withPathApiVersion", "ResourceName": "Versioned", "Accessibility": "public", "Parameters": [ { - "$id": "18", + "$id": "20", "Name": "apiVersion", "NameInRequest": "apiVersion", "Type": { - "$id": "19", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -183,9 +207,9 @@ "IsRequired": true, "Kind": "Client", "DefaultValue": { - "$id": "20", + "$id": "22", "Type": { - "$id": "21", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -198,7 +222,7 @@ ], "Responses": [ { - "$id": "22", + "$id": "24", "StatusCodes": [ 200 ], @@ -218,17 +242,17 @@ "Decorators": [] }, { - "$id": "23", + "$id": "25", "Name": "withQueryOldApiVersion", "ResourceName": "Versioned", "Accessibility": "public", "Parameters": [ { - "$id": "24", + "$id": "26", "Name": "apiVersion", "NameInRequest": "api-version", "Type": { - "$id": "25", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -242,9 +266,9 @@ "IsRequired": true, "Kind": "Client", "DefaultValue": { - "$id": "26", + "$id": "28", "Type": { - "$id": "27", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -257,7 +281,7 @@ ], "Responses": [ { - "$id": "28", + "$id": "30", "StatusCodes": [ 200 ], @@ -277,34 +301,11 @@ "Decorators": [] } ], - "Protocol": { - "$id": "29" - }, - "Parameters": [ - { - "$id": "30", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "31", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "2021-01-01-preview", + "2022-12-01-preview" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Server.Versions.Versioned" + "crossLanguageDefinitionId": "Server.Versions.Versioned" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json index ab938aa478d..c4de0b2b4b5 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json @@ -7,24 +7,58 @@ "Clients": [ { "$id": "2", - "Name": "ConditionalRequestClient", - "Namespace": "SpecialHeaders.ConditionalRequest", - "Doc": "Illustrates conditional request headers", - "Operations": [ + "kind": "client", + "name": "ConditionalRequestClient", + "namespace": "SpecialHeaders.ConditionalRequest", + "doc": "Illustrates conditional request headers", + "parameters": [ { "$id": "3", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "4", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "5", + "Type": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "7", "Name": "postIfMatch", "ResourceName": "ConditionalRequest", "Doc": "Check when only If-Match in header is defined.", "Accessibility": "public", "Parameters": [ { - "$id": "4", + "$id": "8", "Name": "ifMatch", "NameInRequest": "If-Match", "Doc": "The request should only proceed if an entity matches this string.", "Type": { - "$id": "5", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -43,7 +77,7 @@ ], "Responses": [ { - "$id": "6", + "$id": "10", "StatusCodes": [ 204 ], @@ -63,19 +97,19 @@ "Decorators": [] }, { - "$id": "7", + "$id": "11", "Name": "postIfNoneMatch", "ResourceName": "ConditionalRequest", "Doc": "Check when only If-None-Match in header is defined.", "Accessibility": "public", "Parameters": [ { - "$id": "8", + "$id": "12", "Name": "ifNoneMatch", "NameInRequest": "If-None-Match", "Doc": "The request should only proceed if no entity matches this string.", "Type": { - "$id": "9", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -94,7 +128,7 @@ ], "Responses": [ { - "$id": "10", + "$id": "14", "StatusCodes": [ 204 ], @@ -114,24 +148,24 @@ "Decorators": [] }, { - "$id": "11", + "$id": "15", "Name": "headIfModifiedSince", "ResourceName": "ConditionalRequest", "Doc": "Check when only If-Modified-Since in header is defined.", "Accessibility": "public", "Parameters": [ { - "$id": "12", + "$id": "16", "Name": "ifModifiedSince", "NameInRequest": "If-Modified-Since", "Doc": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", "Type": { - "$id": "13", + "$id": "17", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "14", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -153,7 +187,7 @@ ], "Responses": [ { - "$id": "15", + "$id": "19", "StatusCodes": [ 204 ], @@ -173,24 +207,24 @@ "Decorators": [] }, { - "$id": "16", + "$id": "20", "Name": "postIfUnmodifiedSince", "ResourceName": "ConditionalRequest", "Doc": "Check when only If-Unmodified-Since in header is defined.", "Accessibility": "public", "Parameters": [ { - "$id": "17", + "$id": "21", "Name": "ifUnmodifiedSince", "NameInRequest": "If-Unmodified-Since", "Doc": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", "Type": { - "$id": "18", + "$id": "22", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "19", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -212,7 +246,7 @@ ], "Responses": [ { - "$id": "20", + "$id": "24", "StatusCodes": [ 204 ], @@ -232,44 +266,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "21" - }, - "Parameters": [ - { - "$id": "22", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "23", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "24", - "Type": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest" + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json index 5328f88aba2..6122a8d57cf 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json @@ -62,23 +62,57 @@ "Clients": [ { "$id": "8", - "Name": "RepeatabilityClient", - "Namespace": "SpecialHeaders.Repeatability", - "Doc": "Illustrates OASIS repeatability headers", - "Operations": [ + "kind": "client", + "name": "RepeatabilityClient", + "namespace": "SpecialHeaders.Repeatability", + "doc": "Illustrates OASIS repeatability headers", + "parameters": [ { "$id": "9", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "10", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "11", + "Type": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "13", "Name": "immediateSuccess", "ResourceName": "Repeatability", "Doc": "Check we recognize Repeatability-Request-ID and Repeatability-First-Sent.", "Accessibility": "public", "Parameters": [ { - "$id": "10", + "$id": "14", "Name": "repeatabilityRequestID", "NameInRequest": "Repeatability-Request-ID", "Type": { - "$id": "11", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -95,16 +129,16 @@ "SkipUrlEncoding": false }, { - "$id": "12", + "$id": "16", "Name": "repeatabilityFirstSent", "NameInRequest": "Repeatability-First-Sent", "Type": { - "$id": "13", + "$id": "17", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "14", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -126,14 +160,14 @@ ], "Responses": [ { - "$id": "15", + "$id": "19", "StatusCodes": [ 204 ], "BodyMediaType": "Json", "Headers": [ { - "$id": "16", + "$id": "20", "Name": "repeatabilityResult", "NameInResponse": "Repeatability-Result", "Doc": "Indicates whether the repeatable request was accepted or rejected.", @@ -156,44 +190,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "17" - }, - "Parameters": [ - { - "$id": "18", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "19", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "20", - "Type": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialHeaders.Repeatability" + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialHeaders.Repeatability" } ] } 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 1fb9c487861..c645f1ef0f6 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 @@ -1266,21 +1266,18 @@ "Clients": [ { "$id": "172", - "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```", - "Operations": [], - "Protocol": { - "$id": "173" - }, - "Parameters": [ + "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```", + "parameters": [ { - "$id": "174", + "$id": "173", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "175", + "$id": "174", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1295,9 +1292,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "176", + "$id": "175", "Type": { - "$id": "177", + "$id": "176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1306,5337 +1303,5340 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialWords" - }, - { - "$id": "178", - "Name": "Models", - "Namespace": "SpecialWords.Models", - "Doc": "Verify model names", - "Operations": [ - { - "$id": "179", - "Name": "withAnd", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "180", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "181", - "kind": "constant", - "valueType": { - "$id": "182", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "183", - "Name": "body", - "NameInRequest": "body", + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialWords", + "children": [ + { + "$id": "177", + "kind": "client", + "name": "Models", + "namespace": "SpecialWords.Models", + "doc": "Verify model names", + "parameters": [ + { + "$id": "178", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "7" + "$id": "179", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "184", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/and", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withAnd", - "Decorators": [] - }, - { - "$id": "185", - "Name": "withAs", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "186", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "187", - "kind": "constant", - "valueType": { - "$id": "188", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "180", + "Type": { + "$id": "181", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "182", + "Name": "withAnd", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "183", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "184", + "kind": "constant", + "valueType": { + "$id": "185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "186", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "7" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "187", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/and", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withAnd", + "Decorators": [] }, { - "$id": "189", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "12" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "190", - "StatusCodes": [ - 204 + "$id": "188", + "Name": "withAs", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "189", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "190", + "kind": "constant", + "valueType": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "192", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "12" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/as", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withAs", - "Decorators": [] - }, - { - "$id": "191", - "Name": "withAssert", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "193", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/as", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withAs", + "Decorators": [] + }, { - "$id": "192", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "193", - "kind": "constant", - "valueType": { - "$id": "194", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "194", + "Name": "withAssert", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "195", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "196", + "kind": "constant", + "valueType": { + "$id": "197", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "198", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "17" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "199", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/assert", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withAssert", + "Decorators": [] }, { - "$id": "195", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "17" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "196", - "StatusCodes": [ - 204 + "$id": "200", + "Name": "withAsync", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "201", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "202", + "kind": "constant", + "valueType": { + "$id": "203", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "204", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "22" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/assert", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withAssert", - "Decorators": [] - }, - { - "$id": "197", - "Name": "withAsync", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "205", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/async", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withAsync", + "Decorators": [] + }, { - "$id": "198", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "199", - "kind": "constant", - "valueType": { - "$id": "200", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "206", + "Name": "withAwait", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "207", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "208", + "kind": "constant", + "valueType": { + "$id": "209", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "210", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "27" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "211", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/await", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withAwait", + "Decorators": [] }, { - "$id": "201", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "22" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "212", + "Name": "withBreak", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "213", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "214", + "kind": "constant", + "valueType": { + "$id": "215", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "216", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "32" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "217", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/break", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withBreak", + "Decorators": [] + }, { - "$id": "202", - "StatusCodes": [ - 204 + "$id": "218", + "Name": "withClass", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "219", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "220", + "kind": "constant", + "valueType": { + "$id": "221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "222", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "37" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/async", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withAsync", - "Decorators": [] - }, - { - "$id": "203", - "Name": "withAwait", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "223", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/class", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withClass", + "Decorators": [] + }, { - "$id": "204", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "205", - "kind": "constant", - "valueType": { - "$id": "206", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "224", + "Name": "withConstructor", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "225", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "226", + "kind": "constant", + "valueType": { + "$id": "227", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "228", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "42" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "229", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/constructor", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withConstructor", + "Decorators": [] }, { - "$id": "207", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "27" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "230", + "Name": "withContinue", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "231", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "232", + "kind": "constant", + "valueType": { + "$id": "233", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "234", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "47" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "235", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/continue", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withContinue", + "Decorators": [] + }, { - "$id": "208", - "StatusCodes": [ - 204 + "$id": "236", + "Name": "withDef", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "237", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "238", + "kind": "constant", + "valueType": { + "$id": "239", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "240", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "52" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/await", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withAwait", - "Decorators": [] - }, - { - "$id": "209", - "Name": "withBreak", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "241", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/def", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withDef", + "Decorators": [] + }, { - "$id": "210", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "211", - "kind": "constant", - "valueType": { - "$id": "212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "242", + "Name": "withDel", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "243", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "244", + "kind": "constant", + "valueType": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "246", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "57" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "247", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/del", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withDel", + "Decorators": [] }, { - "$id": "213", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "32" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "248", + "Name": "withElif", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "249", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "250", + "kind": "constant", + "valueType": { + "$id": "251", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "252", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "62" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "253", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/elif", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withElif", + "Decorators": [] + }, { - "$id": "214", - "StatusCodes": [ - 204 + "$id": "254", + "Name": "withElse", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "255", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "256", + "kind": "constant", + "valueType": { + "$id": "257", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "258", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "67" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/break", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withBreak", - "Decorators": [] - }, - { - "$id": "215", - "Name": "withClass", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "259", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/else", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withElse", + "Decorators": [] + }, { - "$id": "216", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "217", - "kind": "constant", - "valueType": { - "$id": "218", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "260", + "Name": "withExcept", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "261", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "262", + "kind": "constant", + "valueType": { + "$id": "263", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "264", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "72" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "265", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/except", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withExcept", + "Decorators": [] }, { - "$id": "219", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "37" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "266", + "Name": "withExec", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "267", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "268", + "kind": "constant", + "valueType": { + "$id": "269", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "270", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "77" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "271", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/exec", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withExec", + "Decorators": [] + }, { - "$id": "220", - "StatusCodes": [ - 204 + "$id": "272", + "Name": "withFinally", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "273", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "274", + "kind": "constant", + "valueType": { + "$id": "275", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "276", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "82" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/class", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withClass", - "Decorators": [] - }, - { - "$id": "221", - "Name": "withConstructor", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "277", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/finally", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withFinally", + "Decorators": [] + }, { - "$id": "222", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "223", - "kind": "constant", - "valueType": { - "$id": "224", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "278", + "Name": "withFor", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "279", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "280", + "kind": "constant", + "valueType": { + "$id": "281", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "282", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "87" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "283", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/for", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withFor", + "Decorators": [] }, { - "$id": "225", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "42" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "284", + "Name": "withFrom", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "285", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "286", + "kind": "constant", + "valueType": { + "$id": "287", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "288", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "92" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "289", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/from", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withFrom", + "Decorators": [] + }, { - "$id": "226", - "StatusCodes": [ - 204 + "$id": "290", + "Name": "withGlobal", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "291", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "292", + "kind": "constant", + "valueType": { + "$id": "293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "294", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "97" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/constructor", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withConstructor", - "Decorators": [] - }, - { - "$id": "227", - "Name": "withContinue", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "295", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/global", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withGlobal", + "Decorators": [] + }, { - "$id": "228", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "229", - "kind": "constant", - "valueType": { - "$id": "230", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "296", + "Name": "withIf", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "297", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "298", + "kind": "constant", + "valueType": { + "$id": "299", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "300", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "102" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "301", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/if", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withIf", + "Decorators": [] }, { - "$id": "231", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "47" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "232", - "StatusCodes": [ - 204 + "$id": "302", + "Name": "withImport", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "303", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "304", + "kind": "constant", + "valueType": { + "$id": "305", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "306", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "107" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/continue", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withContinue", - "Decorators": [] - }, - { - "$id": "233", - "Name": "withDef", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "307", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/import", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withImport", + "Decorators": [] + }, { - "$id": "234", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "235", - "kind": "constant", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "308", + "Name": "withIn", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "309", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "310", + "kind": "constant", + "valueType": { + "$id": "311", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "312", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "112" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "313", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/in", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withIn", + "Decorators": [] }, { - "$id": "237", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "52" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "238", - "StatusCodes": [ - 204 + "$id": "314", + "Name": "withIs", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "315", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "316", + "kind": "constant", + "valueType": { + "$id": "317", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "318", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "117" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/def", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withDef", - "Decorators": [] - }, - { - "$id": "239", - "Name": "withDel", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "319", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/is", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withIs", + "Decorators": [] + }, { - "$id": "240", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "241", - "kind": "constant", - "valueType": { - "$id": "242", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "320", + "Name": "withLambda", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "321", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "322", + "kind": "constant", + "valueType": { + "$id": "323", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "324", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "122" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "325", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/lambda", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withLambda", + "Decorators": [] }, { - "$id": "243", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "57" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "244", - "StatusCodes": [ - 204 + "$id": "326", + "Name": "withNot", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "327", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "328", + "kind": "constant", + "valueType": { + "$id": "329", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "330", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "127" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/del", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withDel", - "Decorators": [] - }, - { - "$id": "245", - "Name": "withElif", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "331", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/not", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withNot", + "Decorators": [] + }, { - "$id": "246", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "247", - "kind": "constant", - "valueType": { - "$id": "248", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "332", + "Name": "withOr", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "333", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "334", + "kind": "constant", + "valueType": { + "$id": "335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "336", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "132" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "337", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/or", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withOr", + "Decorators": [] }, { - "$id": "249", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "62" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "250", - "StatusCodes": [ - 204 + "$id": "338", + "Name": "withPass", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "339", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "340", + "kind": "constant", + "valueType": { + "$id": "341", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "342", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "137" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/elif", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withElif", - "Decorators": [] - }, - { - "$id": "251", - "Name": "withElse", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "343", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/pass", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withPass", + "Decorators": [] + }, { - "$id": "252", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "253", - "kind": "constant", - "valueType": { - "$id": "254", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "344", + "Name": "withRaise", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "345", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "346", + "kind": "constant", + "valueType": { + "$id": "347", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "348", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "142" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "349", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/raise", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withRaise", + "Decorators": [] }, { - "$id": "255", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "67" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "256", - "StatusCodes": [ - 204 + "$id": "350", + "Name": "withReturn", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "351", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "352", + "kind": "constant", + "valueType": { + "$id": "353", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "354", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "147" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/else", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withElse", - "Decorators": [] - }, - { - "$id": "257", - "Name": "withExcept", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "355", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/return", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withReturn", + "Decorators": [] + }, { - "$id": "258", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "259", - "kind": "constant", - "valueType": { - "$id": "260", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "356", + "Name": "withTry", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "357", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "358", + "kind": "constant", + "valueType": { + "$id": "359", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "360", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "152" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "361", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/try", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withTry", + "Decorators": [] }, { - "$id": "261", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "72" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "262", - "StatusCodes": [ - 204 + "$id": "362", + "Name": "withWhile", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "363", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "364", + "kind": "constant", + "valueType": { + "$id": "365", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "366", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "157" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/except", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withExcept", - "Decorators": [] - }, - { - "$id": "263", - "Name": "withExec", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "367", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/while", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withWhile", + "Decorators": [] + }, { - "$id": "264", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "265", - "kind": "constant", - "valueType": { - "$id": "266", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "368", + "Name": "withWith", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "369", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "370", + "kind": "constant", + "valueType": { + "$id": "371", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "372", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "162" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "373", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/with", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withWith", + "Decorators": [] }, { - "$id": "267", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "77" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "268", - "StatusCodes": [ - 204 + "$id": "374", + "Name": "withYield", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "375", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "376", + "kind": "constant", + "valueType": { + "$id": "377", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "378", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "167" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "379", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/models/yield", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withYield", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/exec", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withExec", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialWords.Models", + "parent": { + "$ref": "172" + } }, { - "$id": "269", - "Name": "withFinally", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "270", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "271", - "kind": "constant", - "valueType": { - "$id": "272", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "380", + "kind": "client", + "name": "ModelProperties", + "namespace": "SpecialWords.ModelProperties", + "doc": "Verify model names", + "parameters": [ { - "$id": "273", - "Name": "body", - "NameInRequest": "body", + "$id": "381", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "82" + "$id": "382", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "274", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/finally", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withFinally", - "Decorators": [] - }, - { - "$id": "275", - "Name": "withFor", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "276", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "277", - "kind": "constant", - "valueType": { - "$id": "278", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "383", + "Type": { + "$id": "384", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "279", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "87" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "280", - "StatusCodes": [ - 204 + "$id": "385", + "Name": "sameAsModel", + "ResourceName": "ModelProperties", + "Accessibility": "public", + "Parameters": [ + { + "$id": "386", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "387", + "kind": "constant", + "valueType": { + "$id": "388", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "389", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "390", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/special-words/model-properties/same-as-model", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/for", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withFor", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialWords.ModelProperties", + "parent": { + "$ref": "172" + } }, { - "$id": "281", - "Name": "withFrom", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "282", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "283", - "kind": "constant", - "valueType": { - "$id": "284", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "285", - "Name": "body", - "NameInRequest": "body", + "$id": "391", + "kind": "client", + "name": "Operations", + "namespace": "SpecialWords", + "doc": "Test reserved words as operation name.", + "parameters": [ + { + "$id": "392", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "92" + "$id": "393", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "394", + "Type": { + "$id": "395", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "286", - "StatusCodes": [ - 204 + "$id": "396", + "Name": "and", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "397", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/from", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withFrom", - "Decorators": [] - }, - { - "$id": "287", - "Name": "withGlobal", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/and", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.and", + "Decorators": [] + }, { - "$id": "288", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "289", - "kind": "constant", - "valueType": { - "$id": "290", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "398", + "Name": "as", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "399", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/as", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.as", + "Decorators": [] }, { - "$id": "291", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "97" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "292", - "StatusCodes": [ - 204 + "$id": "400", + "Name": "assert", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "401", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/global", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withGlobal", - "Decorators": [] - }, - { - "$id": "293", - "Name": "withIf", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "294", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "295", - "kind": "constant", - "valueType": { - "$id": "296", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/assert", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.assert", + "Decorators": [] }, { - "$id": "297", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "102" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "298", - "StatusCodes": [ - 204 + "$id": "402", + "Name": "async", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "403", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/if", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withIf", - "Decorators": [] - }, - { - "$id": "299", - "Name": "withImport", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "300", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "301", - "kind": "constant", - "valueType": { - "$id": "302", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/async", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.async", + "Decorators": [] }, { - "$id": "303", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "107" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "304", - "StatusCodes": [ - 204 + "$id": "404", + "Name": "await", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "405", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/import", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withImport", - "Decorators": [] - }, - { - "$id": "305", - "Name": "withIn", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "306", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "307", - "kind": "constant", - "valueType": { - "$id": "308", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/await", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.await", + "Decorators": [] }, { - "$id": "309", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "112" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "310", - "StatusCodes": [ - 204 + "$id": "406", + "Name": "break", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "407", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/in", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withIn", - "Decorators": [] - }, - { - "$id": "311", - "Name": "withIs", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "312", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "313", - "kind": "constant", - "valueType": { - "$id": "314", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/break", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.break", + "Decorators": [] }, { - "$id": "315", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "117" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "316", - "StatusCodes": [ - 204 + "$id": "408", + "Name": "class", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "409", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/is", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withIs", - "Decorators": [] - }, - { - "$id": "317", - "Name": "withLambda", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "318", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "319", - "kind": "constant", - "valueType": { - "$id": "320", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/class", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.class", + "Decorators": [] }, { - "$id": "321", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "122" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "322", - "StatusCodes": [ - 204 + "$id": "410", + "Name": "constructor", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "411", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/lambda", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withLambda", - "Decorators": [] - }, - { - "$id": "323", - "Name": "withNot", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "324", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "325", - "kind": "constant", - "valueType": { - "$id": "326", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/constructor", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.constructor", + "Decorators": [] }, { - "$id": "327", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "127" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "328", - "StatusCodes": [ - 204 + "$id": "412", + "Name": "continue", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "413", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/not", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withNot", - "Decorators": [] - }, - { - "$id": "329", - "Name": "withOr", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "330", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "331", - "kind": "constant", - "valueType": { - "$id": "332", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/continue", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.continue", + "Decorators": [] }, { - "$id": "333", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "132" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "334", - "StatusCodes": [ - 204 + "$id": "414", + "Name": "def", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "415", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/or", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withOr", - "Decorators": [] - }, - { - "$id": "335", - "Name": "withPass", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "336", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "337", - "kind": "constant", - "valueType": { - "$id": "338", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/def", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.def", + "Decorators": [] }, { - "$id": "339", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "137" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "340", - "StatusCodes": [ - 204 + "$id": "416", + "Name": "del", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "417", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/pass", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withPass", - "Decorators": [] - }, - { - "$id": "341", - "Name": "withRaise", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "342", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "343", - "kind": "constant", - "valueType": { - "$id": "344", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/del", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.del", + "Decorators": [] }, { - "$id": "345", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "142" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "346", - "StatusCodes": [ - 204 + "$id": "418", + "Name": "elif", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "419", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/raise", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withRaise", - "Decorators": [] - }, - { - "$id": "347", - "Name": "withReturn", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "348", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "349", - "kind": "constant", - "valueType": { - "$id": "350", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/elif", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.elif", + "Decorators": [] }, { - "$id": "351", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "147" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "352", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/return", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withReturn", - "Decorators": [] - }, - { - "$id": "353", - "Name": "withTry", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "354", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "355", - "kind": "constant", - "valueType": { - "$id": "356", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "357", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "152" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "358", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/try", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withTry", - "Decorators": [] - }, - { - "$id": "359", - "Name": "withWhile", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "360", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "361", - "kind": "constant", - "valueType": { - "$id": "362", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "363", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "157" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "364", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/while", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withWhile", - "Decorators": [] - }, - { - "$id": "365", - "Name": "withWith", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "366", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "367", - "kind": "constant", - "valueType": { - "$id": "368", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "369", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "162" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "370", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/with", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withWith", - "Decorators": [] - }, - { - "$id": "371", - "Name": "withYield", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "372", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "373", - "kind": "constant", - "valueType": { - "$id": "374", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "375", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "167" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "376", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/models/yield", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withYield", - "Decorators": [] - } - ], - "Protocol": { - "$id": "377" - }, - "Parent": "SpecialWordsClient", - "Parameters": [ - { - "$id": "378", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "379", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "380", - "Type": { - "$id": "381", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialWords.Models" - }, - { - "$id": "382", - "Name": "ModelProperties", - "Namespace": "SpecialWords.ModelProperties", - "Doc": "Verify model names", - "Operations": [ - { - "$id": "383", - "Name": "sameAsModel", - "ResourceName": "ModelProperties", - "Accessibility": "public", - "Parameters": [ - { - "$id": "384", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "385", - "kind": "constant", - "valueType": { - "$id": "386", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "387", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "388", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/special-words/model-properties/same-as-model", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel", - "Decorators": [] - } - ], - "Protocol": { - "$id": "389" - }, - "Parent": "SpecialWordsClient", - "Parameters": [ - { - "$id": "390", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "391", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "392", - "Type": { - "$id": "393", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialWords.ModelProperties" - }, - { - "$id": "394", - "Name": "Operations", - "Namespace": "SpecialWords", - "Doc": "Test reserved words as operation name.", - "Operations": [ - { - "$id": "395", - "Name": "and", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "396", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/and", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.and", - "Decorators": [] - }, - { - "$id": "397", - "Name": "as", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "398", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/as", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.as", - "Decorators": [] - }, - { - "$id": "399", - "Name": "assert", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "400", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/assert", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.assert", - "Decorators": [] - }, - { - "$id": "401", - "Name": "async", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "402", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/async", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.async", - "Decorators": [] - }, - { - "$id": "403", - "Name": "await", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "404", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/await", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.await", - "Decorators": [] - }, - { - "$id": "405", - "Name": "break", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "406", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/break", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.break", - "Decorators": [] - }, - { - "$id": "407", - "Name": "class", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "408", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/class", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.class", - "Decorators": [] - }, - { - "$id": "409", - "Name": "constructor", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "410", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/constructor", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.constructor", - "Decorators": [] - }, - { - "$id": "411", - "Name": "continue", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "412", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/continue", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.continue", - "Decorators": [] - }, - { - "$id": "413", - "Name": "def", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "414", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/def", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.def", - "Decorators": [] - }, - { - "$id": "415", - "Name": "del", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "416", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/del", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.del", - "Decorators": [] - }, - { - "$id": "417", - "Name": "elif", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "418", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/elif", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.elif", - "Decorators": [] - }, - { - "$id": "419", - "Name": "else", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "420", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/else", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.else", - "Decorators": [] - }, - { - "$id": "421", - "Name": "except", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "422", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/except", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.except", - "Decorators": [] - }, - { - "$id": "423", - "Name": "exec", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "424", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/exec", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.exec", - "Decorators": [] - }, - { - "$id": "425", - "Name": "finally", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "426", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/finally", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.finally", - "Decorators": [] - }, - { - "$id": "427", - "Name": "for", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "428", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/for", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.for", - "Decorators": [] - }, - { - "$id": "429", - "Name": "from", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "430", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/from", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.from", - "Decorators": [] - }, - { - "$id": "431", - "Name": "global", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "432", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/global", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.global", - "Decorators": [] - }, - { - "$id": "433", - "Name": "if", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "434", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/if", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.if", - "Decorators": [] - }, - { - "$id": "435", - "Name": "import", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "436", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/import", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.import", - "Decorators": [] - }, - { - "$id": "437", - "Name": "in", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "438", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/in", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.in", - "Decorators": [] - }, - { - "$id": "439", - "Name": "is", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "440", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/is", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.is", - "Decorators": [] - }, - { - "$id": "441", - "Name": "lambda", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "442", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/lambda", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.lambda", - "Decorators": [] - }, - { - "$id": "443", - "Name": "not", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "444", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/not", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.not", - "Decorators": [] - }, - { - "$id": "445", - "Name": "or", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "446", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/or", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.or", - "Decorators": [] - }, - { - "$id": "447", - "Name": "pass", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "448", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/pass", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.pass", - "Decorators": [] - }, - { - "$id": "449", - "Name": "raise", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "450", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/raise", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.raise", - "Decorators": [] - }, - { - "$id": "451", - "Name": "return", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "452", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/return", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.return", - "Decorators": [] - }, - { - "$id": "453", - "Name": "try", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "454", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/try", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.try", - "Decorators": [] - }, - { - "$id": "455", - "Name": "while", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "456", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/while", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.while", - "Decorators": [] - }, - { - "$id": "457", - "Name": "with", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "458", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/with", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.with", - "Decorators": [] - }, - { - "$id": "459", - "Name": "yield", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "460", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/operations/yield", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.yield", - "Decorators": [] - } - ], - "Protocol": { - "$id": "461" - }, - "Parent": "SpecialWordsClient", - "Parameters": [ - { - "$id": "462", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "463", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "464", - "Type": { - "$id": "465", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialWords.Operations" - }, - { - "$id": "466", - "Name": "Parameters", - "Namespace": "SpecialWords", - "Doc": "Verify reserved words as parameter name.", - "Operations": [ - { - "$id": "467", - "Name": "withAnd", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "468", - "Name": "and", - "NameInRequest": "and", - "Type": { - "$id": "469", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "470", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/and", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAnd", - "Decorators": [] - }, - { - "$id": "471", - "Name": "withAs", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "472", - "Name": "as", - "NameInRequest": "as", - "Type": { - "$id": "473", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "474", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/as", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAs", - "Decorators": [] - }, - { - "$id": "475", - "Name": "withAssert", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "476", - "Name": "assert", - "NameInRequest": "assert", - "Type": { - "$id": "477", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "478", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/assert", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAssert", - "Decorators": [] - }, - { - "$id": "479", - "Name": "withAsync", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "480", - "Name": "async", - "NameInRequest": "async", - "Type": { - "$id": "481", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "482", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/async", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAsync", - "Decorators": [] - }, - { - "$id": "483", - "Name": "withAwait", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "484", - "Name": "await", - "NameInRequest": "await", - "Type": { - "$id": "485", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "486", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/await", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAwait", - "Decorators": [] - }, - { - "$id": "487", - "Name": "withBreak", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "488", - "Name": "break", - "NameInRequest": "break", - "Type": { - "$id": "489", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "490", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/break", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withBreak", - "Decorators": [] - }, - { - "$id": "491", - "Name": "withClass", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "492", - "Name": "class", - "NameInRequest": "class", - "Type": { - "$id": "493", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "494", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/class", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withClass", - "Decorators": [] - }, - { - "$id": "495", - "Name": "withConstructor", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "496", - "Name": "constructor", - "NameInRequest": "constructor", - "Type": { - "$id": "497", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "498", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/constructor", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor", - "Decorators": [] - }, - { - "$id": "499", - "Name": "withContinue", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "500", - "Name": "continue", - "NameInRequest": "continue", - "Type": { - "$id": "501", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "420", + "Name": "else", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "421", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/else", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.else", + "Decorators": [] + }, { - "$id": "502", - "StatusCodes": [ - 204 + "$id": "422", + "Name": "except", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "423", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/continue", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withContinue", - "Decorators": [] - }, - { - "$id": "503", - "Name": "withDef", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/except", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.except", + "Decorators": [] + }, { - "$id": "504", - "Name": "def", - "NameInRequest": "def", - "Type": { - "$id": "505", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "424", + "Name": "exec", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "425", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/exec", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.exec", + "Decorators": [] + }, { - "$id": "506", - "StatusCodes": [ - 204 + "$id": "426", + "Name": "finally", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "427", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/def", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withDef", - "Decorators": [] - }, - { - "$id": "507", - "Name": "withDel", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/finally", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.finally", + "Decorators": [] + }, { - "$id": "508", - "Name": "del", - "NameInRequest": "del", - "Type": { - "$id": "509", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "428", + "Name": "for", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "429", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/for", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.for", + "Decorators": [] + }, { - "$id": "510", - "StatusCodes": [ - 204 + "$id": "430", + "Name": "from", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "431", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/del", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withDel", - "Decorators": [] - }, - { - "$id": "511", - "Name": "withElif", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/from", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.from", + "Decorators": [] + }, { - "$id": "512", - "Name": "elif", - "NameInRequest": "elif", - "Type": { - "$id": "513", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "432", + "Name": "global", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "433", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/global", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.global", + "Decorators": [] + }, { - "$id": "514", - "StatusCodes": [ - 204 + "$id": "434", + "Name": "if", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "435", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/elif", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withElif", - "Decorators": [] - }, - { - "$id": "515", - "Name": "withElse", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/if", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.if", + "Decorators": [] + }, { - "$id": "516", - "Name": "else", - "NameInRequest": "else", - "Type": { - "$id": "517", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "436", + "Name": "import", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "437", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/import", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.import", + "Decorators": [] + }, { - "$id": "518", - "StatusCodes": [ - 204 + "$id": "438", + "Name": "in", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "439", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/else", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withElse", - "Decorators": [] - }, - { - "$id": "519", - "Name": "withExcept", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/in", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.in", + "Decorators": [] + }, { - "$id": "520", - "Name": "except", - "NameInRequest": "except", - "Type": { - "$id": "521", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "440", + "Name": "is", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "441", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/is", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.is", + "Decorators": [] + }, { - "$id": "522", - "StatusCodes": [ - 204 + "$id": "442", + "Name": "lambda", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "443", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/except", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withExcept", - "Decorators": [] - }, - { - "$id": "523", - "Name": "withExec", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/lambda", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.lambda", + "Decorators": [] + }, { - "$id": "524", - "Name": "exec", - "NameInRequest": "exec", - "Type": { - "$id": "525", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "444", + "Name": "not", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "445", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/not", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.not", + "Decorators": [] + }, { - "$id": "526", - "StatusCodes": [ - 204 + "$id": "446", + "Name": "or", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "447", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/exec", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withExec", - "Decorators": [] - }, - { - "$id": "527", - "Name": "withFinally", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/or", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.or", + "Decorators": [] + }, { - "$id": "528", - "Name": "finally", - "NameInRequest": "finally", - "Type": { - "$id": "529", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "448", + "Name": "pass", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "449", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/pass", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.pass", + "Decorators": [] + }, { - "$id": "530", - "StatusCodes": [ - 204 + "$id": "450", + "Name": "raise", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "451", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/finally", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withFinally", - "Decorators": [] - }, - { - "$id": "531", - "Name": "withFor", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/raise", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.raise", + "Decorators": [] + }, { - "$id": "532", - "Name": "for", - "NameInRequest": "for", - "Type": { - "$id": "533", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "452", + "Name": "return", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "453", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/return", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.return", + "Decorators": [] + }, { - "$id": "534", - "StatusCodes": [ - 204 + "$id": "454", + "Name": "try", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "455", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/for", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withFor", - "Decorators": [] - }, - { - "$id": "535", - "Name": "withFrom", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/try", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.try", + "Decorators": [] + }, { - "$id": "536", - "Name": "from", - "NameInRequest": "from", - "Type": { - "$id": "537", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "456", + "Name": "while", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "457", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/while", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.while", + "Decorators": [] + }, + { + "$id": "458", + "Name": "with", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "459", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/with", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.with", + "Decorators": [] + }, { - "$id": "538", - "StatusCodes": [ - 204 + "$id": "460", + "Name": "yield", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "461", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/from", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withFrom", - "Decorators": [] + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/operations/yield", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.yield", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialWords.Operations", + "parent": { + "$ref": "172" + } }, { - "$id": "539", - "Name": "withGlobal", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "540", - "Name": "global", - "NameInRequest": "global", + "$id": "462", + "kind": "client", + "name": "Parameters", + "namespace": "SpecialWords", + "doc": "Verify reserved words as parameter name.", + "parameters": [ + { + "$id": "463", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "541", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "464", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "465", + "Type": { + "$id": "466", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "467", + "Name": "withAnd", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "468", + "Name": "and", + "NameInRequest": "and", + "Type": { + "$id": "469", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "470", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/and", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAnd", + "Decorators": [] + }, { - "$id": "542", - "StatusCodes": [ - 204 + "$id": "471", + "Name": "withAs", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "472", + "Name": "as", + "NameInRequest": "as", + "Type": { + "$id": "473", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/global", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal", - "Decorators": [] - }, - { - "$id": "543", - "Name": "withIf", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "474", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/as", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAs", + "Decorators": [] + }, { - "$id": "544", - "Name": "if", - "NameInRequest": "if", - "Type": { - "$id": "545", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "475", + "Name": "withAssert", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "476", + "Name": "assert", + "NameInRequest": "assert", + "Type": { + "$id": "477", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "478", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/assert", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAssert", + "Decorators": [] + }, { - "$id": "546", - "StatusCodes": [ - 204 + "$id": "479", + "Name": "withAsync", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "480", + "Name": "async", + "NameInRequest": "async", + "Type": { + "$id": "481", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/if", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withIf", - "Decorators": [] - }, - { - "$id": "547", - "Name": "withImport", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "482", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/async", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAsync", + "Decorators": [] + }, { - "$id": "548", - "Name": "import", - "NameInRequest": "import", - "Type": { - "$id": "549", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "483", + "Name": "withAwait", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "484", + "Name": "await", + "NameInRequest": "await", + "Type": { + "$id": "485", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "486", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/await", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAwait", + "Decorators": [] + }, { - "$id": "550", - "StatusCodes": [ - 204 + "$id": "487", + "Name": "withBreak", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "488", + "Name": "break", + "NameInRequest": "break", + "Type": { + "$id": "489", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/import", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withImport", - "Decorators": [] - }, - { - "$id": "551", - "Name": "withIn", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "490", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/break", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withBreak", + "Decorators": [] + }, { - "$id": "552", - "Name": "in", - "NameInRequest": "in", - "Type": { - "$id": "553", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "491", + "Name": "withClass", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "492", + "Name": "class", + "NameInRequest": "class", + "Type": { + "$id": "493", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "494", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/class", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withClass", + "Decorators": [] + }, { - "$id": "554", - "StatusCodes": [ - 204 + "$id": "495", + "Name": "withConstructor", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "496", + "Name": "constructor", + "NameInRequest": "constructor", + "Type": { + "$id": "497", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/in", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withIn", - "Decorators": [] - }, - { - "$id": "555", - "Name": "withIs", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "498", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/constructor", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor", + "Decorators": [] + }, { - "$id": "556", - "Name": "is", - "NameInRequest": "is", - "Type": { - "$id": "557", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "499", + "Name": "withContinue", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "500", + "Name": "continue", + "NameInRequest": "continue", + "Type": { + "$id": "501", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "502", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/continue", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withContinue", + "Decorators": [] + }, { - "$id": "558", - "StatusCodes": [ - 204 + "$id": "503", + "Name": "withDef", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "504", + "Name": "def", + "NameInRequest": "def", + "Type": { + "$id": "505", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/is", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withIs", - "Decorators": [] - }, - { - "$id": "559", - "Name": "withLambda", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "506", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/def", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withDef", + "Decorators": [] + }, { - "$id": "560", - "Name": "lambda", - "NameInRequest": "lambda", - "Type": { - "$id": "561", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "507", + "Name": "withDel", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "508", + "Name": "del", + "NameInRequest": "del", + "Type": { + "$id": "509", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "510", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/del", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withDel", + "Decorators": [] + }, { - "$id": "562", - "StatusCodes": [ - 204 + "$id": "511", + "Name": "withElif", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "512", + "Name": "elif", + "NameInRequest": "elif", + "Type": { + "$id": "513", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/lambda", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withLambda", - "Decorators": [] - }, - { - "$id": "563", - "Name": "withNot", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "514", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/elif", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withElif", + "Decorators": [] + }, { - "$id": "564", - "Name": "not", - "NameInRequest": "not", - "Type": { - "$id": "565", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "515", + "Name": "withElse", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "516", + "Name": "else", + "NameInRequest": "else", + "Type": { + "$id": "517", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "518", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/else", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withElse", + "Decorators": [] + }, { - "$id": "566", - "StatusCodes": [ - 204 + "$id": "519", + "Name": "withExcept", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "520", + "Name": "except", + "NameInRequest": "except", + "Type": { + "$id": "521", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/not", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withNot", - "Decorators": [] - }, - { - "$id": "567", - "Name": "withOr", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "522", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/except", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withExcept", + "Decorators": [] + }, { - "$id": "568", - "Name": "or", - "NameInRequest": "or", - "Type": { - "$id": "569", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "523", + "Name": "withExec", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "524", + "Name": "exec", + "NameInRequest": "exec", + "Type": { + "$id": "525", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "526", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/exec", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withExec", + "Decorators": [] + }, { - "$id": "570", - "StatusCodes": [ - 204 + "$id": "527", + "Name": "withFinally", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "528", + "Name": "finally", + "NameInRequest": "finally", + "Type": { + "$id": "529", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/or", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withOr", - "Decorators": [] - }, - { - "$id": "571", - "Name": "withPass", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "530", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/finally", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withFinally", + "Decorators": [] + }, { - "$id": "572", - "Name": "pass", - "NameInRequest": "pass", - "Type": { - "$id": "573", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "531", + "Name": "withFor", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "532", + "Name": "for", + "NameInRequest": "for", + "Type": { + "$id": "533", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "534", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/for", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withFor", + "Decorators": [] + }, { - "$id": "574", - "StatusCodes": [ - 204 + "$id": "535", + "Name": "withFrom", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "536", + "Name": "from", + "NameInRequest": "from", + "Type": { + "$id": "537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/pass", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withPass", - "Decorators": [] - }, - { - "$id": "575", - "Name": "withRaise", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "538", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/from", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withFrom", + "Decorators": [] + }, { - "$id": "576", - "Name": "raise", - "NameInRequest": "raise", - "Type": { - "$id": "577", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "539", + "Name": "withGlobal", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "540", + "Name": "global", + "NameInRequest": "global", + "Type": { + "$id": "541", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "542", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/global", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal", + "Decorators": [] + }, { - "$id": "578", - "StatusCodes": [ - 204 + "$id": "543", + "Name": "withIf", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "544", + "Name": "if", + "NameInRequest": "if", + "Type": { + "$id": "545", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/raise", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withRaise", - "Decorators": [] - }, - { - "$id": "579", - "Name": "withReturn", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "546", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/if", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withIf", + "Decorators": [] + }, { - "$id": "580", - "Name": "return", - "NameInRequest": "return", - "Type": { - "$id": "581", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "547", + "Name": "withImport", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "548", + "Name": "import", + "NameInRequest": "import", + "Type": { + "$id": "549", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "550", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/import", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withImport", + "Decorators": [] + }, { - "$id": "582", - "StatusCodes": [ - 204 + "$id": "551", + "Name": "withIn", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "552", + "Name": "in", + "NameInRequest": "in", + "Type": { + "$id": "553", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/return", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withReturn", - "Decorators": [] - }, - { - "$id": "583", - "Name": "withTry", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "554", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/in", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withIn", + "Decorators": [] + }, { - "$id": "584", - "Name": "try", - "NameInRequest": "try", - "Type": { - "$id": "585", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "555", + "Name": "withIs", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "556", + "Name": "is", + "NameInRequest": "is", + "Type": { + "$id": "557", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "558", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/is", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withIs", + "Decorators": [] + }, { - "$id": "586", - "StatusCodes": [ - 204 + "$id": "559", + "Name": "withLambda", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "560", + "Name": "lambda", + "NameInRequest": "lambda", + "Type": { + "$id": "561", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/try", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withTry", - "Decorators": [] - }, - { - "$id": "587", - "Name": "withWhile", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "562", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/lambda", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withLambda", + "Decorators": [] + }, { - "$id": "588", - "Name": "while", - "NameInRequest": "while", - "Type": { - "$id": "589", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "563", + "Name": "withNot", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "564", + "Name": "not", + "NameInRequest": "not", + "Type": { + "$id": "565", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "566", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/not", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withNot", + "Decorators": [] + }, { - "$id": "590", - "StatusCodes": [ - 204 + "$id": "567", + "Name": "withOr", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "568", + "Name": "or", + "NameInRequest": "or", + "Type": { + "$id": "569", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/while", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withWhile", - "Decorators": [] - }, - { - "$id": "591", - "Name": "withWith", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "570", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/or", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withOr", + "Decorators": [] + }, { - "$id": "592", - "Name": "with", - "NameInRequest": "with", - "Type": { - "$id": "593", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "571", + "Name": "withPass", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "572", + "Name": "pass", + "NameInRequest": "pass", + "Type": { + "$id": "573", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "574", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/pass", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withPass", + "Decorators": [] + }, { - "$id": "594", - "StatusCodes": [ - 204 + "$id": "575", + "Name": "withRaise", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "576", + "Name": "raise", + "NameInRequest": "raise", + "Type": { + "$id": "577", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/with", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withWith", - "Decorators": [] - }, - { - "$id": "595", - "Name": "withYield", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "578", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/raise", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withRaise", + "Decorators": [] + }, { - "$id": "596", - "Name": "yield", - "NameInRequest": "yield", - "Type": { - "$id": "597", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "579", + "Name": "withReturn", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "580", + "Name": "return", + "NameInRequest": "return", + "Type": { + "$id": "581", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "582", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/return", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withReturn", + "Decorators": [] + }, { - "$id": "598", - "StatusCodes": [ - 204 + "$id": "583", + "Name": "withTry", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "584", + "Name": "try", + "NameInRequest": "try", + "Type": { + "$id": "585", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/yield", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withYield", - "Decorators": [] - }, - { - "$id": "599", - "Name": "withCancellationToken", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "586", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/try", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withTry", + "Decorators": [] + }, { - "$id": "600", - "Name": "cancellationToken", - "NameInRequest": "cancellationToken", - "Type": { - "$id": "601", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "587", + "Name": "withWhile", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "588", + "Name": "while", + "NameInRequest": "while", + "Type": { + "$id": "589", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "590", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/while", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withWhile", + "Decorators": [] + }, { - "$id": "602", - "StatusCodes": [ - 204 + "$id": "591", + "Name": "withWith", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "592", + "Name": "with", + "NameInRequest": "with", + "Type": { + "$id": "593", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/cancellationToken", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withCancellationToken", - "Decorators": [] - } - ], - "Protocol": { - "$id": "603" - }, - "Parent": "SpecialWordsClient", - "Parameters": [ - { - "$id": "604", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "605", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "606", - "Type": { - "$id": "607", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "594", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/with", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withWith", + "Decorators": [] }, - "Value": "http://localhost:3000" + { + "$id": "595", + "Name": "withYield", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "596", + "Name": "yield", + "NameInRequest": "yield", + "Type": { + "$id": "597", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "598", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/yield", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withYield", + "Decorators": [] + }, + { + "$id": "599", + "Name": "withCancellationToken", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "600", + "Name": "cancellationToken", + "NameInRequest": "cancellationToken", + "Type": { + "$id": "601", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "602", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/cancellationToken", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withCancellationToken", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialWords.Parameters", + "parent": { + "$ref": "172" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialWords.Parameters" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json index c24a99658d1..f13652dc8dc 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json @@ -76,21 +76,18 @@ "Clients": [ { "$id": "11", - "Name": "ArrayClient", - "Namespace": "Type.Array", - "Doc": "Illustrates various types of arrays.", - "Operations": [], - "Protocol": { - "$id": "12" - }, - "Parameters": [ + "kind": "client", + "name": "ArrayClient", + "namespace": "Type.Array", + "doc": "Illustrates various types of arrays.", + "parameters": [ { - "$id": "13", + "$id": "12", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "14", + "$id": "13", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -105,9 +102,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "15", + "$id": "14", "Type": { - "$id": "16", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -116,2917 +113,2920 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array" - }, - { - "$id": "17", - "Name": "Int32Value", - "Namespace": "Type.Array", - "Doc": "Array of int32 values", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array", + "children": [ { - "$id": "18", - "Name": "get", - "ResourceName": "Int32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "19", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "16", + "kind": "client", + "name": "Int32Value", + "namespace": "Type.Array", + "doc": "Array of int32 values", + "parameters": [ + { + "$id": "17", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "20", - "kind": "constant", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "18", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "19", + "Type": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "21", + "Name": "get", + "ResourceName": "Int32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "22", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "23", + "kind": "constant", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "25", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "26", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "27", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/int32", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.Int32Value.get", + "Decorators": [] + }, { - "$id": "22", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "23", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "24", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "$id": "28", + "Name": "put", + "ResourceName": "Int32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "29", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "30", + "kind": "constant", + "valueType": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "32", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "33", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "34", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "35", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/int32", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.Int32Value.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/int32", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.Int32Value.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.Int32Value", + "parent": { + "$ref": "11" + } }, { - "$id": "25", - "Name": "put", - "ResourceName": "Int32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "26", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "27", - "kind": "constant", - "valueType": { - "$id": "28", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "36", + "kind": "client", + "name": "Int64Value", + "namespace": "Type.Array", + "doc": "Array of int64 values", + "parameters": [ { - "$id": "29", - "Name": "body", - "NameInRequest": "body", + "$id": "37", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "30", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "31", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "38", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "39", + "Type": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "41", + "Name": "get", + "ResourceName": "Int64Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "42", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "43", + "kind": "constant", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "45", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "46", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "47", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/int64", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.Int64Value.get", + "Decorators": [] + }, { - "$id": "32", - "StatusCodes": [ - 204 + "$id": "48", + "Name": "put", + "ResourceName": "Int64Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "49", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "50", + "kind": "constant", + "valueType": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "52", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "53", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "54", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "55", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/int64", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.Int64Value.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/int32", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.Int32Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "33" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "34", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "35", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "36", - "Type": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.Int64Value", + "parent": { + "$ref": "11" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.Int32Value" - }, - { - "$id": "38", - "Name": "Int64Value", - "Namespace": "Type.Array", - "Doc": "Array of int64 values", - "Operations": [ + }, { - "$id": "39", - "Name": "get", - "ResourceName": "Int64Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "40", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "56", + "kind": "client", + "name": "BooleanValue", + "namespace": "Type.Array", + "doc": "Array of boolean values", + "parameters": [ + { + "$id": "57", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "41", - "kind": "constant", - "valueType": { - "$id": "42", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "58", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "59", + "Type": { + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "43", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "44", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "45", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] + "$id": "61", + "Name": "get", + "ResourceName": "BooleanValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "62", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "63", + "kind": "constant", + "valueType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "65", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "66", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "67", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/boolean", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.BooleanValue.get", + "Decorators": [] + }, + { + "$id": "68", + "Name": "put", + "ResourceName": "BooleanValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "69", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "70", + "kind": "constant", + "valueType": { + "$id": "71", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "72", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "73", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "74", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "75", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/boolean", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.BooleanValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/int64", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.Int64Value.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.BooleanValue", + "parent": { + "$ref": "11" + } }, { - "$id": "46", - "Name": "put", - "ResourceName": "Int64Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "47", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "76", + "kind": "client", + "name": "StringValue", + "namespace": "Type.Array", + "doc": "Array of string values", + "parameters": [ + { + "$id": "77", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "48", - "kind": "constant", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "78", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "79", + "Type": { + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "81", + "Name": "get", + "ResourceName": "StringValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "82", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "83", + "kind": "constant", + "valueType": { + "$id": "84", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "85", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "86", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.StringValue.get", + "Decorators": [] }, { - "$id": "50", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "51", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "52", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] + "$id": "88", + "Name": "put", + "ResourceName": "StringValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "89", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "90", + "kind": "constant", + "valueType": { + "$id": "91", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "92", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "93", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "95", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/string", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.StringValue.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.StringValue", + "parent": { + "$ref": "11" + } + }, + { + "$id": "96", + "kind": "client", + "name": "Float32Value", + "namespace": "Type.Array", + "doc": "Array of float values", + "parameters": [ + { + "$id": "97", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "98", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "99", + "Type": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "101", + "Name": "get", + "ResourceName": "Float32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "102", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "103", + "kind": "constant", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "105", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "106", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "107", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/float32", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.Float32Value.get", + "Decorators": [] + }, { - "$id": "53", - "StatusCodes": [ - 204 + "$id": "108", + "Name": "put", + "ResourceName": "Float32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "109", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "110", + "kind": "constant", + "valueType": { + "$id": "111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "112", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "113", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "114", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "115", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/float32", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.Float32Value.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/int64", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.Int64Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "54" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "55", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "56", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "57", - "Type": { - "$id": "58", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.Float32Value", + "parent": { + "$ref": "11" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.Int64Value" - }, - { - "$id": "59", - "Name": "BooleanValue", - "Namespace": "Type.Array", - "Doc": "Array of boolean values", - "Operations": [ + }, { - "$id": "60", - "Name": "get", - "ResourceName": "BooleanValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "61", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "116", + "kind": "client", + "name": "DatetimeValue", + "namespace": "Type.Array", + "doc": "Array of datetime values", + "parameters": [ + { + "$id": "117", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "62", - "kind": "constant", - "valueType": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "118", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "119", + "Type": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "121", + "Name": "get", + "ResourceName": "DatetimeValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "122", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "123", + "kind": "constant", + "valueType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "125", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "126", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "127", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/datetime", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.DatetimeValue.get", + "Decorators": [] + }, { - "$id": "64", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "65", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "66", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] + "$id": "129", + "Name": "put", + "ResourceName": "DatetimeValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "130", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "131", + "kind": "constant", + "valueType": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "133", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "134", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "135", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "137", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/datetime", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.DatetimeValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/boolean", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.BooleanValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.DatetimeValue", + "parent": { + "$ref": "11" + } }, { - "$id": "67", - "Name": "put", - "ResourceName": "BooleanValue", - "Accessibility": "public", - "Parameters": [ + "$id": "138", + "kind": "client", + "name": "DurationValue", + "namespace": "Type.Array", + "doc": "Array of duration values", + "parameters": [ { - "$id": "68", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "139", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "69", - "kind": "constant", - "valueType": { - "$id": "70", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "140", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "141", + "Type": { + "$id": "142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "143", + "Name": "get", + "ResourceName": "DurationValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "144", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "145", + "kind": "constant", + "valueType": { + "$id": "146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "147", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "148", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "149", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "150", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/duration", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.DurationValue.get", + "Decorators": [] }, { - "$id": "71", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "72", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "73", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] + "$id": "151", + "Name": "put", + "ResourceName": "DurationValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "152", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "153", + "kind": "constant", + "valueType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "155", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "156", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "157", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "158", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "159", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/duration", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.DurationValue.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.DurationValue", + "parent": { + "$ref": "11" + } + }, + { + "$id": "160", + "kind": "client", + "name": "UnknownValue", + "namespace": "Type.Array", + "doc": "Array of unknown values", + "parameters": [ + { + "$id": "161", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "162", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "163", + "Type": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "165", + "Name": "get", + "ResourceName": "UnknownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "166", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "167", + "kind": "constant", + "valueType": { + "$id": "168", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "169", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "170", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "171", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/unknown", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.UnknownValue.get", + "Decorators": [] + }, { - "$id": "74", - "StatusCodes": [ - 204 + "$id": "172", + "Name": "put", + "ResourceName": "UnknownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "173", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "174", + "kind": "constant", + "valueType": { + "$id": "175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "176", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "177", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "178", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "179", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/unknown", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.UnknownValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/boolean", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.BooleanValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "75" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "76", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "77", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "78", - "Type": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.UnknownValue", + "parent": { + "$ref": "11" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.BooleanValue" - }, - { - "$id": "80", - "Name": "StringValue", - "Namespace": "Type.Array", - "Doc": "Array of string values", - "Operations": [ + }, { - "$id": "81", - "Name": "get", - "ResourceName": "StringValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "82", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "180", + "kind": "client", + "name": "ModelValue", + "namespace": "Type.Array", + "doc": "Array of model values", + "parameters": [ + { + "$id": "181", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "83", - "kind": "constant", - "valueType": { - "$id": "84", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "182", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "183", + "Type": { + "$id": "184", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "185", + "Name": "get", + "ResourceName": "ModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "186", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "187", + "kind": "constant", + "valueType": { + "$id": "188", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "189", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "190", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "2" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/model", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.ModelValue.get", + "Decorators": [] + }, { - "$id": "85", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "86", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "191", + "Name": "put", + "ResourceName": "ModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "192", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "193", + "kind": "constant", + "valueType": { + "$id": "194", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "195", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "196", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "2" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "197", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/model", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.ModelValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.StringValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.ModelValue", + "parent": { + "$ref": "11" + } }, { - "$id": "88", - "Name": "put", - "ResourceName": "StringValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "89", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "198", + "kind": "client", + "name": "NullableFloatValue", + "namespace": "Type.Array", + "doc": "Array of nullable float values", + "parameters": [ + { + "$id": "199", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "90", - "kind": "constant", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "200", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "92", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "93", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "94", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "201", + "Type": { + "$id": "202", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "203", + "Name": "get", + "ResourceName": "NullableFloatValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "204", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "205", + "kind": "constant", + "valueType": { + "$id": "206", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "207", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "208", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "209", + "kind": "nullable", + "type": { + "$id": "210", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-float", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableFloatValue.get", + "Decorators": [] + }, { - "$id": "95", - "StatusCodes": [ - 204 + "$id": "211", + "Name": "put", + "ResourceName": "NullableFloatValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "212", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "213", + "kind": "constant", + "valueType": { + "$id": "214", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "215", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "216", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "209" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "217", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-float", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableFloatValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.StringValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "96" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "97", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "98", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "99", - "Type": { - "$id": "100", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue", + "parent": { + "$ref": "11" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.StringValue" - }, - { - "$id": "101", - "Name": "Float32Value", - "Namespace": "Type.Array", - "Doc": "Array of float values", - "Operations": [ + }, { - "$id": "102", - "Name": "get", - "ResourceName": "Float32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "103", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "218", + "kind": "client", + "name": "NullableInt32Value", + "namespace": "Type.Array", + "doc": "Array of nullable int32 values", + "parameters": [ + { + "$id": "219", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "104", - "kind": "constant", - "valueType": { - "$id": "105", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "220", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "221", + "Type": { + "$id": "222", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "223", + "Name": "get", + "ResourceName": "NullableInt32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "224", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "225", + "kind": "constant", + "valueType": { + "$id": "226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "227", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "228", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "229", + "kind": "nullable", + "type": { + "$id": "230", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-int32", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableInt32Value.get", + "Decorators": [] + }, { - "$id": "106", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "107", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "108", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] + "$id": "231", + "Name": "put", + "ResourceName": "NullableInt32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "232", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "233", + "kind": "constant", + "valueType": { + "$id": "234", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "235", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "236", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "229" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "237", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-int32", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableInt32Value.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/float32", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.Float32Value.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value", + "parent": { + "$ref": "11" + } }, { - "$id": "109", - "Name": "put", - "ResourceName": "Float32Value", - "Accessibility": "public", - "Parameters": [ + "$id": "238", + "kind": "client", + "name": "NullableBooleanValue", + "namespace": "Type.Array", + "doc": "Array of nullable boolean values", + "parameters": [ { - "$id": "110", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "239", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "111", - "kind": "constant", - "valueType": { - "$id": "112", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "240", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "241", + "Type": { + "$id": "242", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "243", + "Name": "get", + "ResourceName": "NullableBooleanValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "244", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "245", + "kind": "constant", + "valueType": { + "$id": "246", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "247", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "248", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "249", + "kind": "nullable", + "type": { + "$id": "250", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-boolean", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get", + "Decorators": [] }, { - "$id": "113", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "114", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "115", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] + "$id": "251", + "Name": "put", + "ResourceName": "NullableBooleanValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "252", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "253", + "kind": "constant", + "valueType": { + "$id": "254", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "255", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "256", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "249" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "257", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-boolean", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue", + "parent": { + "$ref": "11" + } + }, + { + "$id": "258", + "kind": "client", + "name": "NullableStringValue", + "namespace": "Type.Array", + "doc": "Array of nullable string values", + "parameters": [ + { + "$id": "259", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "260", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "261", + "Type": { + "$id": "262", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "116", - "StatusCodes": [ - 204 + "$id": "263", + "Name": "get", + "ResourceName": "NullableStringValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "264", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "265", + "kind": "constant", + "valueType": { + "$id": "266", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/float32", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.Float32Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "117" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "118", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "119", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "120", - "Type": { - "$id": "121", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.Float32Value" - }, - { - "$id": "122", - "Name": "DatetimeValue", - "Namespace": "Type.Array", - "Doc": "Array of datetime values", - "Operations": [ - { - "$id": "123", - "Name": "get", - "ResourceName": "DatetimeValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "124", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "125", - "kind": "constant", - "valueType": { - "$id": "126", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "127", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "128", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "129", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "130", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/datetime", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.DatetimeValue.get", - "Decorators": [] - }, - { - "$id": "131", - "Name": "put", - "ResourceName": "DatetimeValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "132", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "133", - "kind": "constant", - "valueType": { - "$id": "134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "135", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "136", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "137", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "138", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "139", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/datetime", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.DatetimeValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "140" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "141", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "142", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "143", - "Type": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.DatetimeValue" - }, - { - "$id": "145", - "Name": "DurationValue", - "Namespace": "Type.Array", - "Doc": "Array of duration values", - "Operations": [ - { - "$id": "146", - "Name": "get", - "ResourceName": "DurationValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "147", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "148", - "kind": "constant", - "valueType": { - "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "150", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "151", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "152", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "153", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/duration", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.DurationValue.get", - "Decorators": [] - }, - { - "$id": "154", - "Name": "put", - "ResourceName": "DurationValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "155", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "156", - "kind": "constant", - "valueType": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "158", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "159", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "160", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "161", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "162", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/duration", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.DurationValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "163" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "164", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "165", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "166", - "Type": { - "$id": "167", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.DurationValue" - }, - { - "$id": "168", - "Name": "UnknownValue", - "Namespace": "Type.Array", - "Doc": "Array of unknown values", - "Operations": [ - { - "$id": "169", - "Name": "get", - "ResourceName": "UnknownValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "170", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "171", - "kind": "constant", - "valueType": { - "$id": "172", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "173", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "174", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "175", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/unknown", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.UnknownValue.get", - "Decorators": [] - }, - { - "$id": "176", - "Name": "put", - "ResourceName": "UnknownValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "177", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "178", - "kind": "constant", - "valueType": { - "$id": "179", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "180", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "181", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "182", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "183", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/unknown", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.UnknownValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "184" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "185", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "186", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "187", - "Type": { - "$id": "188", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.UnknownValue" - }, - { - "$id": "189", - "Name": "ModelValue", - "Namespace": "Type.Array", - "Doc": "Array of model values", - "Operations": [ - { - "$id": "190", - "Name": "get", - "ResourceName": "ModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "191", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "192", - "kind": "constant", - "valueType": { - "$id": "193", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "194", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "195", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "2" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/model", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.ModelValue.get", - "Decorators": [] - }, - { - "$id": "196", - "Name": "put", - "ResourceName": "ModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "197", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "198", - "kind": "constant", - "valueType": { - "$id": "199", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "200", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "201", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "2" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "202", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/model", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.ModelValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "203" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "204", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "205", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "206", - "Type": { - "$id": "207", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.ModelValue" - }, - { - "$id": "208", - "Name": "NullableFloatValue", - "Namespace": "Type.Array", - "Doc": "Array of nullable float values", - "Operations": [ - { - "$id": "209", - "Name": "get", - "ResourceName": "NullableFloatValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "210", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "211", - "kind": "constant", - "valueType": { - "$id": "212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "213", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "214", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "215", - "kind": "nullable", - "type": { - "$id": "216", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "namespace": "" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-float", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableFloatValue.get", - "Decorators": [] - }, - { - "$id": "217", - "Name": "put", - "ResourceName": "NullableFloatValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "218", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "219", - "kind": "constant", - "valueType": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "221", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "222", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "215" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "223", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-float", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableFloatValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "224" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "225", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "226", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "227", - "Type": { - "$id": "228", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.NullableFloatValue" - }, - { - "$id": "229", - "Name": "NullableInt32Value", - "Namespace": "Type.Array", - "Doc": "Array of nullable int32 values", - "Operations": [ - { - "$id": "230", - "Name": "get", - "ResourceName": "NullableInt32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "231", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "232", - "kind": "constant", - "valueType": { - "$id": "233", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "234", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "235", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "236", - "kind": "nullable", - "type": { - "$id": "237", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "namespace": "" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-int32", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableInt32Value.get", - "Decorators": [] - }, - { - "$id": "238", - "Name": "put", - "ResourceName": "NullableInt32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "239", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "242", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "243", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "236" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "244", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-int32", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableInt32Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "245" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "246", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "247", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "248", - "Type": { - "$id": "249", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "267", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "268", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "269", + "kind": "nullable", + "type": { + "$id": "270", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableStringValue.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.NullableInt32Value" - }, - { - "$id": "250", - "Name": "NullableBooleanValue", - "Namespace": "Type.Array", - "Doc": "Array of nullable boolean values", - "Operations": [ - { - "$id": "251", - "Name": "get", - "ResourceName": "NullableBooleanValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "252", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "253", - "kind": "constant", - "valueType": { - "$id": "254", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ { - "$id": "255", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "256", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "257", - "kind": "nullable", - "type": { - "$id": "258", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "271", + "Name": "put", + "ResourceName": "NullableStringValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "272", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "273", + "kind": "constant", + "valueType": { + "$id": "274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "namespace": "" + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "275", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "276", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "269" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "277", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-string", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableStringValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-boolean", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.NullableStringValue", + "parent": { + "$ref": "11" + } }, { - "$id": "259", - "Name": "put", - "ResourceName": "NullableBooleanValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "260", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "261", - "kind": "constant", - "valueType": { - "$id": "262", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "263", - "Name": "body", - "NameInRequest": "body", + "$id": "278", + "kind": "client", + "name": "NullableModelValue", + "namespace": "Type.Array", + "doc": "Array of nullable model values", + "parameters": [ + { + "$id": "279", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "264", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "257" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "280", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "265", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-boolean", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "266" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "267", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "268", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "269", - "Type": { - "$id": "270", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.NullableBooleanValue" - }, - { - "$id": "271", - "Name": "NullableStringValue", - "Namespace": "Type.Array", - "Doc": "Array of nullable string values", - "Operations": [ - { - "$id": "272", - "Name": "get", - "ResourceName": "NullableStringValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "273", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "274", - "kind": "constant", - "valueType": { - "$id": "275", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "281", + "Type": { + "$id": "282", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ - { - "$id": "276", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "277", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "278", - "kind": "nullable", - "type": { - "$id": "279", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "operations": [ + { + "$id": "283", + "Name": "get", + "ResourceName": "NullableModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "284", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "285", + "kind": "constant", + "valueType": { + "$id": "286", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "namespace": "" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableStringValue.get", - "Decorators": [] - }, - { - "$id": "280", - "Name": "put", - "ResourceName": "NullableStringValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "281", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "282", - "kind": "constant", - "valueType": { - "$id": "283", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "284", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "285", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "278" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "286", - "StatusCodes": [ - 204 + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableStringValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "287" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "288", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "289", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "290", - "Type": { - "$id": "291", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "287", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "288", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "289", + "kind": "nullable", + "type": { + "$ref": "2" + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-model", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableModelValue.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.NullableStringValue" - }, - { - "$id": "292", - "Name": "NullableModelValue", - "Namespace": "Type.Array", - "Doc": "Array of nullable model values", - "Operations": [ - { - "$id": "293", - "Name": "get", - "ResourceName": "NullableModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "294", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "295", - "kind": "constant", - "valueType": { - "$id": "296", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ { - "$id": "297", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "298", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "299", - "kind": "nullable", - "type": { - "$ref": "2" + "$id": "290", + "Name": "put", + "ResourceName": "NullableModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "291", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "292", + "kind": "constant", + "valueType": { + "$id": "293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, - "namespace": "" + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "294", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "295", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "289" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "296", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-model", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-model", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableModelValue.get", - "Decorators": [] - }, - { - "$id": "300", - "Name": "put", - "ResourceName": "NullableModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "301", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "302", - "kind": "constant", - "valueType": { - "$id": "303", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "304", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "305", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "299" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "306", - "StatusCodes": [ - 204 ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableModelValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-model", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableModelValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "307" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "308", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "309", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "310", - "Type": { - "$id": "311", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.NullableModelValue", + "parent": { + "$ref": "11" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.NullableModelValue" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json index 2667914b828..b6a768b7931 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json @@ -81,21 +81,18 @@ "Clients": [ { "$id": "12", - "Name": "DictionaryClient", - "Namespace": "Type.Dictionary", - "Doc": "Illustrates various of dictionaries.", - "Operations": [], - "Protocol": { - "$id": "13" - }, - "Parameters": [ + "kind": "client", + "name": "DictionaryClient", + "namespace": "Type.Dictionary", + "doc": "Illustrates various of dictionaries.", + "parameters": [ { - "$id": "14", + "$id": "13", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "15", + "$id": "14", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -110,9 +107,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "16", + "$id": "15", "Type": { - "$id": "17", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -121,2401 +118,2404 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary" - }, - { - "$id": "18", - "Name": "Int32Value", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of int32 values", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary", + "children": [ { - "$id": "19", - "Name": "get", - "ResourceName": "Int32Value", - "Accessibility": "public", - "Parameters": [ + "$id": "17", + "kind": "client", + "name": "Int32Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of int32 values", + "parameters": [ { - "$id": "20", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "18", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "21", - "kind": "constant", - "valueType": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "19", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "20", + "Type": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "23", - "StatusCodes": [ - 200 + "$id": "22", + "Name": "get", + "ResourceName": "Int32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "23", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "24", + "kind": "constant", + "valueType": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "24", - "kind": "dict", - "keyType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { + "Responses": [ + { "$id": "26", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "27", + "kind": "dict", + "keyType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "29", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/int32", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.Int32Value.get", + "Decorators": [] + }, + { + "$id": "30", + "Name": "put", + "ResourceName": "Int32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "31", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "32", + "kind": "constant", + "valueType": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "34", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "35", + "kind": "dict", + "keyType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "37", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "38", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/int32", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.Int32Value.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/int32", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.Int32Value.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value", + "parent": { + "$ref": "12" + } }, { - "$id": "27", - "Name": "put", - "ResourceName": "Int32Value", - "Accessibility": "public", - "Parameters": [ + "$id": "39", + "kind": "client", + "name": "Int64Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of int64 values", + "parameters": [ { - "$id": "28", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "40", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "29", - "kind": "constant", - "valueType": { - "$id": "30", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "41", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "31", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "32", - "kind": "dict", - "keyType": { - "$id": "33", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "42", + "Type": { + "$id": "43", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "34", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "44", + "Name": "get", + "ResourceName": "Int64Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "45", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "46", + "kind": "constant", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "48", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "49", + "kind": "dict", + "keyType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "51", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/int64", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.Int64Value.get", + "Decorators": [] + }, { - "$id": "35", - "StatusCodes": [ - 204 + "$id": "52", + "Name": "put", + "ResourceName": "Int64Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "53", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "54", + "kind": "constant", + "valueType": { + "$id": "55", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "56", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "57", + "kind": "dict", + "keyType": { + "$id": "58", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "59", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "60", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/int64", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.Int64Value.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/int32", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.Int32Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "36" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "37", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "38", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "39", - "Type": { - "$id": "40", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value", + "parent": { + "$ref": "12" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.Int32Value" - }, - { - "$id": "41", - "Name": "Int64Value", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of int64 values", - "Operations": [ + }, { - "$id": "42", - "Name": "get", - "ResourceName": "Int64Value", - "Accessibility": "public", - "Parameters": [ + "$id": "61", + "kind": "client", + "name": "BooleanValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of boolean values", + "parameters": [ { - "$id": "43", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "62", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "44", - "kind": "constant", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "63", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "64", + "Type": { + "$id": "65", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "46", - "StatusCodes": [ - 200 + "$id": "66", + "Name": "get", + "ResourceName": "BooleanValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "67", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "68", + "kind": "constant", + "valueType": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "47", - "kind": "dict", - "keyType": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "49", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "70", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "71", + "kind": "dict", + "keyType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "73", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/boolean", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get", + "Decorators": [] + }, + { + "$id": "74", + "Name": "put", + "ResourceName": "BooleanValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "75", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "76", + "kind": "constant", + "valueType": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "78", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "79", + "kind": "dict", + "keyType": { + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "81", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "82", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/boolean", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/int64", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.Int64Value.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue", + "parent": { + "$ref": "12" + } }, { - "$id": "50", - "Name": "put", - "ResourceName": "Int64Value", - "Accessibility": "public", - "Parameters": [ + "$id": "83", + "kind": "client", + "name": "StringValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of string values", + "parameters": [ { - "$id": "51", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "84", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "52", - "kind": "constant", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "85", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "54", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "55", - "kind": "dict", - "keyType": { - "$id": "56", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "86", + "Type": { + "$id": "87", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "valueType": { - "$id": "57", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "88", + "Name": "get", + "ResourceName": "StringValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "89", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "90", + "kind": "constant", + "valueType": { + "$id": "91", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "92", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "93", + "kind": "dict", + "keyType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.StringValue.get", + "Decorators": [] + }, { - "$id": "58", - "StatusCodes": [ - 204 + "$id": "96", + "Name": "put", + "ResourceName": "StringValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "97", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "98", + "kind": "constant", + "valueType": { + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "100", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "101", + "kind": "dict", + "keyType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "103", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "104", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/string", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.StringValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/int64", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.Int64Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "59" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "60", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "61", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "62", - "Type": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.StringValue", + "parent": { + "$ref": "12" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.Int64Value" - }, - { - "$id": "64", - "Name": "BooleanValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of boolean values", - "Operations": [ + }, { - "$id": "65", - "Name": "get", - "ResourceName": "BooleanValue", - "Accessibility": "public", - "Parameters": [ + "$id": "105", + "kind": "client", + "name": "Float32Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of float values", + "parameters": [ { - "$id": "66", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "106", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "67", - "kind": "constant", - "valueType": { - "$id": "68", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "107", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "108", + "Type": { + "$id": "109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "69", - "StatusCodes": [ - 200 + "$id": "110", + "Name": "get", + "ResourceName": "Float32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "111", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "112", + "kind": "constant", + "valueType": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "70", - "kind": "dict", - "keyType": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "72", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "114", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "115", + "kind": "dict", + "keyType": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "117", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/float32", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.Float32Value.get", + "Decorators": [] + }, + { + "$id": "118", + "Name": "put", + "ResourceName": "Float32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "119", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "120", + "kind": "constant", + "valueType": { + "$id": "121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "122", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "123", + "kind": "dict", + "keyType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "125", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "126", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/float32", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.Float32Value.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/boolean", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value", + "parent": { + "$ref": "12" + } }, { - "$id": "73", - "Name": "put", - "ResourceName": "BooleanValue", - "Accessibility": "public", - "Parameters": [ + "$id": "127", + "kind": "client", + "name": "DatetimeValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of datetime values", + "parameters": [ { - "$id": "74", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "128", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "75", - "kind": "constant", - "valueType": { - "$id": "76", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "129", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "77", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "78", - "kind": "dict", - "keyType": { - "$id": "79", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "130", + "Type": { + "$id": "131", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "80", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "81", - "StatusCodes": [ - 204 + "$id": "132", + "Name": "get", + "ResourceName": "DatetimeValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "133", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "134", + "kind": "constant", + "valueType": { + "$id": "135", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/boolean", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "82" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "83", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "84", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "85", - "Type": { - "$id": "86", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.BooleanValue" - }, - { - "$id": "87", - "Name": "StringValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of string values", - "Operations": [ - { - "$id": "88", - "Name": "get", - "ResourceName": "StringValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "89", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "90", - "kind": "constant", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "92", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "93", - "kind": "dict", - "keyType": { - "$id": "94", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.StringValue.get", - "Decorators": [] - }, - { - "$id": "96", - "Name": "put", - "ResourceName": "StringValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "97", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "98", - "kind": "constant", - "valueType": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "100", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "101", - "kind": "dict", - "keyType": { - "$id": "102", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "103", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "104", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.StringValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "105" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "106", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "107", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "108", - "Type": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.StringValue" - }, - { - "$id": "110", - "Name": "Float32Value", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of float values", - "Operations": [ - { - "$id": "111", - "Name": "get", - "ResourceName": "Float32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "112", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "113", - "kind": "constant", - "valueType": { - "$id": "114", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "115", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "116", - "kind": "dict", - "keyType": { - "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "118", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/float32", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.Float32Value.get", - "Decorators": [] - }, - { - "$id": "119", - "Name": "put", - "ResourceName": "Float32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "120", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "121", - "kind": "constant", - "valueType": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "123", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "124", - "kind": "dict", - "keyType": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "126", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "127", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/float32", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.Float32Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "128" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "129", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "130", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "131", - "Type": { - "$id": "132", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.Float32Value" - }, - { - "$id": "133", - "Name": "DatetimeValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of datetime values", - "Operations": [ - { - "$id": "134", - "Name": "get", - "ResourceName": "DatetimeValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "135", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "136", - "kind": "constant", - "valueType": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "138", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "139", - "kind": "dict", - "keyType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "141", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/datetime", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get", - "Decorators": [] - }, - { - "$id": "143", - "Name": "put", - "ResourceName": "DatetimeValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "144", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "145", - "kind": "constant", - "valueType": { - "$id": "146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "147", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "148", - "kind": "dict", - "keyType": { - "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "150", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "151", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "Responses": [ + { + "$id": "136", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "137", + "kind": "dict", + "keyType": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "139", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "152", - "StatusCodes": [ - 204 + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/datetime", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "153" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "154", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "155", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "156", - "Type": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/datetime", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.DatetimeValue" - }, - { - "$id": "158", - "Name": "DurationValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of duration values", - "Operations": [ - { - "$id": "159", - "Name": "get", - "ResourceName": "DurationValue", - "Accessibility": "public", - "Parameters": [ { - "$id": "160", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "161", - "kind": "constant", - "valueType": { - "$id": "162", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "163", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "164", - "kind": "dict", - "keyType": { - "$id": "165", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "166", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "167", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "141", + "Name": "put", + "ResourceName": "DatetimeValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "142", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "143", + "kind": "constant", + "valueType": { + "$id": "144", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/duration", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.DurationValue.get", - "Decorators": [] - }, - { - "$id": "168", - "Name": "put", - "ResourceName": "DurationValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "169", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "170", - "kind": "constant", - "valueType": { - "$id": "171", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "172", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "173", - "kind": "dict", - "keyType": { - "$id": "174", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "175", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "176", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "145", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "146", + "kind": "dict", + "keyType": { + "$id": "147", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "148", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "149", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "177", - "StatusCodes": [ - 204 + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/duration", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.DurationValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "178" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "179", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "180", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "181", - "Type": { - "$id": "182", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.DurationValue" - }, - { - "$id": "183", - "Name": "UnknownValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of unknown values", - "Operations": [ - { - "$id": "184", - "Name": "get", - "ResourceName": "UnknownValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "185", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "186", - "kind": "constant", - "valueType": { - "$id": "187", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "188", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "150", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyType": { - "$id": "189", - "kind": "dict", - "keyType": { - "$id": "190", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "191", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/datetime", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/unknown", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get", - "Decorators": [] - }, - { - "$id": "192", - "Name": "put", - "ResourceName": "UnknownValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "193", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "194", - "kind": "constant", - "valueType": { - "$id": "195", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "196", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "197", - "kind": "dict", - "keyType": { - "$id": "198", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "199", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "200", - "StatusCodes": [ - 204 ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/unknown", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "201" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "202", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "203", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "204", - "Type": { - "$id": "205", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue", + "parent": { + "$ref": "12" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.UnknownValue" - }, - { - "$id": "206", - "Name": "ModelValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of model values", - "Operations": [ - { - "$id": "207", - "Name": "get", - "ResourceName": "ModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "208", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "209", - "kind": "constant", - "valueType": { - "$id": "210", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "211", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "212", - "kind": "dict", - "keyType": { - "$id": "213", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "2" - }, - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/model", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.ModelValue.get", - "Decorators": [] }, - { - "$id": "214", - "Name": "put", - "ResourceName": "ModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "215", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "216", - "kind": "constant", - "valueType": { - "$id": "217", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + { + "$id": "151", + "kind": "client", + "name": "DurationValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of duration values", + "parameters": [ { - "$id": "218", - "Name": "body", - "NameInRequest": "body", + "$id": "152", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "219", - "kind": "dict", - "keyType": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "2" - }, - "decorators": [] + "$id": "153", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "154", + "Type": { + "$id": "155", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "156", + "Name": "get", + "ResourceName": "DurationValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "157", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "158", + "kind": "constant", + "valueType": { + "$id": "159", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "160", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "161", + "kind": "dict", + "keyType": { + "$id": "162", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "163", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/duration", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.DurationValue.get", + "Decorators": [] + }, { - "$id": "221", - "StatusCodes": [ - 204 + "$id": "165", + "Name": "put", + "ResourceName": "DurationValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "166", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "167", + "kind": "constant", + "valueType": { + "$id": "168", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "169", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "170", + "kind": "dict", + "keyType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "172", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "173", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "174", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/duration", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.DurationValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/model", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.ModelValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "222" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "223", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "224", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "225", - "Type": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue", + "parent": { + "$ref": "12" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.ModelValue" - }, - { - "$id": "227", - "Name": "RecursiveModelValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of model values", - "Operations": [ + }, { - "$id": "228", - "Name": "get", - "ResourceName": "RecursiveModelValue", - "Accessibility": "public", - "Parameters": [ + "$id": "175", + "kind": "client", + "name": "UnknownValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of unknown values", + "parameters": [ { - "$id": "229", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "176", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "230", - "kind": "constant", - "valueType": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "177", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "178", + "Type": { + "$id": "179", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "232", - "StatusCodes": [ - 200 + "$id": "180", + "Name": "get", + "ResourceName": "UnknownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "181", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "182", + "kind": "constant", + "valueType": { + "$id": "183", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "233", - "kind": "dict", - "keyType": { - "$id": "234", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "2" - }, - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "184", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "185", + "kind": "dict", + "keyType": { + "$id": "186", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "187", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/unknown", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get", + "Decorators": [] + }, + { + "$id": "188", + "Name": "put", + "ResourceName": "UnknownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "189", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "190", + "kind": "constant", + "valueType": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "192", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "193", + "kind": "dict", + "keyType": { + "$id": "194", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "195", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "196", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/unknown", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/model/recursive", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue", + "parent": { + "$ref": "12" + } }, { - "$id": "235", - "Name": "put", - "ResourceName": "RecursiveModelValue", - "Accessibility": "public", - "Parameters": [ + "$id": "197", + "kind": "client", + "name": "ModelValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of model values", + "parameters": [ { - "$id": "236", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "198", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "237", - "kind": "constant", - "valueType": { - "$id": "238", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "199", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "239", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "240", - "kind": "dict", - "keyType": { - "$id": "241", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "200", + "Type": { + "$id": "201", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "valueType": { - "$ref": "2" - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "242", - "StatusCodes": [ - 204 + "$id": "202", + "Name": "get", + "ResourceName": "ModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "203", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "204", + "kind": "constant", + "valueType": { + "$id": "205", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "206", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "207", + "kind": "dict", + "keyType": { + "$id": "208", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2" + }, + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/model", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.ModelValue.get", + "Decorators": [] + }, + { + "$id": "209", + "Name": "put", + "ResourceName": "ModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "210", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "211", + "kind": "constant", + "valueType": { + "$id": "212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "213", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "214", + "kind": "dict", + "keyType": { + "$id": "215", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2" + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "216", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/model", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.ModelValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/model/recursive", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "243" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "244", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "245", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "246", - "Type": { - "$id": "247", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue", + "parent": { + "$ref": "12" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue" - }, - { - "$id": "248", - "Name": "NullableFloatValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of nullable float values", - "Operations": [ + }, { - "$id": "249", - "Name": "get", - "ResourceName": "NullableFloatValue", - "Accessibility": "public", - "Parameters": [ + "$id": "217", + "kind": "client", + "name": "RecursiveModelValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of model values", + "parameters": [ { - "$id": "250", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "218", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "251", - "kind": "constant", - "valueType": { - "$id": "252", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "219", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "220", + "Type": { + "$id": "221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "253", - "StatusCodes": [ - 200 + "$id": "222", + "Name": "get", + "ResourceName": "RecursiveModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "223", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "224", + "kind": "constant", + "valueType": { + "$id": "225", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "254", - "kind": "dict", - "keyType": { - "$id": "255", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "256", - "kind": "nullable", - "type": { - "$id": "257", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "Responses": [ + { + "$id": "226", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "227", + "kind": "dict", + "keyType": { + "$id": "228", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2" + }, "decorators": [] }, - "namespace": "" - }, - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/model/recursive", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get", + "Decorators": [] + }, + { + "$id": "229", + "Name": "put", + "ResourceName": "RecursiveModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "230", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "231", + "kind": "constant", + "valueType": { + "$id": "232", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "233", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "234", + "kind": "dict", + "keyType": { + "$id": "235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2" + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "236", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/model/recursive", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/nullable-float", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue", + "parent": { + "$ref": "12" + } }, { - "$id": "258", - "Name": "put", - "ResourceName": "NullableFloatValue", - "Accessibility": "public", - "Parameters": [ + "$id": "237", + "kind": "client", + "name": "NullableFloatValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of nullable float values", + "parameters": [ { - "$id": "259", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "238", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "260", - "kind": "constant", - "valueType": { - "$id": "261", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "239", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "262", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "263", - "kind": "dict", - "keyType": { - "$id": "264", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "240", + "Type": { + "$id": "241", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "valueType": { - "$ref": "256" - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "265", - "StatusCodes": [ - 204 + "$id": "242", + "Name": "get", + "ResourceName": "NullableFloatValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "243", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "244", + "kind": "constant", + "valueType": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "246", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "247", + "kind": "dict", + "keyType": { + "$id": "248", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "249", + "kind": "nullable", + "type": { + "$id": "250", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/nullable-float", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get", + "Decorators": [] + }, + { + "$id": "251", + "Name": "put", + "ResourceName": "NullableFloatValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "252", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "253", + "kind": "constant", + "valueType": { + "$id": "254", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "255", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "256", + "kind": "dict", + "keyType": { + "$id": "257", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "249" + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "258", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/dictionary/nullable-float", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/dictionary/nullable-float", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "266" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "267", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "268", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "269", - "Type": { - "$id": "270", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue", + "parent": { + "$ref": "12" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json index e4566b895c0..72882edb6eb 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json @@ -155,20 +155,17 @@ "Clients": [ { "$id": "18", - "Name": "ExtensibleClient", - "Namespace": "Type.Enum.Extensible", - "Operations": [], - "Protocol": { - "$id": "19" - }, - "Parameters": [ + "kind": "client", + "name": "ExtensibleClient", + "namespace": "Type.Enum.Extensible", + "parameters": [ { - "$id": "20", + "$id": "19", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "21", + "$id": "20", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -183,9 +180,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "22", + "$id": "21", "Type": { - "$id": "23", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -194,328 +191,331 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Enum.Extensible" - }, - { - "$id": "24", - "Name": "String", - "Namespace": "Type.Enum.Extensible", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Enum.Extensible", + "children": [ { - "$id": "25", - "Name": "getKnownValue", - "ResourceName": "String", - "Accessibility": "public", - "Parameters": [ + "$id": "23", + "kind": "client", + "name": "String", + "namespace": "Type.Enum.Extensible", + "parameters": [ { - "$id": "26", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "24", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "27", - "kind": "constant", - "valueType": { - "$id": "28", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "25", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "29", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "2" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/enum/extensible/string/known-value", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue", - "Decorators": [] - }, - { - "$id": "30", - "Name": "getUnknownValue", - "ResourceName": "String", - "Accessibility": "public", - "Parameters": [ - { - "$id": "31", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "32", - "kind": "constant", - "valueType": { - "$id": "33", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "26", + "Type": { + "$id": "27", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "34", - "StatusCodes": [ - 200 + "$id": "28", + "Name": "getKnownValue", + "ResourceName": "String", + "Accessibility": "public", + "Parameters": [ + { + "$id": "29", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "30", + "kind": "constant", + "valueType": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "2" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/enum/extensible/string/unknown-value", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue", - "Decorators": [] - }, - { - "$id": "35", - "Name": "putKnownValue", - "ResourceName": "String", - "Accessibility": "public", - "Parameters": [ - { - "$id": "36", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "37", - "kind": "constant", - "valueType": { - "$id": "38", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "32", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/enum/extensible/string/known-value", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue", + "Decorators": [] }, { - "$id": "39", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "40", - "StatusCodes": [ - 204 + "$id": "33", + "Name": "getUnknownValue", + "ResourceName": "String", + "Accessibility": "public", + "Parameters": [ + { + "$id": "34", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "35", + "kind": "constant", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/enum/extensible/string/known-value", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue", - "Decorators": [] - }, - { - "$id": "41", - "Name": "putUnknownValue", - "ResourceName": "String", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "37", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/enum/extensible/string/unknown-value", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue", + "Decorators": [] + }, { - "$id": "42", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "43", - "kind": "constant", - "valueType": { - "$id": "44", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "38", + "Name": "putKnownValue", + "ResourceName": "String", + "Accessibility": "public", + "Parameters": [ + { + "$id": "39", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "40", + "kind": "constant", + "valueType": { + "$id": "41", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "42", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "43", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/enum/extensible/string/known-value", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue", + "Decorators": [] }, { - "$id": "45", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "46", - "StatusCodes": [ - 204 + "$id": "44", + "Name": "putUnknownValue", + "ResourceName": "String", + "Accessibility": "public", + "Parameters": [ + { + "$id": "45", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "46", + "kind": "constant", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "48", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "49", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/enum/extensible/string/unknown-value", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/enum/extensible/string/unknown-value", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue", - "Decorators": [] - } - ], - "Protocol": { - "$id": "47" - }, - "Parent": "ExtensibleClient", - "Parameters": [ - { - "$id": "48", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "49", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "50", - "Type": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Enum.Extensible.String", + "parent": { + "$ref": "18" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Enum.Extensible.String" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json index a1ab37eb33a..50de44b2dc2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json @@ -155,20 +155,17 @@ "Clients": [ { "$id": "18", - "Name": "FixedClient", - "Namespace": "Type.Enum.Fixed", - "Operations": [], - "Protocol": { - "$id": "19" - }, - "Parameters": [ + "kind": "client", + "name": "FixedClient", + "namespace": "Type.Enum.Fixed", + "parameters": [ { - "$id": "20", + "$id": "19", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "21", + "$id": "20", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -183,9 +180,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "22", + "$id": "21", "Type": { - "$id": "23", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -194,272 +191,275 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Enum.Fixed" - }, - { - "$id": "24", - "Name": "String", - "Namespace": "Type.Enum.Fixed", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Enum.Fixed", + "children": [ { - "$id": "25", - "Name": "getKnownValue", - "ResourceName": "String", - "Doc": "getKnownValue", - "Accessibility": "public", - "Parameters": [ + "$id": "23", + "kind": "client", + "name": "String", + "namespace": "Type.Enum.Fixed", + "parameters": [ { - "$id": "26", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "24", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "27", - "kind": "constant", - "valueType": { - "$id": "28", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "25", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "29", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "2" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/enum/fixed/string/known-value", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue", - "Decorators": [] - }, - { - "$id": "30", - "Name": "putKnownValue", - "ResourceName": "String", - "Doc": "putKnownValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "31", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "32", - "kind": "constant", - "valueType": { - "$id": "33", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "26", + "Type": { + "$id": "27", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "34", - "Name": "body", - "NameInRequest": "body", - "Doc": "_", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "35", - "StatusCodes": [ - 204 + "$id": "28", + "Name": "getKnownValue", + "ResourceName": "String", + "Doc": "getKnownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "29", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "30", + "kind": "constant", + "valueType": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/enum/fixed/string/known-value", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue", - "Decorators": [] - }, - { - "$id": "36", - "Name": "putUnknownValue", - "ResourceName": "String", - "Doc": "putUnknownValue", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "32", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/enum/fixed/string/known-value", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue", + "Decorators": [] + }, { - "$id": "37", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "38", - "kind": "constant", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "33", + "Name": "putKnownValue", + "ResourceName": "String", + "Doc": "putKnownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "34", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "35", + "kind": "constant", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "37", + "Name": "body", + "NameInRequest": "body", + "Doc": "_", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "38", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/enum/fixed/string/known-value", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue", + "Decorators": [] }, { - "$id": "40", - "Name": "body", - "NameInRequest": "body", - "Doc": "_", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "41", - "StatusCodes": [ - 204 + "$id": "39", + "Name": "putUnknownValue", + "ResourceName": "String", + "Doc": "putUnknownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "40", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "41", + "kind": "constant", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "43", + "Name": "body", + "NameInRequest": "body", + "Doc": "_", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "44", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/enum/fixed/string/unknown-value", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/enum/fixed/string/unknown-value", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue", - "Decorators": [] - } - ], - "Protocol": { - "$id": "42" - }, - "Parent": "FixedClient", - "Parameters": [ - { - "$id": "43", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "44", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "45", - "Type": { - "$id": "46", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Enum.Fixed.String", + "parent": { + "$ref": "18" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Enum.Fixed.String" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json index 3c745b138cb..04eb3b8534c 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json @@ -41,26 +41,60 @@ "Clients": [ { "$id": "5", - "Name": "EmptyClient", - "Namespace": "Type.Model.Empty", - "Doc": "Illustrates usage of empty model used in operation's parameters and responses.", - "Operations": [ + "kind": "client", + "name": "EmptyClient", + "namespace": "Type.Model.Empty", + "doc": "Illustrates usage of empty model used in operation's parameters and responses.", + "parameters": [ { "$id": "6", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "7", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "8", + "Type": { + "$id": "9", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "10", "Name": "putEmpty", "ResourceName": "Empty", "Accessibility": "public", "Parameters": [ { - "$id": "7", + "$id": "11", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "8", + "$id": "12", "kind": "constant", "valueType": { - "$id": "9", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -80,7 +114,7 @@ "SkipUrlEncoding": false }, { - "$id": "10", + "$id": "14", "Name": "input", "NameInRequest": "input", "Type": { @@ -99,7 +133,7 @@ ], "Responses": [ { - "$id": "11", + "$id": "15", "StatusCodes": [ 204 ], @@ -122,20 +156,20 @@ "Decorators": [] }, { - "$id": "12", + "$id": "16", "Name": "getEmpty", "ResourceName": "Empty", "Accessibility": "public", "Parameters": [ { - "$id": "13", + "$id": "17", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "14", + "$id": "18", "kind": "constant", "valueType": { - "$id": "15", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -157,7 +191,7 @@ ], "Responses": [ { - "$id": "16", + "$id": "20", "StatusCodes": [ 200 ], @@ -183,21 +217,21 @@ "Decorators": [] }, { - "$id": "17", + "$id": "21", "Name": "postRoundTripEmpty", "ResourceName": "Empty", "Accessibility": "public", "Parameters": [ { - "$id": "18", + "$id": "22", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "19", + "$id": "23", "kind": "constant", "valueType": { - "$id": "20", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -217,14 +251,14 @@ "SkipUrlEncoding": false }, { - "$id": "21", + "$id": "25", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "22", + "$id": "26", "kind": "constant", "valueType": { - "$id": "23", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -244,7 +278,7 @@ "SkipUrlEncoding": false }, { - "$id": "24", + "$id": "28", "Name": "body", "NameInRequest": "body", "Type": { @@ -263,7 +297,7 @@ ], "Responses": [ { - "$id": "25", + "$id": "29", "StatusCodes": [ 200 ], @@ -292,44 +326,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "26" - }, - "Parameters": [ - { - "$id": "27", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "28", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "29", - "Type": { - "$id": "30", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Model.Empty" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Model.Empty" } ] } 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 17aaff6e37d..8ce8ba38f7c 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 @@ -327,26 +327,60 @@ "Clients": [ { "$id": "40", - "Name": "EnumDiscriminatorClient", - "Namespace": "Type.Model.Inheritance.EnumDiscriminator", - "Doc": "Illustrates inheritance with enum discriminator.", - "Operations": [ + "kind": "client", + "name": "EnumDiscriminatorClient", + "namespace": "Type.Model.Inheritance.EnumDiscriminator", + "doc": "Illustrates inheritance with enum discriminator.", + "parameters": [ { "$id": "41", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "42", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "43", + "Type": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "45", "Name": "getExtensibleModel", "ResourceName": "EnumDiscriminator", "Doc": "Receive model with extensible enum discriminator type.", "Accessibility": "public", "Parameters": [ { - "$id": "42", + "$id": "46", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "43", + "$id": "47", "kind": "constant", "valueType": { - "$id": "44", + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -368,7 +402,7 @@ ], "Responses": [ { - "$id": "45", + "$id": "49", "StatusCodes": [ 200 ], @@ -394,22 +428,22 @@ "Decorators": [] }, { - "$id": "46", + "$id": "50", "Name": "putExtensibleModel", "ResourceName": "EnumDiscriminator", "Doc": "Send model with extensible enum discriminator type.", "Accessibility": "public", "Parameters": [ { - "$id": "47", + "$id": "51", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "48", + "$id": "52", "kind": "constant", "valueType": { - "$id": "49", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -429,7 +463,7 @@ "SkipUrlEncoding": false }, { - "$id": "50", + "$id": "54", "Name": "input", "NameInRequest": "input", "Doc": "Dog to create", @@ -449,7 +483,7 @@ ], "Responses": [ { - "$id": "51", + "$id": "55", "StatusCodes": [ 204 ], @@ -472,21 +506,21 @@ "Decorators": [] }, { - "$id": "52", + "$id": "56", "Name": "getExtensibleModelMissingDiscriminator", "ResourceName": "EnumDiscriminator", "Doc": "Get a model omitting the discriminator.", "Accessibility": "public", "Parameters": [ { - "$id": "53", + "$id": "57", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "54", + "$id": "58", "kind": "constant", "valueType": { - "$id": "55", + "$id": "59", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -508,7 +542,7 @@ ], "Responses": [ { - "$id": "56", + "$id": "60", "StatusCodes": [ 200 ], @@ -534,21 +568,21 @@ "Decorators": [] }, { - "$id": "57", + "$id": "61", "Name": "getExtensibleModelWrongDiscriminator", "ResourceName": "EnumDiscriminator", "Doc": "Get a model containing discriminator value never defined.", "Accessibility": "public", "Parameters": [ { - "$id": "58", + "$id": "62", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "59", + "$id": "63", "kind": "constant", "valueType": { - "$id": "60", + "$id": "64", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -570,7 +604,7 @@ ], "Responses": [ { - "$id": "61", + "$id": "65", "StatusCodes": [ 200 ], @@ -596,21 +630,21 @@ "Decorators": [] }, { - "$id": "62", + "$id": "66", "Name": "getFixedModel", "ResourceName": "EnumDiscriminator", "Doc": "Receive model with fixed enum discriminator type.", "Accessibility": "public", "Parameters": [ { - "$id": "63", + "$id": "67", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "64", + "$id": "68", "kind": "constant", "valueType": { - "$id": "65", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -632,7 +666,7 @@ ], "Responses": [ { - "$id": "66", + "$id": "70", "StatusCodes": [ 200 ], @@ -658,22 +692,22 @@ "Decorators": [] }, { - "$id": "67", + "$id": "71", "Name": "putFixedModel", "ResourceName": "EnumDiscriminator", "Doc": "Send model with fixed enum discriminator type.", "Accessibility": "public", "Parameters": [ { - "$id": "68", + "$id": "72", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "69", + "$id": "73", "kind": "constant", "valueType": { - "$id": "70", + "$id": "74", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -693,7 +727,7 @@ "SkipUrlEncoding": false }, { - "$id": "71", + "$id": "75", "Name": "input", "NameInRequest": "input", "Doc": "Snake to create", @@ -713,7 +747,7 @@ ], "Responses": [ { - "$id": "72", + "$id": "76", "StatusCodes": [ 204 ], @@ -736,21 +770,21 @@ "Decorators": [] }, { - "$id": "73", + "$id": "77", "Name": "getFixedModelMissingDiscriminator", "ResourceName": "EnumDiscriminator", "Doc": "Get a model omitting the discriminator.", "Accessibility": "public", "Parameters": [ { - "$id": "74", + "$id": "78", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "75", + "$id": "79", "kind": "constant", "valueType": { - "$id": "76", + "$id": "80", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -772,7 +806,7 @@ ], "Responses": [ { - "$id": "77", + "$id": "81", "StatusCodes": [ 200 ], @@ -798,21 +832,21 @@ "Decorators": [] }, { - "$id": "78", + "$id": "82", "Name": "getFixedModelWrongDiscriminator", "ResourceName": "EnumDiscriminator", "Doc": "Get a model containing discriminator value never defined.", "Accessibility": "public", "Parameters": [ { - "$id": "79", + "$id": "83", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "80", + "$id": "84", "kind": "constant", "valueType": { - "$id": "81", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -834,7 +868,7 @@ ], "Responses": [ { - "$id": "82", + "$id": "86", "StatusCodes": [ 200 ], @@ -860,44 +894,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "83" - }, - "Parameters": [ - { - "$id": "84", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "85", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "86", - "Type": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json index 572b919d56f..4fcef841f54 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json @@ -400,25 +400,59 @@ "Clients": [ { "$id": "53", - "Name": "NestedDiscriminatorClient", - "Namespace": "Type.Model.Inheritance.NestedDiscriminator", - "Doc": "Illustrates multiple level inheritance with multiple discriminators.", - "Operations": [ + "kind": "client", + "name": "NestedDiscriminatorClient", + "namespace": "Type.Model.Inheritance.NestedDiscriminator", + "doc": "Illustrates multiple level inheritance with multiple discriminators.", + "parameters": [ { "$id": "54", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "55", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "56", + "Type": { + "$id": "57", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "58", "Name": "getModel", "ResourceName": "NestedDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "55", + "$id": "59", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "56", + "$id": "60", "kind": "constant", "valueType": { - "$id": "57", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -440,7 +474,7 @@ ], "Responses": [ { - "$id": "58", + "$id": "62", "StatusCodes": [ 200 ], @@ -466,21 +500,21 @@ "Decorators": [] }, { - "$id": "59", + "$id": "63", "Name": "putModel", "ResourceName": "NestedDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "60", + "$id": "64", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "61", + "$id": "65", "kind": "constant", "valueType": { - "$id": "62", + "$id": "66", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -500,7 +534,7 @@ "SkipUrlEncoding": false }, { - "$id": "63", + "$id": "67", "Name": "input", "NameInRequest": "input", "Type": { @@ -519,7 +553,7 @@ ], "Responses": [ { - "$id": "64", + "$id": "68", "StatusCodes": [ 204 ], @@ -542,20 +576,20 @@ "Decorators": [] }, { - "$id": "65", + "$id": "69", "Name": "getRecursiveModel", "ResourceName": "NestedDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "66", + "$id": "70", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "67", + "$id": "71", "kind": "constant", "valueType": { - "$id": "68", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -577,7 +611,7 @@ ], "Responses": [ { - "$id": "69", + "$id": "73", "StatusCodes": [ 200 ], @@ -603,21 +637,21 @@ "Decorators": [] }, { - "$id": "70", + "$id": "74", "Name": "putRecursiveModel", "ResourceName": "NestedDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "71", + "$id": "75", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "72", + "$id": "76", "kind": "constant", "valueType": { - "$id": "73", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -637,7 +671,7 @@ "SkipUrlEncoding": false }, { - "$id": "74", + "$id": "78", "Name": "input", "NameInRequest": "input", "Type": { @@ -656,7 +690,7 @@ ], "Responses": [ { - "$id": "75", + "$id": "79", "StatusCodes": [ 204 ], @@ -679,20 +713,20 @@ "Decorators": [] }, { - "$id": "76", + "$id": "80", "Name": "getMissingDiscriminator", "ResourceName": "NestedDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "77", + "$id": "81", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "78", + "$id": "82", "kind": "constant", "valueType": { - "$id": "79", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -714,7 +748,7 @@ ], "Responses": [ { - "$id": "80", + "$id": "84", "StatusCodes": [ 200 ], @@ -740,20 +774,20 @@ "Decorators": [] }, { - "$id": "81", + "$id": "85", "Name": "getWrongDiscriminator", "ResourceName": "NestedDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "82", + "$id": "86", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "83", + "$id": "87", "kind": "constant", "valueType": { - "$id": "84", + "$id": "88", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -775,7 +809,7 @@ ], "Responses": [ { - "$id": "85", + "$id": "89", "StatusCodes": [ 200 ], @@ -801,44 +835,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "86" - }, - "Parameters": [ - { - "$id": "87", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "88", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "89", - "Type": { - "$id": "90", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json index d49e6518a3e..f6f7e73a459 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json @@ -128,26 +128,60 @@ "Clients": [ { "$id": "17", - "Name": "NotDiscriminatedClient", - "Namespace": "Type.Model.Inheritance.NotDiscriminated", - "Doc": "Illustrates not-discriminated inheritance model.", - "Operations": [ + "kind": "client", + "name": "NotDiscriminatedClient", + "namespace": "Type.Model.Inheritance.NotDiscriminated", + "doc": "Illustrates not-discriminated inheritance model.", + "parameters": [ { "$id": "18", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "19", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "20", + "Type": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "22", "Name": "postValid", "ResourceName": "NotDiscriminated", "Accessibility": "public", "Parameters": [ { - "$id": "19", + "$id": "23", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "20", + "$id": "24", "kind": "constant", "valueType": { - "$id": "21", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -167,7 +201,7 @@ "SkipUrlEncoding": false }, { - "$id": "22", + "$id": "26", "Name": "input", "NameInRequest": "input", "Type": { @@ -186,7 +220,7 @@ ], "Responses": [ { - "$id": "23", + "$id": "27", "StatusCodes": [ 204 ], @@ -209,20 +243,20 @@ "Decorators": [] }, { - "$id": "24", + "$id": "28", "Name": "getValid", "ResourceName": "NotDiscriminated", "Accessibility": "public", "Parameters": [ { - "$id": "25", + "$id": "29", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "26", + "$id": "30", "kind": "constant", "valueType": { - "$id": "27", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -244,7 +278,7 @@ ], "Responses": [ { - "$id": "28", + "$id": "32", "StatusCodes": [ 200 ], @@ -270,21 +304,21 @@ "Decorators": [] }, { - "$id": "29", + "$id": "33", "Name": "putValid", "ResourceName": "NotDiscriminated", "Accessibility": "public", "Parameters": [ { - "$id": "30", + "$id": "34", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "31", + "$id": "35", "kind": "constant", "valueType": { - "$id": "32", + "$id": "36", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -304,14 +338,14 @@ "SkipUrlEncoding": false }, { - "$id": "33", + "$id": "37", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "34", + "$id": "38", "kind": "constant", "valueType": { - "$id": "35", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -331,7 +365,7 @@ "SkipUrlEncoding": false }, { - "$id": "36", + "$id": "40", "Name": "input", "NameInRequest": "input", "Type": { @@ -350,7 +384,7 @@ ], "Responses": [ { - "$id": "37", + "$id": "41", "StatusCodes": [ 200 ], @@ -379,44 +413,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "38" - }, - "Parameters": [ - { - "$id": "39", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "40", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "41", - "Type": { - "$id": "42", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json index 06042d71cb1..ed309063df6 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json @@ -90,26 +90,60 @@ "Clients": [ { "$id": "12", - "Name": "RecursiveClient", - "Namespace": "Type.Model.Inheritance.Recursive", - "Doc": "Illustrates inheritance recursion", - "Operations": [ + "kind": "client", + "name": "RecursiveClient", + "namespace": "Type.Model.Inheritance.Recursive", + "doc": "Illustrates inheritance recursion", + "parameters": [ { "$id": "13", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "14", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "15", + "Type": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "17", "Name": "put", "ResourceName": "Recursive", "Accessibility": "public", "Parameters": [ { - "$id": "14", + "$id": "18", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "15", + "$id": "19", "kind": "constant", "valueType": { - "$id": "16", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -129,7 +163,7 @@ "SkipUrlEncoding": false }, { - "$id": "17", + "$id": "21", "Name": "input", "NameInRequest": "input", "Type": { @@ -148,7 +182,7 @@ ], "Responses": [ { - "$id": "18", + "$id": "22", "StatusCodes": [ 204 ], @@ -171,20 +205,20 @@ "Decorators": [] }, { - "$id": "19", + "$id": "23", "Name": "get", "ResourceName": "Recursive", "Accessibility": "public", "Parameters": [ { - "$id": "20", + "$id": "24", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "21", + "$id": "25", "kind": "constant", "valueType": { - "$id": "22", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -206,7 +240,7 @@ ], "Responses": [ { - "$id": "23", + "$id": "27", "StatusCodes": [ 200 ], @@ -232,44 +266,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "24" - }, - "Parameters": [ - { - "$id": "25", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "26", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "27", - "Type": { - "$id": "28", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Model.Inheritance.Recursive" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json index 9c6eea29739..4bb27dd83ee 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json @@ -489,25 +489,59 @@ "Clients": [ { "$id": "64", - "Name": "SingleDiscriminatorClient", - "Namespace": "Type.Model.Inheritance.SingleDiscriminator", - "Doc": "Illustrates inheritance with single discriminator.", - "Operations": [ + "kind": "client", + "name": "SingleDiscriminatorClient", + "namespace": "Type.Model.Inheritance.SingleDiscriminator", + "doc": "Illustrates inheritance with single discriminator.", + "parameters": [ { "$id": "65", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "66", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "67", + "Type": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "69", "Name": "getModel", "ResourceName": "SingleDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "66", + "$id": "70", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "67", + "$id": "71", "kind": "constant", "valueType": { - "$id": "68", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -529,7 +563,7 @@ ], "Responses": [ { - "$id": "69", + "$id": "73", "StatusCodes": [ 200 ], @@ -555,21 +589,21 @@ "Decorators": [] }, { - "$id": "70", + "$id": "74", "Name": "putModel", "ResourceName": "SingleDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "71", + "$id": "75", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "72", + "$id": "76", "kind": "constant", "valueType": { - "$id": "73", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -589,7 +623,7 @@ "SkipUrlEncoding": false }, { - "$id": "74", + "$id": "78", "Name": "input", "NameInRequest": "input", "Type": { @@ -608,7 +642,7 @@ ], "Responses": [ { - "$id": "75", + "$id": "79", "StatusCodes": [ 204 ], @@ -631,20 +665,20 @@ "Decorators": [] }, { - "$id": "76", + "$id": "80", "Name": "getRecursiveModel", "ResourceName": "SingleDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "77", + "$id": "81", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "78", + "$id": "82", "kind": "constant", "valueType": { - "$id": "79", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -666,7 +700,7 @@ ], "Responses": [ { - "$id": "80", + "$id": "84", "StatusCodes": [ 200 ], @@ -692,21 +726,21 @@ "Decorators": [] }, { - "$id": "81", + "$id": "85", "Name": "putRecursiveModel", "ResourceName": "SingleDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "82", + "$id": "86", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "83", + "$id": "87", "kind": "constant", "valueType": { - "$id": "84", + "$id": "88", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -726,7 +760,7 @@ "SkipUrlEncoding": false }, { - "$id": "85", + "$id": "89", "Name": "input", "NameInRequest": "input", "Type": { @@ -745,7 +779,7 @@ ], "Responses": [ { - "$id": "86", + "$id": "90", "StatusCodes": [ 204 ], @@ -768,20 +802,20 @@ "Decorators": [] }, { - "$id": "87", + "$id": "91", "Name": "getMissingDiscriminator", "ResourceName": "SingleDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "88", + "$id": "92", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "89", + "$id": "93", "kind": "constant", "valueType": { - "$id": "90", + "$id": "94", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -803,7 +837,7 @@ ], "Responses": [ { - "$id": "91", + "$id": "95", "StatusCodes": [ 200 ], @@ -829,20 +863,20 @@ "Decorators": [] }, { - "$id": "92", + "$id": "96", "Name": "getWrongDiscriminator", "ResourceName": "SingleDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "93", + "$id": "97", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "94", + "$id": "98", "kind": "constant", "valueType": { - "$id": "95", + "$id": "99", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -864,7 +898,7 @@ ], "Responses": [ { - "$id": "96", + "$id": "100", "StatusCodes": [ 200 ], @@ -890,20 +924,20 @@ "Decorators": [] }, { - "$id": "97", + "$id": "101", "Name": "getLegacyModel", "ResourceName": "SingleDiscriminator", "Accessibility": "public", "Parameters": [ { - "$id": "98", + "$id": "102", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "99", + "$id": "103", "kind": "constant", "valueType": { - "$id": "100", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -925,7 +959,7 @@ ], "Responses": [ { - "$id": "101", + "$id": "105", "StatusCodes": [ 200 ], @@ -951,44 +985,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "102" - }, - "Parameters": [ - { - "$id": "103", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "104", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "105", - "Type": { - "$id": "106", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json index d72e8cc046b..c945976ea7b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json @@ -122,26 +122,60 @@ "Clients": [ { "$id": "17", - "Name": "UsageClient", - "Namespace": "Type.Model.Usage", - "Doc": "Illustrates usage of Record in different places(Operation parameters, return type or both).", - "Operations": [ + "kind": "client", + "name": "UsageClient", + "namespace": "Type.Model.Usage", + "doc": "Illustrates usage of Record in different places(Operation parameters, return type or both).", + "parameters": [ { "$id": "18", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "19", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "20", + "Type": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "22", "Name": "input", "ResourceName": "Usage", "Accessibility": "public", "Parameters": [ { - "$id": "19", + "$id": "23", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "20", + "$id": "24", "kind": "constant", "valueType": { - "$id": "21", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -161,7 +195,7 @@ "SkipUrlEncoding": false }, { - "$id": "22", + "$id": "26", "Name": "input", "NameInRequest": "input", "Type": { @@ -180,7 +214,7 @@ ], "Responses": [ { - "$id": "23", + "$id": "27", "StatusCodes": [ 204 ], @@ -203,20 +237,20 @@ "Decorators": [] }, { - "$id": "24", + "$id": "28", "Name": "output", "ResourceName": "Usage", "Accessibility": "public", "Parameters": [ { - "$id": "25", + "$id": "29", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "26", + "$id": "30", "kind": "constant", "valueType": { - "$id": "27", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -238,7 +272,7 @@ ], "Responses": [ { - "$id": "28", + "$id": "32", "StatusCodes": [ 200 ], @@ -264,21 +298,21 @@ "Decorators": [] }, { - "$id": "29", + "$id": "33", "Name": "inputAndOutput", "ResourceName": "Usage", "Accessibility": "public", "Parameters": [ { - "$id": "30", + "$id": "34", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "31", + "$id": "35", "kind": "constant", "valueType": { - "$id": "32", + "$id": "36", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -298,14 +332,14 @@ "SkipUrlEncoding": false }, { - "$id": "33", + "$id": "37", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "34", + "$id": "38", "kind": "constant", "valueType": { - "$id": "35", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -325,7 +359,7 @@ "SkipUrlEncoding": false }, { - "$id": "36", + "$id": "40", "Name": "body", "NameInRequest": "body", "Type": { @@ -344,7 +378,7 @@ ], "Responses": [ { - "$id": "37", + "$id": "41", "StatusCodes": [ 200 ], @@ -373,44 +407,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "38" - }, - "Parameters": [ - { - "$id": "39", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "40", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "41", - "Type": { - "$id": "42", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Model.Usage" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Model.Usage" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json index 870bc8db315..267cf342736 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json @@ -259,26 +259,60 @@ "Clients": [ { "$id": "38", - "Name": "VisibilityClient", - "Namespace": "Type.Model.Visibility", - "Doc": "Illustrates models with visibility properties.", - "Operations": [ + "kind": "client", + "name": "VisibilityClient", + "namespace": "Type.Model.Visibility", + "doc": "Illustrates models with visibility properties.", + "parameters": [ { "$id": "39", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "40", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "41", + "Type": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "43", "Name": "getModel", "ResourceName": "Visibility", "Accessibility": "public", "Parameters": [ { - "$id": "40", + "$id": "44", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "41", + "$id": "45", "kind": "constant", "valueType": { - "$id": "42", + "$id": "46", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -298,14 +332,14 @@ "SkipUrlEncoding": false }, { - "$id": "43", + "$id": "47", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "44", + "$id": "48", "kind": "constant", "valueType": { - "$id": "45", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -325,7 +359,7 @@ "SkipUrlEncoding": false }, { - "$id": "46", + "$id": "50", "Name": "input", "NameInRequest": "input", "Type": { @@ -344,7 +378,7 @@ ], "Responses": [ { - "$id": "47", + "$id": "51", "StatusCodes": [ 200 ], @@ -373,21 +407,21 @@ "Decorators": [] }, { - "$id": "48", + "$id": "52", "Name": "headModel", "ResourceName": "Visibility", "Accessibility": "public", "Parameters": [ { - "$id": "49", + "$id": "53", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "50", + "$id": "54", "kind": "constant", "valueType": { - "$id": "51", + "$id": "55", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -407,7 +441,7 @@ "SkipUrlEncoding": false }, { - "$id": "52", + "$id": "56", "Name": "input", "NameInRequest": "input", "Type": { @@ -426,7 +460,7 @@ ], "Responses": [ { - "$id": "53", + "$id": "57", "StatusCodes": [ 200 ], @@ -449,21 +483,21 @@ "Decorators": [] }, { - "$id": "54", + "$id": "58", "Name": "putModel", "ResourceName": "Visibility", "Accessibility": "public", "Parameters": [ { - "$id": "55", + "$id": "59", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "56", + "$id": "60", "kind": "constant", "valueType": { - "$id": "57", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -483,7 +517,7 @@ "SkipUrlEncoding": false }, { - "$id": "58", + "$id": "62", "Name": "input", "NameInRequest": "input", "Type": { @@ -502,7 +536,7 @@ ], "Responses": [ { - "$id": "59", + "$id": "63", "StatusCodes": [ 204 ], @@ -525,21 +559,21 @@ "Decorators": [] }, { - "$id": "60", + "$id": "64", "Name": "patchModel", "ResourceName": "Visibility", "Accessibility": "public", "Parameters": [ { - "$id": "61", + "$id": "65", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "62", + "$id": "66", "kind": "constant", "valueType": { - "$id": "63", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -559,7 +593,7 @@ "SkipUrlEncoding": false }, { - "$id": "64", + "$id": "68", "Name": "input", "NameInRequest": "input", "Type": { @@ -578,7 +612,7 @@ ], "Responses": [ { - "$id": "65", + "$id": "69", "StatusCodes": [ 204 ], @@ -601,21 +635,21 @@ "Decorators": [] }, { - "$id": "66", + "$id": "70", "Name": "postModel", "ResourceName": "Visibility", "Accessibility": "public", "Parameters": [ { - "$id": "67", + "$id": "71", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "68", + "$id": "72", "kind": "constant", "valueType": { - "$id": "69", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -635,7 +669,7 @@ "SkipUrlEncoding": false }, { - "$id": "70", + "$id": "74", "Name": "input", "NameInRequest": "input", "Type": { @@ -654,7 +688,7 @@ ], "Responses": [ { - "$id": "71", + "$id": "75", "StatusCodes": [ 204 ], @@ -677,21 +711,21 @@ "Decorators": [] }, { - "$id": "72", + "$id": "76", "Name": "deleteModel", "ResourceName": "Visibility", "Accessibility": "public", "Parameters": [ { - "$id": "73", + "$id": "77", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "74", + "$id": "78", "kind": "constant", "valueType": { - "$id": "75", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -711,7 +745,7 @@ "SkipUrlEncoding": false }, { - "$id": "76", + "$id": "80", "Name": "input", "NameInRequest": "input", "Type": { @@ -730,7 +764,7 @@ ], "Responses": [ { - "$id": "77", + "$id": "81", "StatusCodes": [ 204 ], @@ -753,21 +787,21 @@ "Decorators": [] }, { - "$id": "78", + "$id": "82", "Name": "putReadOnlyModel", "ResourceName": "Visibility", "Accessibility": "public", "Parameters": [ { - "$id": "79", + "$id": "83", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "80", + "$id": "84", "kind": "constant", "valueType": { - "$id": "81", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -787,14 +821,14 @@ "SkipUrlEncoding": false }, { - "$id": "82", + "$id": "86", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "83", + "$id": "87", "kind": "constant", "valueType": { - "$id": "84", + "$id": "88", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -814,7 +848,7 @@ "SkipUrlEncoding": false }, { - "$id": "85", + "$id": "89", "Name": "input", "NameInRequest": "input", "Type": { @@ -833,7 +867,7 @@ ], "Responses": [ { - "$id": "86", + "$id": "90", "StatusCodes": [ 200 ], @@ -862,44 +896,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "87" - }, - "Parameters": [ - { - "$id": "88", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "89", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "90", - "Type": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Model.Visibility" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Model.Visibility" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json index 3de1e058e88..f36429ee4d1 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json @@ -2219,21 +2219,18 @@ "Clients": [ { "$id": "278", - "Name": "AdditionalPropertiesClient", - "Namespace": "Type.Property.AdditionalProperties", - "Doc": "Tests for additional properties of models", - "Operations": [], - "Protocol": { - "$id": "279" - }, - "Parameters": [ + "kind": "client", + "name": "AdditionalPropertiesClient", + "namespace": "Type.Property.AdditionalProperties", + "doc": "Tests for additional properties of models", + "parameters": [ { - "$id": "280", + "$id": "279", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "281", + "$id": "280", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2248,9 +2245,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "282", + "$id": "281", "Type": { - "$id": "283", + "$id": "282", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2259,5960 +2256,5963 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties" - }, - { - "$id": "284", - "Name": "ExtendsUnknown", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "285", - "Name": "get", - "ResourceName": "ExtendsUnknown", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties", + "children": [ + { + "$id": "283", + "kind": "client", + "name": "ExtendsUnknown", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "286", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "284", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "287", - "kind": "constant", - "valueType": { - "$id": "288", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "285", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "286", + "Type": { + "$id": "287", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "289", - "StatusCodes": [ - 200 + "$id": "288", + "Name": "get", + "ResourceName": "ExtendsUnknown", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "289", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "290", + "kind": "constant", + "valueType": { + "$id": "291", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "264" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "292", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "264" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordUnknown", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get", + "Decorators": [] + }, + { + "$id": "293", + "Name": "put", + "ResourceName": "ExtendsUnknown", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "294", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "295", + "kind": "constant", + "valueType": { + "$id": "296", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "297", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "264" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "298", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordUnknown", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordUnknown", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown", + "parent": { + "$ref": "278" + } }, { - "$id": "290", - "Name": "put", - "ResourceName": "ExtendsUnknown", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "291", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "292", - "kind": "constant", - "valueType": { - "$id": "293", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "299", + "kind": "client", + "name": "ExtendsUnknownDerived", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "294", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "300", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "264" + "$id": "301", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "302", + "Type": { + "$id": "303", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "304", + "Name": "get", + "ResourceName": "ExtendsUnknownDerived", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "305", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "306", + "kind": "constant", + "valueType": { + "$id": "307", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "308", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "263" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordUnknownDerived", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get", + "Decorators": [] + }, { - "$id": "295", - "StatusCodes": [ - 204 + "$id": "309", + "Name": "put", + "ResourceName": "ExtendsUnknownDerived", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "310", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "311", + "kind": "constant", + "valueType": { + "$id": "312", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "313", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "263" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "314", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordUnknownDerived", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordUnknown", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "296" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "297", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "298", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "299", - "Type": { - "$id": "300", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown" - }, - { - "$id": "301", - "Name": "ExtendsUnknownDerived", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "302", - "Name": "get", - "ResourceName": "ExtendsUnknownDerived", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "315", + "kind": "client", + "name": "ExtendsUnknownDiscriminated", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "303", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "316", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "304", - "kind": "constant", - "valueType": { - "$id": "305", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "317", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "318", + "Type": { + "$id": "319", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "320", + "Name": "get", + "ResourceName": "ExtendsUnknownDiscriminated", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "321", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "322", + "kind": "constant", + "valueType": { + "$id": "323", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "324", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "238" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsUnknownDiscriminated", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get", + "Decorators": [] + }, { - "$id": "306", - "StatusCodes": [ - 200 + "$id": "325", + "Name": "put", + "ResourceName": "ExtendsUnknownDiscriminated", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "326", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "327", + "kind": "constant", + "valueType": { + "$id": "328", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "329", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "238" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "263" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "330", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsUnknownDiscriminated", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordUnknownDerived", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated", + "parent": { + "$ref": "278" + } }, { - "$id": "307", - "Name": "put", - "ResourceName": "ExtendsUnknownDerived", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "331", + "kind": "client", + "name": "IsUnknown", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "308", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "332", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "309", - "kind": "constant", - "valueType": { - "$id": "310", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "333", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "334", + "Type": { + "$id": "335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "336", + "Name": "get", + "ResourceName": "IsUnknown", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "337", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "338", + "kind": "constant", + "valueType": { + "$id": "339", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "340", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "224" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordUnknown", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get", + "Decorators": [] }, { - "$id": "311", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "341", + "Name": "put", + "ResourceName": "IsUnknown", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "342", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "343", + "kind": "constant", + "valueType": { + "$id": "344", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "345", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "224" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "346", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordUnknown", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown", + "parent": { + "$ref": "278" + } + }, + { + "$id": "347", + "kind": "client", + "name": "IsUnknownDerived", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ + { + "$id": "348", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "263" + "$id": "349", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "350", + "Type": { + "$id": "351", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "312", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordUnknownDerived", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "313" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "314", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "315", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "316", - "Type": { - "$id": "317", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived" - }, - { - "$id": "318", - "Name": "ExtendsUnknownDiscriminated", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "319", - "Name": "get", - "ResourceName": "ExtendsUnknownDiscriminated", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "320", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "321", - "kind": "constant", - "valueType": { - "$id": "322", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "323", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "238" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsUnknownDiscriminated", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get", - "Decorators": [] - }, - { - "$id": "324", - "Name": "put", - "ResourceName": "ExtendsUnknownDiscriminated", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "325", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "326", - "kind": "constant", - "valueType": { - "$id": "327", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "328", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "238" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "329", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsUnknownDiscriminated", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "330" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "331", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "332", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "333", - "Type": { - "$id": "334", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated" - }, - { - "$id": "335", - "Name": "IsUnknown", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "336", - "Name": "get", - "ResourceName": "IsUnknown", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "337", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "338", - "kind": "constant", - "valueType": { - "$id": "339", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "340", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "224" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordUnknown", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get", - "Decorators": [] - }, - { - "$id": "341", - "Name": "put", - "ResourceName": "IsUnknown", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "342", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "343", - "kind": "constant", - "valueType": { - "$id": "344", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "345", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "224" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "346", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordUnknown", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "347" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "348", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "349", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "350", - "Type": { - "$id": "351", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown" - }, - { - "$id": "352", - "Name": "IsUnknownDerived", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "353", - "Name": "get", - "ResourceName": "IsUnknownDerived", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "354", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "355", - "kind": "constant", - "valueType": { - "$id": "356", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "357", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "223" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordUnknownDerived", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get", - "Decorators": [] - }, - { - "$id": "358", - "Name": "put", - "ResourceName": "IsUnknownDerived", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "359", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "360", - "kind": "constant", - "valueType": { - "$id": "361", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "362", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "223" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "363", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordUnknownDerived", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "364" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "365", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "366", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "367", - "Type": { - "$id": "368", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived" - }, - { - "$id": "369", - "Name": "IsUnknownDiscriminated", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "370", - "Name": "get", - "ResourceName": "IsUnknownDiscriminated", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "371", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "372", - "kind": "constant", - "valueType": { - "$id": "373", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "374", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "198" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isUnknownDiscriminated", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get", - "Decorators": [] - }, - { - "$id": "375", - "Name": "put", - "ResourceName": "IsUnknownDiscriminated", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "376", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "377", - "kind": "constant", - "valueType": { - "$id": "378", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "379", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "198" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "380", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isUnknownDiscriminated", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "381" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "382", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "383", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "384", - "Type": { - "$id": "385", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated" - }, - { - "$id": "386", - "Name": "ExtendsString", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "387", - "Name": "get", - "ResourceName": "ExtendsString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "388", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "389", - "kind": "constant", - "valueType": { - "$id": "390", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "391", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "192" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordString", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get", - "Decorators": [] - }, - { - "$id": "392", - "Name": "put", - "ResourceName": "ExtendsString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "393", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "394", - "kind": "constant", - "valueType": { - "$id": "395", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "396", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "192" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "397", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordString", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "398" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "399", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "400", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "401", - "Type": { - "$id": "402", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString" - }, - { - "$id": "403", - "Name": "IsString", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "404", - "Name": "get", - "ResourceName": "IsString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "405", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "406", - "kind": "constant", - "valueType": { - "$id": "407", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "408", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "186" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordstring", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get", - "Decorators": [] - }, - { - "$id": "409", - "Name": "put", - "ResourceName": "IsString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "410", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "411", - "kind": "constant", - "valueType": { - "$id": "412", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "413", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "186" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "414", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordstring", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "415" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "416", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "417", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "418", - "Type": { - "$id": "419", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString" - }, - { - "$id": "420", - "Name": "SpreadString", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "421", - "Name": "get", - "ResourceName": "SpreadString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "422", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "423", - "kind": "constant", - "valueType": { - "$id": "424", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "425", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "180" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordString", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get", - "Decorators": [] - }, - { - "$id": "426", - "Name": "put", - "ResourceName": "SpreadString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "427", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "428", - "kind": "constant", - "valueType": { - "$id": "429", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "430", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "180" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "431", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordString", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "432" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "433", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "434", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "435", - "Type": { - "$id": "436", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString" - }, - { - "$id": "437", - "Name": "ExtendsFloat", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "438", - "Name": "get", - "ResourceName": "ExtendsFloat", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "439", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "440", - "kind": "constant", - "valueType": { - "$id": "441", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "442", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "174" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordFloat", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get", - "Decorators": [] - }, - { - "$id": "443", - "Name": "put", - "ResourceName": "ExtendsFloat", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "444", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "445", - "kind": "constant", - "valueType": { - "$id": "446", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "447", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "174" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "448", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordFloat", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "449" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "450", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "451", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "452", - "Type": { - "$id": "453", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat" - }, - { - "$id": "454", - "Name": "IsFloat", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "455", - "Name": "get", - "ResourceName": "IsFloat", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "456", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "457", - "kind": "constant", - "valueType": { - "$id": "458", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "459", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "168" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordFloat", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get", - "Decorators": [] - }, - { - "$id": "460", - "Name": "put", - "ResourceName": "IsFloat", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "461", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "462", - "kind": "constant", - "valueType": { - "$id": "463", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "464", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "168" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "465", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordFloat", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "466" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "467", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "468", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "469", - "Type": { - "$id": "470", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat" - }, - { - "$id": "471", - "Name": "SpreadFloat", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "472", - "Name": "get", - "ResourceName": "SpreadFloat", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "473", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "474", - "kind": "constant", - "valueType": { - "$id": "475", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "476", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "162" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordFloat", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get", - "Decorators": [] - }, - { - "$id": "477", - "Name": "put", - "ResourceName": "SpreadFloat", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "478", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "479", - "kind": "constant", - "valueType": { - "$id": "480", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "481", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "162" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "482", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordFloat", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "483" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "484", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "485", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "486", - "Type": { - "$id": "487", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat" - }, - { - "$id": "488", - "Name": "ExtendsModel", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "489", - "Name": "get", - "ResourceName": "ExtendsModel", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "490", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "491", - "kind": "constant", - "valueType": { - "$id": "492", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "493", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "158" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get", - "Decorators": [] - }, - { - "$id": "494", - "Name": "put", - "ResourceName": "ExtendsModel", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "495", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "496", - "kind": "constant", - "valueType": { - "$id": "497", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "498", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "158" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "499", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordModel", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "500" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "501", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "502", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "503", - "Type": { - "$id": "504", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel" - }, - { - "$id": "505", - "Name": "IsModel", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "506", - "Name": "get", - "ResourceName": "IsModel", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "507", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "508", - "kind": "constant", - "valueType": { - "$id": "509", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "510", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "154" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get", - "Decorators": [] - }, - { - "$id": "511", - "Name": "put", - "ResourceName": "IsModel", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "512", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "513", - "kind": "constant", - "valueType": { - "$id": "514", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "515", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "154" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "516", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordModel", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "517" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "518", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "519", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "520", - "Type": { - "$id": "521", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel" - }, - { - "$id": "522", - "Name": "SpreadModel", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "523", - "Name": "get", - "ResourceName": "SpreadModel", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "524", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "525", - "kind": "constant", - "valueType": { - "$id": "526", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "527", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "150" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get", - "Decorators": [] - }, - { - "$id": "528", - "Name": "put", - "ResourceName": "SpreadModel", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "529", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "530", - "kind": "constant", - "valueType": { - "$id": "531", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "532", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "150" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "533", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordModel", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "534" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "535", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "536", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "537", - "Type": { - "$id": "538", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel" - }, - { - "$id": "539", - "Name": "ExtendsModelArray", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "540", - "Name": "get", - "ResourceName": "ExtendsModelArray", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "541", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "542", - "kind": "constant", - "valueType": { - "$id": "543", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "544", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "144" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordModelArray", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get", - "Decorators": [] - }, - { - "$id": "545", - "Name": "put", - "ResourceName": "ExtendsModelArray", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "546", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "547", - "kind": "constant", - "valueType": { - "$id": "548", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "549", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "144" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "550", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordModelArray", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "551" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "552", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "553", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "554", - "Type": { - "$id": "555", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray" - }, - { - "$id": "556", - "Name": "IsModelArray", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "557", - "Name": "get", - "ResourceName": "IsModelArray", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "558", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "559", - "kind": "constant", - "valueType": { - "$id": "560", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "561", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "138" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordModelArray", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get", - "Decorators": [] - }, - { - "$id": "562", - "Name": "put", - "ResourceName": "IsModelArray", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "563", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "564", - "kind": "constant", - "valueType": { - "$id": "565", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "566", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "138" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "567", - "StatusCodes": [ - 204 + "$id": "352", + "Name": "get", + "ResourceName": "IsUnknownDerived", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "353", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "354", + "kind": "constant", + "valueType": { + "$id": "355", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordModelArray", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "568" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "569", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "570", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "571", - "Type": { - "$id": "572", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "356", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "223" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordUnknownDerived", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray" - }, - { - "$id": "573", - "Name": "SpreadModelArray", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "574", - "Name": "get", - "ResourceName": "SpreadModelArray", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ { - "$id": "575", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "576", - "kind": "constant", - "valueType": { - "$id": "577", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "357", + "Name": "put", + "ResourceName": "IsUnknownDerived", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "358", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "359", + "kind": "constant", + "valueType": { + "$id": "360", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "578", - "StatusCodes": [ - 200 + { + "$id": "361", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "223" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "132" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "362", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordUnknownDerived", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordModelArray", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get", - "Decorators": [] - }, - { - "$id": "579", - "Name": "put", - "ResourceName": "SpreadModelArray", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "580", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "581", - "kind": "constant", - "valueType": { - "$id": "582", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "583", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "132" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "584", - "StatusCodes": [ - 204 ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordModelArray", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "585" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "586", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "587", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "588", - "Type": { - "$id": "589", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray" - }, - { - "$id": "590", - "Name": "SpreadDifferentString", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "591", - "Name": "get", - "ResourceName": "SpreadDifferentString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "363", + "kind": "client", + "name": "IsUnknownDiscriminated", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "592", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "364", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "593", - "kind": "constant", - "valueType": { - "$id": "594", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "365", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "595", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "122" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordString", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get", - "Decorators": [] - }, - { - "$id": "596", - "Name": "put", - "ResourceName": "SpreadDifferentString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "597", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "598", - "kind": "constant", - "valueType": { - "$id": "599", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "366", + "Type": { + "$id": "367", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "600", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "122" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "601", - "StatusCodes": [ - 204 + "$id": "368", + "Name": "get", + "ResourceName": "IsUnknownDiscriminated", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "369", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "370", + "kind": "constant", + "valueType": { + "$id": "371", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordString", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "602" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "603", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "604", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "605", - "Type": { - "$id": "606", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString" - }, - { - "$id": "607", - "Name": "SpreadDifferentFloat", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "608", - "Name": "get", - "ResourceName": "SpreadDifferentFloat", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "609", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "610", - "kind": "constant", - "valueType": { - "$id": "611", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "Responses": [ + { + "$id": "372", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "198" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isUnknownDiscriminated", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get", + "Decorators": [] + }, { - "$id": "612", - "StatusCodes": [ - 200 + "$id": "373", + "Name": "put", + "ResourceName": "IsUnknownDiscriminated", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "374", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "375", + "kind": "constant", + "valueType": { + "$id": "376", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "377", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "198" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "111" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "378", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isUnknownDiscriminated", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordFloat", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated", + "parent": { + "$ref": "278" + } }, { - "$id": "613", - "Name": "put", - "ResourceName": "SpreadDifferentFloat", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "614", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "615", - "kind": "constant", - "valueType": { - "$id": "616", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "379", + "kind": "client", + "name": "ExtendsString", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "617", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "380", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "111" + "$id": "381", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "382", + "Type": { + "$id": "383", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "384", + "Name": "get", + "ResourceName": "ExtendsString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "385", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "386", + "kind": "constant", + "valueType": { + "$id": "387", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "388", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "192" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordString", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get", + "Decorators": [] + }, { - "$id": "618", - "StatusCodes": [ - 204 + "$id": "389", + "Name": "put", + "ResourceName": "ExtendsString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "390", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "391", + "kind": "constant", + "valueType": { + "$id": "392", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "393", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "192" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "394", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordString", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordFloat", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "619" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "620", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "621", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "622", - "Type": { - "$id": "623", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat" - }, - { - "$id": "624", - "Name": "SpreadDifferentModel", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "625", - "Name": "get", - "ResourceName": "SpreadDifferentModel", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "395", + "kind": "client", + "name": "IsString", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "626", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "396", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "627", - "kind": "constant", - "valueType": { - "$id": "628", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "397", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "398", + "Type": { + "$id": "399", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "629", - "StatusCodes": [ - 200 + "$id": "400", + "Name": "get", + "ResourceName": "IsString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "401", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "402", + "kind": "constant", + "valueType": { + "$id": "403", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "102" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "404", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "186" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordstring", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get", + "Decorators": [] + }, + { + "$id": "405", + "Name": "put", + "ResourceName": "IsString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "406", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "407", + "kind": "constant", + "valueType": { + "$id": "408", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "409", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "186" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "410", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordstring", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString", + "parent": { + "$ref": "278" + } }, { - "$id": "630", - "Name": "put", - "ResourceName": "SpreadDifferentModel", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "631", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "632", - "kind": "constant", - "valueType": { - "$id": "633", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "411", + "kind": "client", + "name": "SpreadString", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "634", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "412", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "102" + "$id": "413", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "414", + "Type": { + "$id": "415", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "416", + "Name": "get", + "ResourceName": "SpreadString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "417", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "418", + "kind": "constant", + "valueType": { + "$id": "419", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "420", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "180" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordString", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get", + "Decorators": [] + }, { - "$id": "635", - "StatusCodes": [ - 204 + "$id": "421", + "Name": "put", + "ResourceName": "SpreadString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "422", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "423", + "kind": "constant", + "valueType": { + "$id": "424", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "425", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "180" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "426", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordString", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordModel", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "636" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "637", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "638", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "639", - "Type": { - "$id": "640", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel" - }, - { - "$id": "641", - "Name": "SpreadDifferentModelArray", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "642", - "Name": "get", - "ResourceName": "SpreadDifferentModelArray", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "427", + "kind": "client", + "name": "ExtendsFloat", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "643", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "428", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "644", - "kind": "constant", - "valueType": { - "$id": "645", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "429", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "430", + "Type": { + "$id": "431", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "646", - "StatusCodes": [ - 200 + "$id": "432", + "Name": "get", + "ResourceName": "ExtendsFloat", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "433", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "434", + "kind": "constant", + "valueType": { + "$id": "435", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "86" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "436", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "174" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordFloat", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get", + "Decorators": [] + }, + { + "$id": "437", + "Name": "put", + "ResourceName": "ExtendsFloat", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "438", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "439", + "kind": "constant", + "valueType": { + "$id": "440", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "441", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "174" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "442", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordFloat", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordModelArray", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat", + "parent": { + "$ref": "278" + } }, { - "$id": "647", - "Name": "put", - "ResourceName": "SpreadDifferentModelArray", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "648", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "649", - "kind": "constant", - "valueType": { - "$id": "650", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "443", + "kind": "client", + "name": "IsFloat", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "651", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "444", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "86" + "$id": "445", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "446", + "Type": { + "$id": "447", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "652", - "StatusCodes": [ - 204 + "$id": "448", + "Name": "get", + "ResourceName": "IsFloat", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "449", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "450", + "kind": "constant", + "valueType": { + "$id": "451", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "452", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "168" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordFloat", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get", + "Decorators": [] + }, + { + "$id": "453", + "Name": "put", + "ResourceName": "IsFloat", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "454", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "455", + "kind": "constant", + "valueType": { + "$id": "456", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "457", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "168" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "458", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordFloat", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordModelArray", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "653" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "654", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "655", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "656", - "Type": { - "$id": "657", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray" - }, - { - "$id": "658", - "Name": "ExtendsDifferentSpreadString", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "659", - "Name": "get", - "ResourceName": "ExtendsDifferentSpreadString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "459", + "kind": "client", + "name": "SpreadFloat", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "660", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "460", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "661", - "kind": "constant", - "valueType": { - "$id": "662", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "461", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "462", + "Type": { + "$id": "463", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "663", - "StatusCodes": [ - 200 + "$id": "464", + "Name": "get", + "ResourceName": "SpreadFloat", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "465", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "466", + "kind": "constant", + "valueType": { + "$id": "467", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "121" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "468", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "162" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordFloat", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get", + "Decorators": [] + }, + { + "$id": "469", + "Name": "put", + "ResourceName": "SpreadFloat", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "470", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "471", + "kind": "constant", + "valueType": { + "$id": "472", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "473", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "162" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "474", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordFloat", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadString", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat", + "parent": { + "$ref": "278" + } }, { - "$id": "664", - "Name": "put", - "ResourceName": "ExtendsDifferentSpreadString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "665", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "666", - "kind": "constant", - "valueType": { - "$id": "667", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "475", + "kind": "client", + "name": "ExtendsModel", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "668", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "476", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "121" + "$id": "477", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "478", + "Type": { + "$id": "479", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "669", - "StatusCodes": [ - 204 + "$id": "480", + "Name": "get", + "ResourceName": "ExtendsModel", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "481", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "482", + "kind": "constant", + "valueType": { + "$id": "483", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadString", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "670" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "671", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "672", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "673", - "Type": { - "$id": "674", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "484", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "158" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordModel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get", + "Decorators": [] }, - "Value": "http://localhost:3000" + { + "$id": "485", + "Name": "put", + "ResourceName": "ExtendsModel", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "486", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "487", + "kind": "constant", + "valueType": { + "$id": "488", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "489", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "158" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "490", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordModel", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString" - }, - { - "$id": "675", - "Name": "ExtendsDifferentSpreadFloat", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "676", - "Name": "get", - "ResourceName": "ExtendsDifferentSpreadFloat", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "491", + "kind": "client", + "name": "IsModel", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "677", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "492", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "678", - "kind": "constant", - "valueType": { - "$id": "679", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "493", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "494", + "Type": { + "$id": "495", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "496", + "Name": "get", + "ResourceName": "IsModel", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "497", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "498", + "kind": "constant", + "valueType": { + "$id": "499", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "500", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "154" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordModel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get", + "Decorators": [] + }, { - "$id": "680", - "StatusCodes": [ - 200 + "$id": "501", + "Name": "put", + "ResourceName": "IsModel", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "502", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "503", + "kind": "constant", + "valueType": { + "$id": "504", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "505", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "154" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "110" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "506", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordModel", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadFloat", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel", + "parent": { + "$ref": "278" + } }, { - "$id": "681", - "Name": "put", - "ResourceName": "ExtendsDifferentSpreadFloat", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "682", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "683", - "kind": "constant", - "valueType": { - "$id": "684", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "507", + "kind": "client", + "name": "SpreadModel", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "685", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "508", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "110" + "$id": "509", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "510", + "Type": { + "$id": "511", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "512", + "Name": "get", + "ResourceName": "SpreadModel", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "513", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "514", + "kind": "constant", + "valueType": { + "$id": "515", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "516", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "150" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordModel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get", + "Decorators": [] + }, { - "$id": "686", - "StatusCodes": [ - 204 + "$id": "517", + "Name": "put", + "ResourceName": "SpreadModel", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "518", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "519", + "kind": "constant", + "valueType": { + "$id": "520", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "521", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "150" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "522", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordModel", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadFloat", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "687" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "688", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "689", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "690", - "Type": { - "$id": "691", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat" - }, - { - "$id": "692", - "Name": "ExtendsDifferentSpreadModel", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "693", - "Name": "get", - "ResourceName": "ExtendsDifferentSpreadModel", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "523", + "kind": "client", + "name": "ExtendsModelArray", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "694", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "524", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "695", - "kind": "constant", - "valueType": { - "$id": "696", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "525", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "526", + "Type": { + "$id": "527", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "697", - "StatusCodes": [ - 200 + "$id": "528", + "Name": "get", + "ResourceName": "ExtendsModelArray", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "529", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "530", + "kind": "constant", + "valueType": { + "$id": "531", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "101" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "532", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "144" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordModelArray", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get", + "Decorators": [] + }, + { + "$id": "533", + "Name": "put", + "ResourceName": "ExtendsModelArray", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "534", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "535", + "kind": "constant", + "valueType": { + "$id": "536", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "537", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "144" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "538", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordModelArray", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray", + "parent": { + "$ref": "278" + } }, { - "$id": "698", - "Name": "put", - "ResourceName": "ExtendsDifferentSpreadModel", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "539", + "kind": "client", + "name": "IsModelArray", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "699", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "540", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "700", - "kind": "constant", - "valueType": { - "$id": "701", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "541", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "542", + "Type": { + "$id": "543", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "544", + "Name": "get", + "ResourceName": "IsModelArray", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "545", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "546", + "kind": "constant", + "valueType": { + "$id": "547", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "548", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "138" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordModelArray", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get", + "Decorators": [] }, { - "$id": "702", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "549", + "Name": "put", + "ResourceName": "IsModelArray", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "550", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "551", + "kind": "constant", + "valueType": { + "$id": "552", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "553", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "138" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "554", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordModelArray", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray", + "parent": { + "$ref": "278" + } + }, + { + "$id": "555", + "kind": "client", + "name": "SpreadModelArray", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ + { + "$id": "556", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "101" + "$id": "557", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "558", + "Type": { + "$id": "559", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "560", + "Name": "get", + "ResourceName": "SpreadModelArray", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "561", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "562", + "kind": "constant", + "valueType": { + "$id": "563", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "564", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "132" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordModelArray", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get", + "Decorators": [] + }, { - "$id": "703", - "StatusCodes": [ - 204 + "$id": "565", + "Name": "put", + "ResourceName": "SpreadModelArray", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "566", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "567", + "kind": "constant", + "valueType": { + "$id": "568", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "569", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "132" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "570", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordModelArray", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadModel", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "704" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "705", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "706", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "707", - "Type": { - "$id": "708", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel" - }, - { - "$id": "709", - "Name": "ExtendsDifferentSpreadModelArray", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "710", - "Name": "get", - "ResourceName": "ExtendsDifferentSpreadModelArray", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "571", + "kind": "client", + "name": "SpreadDifferentString", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "711", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "572", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "712", - "kind": "constant", - "valueType": { - "$id": "713", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "573", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "574", + "Type": { + "$id": "575", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "714", - "StatusCodes": [ - 200 + "$id": "576", + "Name": "get", + "ResourceName": "SpreadDifferentString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "577", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "578", + "kind": "constant", + "valueType": { + "$id": "579", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "85" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "580", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "122" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordString", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get", + "Decorators": [] + }, + { + "$id": "581", + "Name": "put", + "ResourceName": "SpreadDifferentString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "582", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "583", + "kind": "constant", + "valueType": { + "$id": "584", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "585", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "122" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "586", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordString", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadModelArray", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString", + "parent": { + "$ref": "278" + } }, { - "$id": "715", - "Name": "put", - "ResourceName": "ExtendsDifferentSpreadModelArray", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "716", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "717", - "kind": "constant", - "valueType": { - "$id": "718", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "587", + "kind": "client", + "name": "SpreadDifferentFloat", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "719", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "588", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "85" + "$id": "589", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "590", + "Type": { + "$id": "591", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "720", - "StatusCodes": [ - 204 + "$id": "592", + "Name": "get", + "ResourceName": "SpreadDifferentFloat", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "593", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "594", + "kind": "constant", + "valueType": { + "$id": "595", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "596", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "111" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordFloat", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get", + "Decorators": [] + }, + { + "$id": "597", + "Name": "put", + "ResourceName": "SpreadDifferentFloat", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "598", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "599", + "kind": "constant", + "valueType": { + "$id": "600", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "601", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "111" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "602", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordFloat", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadModelArray", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "721" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "722", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "723", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "724", - "Type": { - "$id": "725", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray" - }, - { - "$id": "726", - "Name": "MultipleSpread", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "727", - "Name": "get", - "ResourceName": "MultipleSpread", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "603", + "kind": "client", + "name": "SpreadDifferentModel", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "728", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "604", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "729", - "kind": "constant", - "valueType": { - "$id": "730", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "605", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "606", + "Type": { + "$id": "607", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "731", - "StatusCodes": [ - 200 + "$id": "608", + "Name": "get", + "ResourceName": "SpreadDifferentModel", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "609", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "610", + "kind": "constant", + "valueType": { + "$id": "611", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "77" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "612", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "102" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordModel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get", + "Decorators": [] + }, + { + "$id": "613", + "Name": "put", + "ResourceName": "SpreadDifferentModel", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "614", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "615", + "kind": "constant", + "valueType": { + "$id": "616", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "617", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "102" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "618", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordModel", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/multipleSpreadRecord", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel", + "parent": { + "$ref": "278" + } }, { - "$id": "732", - "Name": "put", - "ResourceName": "MultipleSpread", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "733", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "734", - "kind": "constant", - "valueType": { - "$id": "735", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "619", + "kind": "client", + "name": "SpreadDifferentModelArray", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "736", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "620", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "77" + "$id": "621", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "622", + "Type": { + "$id": "623", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "624", + "Name": "get", + "ResourceName": "SpreadDifferentModelArray", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "625", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "626", + "kind": "constant", + "valueType": { + "$id": "627", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "628", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "86" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordModelArray", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get", + "Decorators": [] + }, { - "$id": "737", - "StatusCodes": [ - 204 + "$id": "629", + "Name": "put", + "ResourceName": "SpreadDifferentModelArray", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "630", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "631", + "kind": "constant", + "valueType": { + "$id": "632", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "633", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "86" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "634", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordModelArray", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/multipleSpreadRecord", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "738" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "739", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "740", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "741", - "Type": { - "$id": "742", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread" - }, - { - "$id": "743", - "Name": "SpreadRecordUnion", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "744", - "Name": "get", - "ResourceName": "SpreadRecordUnion", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "635", + "kind": "client", + "name": "ExtendsDifferentSpreadString", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "745", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "636", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "746", - "kind": "constant", - "valueType": { - "$id": "747", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "637", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "638", + "Type": { + "$id": "639", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "748", - "StatusCodes": [ - 200 + "$id": "640", + "Name": "get", + "ResourceName": "ExtendsDifferentSpreadString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "641", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "642", + "kind": "constant", + "valueType": { + "$id": "643", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "69" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "644", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "121" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadString", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get", + "Decorators": [] + }, + { + "$id": "645", + "Name": "put", + "ResourceName": "ExtendsDifferentSpreadString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "646", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "647", + "kind": "constant", + "valueType": { + "$id": "648", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "649", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "121" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "650", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadString", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordUnion", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString", + "parent": { + "$ref": "278" + } }, { - "$id": "749", - "Name": "put", - "ResourceName": "SpreadRecordUnion", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "750", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "751", - "kind": "constant", - "valueType": { - "$id": "752", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "651", + "kind": "client", + "name": "ExtendsDifferentSpreadFloat", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "753", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "652", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "69" + "$id": "653", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "654", + "Type": { + "$id": "655", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "656", + "Name": "get", + "ResourceName": "ExtendsDifferentSpreadFloat", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "657", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "658", + "kind": "constant", + "valueType": { + "$id": "659", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "660", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "110" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadFloat", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get", + "Decorators": [] + }, { - "$id": "754", - "StatusCodes": [ - 204 + "$id": "661", + "Name": "put", + "ResourceName": "ExtendsDifferentSpreadFloat", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "662", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "663", + "kind": "constant", + "valueType": { + "$id": "664", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "665", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "110" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "666", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadFloat", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordUnion", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "755" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "756", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "757", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "758", - "Type": { - "$id": "759", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion" - }, - { - "$id": "760", - "Name": "SpreadRecordDiscriminatedUnion", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "761", - "Name": "get", - "ResourceName": "SpreadRecordDiscriminatedUnion", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "667", + "kind": "client", + "name": "ExtendsDifferentSpreadModel", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "762", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "668", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "763", - "kind": "constant", - "valueType": { - "$id": "764", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "669", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "670", + "Type": { + "$id": "671", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "672", + "Name": "get", + "ResourceName": "ExtendsDifferentSpreadModel", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "673", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "674", + "kind": "constant", + "valueType": { + "$id": "675", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "676", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "101" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadModel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get", + "Decorators": [] + }, { - "$id": "765", - "StatusCodes": [ - 200 + "$id": "677", + "Name": "put", + "ResourceName": "ExtendsDifferentSpreadModel", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "678", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "679", + "kind": "constant", + "valueType": { + "$id": "680", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "681", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "101" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "63" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "682", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadModel", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordDiscriminatedUnion", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel", + "parent": { + "$ref": "278" + } }, { - "$id": "766", - "Name": "put", - "ResourceName": "SpreadRecordDiscriminatedUnion", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "767", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "768", - "kind": "constant", - "valueType": { - "$id": "769", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "683", + "kind": "client", + "name": "ExtendsDifferentSpreadModelArray", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "770", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "684", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "63" + "$id": "685", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "686", + "Type": { + "$id": "687", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "688", + "Name": "get", + "ResourceName": "ExtendsDifferentSpreadModelArray", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "689", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "690", + "kind": "constant", + "valueType": { + "$id": "691", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "692", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "85" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadModelArray", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get", + "Decorators": [] + }, { - "$id": "771", - "StatusCodes": [ - 204 + "$id": "693", + "Name": "put", + "ResourceName": "ExtendsDifferentSpreadModelArray", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "694", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "695", + "kind": "constant", + "valueType": { + "$id": "696", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "697", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "85" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "698", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadModelArray", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordDiscriminatedUnion", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "772" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "773", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "774", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "775", - "Type": { - "$id": "776", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion" - }, - { - "$id": "777", - "Name": "SpreadRecordNonDiscriminatedUnion", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "778", - "Name": "get", - "ResourceName": "SpreadRecordNonDiscriminatedUnion", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "699", + "kind": "client", + "name": "MultipleSpread", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "779", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "700", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "780", - "kind": "constant", - "valueType": { - "$id": "781", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "701", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "702", + "Type": { + "$id": "703", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "704", + "Name": "get", + "ResourceName": "MultipleSpread", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "705", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "706", + "kind": "constant", + "valueType": { + "$id": "707", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "708", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "77" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/multipleSpreadRecord", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get", + "Decorators": [] + }, { - "$id": "782", - "StatusCodes": [ - 200 + "$id": "709", + "Name": "put", + "ResourceName": "MultipleSpread", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "710", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "711", + "kind": "constant", + "valueType": { + "$id": "712", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "713", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "77" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "48" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "714", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/multipleSpreadRecord", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread", + "parent": { + "$ref": "278" + } }, { - "$id": "783", - "Name": "put", - "ResourceName": "SpreadRecordNonDiscriminatedUnion", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "784", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "785", - "kind": "constant", - "valueType": { - "$id": "786", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "715", + "kind": "client", + "name": "SpreadRecordUnion", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "787", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "716", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "48" + "$id": "717", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "718", + "Type": { + "$id": "719", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "720", + "Name": "get", + "ResourceName": "SpreadRecordUnion", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "721", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "722", + "kind": "constant", + "valueType": { + "$id": "723", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "724", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "69" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordUnion", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get", + "Decorators": [] + }, { - "$id": "788", - "StatusCodes": [ - 204 + "$id": "725", + "Name": "put", + "ResourceName": "SpreadRecordUnion", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "726", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "727", + "kind": "constant", + "valueType": { + "$id": "728", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "729", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "69" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "730", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordUnion", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "789" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "790", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "791", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "792", - "Type": { - "$id": "793", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion" - }, - { - "$id": "794", - "Name": "SpreadRecordNonDiscriminatedUnion2", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "795", - "Name": "get", - "ResourceName": "SpreadRecordNonDiscriminatedUnion2", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "731", + "kind": "client", + "name": "SpreadRecordDiscriminatedUnion", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "796", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "732", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "797", - "kind": "constant", - "valueType": { - "$id": "798", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "733", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "734", + "Type": { + "$id": "735", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "799", - "StatusCodes": [ - 200 + "$id": "736", + "Name": "get", + "ResourceName": "SpreadRecordDiscriminatedUnion", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "737", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "738", + "kind": "constant", + "valueType": { + "$id": "739", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "42" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "740", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "63" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordDiscriminatedUnion", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion.get", + "Decorators": [] + }, + { + "$id": "741", + "Name": "put", + "ResourceName": "SpreadRecordDiscriminatedUnion", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "742", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "743", + "kind": "constant", + "valueType": { + "$id": "744", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "745", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "63" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "746", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordDiscriminatedUnion", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion2", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion", + "parent": { + "$ref": "278" + } }, { - "$id": "800", - "Name": "put", - "ResourceName": "SpreadRecordNonDiscriminatedUnion2", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "801", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "802", - "kind": "constant", - "valueType": { - "$id": "803", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "747", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "804", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "748", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "42" + "$id": "749", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "750", + "Type": { + "$id": "751", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "752", + "Name": "get", + "ResourceName": "SpreadRecordNonDiscriminatedUnion", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "753", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "754", + "kind": "constant", + "valueType": { + "$id": "755", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "756", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "48" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get", + "Decorators": [] + }, { - "$id": "805", - "StatusCodes": [ - 204 + "$id": "757", + "Name": "put", + "ResourceName": "SpreadRecordNonDiscriminatedUnion", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "758", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "759", + "kind": "constant", + "valueType": { + "$id": "760", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "761", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "48" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "762", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion2", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "806" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "807", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "808", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "809", - "Type": { - "$id": "810", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2" - }, - { - "$id": "811", - "Name": "SpreadRecordNonDiscriminatedUnion3", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "812", - "Name": "get", - "ResourceName": "SpreadRecordNonDiscriminatedUnion3", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "763", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion2", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "813", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "764", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "814", - "kind": "constant", - "valueType": { - "$id": "815", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "765", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "766", + "Type": { + "$id": "767", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "816", - "StatusCodes": [ - 200 + "$id": "768", + "Name": "get", + "ResourceName": "SpreadRecordNonDiscriminatedUnion2", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "769", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "770", + "kind": "constant", + "valueType": { + "$id": "771", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "11" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "772", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "42" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion2", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get", + "Decorators": [] + }, + { + "$id": "773", + "Name": "put", + "ResourceName": "SpreadRecordNonDiscriminatedUnion2", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "774", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "775", + "kind": "constant", + "valueType": { + "$id": "776", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "777", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "42" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "778", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion2", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion3", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2", + "parent": { + "$ref": "278" + } }, { - "$id": "817", - "Name": "put", - "ResourceName": "SpreadRecordNonDiscriminatedUnion3", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "818", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "819", - "kind": "constant", - "valueType": { - "$id": "820", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "779", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion3", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "821", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "780", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "11" + "$id": "781", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "782", + "Type": { + "$id": "783", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "784", + "Name": "get", + "ResourceName": "SpreadRecordNonDiscriminatedUnion3", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "785", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "786", + "kind": "constant", + "valueType": { + "$id": "787", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "788", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "11" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion3", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get", + "Decorators": [] + }, { - "$id": "822", - "StatusCodes": [ - 204 + "$id": "789", + "Name": "put", + "ResourceName": "SpreadRecordNonDiscriminatedUnion3", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "790", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "791", + "kind": "constant", + "valueType": { + "$id": "792", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "793", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "11" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "794", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion3", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion3", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "823" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "824", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "825", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "826", - "Type": { - "$id": "827", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3", + "parent": { + "$ref": "278" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json index 2a3c38252b1..38556f9000a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json @@ -579,21 +579,18 @@ "Clients": [ { "$id": "81", - "Name": "NullableClient", - "Namespace": "Type.Property.Nullable", - "Doc": "Illustrates models with nullable properties.", - "Operations": [], - "Protocol": { - "$id": "82" - }, - "Parameters": [ + "kind": "client", + "name": "NullableClient", + "namespace": "Type.Property.Nullable", + "doc": "Illustrates models with nullable properties.", + "parameters": [ { - "$id": "83", + "$id": "82", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "84", + "$id": "83", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -608,9 +605,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "85", + "$id": "84", "Type": { - "$id": "86", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -619,2276 +616,2279 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable" - }, - { - "$id": "87", - "Name": "String", - "Namespace": "Type.Property.Nullable", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable", + "children": [ { - "$id": "88", - "Name": "getNonNull", - "ResourceName": "String", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "89", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "86", + "kind": "client", + "name": "String", + "namespace": "Type.Property.Nullable", + "parameters": [ + { + "$id": "87", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "90", - "kind": "constant", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "88", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "89", + "Type": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "91", + "Name": "getNonNull", + "ResourceName": "String", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "92", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "93", + "kind": "constant", + "valueType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "95", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "71" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/string/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull", + "Decorators": [] + }, { - "$id": "92", - "StatusCodes": [ - 200 + "$id": "96", + "Name": "getNull", + "ResourceName": "String", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "97", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "98", + "kind": "constant", + "valueType": { + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "71" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] + "Responses": [ + { + "$id": "100", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "71" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/string/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.String.getNull", + "Decorators": [] + }, + { + "$id": "101", + "Name": "patchNonNull", + "ResourceName": "String", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "102", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "103", + "kind": "constant", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "105", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "71" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "106", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/string/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull", + "Decorators": [] + }, + { + "$id": "107", + "Name": "patchNull", + "ResourceName": "String", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "108", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "109", + "kind": "constant", + "valueType": { + "$id": "110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "111", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "71" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "112", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/string/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/string/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.String", + "parent": { + "$ref": "81" + } }, { - "$id": "93", - "Name": "getNull", - "ResourceName": "String", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ + "$id": "113", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.Nullable", + "parameters": [ { - "$id": "94", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "114", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "95", - "kind": "constant", - "valueType": { - "$id": "96", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "115", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "116", + "Type": { + "$id": "117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "97", - "StatusCodes": [ - 200 + "$id": "118", + "Name": "getNonNull", + "ResourceName": "Bytes", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "119", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "120", + "kind": "constant", + "valueType": { + "$id": "121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "71" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/string/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.String.getNull", - "Decorators": [] - }, - { - "$id": "98", - "Name": "patchNonNull", - "ResourceName": "String", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "122", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "61" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/bytes/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull", + "Decorators": [] + }, { - "$id": "99", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "100", - "kind": "constant", - "valueType": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "123", + "Name": "getNull", + "ResourceName": "Bytes", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "124", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "125", + "kind": "constant", + "valueType": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "127", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "61" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/bytes/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull", + "Decorators": [] }, { - "$id": "102", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "71" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "128", + "Name": "patchNonNull", + "ResourceName": "Bytes", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "129", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "130", + "kind": "constant", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "132", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "61" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "133", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/bytes/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull", + "Decorators": [] + }, { - "$id": "103", - "StatusCodes": [ - 204 + "$id": "134", + "Name": "patchNull", + "ResourceName": "Bytes", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "135", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "136", + "kind": "constant", + "valueType": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "138", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "61" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "139", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/bytes/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull", + "Decorators": [] } ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/string/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes", + "parent": { + "$ref": "81" + } }, { - "$id": "104", - "Name": "patchNull", - "ResourceName": "String", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "105", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "106", - "kind": "constant", - "valueType": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "108", - "Name": "body", - "NameInRequest": "body", + "$id": "140", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.Nullable", + "parameters": [ + { + "$id": "141", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "71" + "$id": "142", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "143", + "Type": { + "$id": "144", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "109", - "StatusCodes": [ - 204 + "$id": "145", + "Name": "getNonNull", + "ResourceName": "Datetime", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "146", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "147", + "kind": "constant", + "valueType": { + "$id": "148", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/string/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "110" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "111", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "112", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "113", - "Type": { - "$id": "114", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "149", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "50" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/datetime/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.String" - }, - { - "$id": "115", - "Name": "Bytes", - "Namespace": "Type.Property.Nullable", - "Operations": [ - { - "$id": "116", - "Name": "getNonNull", - "ResourceName": "Bytes", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ { - "$id": "117", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "118", - "kind": "constant", - "valueType": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "150", + "Name": "getNull", + "ResourceName": "Datetime", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "151", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "152", + "kind": "constant", + "valueType": { + "$id": "153", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "154", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "50" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/datetime/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull", + "Decorators": [] + }, + { + "$id": "155", + "Name": "patchNonNull", + "ResourceName": "Datetime", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "156", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "157", + "kind": "constant", + "valueType": { + "$id": "158", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + { + "$id": "159", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "50" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "160", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/datetime/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull", + "Decorators": [] + }, { - "$id": "120", - "StatusCodes": [ - 200 + "$id": "161", + "Name": "patchNull", + "ResourceName": "Datetime", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "162", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "163", + "kind": "constant", + "valueType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "165", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "50" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "61" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] + "Responses": [ + { + "$id": "166", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/datetime/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/bytes/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime", + "parent": { + "$ref": "81" + } }, { - "$id": "121", - "Name": "getNull", - "ResourceName": "Bytes", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "122", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "167", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.Nullable", + "parameters": [ + { + "$id": "168", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "123", - "kind": "constant", - "valueType": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "169", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "125", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "61" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/bytes/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull", - "Decorators": [] - }, - { - "$id": "126", - "Name": "patchNonNull", - "ResourceName": "Bytes", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "127", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "128", - "kind": "constant", - "valueType": { - "$id": "129", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "170", + "Type": { + "$id": "171", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "130", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "61" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "131", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/bytes/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull", - "Decorators": [] - }, - { - "$id": "132", - "Name": "patchNull", - "ResourceName": "Bytes", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "133", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "134", - "kind": "constant", - "valueType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "136", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "61" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "137", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/bytes/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "138" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "139", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "140", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "141", - "Type": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes" - }, - { - "$id": "143", - "Name": "Datetime", - "Namespace": "Type.Property.Nullable", - "Operations": [ - { - "$id": "144", - "Name": "getNonNull", - "ResourceName": "Datetime", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "145", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "146", - "kind": "constant", - "valueType": { - "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "148", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "50" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/datetime/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull", - "Decorators": [] - }, - { - "$id": "149", - "Name": "getNull", - "ResourceName": "Datetime", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "150", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "151", - "kind": "constant", - "valueType": { - "$id": "152", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "153", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "50" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/datetime/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull", - "Decorators": [] - }, - { - "$id": "154", - "Name": "patchNonNull", - "ResourceName": "Datetime", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "155", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "156", - "kind": "constant", - "valueType": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "158", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "50" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "159", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/datetime/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull", - "Decorators": [] - }, - { - "$id": "160", - "Name": "patchNull", - "ResourceName": "Datetime", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "161", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "162", - "kind": "constant", - "valueType": { - "$id": "163", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "164", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "50" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "165", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/datetime/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "166" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "167", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "168", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "169", - "Type": { - "$id": "170", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime" - }, - { - "$id": "171", - "Name": "Duration", - "Namespace": "Type.Property.Nullable", - "Operations": [ - { - "$id": "172", - "Name": "getNonNull", - "ResourceName": "Duration", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "173", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "174", - "kind": "constant", - "valueType": { - "$id": "175", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "176", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "39" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/duration/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull", - "Decorators": [] - }, - { - "$id": "177", - "Name": "getNull", - "ResourceName": "Duration", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "178", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "179", - "kind": "constant", - "valueType": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "181", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "39" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/duration/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull", - "Decorators": [] - }, - { - "$id": "182", - "Name": "patchNonNull", - "ResourceName": "Duration", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "183", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "184", - "kind": "constant", - "valueType": { - "$id": "185", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "186", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "39" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "187", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/duration/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull", - "Decorators": [] - }, - { - "$id": "188", - "Name": "patchNull", - "ResourceName": "Duration", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "189", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "190", - "kind": "constant", - "valueType": { - "$id": "191", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "192", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "39" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "193", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/duration/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "194" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "195", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "196", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "197", - "Type": { - "$id": "198", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration" - }, - { - "$id": "199", - "Name": "CollectionsByte", - "Namespace": "Type.Property.Nullable", - "Operations": [ - { - "$id": "200", - "Name": "getNonNull", - "ResourceName": "CollectionsByte", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "201", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "202", - "kind": "constant", - "valueType": { - "$id": "203", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "204", - "StatusCodes": [ - 200 + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "172", + "Name": "getNonNull", + "ResourceName": "Duration", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "173", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "174", + "kind": "constant", + "valueType": { + "$id": "175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "28" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/bytes/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull", - "Decorators": [] - }, - { - "$id": "205", - "Name": "getNull", - "ResourceName": "CollectionsByte", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "206", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "207", - "kind": "constant", - "valueType": { - "$id": "208", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "209", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "176", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "39" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyType": { - "$ref": "28" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/bytes/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull", - "Decorators": [] - }, - { - "$id": "210", - "Name": "patchNonNull", - "ResourceName": "CollectionsByte", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "211", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "212", - "kind": "constant", - "valueType": { - "$id": "213", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/duration/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull", + "Decorators": [] }, { - "$id": "214", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "28" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "215", - "StatusCodes": [ - 204 + "$id": "177", + "Name": "getNull", + "ResourceName": "Duration", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "178", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "179", + "kind": "constant", + "valueType": { + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/bytes/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull", - "Decorators": [] - }, - { - "$id": "216", - "Name": "patchNull", - "ResourceName": "CollectionsByte", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "217", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "218", - "kind": "constant", - "valueType": { - "$id": "219", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "220", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "28" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "221", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "181", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "39" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/bytes/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "222" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "223", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "224", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "225", - "Type": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/duration/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte" - }, - { - "$id": "227", - "Name": "CollectionsModel", - "Namespace": "Type.Property.Nullable", - "Operations": [ - { - "$id": "228", - "Name": "getNonNull", - "ResourceName": "CollectionsModel", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ { - "$id": "229", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "230", - "kind": "constant", - "valueType": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "182", + "Name": "patchNonNull", + "ResourceName": "Duration", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "183", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "184", + "kind": "constant", + "valueType": { + "$id": "185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "232", - "StatusCodes": [ - 200 + { + "$id": "186", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "39" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "13" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/model/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull", - "Decorators": [] - }, - { - "$id": "233", - "Name": "getNull", - "ResourceName": "CollectionsModel", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "234", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "235", - "kind": "constant", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "237", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "187", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyType": { - "$ref": "13" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/model/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull", - "Decorators": [] - }, - { - "$id": "238", - "Name": "patchNonNull", - "ResourceName": "CollectionsModel", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "239", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "242", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "13" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "243", - "StatusCodes": [ - 204 + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/duration/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/model/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull", - "Decorators": [] - }, - { - "$id": "244", - "Name": "patchNull", - "ResourceName": "CollectionsModel", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "245", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "246", - "kind": "constant", - "valueType": { - "$id": "247", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull", + "Decorators": [] }, { - "$id": "248", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "13" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "249", - "StatusCodes": [ - 204 + "$id": "188", + "Name": "patchNull", + "ResourceName": "Duration", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "189", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "190", + "kind": "constant", + "valueType": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "192", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "39" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "193", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/duration/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull", + "Decorators": [] } ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/model/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "250" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "251", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "252", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "253", - "Type": { - "$id": "254", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration", + "parent": { + "$ref": "81" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel" - }, - { - "$id": "255", - "Name": "CollectionsString", - "Namespace": "Type.Property.Nullable", - "Operations": [ + }, { - "$id": "256", - "Name": "getNonNull", - "ResourceName": "CollectionsString", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "257", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "194", + "kind": "client", + "name": "CollectionsByte", + "namespace": "Type.Property.Nullable", + "parameters": [ + { + "$id": "195", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "258", - "kind": "constant", - "valueType": { - "$id": "259", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "196", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "197", + "Type": { + "$id": "198", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "199", + "Name": "getNonNull", + "ResourceName": "CollectionsByte", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "200", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "201", + "kind": "constant", + "valueType": { + "$id": "202", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "203", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "28" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/bytes/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull", + "Decorators": [] + }, { - "$id": "260", - "StatusCodes": [ - 200 + "$id": "204", + "Name": "getNull", + "ResourceName": "CollectionsByte", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "205", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "206", + "kind": "constant", + "valueType": { + "$id": "207", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "2" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] + "Responses": [ + { + "$id": "208", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "28" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/bytes/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull", + "Decorators": [] + }, + { + "$id": "209", + "Name": "patchNonNull", + "ResourceName": "CollectionsByte", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "210", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "211", + "kind": "constant", + "valueType": { + "$id": "212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "213", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "28" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "214", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/bytes/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull", + "Decorators": [] + }, + { + "$id": "215", + "Name": "patchNull", + "ResourceName": "CollectionsByte", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "216", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "217", + "kind": "constant", + "valueType": { + "$id": "218", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "219", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "28" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "220", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/bytes/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/string/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte", + "parent": { + "$ref": "81" + } }, { - "$id": "261", - "Name": "getNull", - "ResourceName": "CollectionsString", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "262", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "221", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.Nullable", + "parameters": [ + { + "$id": "222", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "263", - "kind": "constant", - "valueType": { - "$id": "264", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "223", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "224", + "Type": { + "$id": "225", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "265", - "StatusCodes": [ - 200 + "$id": "226", + "Name": "getNonNull", + "ResourceName": "CollectionsModel", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "227", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "228", + "kind": "constant", + "valueType": { + "$id": "229", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "2" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/string/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull", - "Decorators": [] - }, - { - "$id": "266", - "Name": "patchNonNull", - "ResourceName": "CollectionsString", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "230", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "13" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/model/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull", + "Decorators": [] + }, { - "$id": "267", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "268", - "kind": "constant", - "valueType": { - "$id": "269", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "231", + "Name": "getNull", + "ResourceName": "CollectionsModel", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "232", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "233", + "kind": "constant", + "valueType": { + "$id": "234", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "235", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "13" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/model/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull", + "Decorators": [] }, { - "$id": "270", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "236", + "Name": "patchNonNull", + "ResourceName": "CollectionsModel", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "237", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "238", + "kind": "constant", + "valueType": { + "$id": "239", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "240", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "13" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "241", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/model/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull", + "Decorators": [] + }, { - "$id": "271", - "StatusCodes": [ - 204 + "$id": "242", + "Name": "patchNull", + "ResourceName": "CollectionsModel", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "243", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "244", + "kind": "constant", + "valueType": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "246", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "13" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "247", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/model/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull", + "Decorators": [] } ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/string/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel", + "parent": { + "$ref": "81" + } }, { - "$id": "272", - "Name": "patchNull", - "ResourceName": "CollectionsString", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ + "$id": "248", + "kind": "client", + "name": "CollectionsString", + "namespace": "Type.Property.Nullable", + "parameters": [ { - "$id": "273", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", + "$id": "249", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "274", - "kind": "constant", - "valueType": { - "$id": "275", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] + "$id": "250", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "251", + "Type": { + "$id": "252", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "253", + "Name": "getNonNull", + "ResourceName": "CollectionsString", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "254", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "255", + "kind": "constant", + "valueType": { + "$id": "256", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "257", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/string/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull", + "Decorators": [] }, { - "$id": "276", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "258", + "Name": "getNull", + "ResourceName": "CollectionsString", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "259", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "260", + "kind": "constant", + "valueType": { + "$id": "261", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "262", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/string/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull", + "Decorators": [] + }, + { + "$id": "263", + "Name": "patchNonNull", + "ResourceName": "CollectionsString", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "264", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "265", + "kind": "constant", + "valueType": { + "$id": "266", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "267", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "268", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/string/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull", + "Decorators": [] + }, { - "$id": "277", - "StatusCodes": [ - 204 + "$id": "269", + "Name": "patchNull", + "ResourceName": "CollectionsString", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "270", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "271", + "kind": "constant", + "valueType": { + "$id": "272", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "273", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "274", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/string/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull", + "Decorators": [] } ], - "HttpMethod": "PATCH", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/string/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "278" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "279", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "280", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "281", - "Type": { - "$id": "282", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString", + "parent": { + "$ref": "81" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json index 0c7c2d69bac..2d9caad28b6 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json @@ -952,21 +952,18 @@ "Clients": [ { "$id": "114", - "Name": "OptionalClient", - "Namespace": "Type.Property.Optional", - "Doc": "Illustrates models with optional properties.", - "Operations": [], - "Protocol": { - "$id": "115" - }, - "Parameters": [ + "kind": "client", + "name": "OptionalClient", + "namespace": "Type.Property.Optional", + "doc": "Illustrates models with optional properties.", + "parameters": [ { - "$id": "116", + "$id": "115", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "117", + "$id": "116", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -981,9 +978,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "118", + "$id": "117", "Type": { - "$id": "119", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -992,5193 +989,5196 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional" - }, - { - "$id": "120", - "Name": "String", - "Namespace": "Type.Property.Optional", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional", + "children": [ { - "$id": "121", - "Name": "getAll", - "ResourceName": "String", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "122", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "119", + "kind": "client", + "name": "String", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "120", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "123", - "kind": "constant", - "valueType": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "121", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "125", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "74" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.String.getAll", - "Decorators": [] - }, - { - "$id": "126", - "Name": "getDefault", - "ResourceName": "String", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "127", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "128", - "kind": "constant", - "valueType": { - "$id": "129", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "122", + "Type": { + "$id": "123", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "130", - "StatusCodes": [ - 200 + "$id": "124", + "Name": "getAll", + "ResourceName": "String", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "125", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "126", + "kind": "constant", + "valueType": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "74" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.String.getDefault", - "Decorators": [] - }, - { - "$id": "131", - "Name": "putAll", - "ResourceName": "String", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "132", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "133", - "kind": "constant", - "valueType": { - "$id": "134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "128", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "74" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.String.getAll", + "Decorators": [] }, { - "$id": "135", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "74" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "136", - "StatusCodes": [ - 204 + "$id": "129", + "Name": "getDefault", + "ResourceName": "String", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "130", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "131", + "kind": "constant", + "valueType": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.String.putAll", - "Decorators": [] - }, - { - "$id": "137", - "Name": "putDefault", - "ResourceName": "String", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "133", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "74" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.String.getDefault", + "Decorators": [] + }, { - "$id": "138", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "139", - "kind": "constant", - "valueType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "134", + "Name": "putAll", + "ResourceName": "String", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "135", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "136", + "kind": "constant", + "valueType": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "138", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "74" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "139", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.String.putAll", + "Decorators": [] }, { - "$id": "141", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "74" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "142", - "StatusCodes": [ - 204 + "$id": "140", + "Name": "putDefault", + "ResourceName": "String", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "141", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "142", + "kind": "constant", + "valueType": { + "$id": "143", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "144", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "74" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "145", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.String.putDefault", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.String.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "143" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "144", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "145", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "146", - "Type": { - "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.String", + "parent": { + "$ref": "114" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.String" - }, - { - "$id": "148", - "Name": "Bytes", - "Namespace": "Type.Property.Optional", - "Operations": [ + }, { - "$id": "149", - "Name": "getAll", - "ResourceName": "Bytes", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ + "$id": "146", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.Optional", + "parameters": [ { - "$id": "150", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "147", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "151", - "kind": "constant", - "valueType": { - "$id": "152", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "148", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "149", + "Type": { + "$id": "150", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "153", - "StatusCodes": [ - 200 + "$id": "151", + "Name": "getAll", + "ResourceName": "Bytes", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "152", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "153", + "kind": "constant", + "valueType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "109" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/bytes/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll", - "Decorators": [] - }, - { - "$id": "154", - "Name": "getDefault", - "ResourceName": "Bytes", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "155", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "109" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/bytes/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll", + "Decorators": [] + }, { - "$id": "155", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "156", - "kind": "constant", - "valueType": { + "$id": "156", + "Name": "getDefault", + "ResourceName": "Bytes", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "158", + "kind": "constant", + "valueType": { + "$id": "159", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "160", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "109" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/bytes/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault", + "Decorators": [] + }, + { + "$id": "161", + "Name": "putAll", + "ResourceName": "Bytes", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "162", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "163", + "kind": "constant", + "valueType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + { + "$id": "165", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "109" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "166", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/bytes/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll", + "Decorators": [] + }, { - "$id": "158", - "StatusCodes": [ - 200 + "$id": "167", + "Name": "putDefault", + "ResourceName": "Bytes", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "168", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "169", + "kind": "constant", + "valueType": { + "$id": "170", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "171", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "109" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "109" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "172", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/bytes/default", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/bytes/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes", + "parent": { + "$ref": "114" + } }, { - "$id": "159", - "Name": "putAll", - "ResourceName": "Bytes", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "160", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "161", - "kind": "constant", - "valueType": { - "$id": "162", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "163", - "Name": "body", - "NameInRequest": "body", + "$id": "173", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "174", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "109" + "$id": "175", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "176", + "Type": { + "$id": "177", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "164", - "StatusCodes": [ - 204 + "$id": "178", + "Name": "getAll", + "ResourceName": "Datetime", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "179", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "180", + "kind": "constant", + "valueType": { + "$id": "181", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/bytes/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll", - "Decorators": [] - }, - { - "$id": "165", - "Name": "putDefault", - "ResourceName": "Bytes", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "182", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "103" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/datetime/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll", + "Decorators": [] + }, { - "$id": "166", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "167", - "kind": "constant", - "valueType": { - "$id": "168", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "183", + "Name": "getDefault", + "ResourceName": "Datetime", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "184", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "185", + "kind": "constant", + "valueType": { + "$id": "186", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "187", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "103" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/datetime/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault", + "Decorators": [] }, { - "$id": "169", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "109" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "188", + "Name": "putAll", + "ResourceName": "Datetime", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "189", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "190", + "kind": "constant", + "valueType": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "192", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "103" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "193", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/datetime/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll", + "Decorators": [] + }, { - "$id": "170", - "StatusCodes": [ - 204 + "$id": "194", + "Name": "putDefault", + "ResourceName": "Datetime", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "195", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "196", + "kind": "constant", + "valueType": { + "$id": "197", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "198", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "103" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "199", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/datetime/default", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/bytes/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "171" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "172", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "173", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "174", - "Type": { - "$id": "175", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime", + "parent": { + "$ref": "114" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes" - }, - { - "$id": "176", - "Name": "Datetime", - "Namespace": "Type.Property.Optional", - "Operations": [ + }, { - "$id": "177", - "Name": "getAll", - "ResourceName": "Datetime", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "178", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "200", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "201", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "179", - "kind": "constant", - "valueType": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "202", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "203", + "Type": { + "$id": "204", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "181", - "StatusCodes": [ - 200 + "$id": "205", + "Name": "getAll", + "ResourceName": "Duration", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "206", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "207", + "kind": "constant", + "valueType": { + "$id": "208", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "103" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "209", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "97" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/duration/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll", + "Decorators": [] + }, + { + "$id": "210", + "Name": "getDefault", + "ResourceName": "Duration", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "211", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "212", + "kind": "constant", + "valueType": { + "$id": "213", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "214", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "97" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/duration/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault", + "Decorators": [] + }, + { + "$id": "215", + "Name": "putAll", + "ResourceName": "Duration", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "216", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "217", + "kind": "constant", + "valueType": { + "$id": "218", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "219", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "97" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "220", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/duration/all", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll", + "Decorators": [] + }, + { + "$id": "221", + "Name": "putDefault", + "ResourceName": "Duration", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "222", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "223", + "kind": "constant", + "valueType": { + "$id": "224", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "225", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "97" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "226", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/duration/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/datetime/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Duration", + "parent": { + "$ref": "114" + } }, { - "$id": "182", - "Name": "getDefault", - "ResourceName": "Datetime", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "183", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "227", + "kind": "client", + "name": "PlainDate", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "228", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "184", - "kind": "constant", - "valueType": { - "$id": "185", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "229", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "230", + "Type": { + "$id": "231", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "186", - "StatusCodes": [ - 200 + "$id": "232", + "Name": "getAll", + "ResourceName": "PlainDate", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "233", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "234", + "kind": "constant", + "valueType": { + "$id": "235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "103" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "236", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "92" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainDate/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll", + "Decorators": [] + }, + { + "$id": "237", + "Name": "getDefault", + "ResourceName": "PlainDate", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "238", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "239", + "kind": "constant", + "valueType": { + "$id": "240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "241", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "92" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainDate/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault", + "Decorators": [] + }, + { + "$id": "242", + "Name": "putAll", + "ResourceName": "PlainDate", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "243", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "244", + "kind": "constant", + "valueType": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "246", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "92" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "247", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainDate/all", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll", + "Decorators": [] + }, + { + "$id": "248", + "Name": "putDefault", + "ResourceName": "PlainDate", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "249", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "250", + "kind": "constant", + "valueType": { + "$id": "251", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "252", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "92" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "253", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainDate/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/datetime/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate", + "parent": { + "$ref": "114" + } }, { - "$id": "187", - "Name": "putAll", - "ResourceName": "Datetime", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "188", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "189", - "kind": "constant", - "valueType": { - "$id": "190", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "191", - "Name": "body", - "NameInRequest": "body", + "$id": "254", + "kind": "client", + "name": "PlainTime", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "255", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "103" + "$id": "256", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "257", + "Type": { + "$id": "258", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "192", - "StatusCodes": [ - 204 + "$id": "259", + "Name": "getAll", + "ResourceName": "PlainTime", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "260", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "261", + "kind": "constant", + "valueType": { + "$id": "262", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/datetime/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll", - "Decorators": [] - }, - { - "$id": "193", - "Name": "putDefault", - "ResourceName": "Datetime", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "263", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "87" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainTime/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll", + "Decorators": [] + }, { - "$id": "194", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "195", - "kind": "constant", - "valueType": { - "$id": "196", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "264", + "Name": "getDefault", + "ResourceName": "PlainTime", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "265", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "266", + "kind": "constant", + "valueType": { + "$id": "267", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "268", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "87" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainTime/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault", + "Decorators": [] }, { - "$id": "197", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "103" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "269", + "Name": "putAll", + "ResourceName": "PlainTime", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "270", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "271", + "kind": "constant", + "valueType": { + "$id": "272", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "273", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "87" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "274", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainTime/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll", + "Decorators": [] + }, { - "$id": "198", - "StatusCodes": [ - 204 + "$id": "275", + "Name": "putDefault", + "ResourceName": "PlainTime", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "276", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "277", + "kind": "constant", + "valueType": { + "$id": "278", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "279", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "87" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "280", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainTime/default", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/datetime/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "199" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "200", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "201", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "202", - "Type": { - "$id": "203", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime", + "parent": { + "$ref": "114" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime" - }, - { - "$id": "204", - "Name": "Duration", - "Namespace": "Type.Property.Optional", - "Operations": [ + }, { - "$id": "205", - "Name": "getAll", - "ResourceName": "Duration", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ + "$id": "281", + "kind": "client", + "name": "CollectionsByte", + "namespace": "Type.Property.Optional", + "parameters": [ { - "$id": "206", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "282", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "207", - "kind": "constant", - "valueType": { - "$id": "208", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "283", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "284", + "Type": { + "$id": "285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "209", - "StatusCodes": [ - 200 + "$id": "286", + "Name": "getAll", + "ResourceName": "CollectionsByte", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "287", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "288", + "kind": "constant", + "valueType": { + "$id": "289", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "97" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "290", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "81" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/bytes/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll", + "Decorators": [] + }, + { + "$id": "291", + "Name": "getDefault", + "ResourceName": "CollectionsByte", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "292", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "293", + "kind": "constant", + "valueType": { + "$id": "294", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "295", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "81" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/bytes/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault", + "Decorators": [] + }, + { + "$id": "296", + "Name": "putAll", + "ResourceName": "CollectionsByte", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "297", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "298", + "kind": "constant", + "valueType": { + "$id": "299", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "300", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "81" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "301", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/bytes/all", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll", + "Decorators": [] + }, + { + "$id": "302", + "Name": "putDefault", + "ResourceName": "CollectionsByte", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "303", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "304", + "kind": "constant", + "valueType": { + "$id": "305", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "306", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "81" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "307", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/bytes/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/duration/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte", + "parent": { + "$ref": "114" + } }, { - "$id": "210", - "Name": "getDefault", - "ResourceName": "Duration", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ + "$id": "308", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.Optional", + "parameters": [ { - "$id": "211", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "309", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "212", - "kind": "constant", - "valueType": { - "$id": "213", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "310", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "311", + "Type": { + "$id": "312", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "214", - "StatusCodes": [ - 200 + "$id": "313", + "Name": "getAll", + "ResourceName": "CollectionsModel", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "314", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "315", + "kind": "constant", + "valueType": { + "$id": "316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "97" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/duration/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault", - "Decorators": [] - }, - { - "$id": "215", - "Name": "putAll", - "ResourceName": "Duration", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "317", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "71" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/model/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll", + "Decorators": [] + }, { - "$id": "216", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "217", - "kind": "constant", - "valueType": { - "$id": "218", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "318", + "Name": "getDefault", + "ResourceName": "CollectionsModel", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "319", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "320", + "kind": "constant", + "valueType": { + "$id": "321", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "322", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "71" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/model/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault", + "Decorators": [] }, { - "$id": "219", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "97" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "323", + "Name": "putAll", + "ResourceName": "CollectionsModel", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "324", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "325", + "kind": "constant", + "valueType": { + "$id": "326", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "327", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "71" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "328", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/model/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll", + "Decorators": [] + }, { - "$id": "220", - "StatusCodes": [ - 204 + "$id": "329", + "Name": "putDefault", + "ResourceName": "CollectionsModel", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "330", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "331", + "kind": "constant", + "valueType": { + "$id": "332", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "333", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "71" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "334", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/model/default", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/duration/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel", + "parent": { + "$ref": "114" + } }, { - "$id": "221", - "Name": "putDefault", - "ResourceName": "Duration", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "222", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "223", - "kind": "constant", - "valueType": { - "$id": "224", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "225", - "Name": "body", - "NameInRequest": "body", + "$id": "335", + "kind": "client", + "name": "StringLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "336", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "97" + "$id": "337", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "338", + "Type": { + "$id": "339", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "226", - "StatusCodes": [ - 204 + "$id": "340", + "Name": "getAll", + "ResourceName": "StringLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "341", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "342", + "kind": "constant", + "valueType": { + "$id": "343", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/duration/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "227" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "228", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "229", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "230", - "Type": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "344", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "66" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.Duration" - }, - { - "$id": "232", - "Name": "PlainDate", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "233", - "Name": "getAll", - "ResourceName": "PlainDate", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ { - "$id": "234", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "235", - "kind": "constant", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "345", + "Name": "getDefault", + "ResourceName": "StringLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "346", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "347", + "kind": "constant", + "valueType": { + "$id": "348", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "349", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "66" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault", + "Decorators": [] + }, + { + "$id": "350", + "Name": "putAll", + "ResourceName": "StringLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "351", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "352", + "kind": "constant", + "valueType": { + "$id": "353", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + { + "$id": "354", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "66" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "355", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/literal/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll", + "Decorators": [] + }, { - "$id": "237", - "StatusCodes": [ - 200 + "$id": "356", + "Name": "putDefault", + "ResourceName": "StringLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "357", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "358", + "kind": "constant", + "valueType": { + "$id": "359", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "360", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "66" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "92" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "361", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/literal/default", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainDate/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral", + "parent": { + "$ref": "114" + } }, { - "$id": "238", - "Name": "getDefault", - "ResourceName": "PlainDate", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "239", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "362", + "kind": "client", + "name": "IntLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "363", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "364", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "365", + "Type": { + "$id": "366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "242", - "StatusCodes": [ - 200 + "$id": "367", + "Name": "getAll", + "ResourceName": "IntLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "368", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "369", + "kind": "constant", + "valueType": { + "$id": "370", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "92" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "371", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "61" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/int/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll", + "Decorators": [] + }, + { + "$id": "372", + "Name": "getDefault", + "ResourceName": "IntLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "373", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "374", + "kind": "constant", + "valueType": { + "$id": "375", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "376", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "61" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/int/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault", + "Decorators": [] + }, + { + "$id": "377", + "Name": "putAll", + "ResourceName": "IntLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "378", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "379", + "kind": "constant", + "valueType": { + "$id": "380", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "381", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "61" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "382", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/int/literal/all", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll", + "Decorators": [] + }, + { + "$id": "383", + "Name": "putDefault", + "ResourceName": "IntLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "384", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "385", + "kind": "constant", + "valueType": { + "$id": "386", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "387", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "61" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "388", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/int/literal/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainDate/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral", + "parent": { + "$ref": "114" + } }, { - "$id": "243", - "Name": "putAll", - "ResourceName": "PlainDate", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "244", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "245", - "kind": "constant", - "valueType": { - "$id": "246", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "389", + "kind": "client", + "name": "FloatLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ { - "$id": "247", - "Name": "body", - "NameInRequest": "body", + "$id": "390", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "92" + "$id": "391", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "392", + "Type": { + "$id": "393", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "248", - "StatusCodes": [ - 204 + "$id": "394", + "Name": "getAll", + "ResourceName": "FloatLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "395", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "396", + "kind": "constant", + "valueType": { + "$id": "397", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainDate/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll", - "Decorators": [] - }, - { - "$id": "249", - "Name": "putDefault", - "ResourceName": "PlainDate", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "398", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "56" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/float/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll", + "Decorators": [] + }, { - "$id": "250", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "251", - "kind": "constant", - "valueType": { - "$id": "252", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "399", + "Name": "getDefault", + "ResourceName": "FloatLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "400", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "401", + "kind": "constant", + "valueType": { + "$id": "402", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "403", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "56" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/float/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault", + "Decorators": [] + }, + { + "$id": "404", + "Name": "putAll", + "ResourceName": "FloatLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "405", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "406", + "kind": "constant", + "valueType": { + "$id": "407", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "408", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "56" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "409", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/float/literal/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll", + "Decorators": [] }, { - "$id": "253", - "Name": "body", - "NameInRequest": "body", + "$id": "410", + "Name": "putDefault", + "ResourceName": "FloatLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "411", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "412", + "kind": "constant", + "valueType": { + "$id": "413", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "414", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "56" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "415", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/float/literal/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral", + "parent": { + "$ref": "114" + } + }, + { + "$id": "416", + "kind": "client", + "name": "BooleanLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "417", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "92" + "$id": "418", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "419", + "Type": { + "$id": "420", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "254", - "StatusCodes": [ - 204 + "$id": "421", + "Name": "getAll", + "ResourceName": "BooleanLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "422", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "423", + "kind": "constant", + "valueType": { + "$id": "424", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainDate/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "255" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "256", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "257", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "258", - "Type": { - "$id": "259", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "425", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "50" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/boolean/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate" - }, - { - "$id": "260", - "Name": "PlainTime", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "261", - "Name": "getAll", - "ResourceName": "PlainTime", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ { - "$id": "262", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "263", - "kind": "constant", - "valueType": { - "$id": "264", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "426", + "Name": "getDefault", + "ResourceName": "BooleanLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "427", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "428", + "kind": "constant", + "valueType": { + "$id": "429", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "430", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "50" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/boolean/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault", + "Decorators": [] + }, { - "$id": "265", - "StatusCodes": [ - 200 + "$id": "431", + "Name": "putAll", + "ResourceName": "BooleanLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "432", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "433", + "kind": "constant", + "valueType": { + "$id": "434", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "435", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "50" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "87" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "436", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/boolean/literal/all", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainTime/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll", - "Decorators": [] - }, - { - "$id": "266", - "Name": "getDefault", - "ResourceName": "PlainTime", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll", + "Decorators": [] + }, { - "$id": "267", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "268", - "kind": "constant", - "valueType": { - "$id": "269", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "437", + "Name": "putDefault", + "ResourceName": "BooleanLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "438", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "439", + "kind": "constant", + "valueType": { + "$id": "440", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "270", - "StatusCodes": [ - 200 + { + "$id": "441", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "50" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "87" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "442", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/boolean/literal/default", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainTime/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral", + "parent": { + "$ref": "114" + } }, { - "$id": "271", - "Name": "putAll", - "ResourceName": "PlainTime", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "272", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "273", - "kind": "constant", - "valueType": { - "$id": "274", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "443", + "kind": "client", + "name": "UnionStringLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ { - "$id": "275", - "Name": "body", - "NameInRequest": "body", + "$id": "444", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "87" + "$id": "445", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "276", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainTime/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll", - "Decorators": [] - }, - { - "$id": "277", - "Name": "putDefault", - "ResourceName": "PlainTime", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "278", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "279", - "kind": "constant", - "valueType": { - "$id": "280", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "446", + "Type": { + "$id": "447", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "281", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "87" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "282", - "StatusCodes": [ - 204 + "$id": "448", + "Name": "getAll", + "ResourceName": "UnionStringLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "449", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "450", + "kind": "constant", + "valueType": { + "$id": "451", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainTime/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "283" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "284", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "285", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "286", - "Type": { - "$id": "287", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "452", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "46" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/string/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime" - }, - { - "$id": "288", - "Name": "CollectionsByte", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "289", - "Name": "getAll", - "ResourceName": "CollectionsByte", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "290", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "291", - "kind": "constant", - "valueType": { - "$id": "292", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ { - "$id": "293", - "StatusCodes": [ - 200 + "$id": "453", + "Name": "getDefault", + "ResourceName": "UnionStringLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "454", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "455", + "kind": "constant", + "valueType": { + "$id": "456", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "81" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/bytes/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll", - "Decorators": [] - }, - { - "$id": "294", - "Name": "getDefault", - "ResourceName": "CollectionsByte", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "457", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "46" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/string/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault", + "Decorators": [] + }, { - "$id": "295", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "296", - "kind": "constant", - "valueType": { - "$id": "297", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "458", + "Name": "putAll", + "ResourceName": "UnionStringLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "459", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "460", + "kind": "constant", + "valueType": { + "$id": "461", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "298", - "StatusCodes": [ - 200 + { + "$id": "462", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "46" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "81" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "463", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/string/literal/all", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/bytes/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault", - "Decorators": [] - }, - { - "$id": "299", - "Name": "putAll", - "ResourceName": "CollectionsByte", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "300", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "301", - "kind": "constant", - "valueType": { - "$id": "302", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll", + "Decorators": [] }, { - "$id": "303", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "81" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "304", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/bytes/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll", - "Decorators": [] - }, - { - "$id": "305", - "Name": "putDefault", - "ResourceName": "CollectionsByte", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "306", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "307", - "kind": "constant", - "valueType": { - "$id": "308", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "309", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "81" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "310", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/bytes/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "311" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "312", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "313", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "314", - "Type": { - "$id": "315", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte" - }, - { - "$id": "316", - "Name": "CollectionsModel", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "317", - "Name": "getAll", - "ResourceName": "CollectionsModel", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "318", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "319", - "kind": "constant", - "valueType": { - "$id": "320", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "321", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "71" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/model/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll", - "Decorators": [] - }, - { - "$id": "322", - "Name": "getDefault", - "ResourceName": "CollectionsModel", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "323", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "324", - "kind": "constant", - "valueType": { - "$id": "325", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "326", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "71" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/model/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault", - "Decorators": [] - }, - { - "$id": "327", - "Name": "putAll", - "ResourceName": "CollectionsModel", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "328", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "329", - "kind": "constant", - "valueType": { - "$id": "330", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "331", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "71" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "332", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/model/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll", - "Decorators": [] - }, - { - "$id": "333", - "Name": "putDefault", - "ResourceName": "CollectionsModel", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "334", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "335", - "kind": "constant", - "valueType": { - "$id": "336", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "337", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "71" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "338", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/model/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "339" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "340", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "341", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "342", - "Type": { - "$id": "343", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel" - }, - { - "$id": "344", - "Name": "StringLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "345", - "Name": "getAll", - "ResourceName": "StringLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "346", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "347", - "kind": "constant", - "valueType": { - "$id": "348", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "349", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "66" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll", - "Decorators": [] - }, - { - "$id": "350", - "Name": "getDefault", - "ResourceName": "StringLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "351", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "352", - "kind": "constant", - "valueType": { - "$id": "353", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "354", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "66" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "355", - "Name": "putAll", - "ResourceName": "StringLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "356", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "357", - "kind": "constant", - "valueType": { - "$id": "358", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "359", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "66" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "360", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll", - "Decorators": [] - }, - { - "$id": "361", - "Name": "putDefault", - "ResourceName": "StringLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "362", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "363", - "kind": "constant", - "valueType": { - "$id": "364", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "365", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "66" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "366", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "367" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "368", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "369", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "370", - "Type": { - "$id": "371", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral" - }, - { - "$id": "372", - "Name": "IntLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "373", - "Name": "getAll", - "ResourceName": "IntLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "374", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "375", - "kind": "constant", - "valueType": { - "$id": "376", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "377", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "61" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/int/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll", - "Decorators": [] - }, - { - "$id": "378", - "Name": "getDefault", - "ResourceName": "IntLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "379", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "380", - "kind": "constant", - "valueType": { - "$id": "381", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "382", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "61" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/int/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "383", - "Name": "putAll", - "ResourceName": "IntLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "384", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "385", - "kind": "constant", - "valueType": { - "$id": "386", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "387", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "61" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "388", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/int/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll", - "Decorators": [] - }, - { - "$id": "389", - "Name": "putDefault", - "ResourceName": "IntLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "390", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "391", - "kind": "constant", - "valueType": { - "$id": "392", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "393", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "61" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "394", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/int/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "395" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "396", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "397", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "398", - "Type": { - "$id": "399", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral" - }, - { - "$id": "400", - "Name": "FloatLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "401", - "Name": "getAll", - "ResourceName": "FloatLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "402", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "403", - "kind": "constant", - "valueType": { - "$id": "404", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "405", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "56" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/float/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll", - "Decorators": [] - }, - { - "$id": "406", - "Name": "getDefault", - "ResourceName": "FloatLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "407", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "408", - "kind": "constant", - "valueType": { - "$id": "409", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "410", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "56" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/float/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "411", - "Name": "putAll", - "ResourceName": "FloatLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "412", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "413", - "kind": "constant", - "valueType": { - "$id": "414", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "415", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "56" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "416", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/float/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll", - "Decorators": [] - }, - { - "$id": "417", - "Name": "putDefault", - "ResourceName": "FloatLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "418", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "419", - "kind": "constant", - "valueType": { - "$id": "420", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "421", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "56" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "422", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/float/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "423" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "424", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "425", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "426", - "Type": { - "$id": "427", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral" - }, - { - "$id": "428", - "Name": "BooleanLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "429", - "Name": "getAll", - "ResourceName": "BooleanLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "430", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "431", - "kind": "constant", - "valueType": { - "$id": "432", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "433", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "50" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/boolean/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll", - "Decorators": [] - }, - { - "$id": "434", - "Name": "getDefault", - "ResourceName": "BooleanLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "435", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "436", - "kind": "constant", - "valueType": { - "$id": "437", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "438", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "50" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/boolean/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "439", - "Name": "putAll", - "ResourceName": "BooleanLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "440", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "441", - "kind": "constant", - "valueType": { - "$id": "442", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "443", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "50" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "444", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/boolean/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll", - "Decorators": [] - }, - { - "$id": "445", - "Name": "putDefault", - "ResourceName": "BooleanLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "446", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "447", - "kind": "constant", - "valueType": { - "$id": "448", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "449", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "50" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "450", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/boolean/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "451" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "452", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "453", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "454", - "Type": { - "$id": "455", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral" - }, - { - "$id": "456", - "Name": "UnionStringLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "457", - "Name": "getAll", - "ResourceName": "UnionStringLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "458", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "459", - "kind": "constant", - "valueType": { - "$id": "460", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "461", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "46" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/string/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll", - "Decorators": [] - }, - { - "$id": "462", - "Name": "getDefault", - "ResourceName": "UnionStringLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "463", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "464", - "kind": "constant", - "valueType": { - "$id": "465", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "466", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "46" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/string/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "467", - "Name": "putAll", - "ResourceName": "UnionStringLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "468", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "469", - "kind": "constant", - "valueType": { - "$id": "470", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "471", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "46" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "472", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/string/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll", - "Decorators": [] - }, - { - "$id": "473", - "Name": "putDefault", - "ResourceName": "UnionStringLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "474", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "475", - "kind": "constant", - "valueType": { - "$id": "476", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "477", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "46" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "478", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/string/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "479" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "480", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "481", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "482", - "Type": { - "$id": "483", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral" - }, - { - "$id": "484", - "Name": "UnionIntLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "485", - "Name": "getAll", - "ResourceName": "UnionIntLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "486", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "487", - "kind": "constant", - "valueType": { - "$id": "488", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "489", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "42" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/int/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll", - "Decorators": [] - }, - { - "$id": "490", - "Name": "getDefault", - "ResourceName": "UnionIntLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "491", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "492", - "kind": "constant", - "valueType": { - "$id": "493", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "494", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "42" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/int/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "495", - "Name": "putAll", - "ResourceName": "UnionIntLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "496", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "497", - "kind": "constant", - "valueType": { - "$id": "498", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "499", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "42" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "500", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/int/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll", - "Decorators": [] - }, - { - "$id": "501", - "Name": "putDefault", - "ResourceName": "UnionIntLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "502", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "503", - "kind": "constant", - "valueType": { - "$id": "504", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "505", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "42" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "506", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/int/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "507" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "508", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "509", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "510", - "Type": { - "$id": "511", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral" - }, - { - "$id": "512", - "Name": "UnionFloatLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "513", - "Name": "getAll", - "ResourceName": "UnionFloatLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "514", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "515", - "kind": "constant", - "valueType": { - "$id": "516", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "517", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "38" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/float/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll", - "Decorators": [] - }, - { - "$id": "518", - "Name": "getDefault", - "ResourceName": "UnionFloatLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "519", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "520", - "kind": "constant", - "valueType": { - "$id": "521", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "522", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "38" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/float/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "523", - "Name": "putAll", - "ResourceName": "UnionFloatLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "524", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "525", - "kind": "constant", - "valueType": { - "$id": "526", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "527", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "38" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "528", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/float/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll", - "Decorators": [] - }, - { - "$id": "529", - "Name": "putDefault", - "ResourceName": "UnionFloatLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "530", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "531", - "kind": "constant", - "valueType": { - "$id": "532", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "464", + "Name": "putDefault", + "ResourceName": "UnionStringLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "465", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "466", + "kind": "constant", + "valueType": { + "$id": "467", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "533", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "38" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "534", - "StatusCodes": [ - 204 + { + "$id": "468", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "46" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/float/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "535" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "536", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "537", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "538", - "Type": { - "$id": "539", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "Responses": [ + { + "$id": "469", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/string/literal/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral", + "parent": { + "$ref": "114" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral" - }, - { - "$id": "540", - "Name": "RequiredAndOptional", - "Namespace": "Type.Property.Optional", - "Doc": "Test optional and required properties", - "Operations": [ + }, { - "$id": "541", - "Name": "getAll", - "ResourceName": "RequiredAndOptional", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ + "$id": "470", + "kind": "client", + "name": "UnionIntLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ { - "$id": "542", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "471", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "543", - "kind": "constant", - "valueType": { - "$id": "544", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "472", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "473", + "Type": { + "$id": "474", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "545", - "StatusCodes": [ - 200 + "$id": "475", + "Name": "getAll", + "ResourceName": "UnionIntLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "476", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "477", + "kind": "constant", + "valueType": { + "$id": "478", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "29" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "479", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "42" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/int/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll", + "Decorators": [] + }, + { + "$id": "480", + "Name": "getDefault", + "ResourceName": "UnionIntLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "481", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "482", + "kind": "constant", + "valueType": { + "$id": "483", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "484", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "42" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/int/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault", + "Decorators": [] + }, + { + "$id": "485", + "Name": "putAll", + "ResourceName": "UnionIntLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "486", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "487", + "kind": "constant", + "valueType": { + "$id": "488", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "489", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "42" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "490", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/int/literal/all", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll", + "Decorators": [] + }, + { + "$id": "491", + "Name": "putDefault", + "ResourceName": "UnionIntLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "492", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "493", + "kind": "constant", + "valueType": { + "$id": "494", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "495", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "42" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "496", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/int/literal/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/requiredAndOptional/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral", + "parent": { + "$ref": "114" + } }, { - "$id": "546", - "Name": "getRequiredOnly", - "ResourceName": "RequiredAndOptional", - "Doc": "Get models that will return only the required properties", - "Accessibility": "public", - "Parameters": [ - { - "$id": "547", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "497", + "kind": "client", + "name": "UnionFloatLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "498", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "548", - "kind": "constant", - "valueType": { - "$id": "549", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "499", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "500", + "Type": { + "$id": "501", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "550", - "StatusCodes": [ - 200 + "$id": "502", + "Name": "getAll", + "ResourceName": "UnionFloatLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "503", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "504", + "kind": "constant", + "valueType": { + "$id": "505", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "29" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "506", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "38" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/float/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll", + "Decorators": [] + }, + { + "$id": "507", + "Name": "getDefault", + "ResourceName": "UnionFloatLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "508", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "509", + "kind": "constant", + "valueType": { + "$id": "510", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "511", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "38" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/float/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault", + "Decorators": [] + }, + { + "$id": "512", + "Name": "putAll", + "ResourceName": "UnionFloatLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "513", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "514", + "kind": "constant", + "valueType": { + "$id": "515", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "516", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "38" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "517", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/float/literal/all", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll", + "Decorators": [] + }, + { + "$id": "518", + "Name": "putDefault", + "ResourceName": "UnionFloatLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "519", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "520", + "kind": "constant", + "valueType": { + "$id": "521", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "522", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "38" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "523", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/float/literal/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/optional/requiredAndOptional/requiredOnly", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral", + "parent": { + "$ref": "114" + } }, { - "$id": "551", - "Name": "putAll", - "ResourceName": "RequiredAndOptional", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "552", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "553", - "kind": "constant", - "valueType": { - "$id": "554", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "555", - "Name": "body", - "NameInRequest": "body", + "$id": "524", + "kind": "client", + "name": "RequiredAndOptional", + "namespace": "Type.Property.Optional", + "doc": "Test optional and required properties", + "parameters": [ + { + "$id": "525", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "29" + "$id": "526", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "527", + "Type": { + "$id": "528", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "556", - "StatusCodes": [ - 204 + "$id": "529", + "Name": "getAll", + "ResourceName": "RequiredAndOptional", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "530", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "531", + "kind": "constant", + "valueType": { + "$id": "532", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/requiredAndOptional/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll", - "Decorators": [] - }, - { - "$id": "557", - "Name": "putRequiredOnly", - "ResourceName": "RequiredAndOptional", - "Doc": "Put a body with only required properties.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "533", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "29" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/requiredAndOptional/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll", + "Decorators": [] + }, { - "$id": "558", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "559", - "kind": "constant", - "valueType": { - "$id": "560", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "534", + "Name": "getRequiredOnly", + "ResourceName": "RequiredAndOptional", + "Doc": "Get models that will return only the required properties", + "Accessibility": "public", + "Parameters": [ + { + "$id": "535", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "536", + "kind": "constant", + "valueType": { + "$id": "537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "538", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "29" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/optional/requiredAndOptional/requiredOnly", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly", + "Decorators": [] }, { - "$id": "561", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "29" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "539", + "Name": "putAll", + "ResourceName": "RequiredAndOptional", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "540", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "541", + "kind": "constant", + "valueType": { + "$id": "542", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "543", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "29" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "544", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/requiredAndOptional/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll", + "Decorators": [] + }, { - "$id": "562", - "StatusCodes": [ - 204 + "$id": "545", + "Name": "putRequiredOnly", + "ResourceName": "RequiredAndOptional", + "Doc": "Put a body with only required properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "546", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "547", + "kind": "constant", + "valueType": { + "$id": "548", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "549", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "29" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "550", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/optional/requiredAndOptional/requiredOnly", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/optional/requiredAndOptional/requiredOnly", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly", - "Decorators": [] - } - ], - "Protocol": { - "$id": "563" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "564", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "565", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "566", - "Type": { - "$id": "567", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional", + "parent": { + "$ref": "114" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional" + ] } ] } 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 3727b3609fc..25b72680d39 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 @@ -1602,21 +1602,18 @@ "Clients": [ { "$id": "192", - "Name": "ValueTypesClient", - "Namespace": "Type.Property.ValueTypes", - "Doc": "Illustrates various property types for models", - "Operations": [], - "Protocol": { - "$id": "193" - }, - "Parameters": [ + "kind": "client", + "name": "ValueTypesClient", + "namespace": "Type.Property.ValueTypes", + "doc": "Illustrates various property types for models", + "parameters": [ { - "$id": "194", + "$id": "193", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "195", + "$id": "194", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1631,9 +1628,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "196", + "$id": "195", "Type": { - "$id": "197", + "$id": "196", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1642,5402 +1639,5405 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes" - }, - { - "$id": "198", - "Name": "Boolean", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "199", - "Name": "get", - "ResourceName": "Boolean", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "200", - "Name": "accept", - "NameInRequest": "Accept", + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes", + "children": [ + { + "$id": "197", + "kind": "client", + "name": "Boolean", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "198", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "201", - "kind": "constant", - "valueType": { - "$id": "202", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "199", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "200", + "Type": { + "$id": "201", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "203", - "StatusCodes": [ - 200 + "$id": "202", + "Name": "get", + "ResourceName": "Boolean", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "203", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "204", + "kind": "constant", + "valueType": { + "$id": "205", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "187" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "206", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "187" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/boolean", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get", + "Decorators": [] + }, + { + "$id": "207", + "Name": "put", + "ResourceName": "Boolean", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "208", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "209", + "kind": "constant", + "valueType": { + "$id": "210", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "211", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "187" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "212", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/boolean", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/boolean", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean", + "parent": { + "$ref": "192" + } }, { - "$id": "204", - "Name": "put", - "ResourceName": "Boolean", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "205", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "206", - "kind": "constant", - "valueType": { - "$id": "207", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "213", + "kind": "client", + "name": "String", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "208", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "214", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "187" + "$id": "215", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "216", + "Type": { + "$id": "217", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "209", - "StatusCodes": [ - 204 + "$id": "218", + "Name": "get", + "ResourceName": "String", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "219", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "220", + "kind": "constant", + "valueType": { + "$id": "221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/boolean", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "210" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "211", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "212", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "213", - "Type": { - "$id": "214", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "222", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "182" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.String.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean" - }, - { - "$id": "215", - "Name": "String", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "216", - "Name": "get", - "ResourceName": "String", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ { - "$id": "217", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "218", - "kind": "constant", - "valueType": { - "$id": "219", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "223", + "Name": "put", + "ResourceName": "String", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "224", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "225", + "kind": "constant", + "valueType": { + "$id": "226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "220", - "StatusCodes": [ - 200 + { + "$id": "227", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "182" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "182" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "228", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/string", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.String.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.String.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String", + "parent": { + "$ref": "192" + } }, { - "$id": "221", - "Name": "put", - "ResourceName": "String", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "222", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "223", - "kind": "constant", - "valueType": { - "$id": "224", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "229", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "225", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "230", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "182" + "$id": "231", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "232", + "Type": { + "$id": "233", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "234", + "Name": "get", + "ResourceName": "Bytes", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "235", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "236", + "kind": "constant", + "valueType": { + "$id": "237", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "238", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "177" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/bytes", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get", + "Decorators": [] + }, { - "$id": "226", - "StatusCodes": [ - 204 + "$id": "239", + "Name": "put", + "ResourceName": "Bytes", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "240", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "241", + "kind": "constant", + "valueType": { + "$id": "242", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "243", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "177" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "244", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/bytes", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.String.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "227" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "228", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "229", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "230", - "Type": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.String" - }, - { - "$id": "232", - "Name": "Bytes", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "233", - "Name": "get", - "ResourceName": "Bytes", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "234", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "245", + "kind": "client", + "name": "Int", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "246", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "235", - "kind": "constant", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "247", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "248", + "Type": { + "$id": "249", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "237", - "StatusCodes": [ - 200 + "$id": "250", + "Name": "get", + "ResourceName": "Int", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "251", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "252", + "kind": "constant", + "valueType": { + "$id": "253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "177" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "254", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "172" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/int", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get", + "Decorators": [] + }, + { + "$id": "255", + "Name": "put", + "ResourceName": "Int", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "256", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "257", + "kind": "constant", + "valueType": { + "$id": "258", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "259", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "172" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "260", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/int", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/bytes", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int", + "parent": { + "$ref": "192" + } }, { - "$id": "238", - "Name": "put", - "ResourceName": "Bytes", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "261", + "kind": "client", + "name": "Float", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "239", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "242", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "262", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "177" + "$id": "263", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "264", + "Type": { + "$id": "265", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "243", - "StatusCodes": [ - 204 + "$id": "266", + "Name": "get", + "ResourceName": "Float", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "267", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "268", + "kind": "constant", + "valueType": { + "$id": "269", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "270", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "167" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/float", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get", + "Decorators": [] + }, + { + "$id": "271", + "Name": "put", + "ResourceName": "Float", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "272", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "273", + "kind": "constant", + "valueType": { + "$id": "274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "275", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "167" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "276", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/float", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/bytes", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "244" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "245", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "246", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "247", - "Type": { - "$id": "248", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes" - }, - { - "$id": "249", - "Name": "Int", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "250", - "Name": "get", - "ResourceName": "Int", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "277", + "kind": "client", + "name": "Decimal", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "251", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "278", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "252", - "kind": "constant", - "valueType": { - "$id": "253", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "279", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "280", + "Type": { + "$id": "281", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "254", - "StatusCodes": [ - 200 + "$id": "282", + "Name": "get", + "ResourceName": "Decimal", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "283", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "284", + "kind": "constant", + "valueType": { + "$id": "285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "172" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "286", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "162" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/decimal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get", + "Decorators": [] + }, + { + "$id": "287", + "Name": "put", + "ResourceName": "Decimal", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "288", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "289", + "kind": "constant", + "valueType": { + "$id": "290", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "291", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "162" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "292", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/decimal", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/int", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal", + "parent": { + "$ref": "192" + } }, { - "$id": "255", - "Name": "put", - "ResourceName": "Int", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "293", + "kind": "client", + "name": "Decimal128", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "256", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "257", - "kind": "constant", - "valueType": { - "$id": "258", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "259", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "294", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "172" + "$id": "295", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "296", + "Type": { + "$id": "297", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "260", - "StatusCodes": [ - 204 + "$id": "298", + "Name": "get", + "ResourceName": "Decimal128", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "299", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "300", + "kind": "constant", + "valueType": { + "$id": "301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "302", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "157" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/decimal128", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get", + "Decorators": [] + }, + { + "$id": "303", + "Name": "put", + "ResourceName": "Decimal128", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "304", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "305", + "kind": "constant", + "valueType": { + "$id": "306", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "307", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "157" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "308", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/decimal128", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/int", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "261" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "262", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "263", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "264", - "Type": { - "$id": "265", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Int" - }, - { - "$id": "266", - "Name": "Float", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "267", - "Name": "get", - "ResourceName": "Float", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "309", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "268", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "310", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "269", - "kind": "constant", - "valueType": { - "$id": "270", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "311", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "312", + "Type": { + "$id": "313", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "271", - "StatusCodes": [ - 200 + "$id": "314", + "Name": "get", + "ResourceName": "Datetime", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "315", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "316", + "kind": "constant", + "valueType": { + "$id": "317", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "167" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "318", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "151" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/datetime", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get", + "Decorators": [] + }, + { + "$id": "319", + "Name": "put", + "ResourceName": "Datetime", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "320", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "321", + "kind": "constant", + "valueType": { + "$id": "322", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "323", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "151" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "324", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/datetime", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/float", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime", + "parent": { + "$ref": "192" + } }, { - "$id": "272", - "Name": "put", - "ResourceName": "Float", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "325", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "273", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "326", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "274", - "kind": "constant", - "valueType": { - "$id": "275", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "327", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "328", + "Type": { + "$id": "329", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "330", + "Name": "get", + "ResourceName": "Duration", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "331", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "332", + "kind": "constant", + "valueType": { + "$id": "333", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "334", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "145" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/duration", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get", + "Decorators": [] }, { - "$id": "276", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "335", + "Name": "put", + "ResourceName": "Duration", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "336", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "337", + "kind": "constant", + "valueType": { + "$id": "338", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "339", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "145" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "340", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/duration", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration", + "parent": { + "$ref": "192" + } + }, + { + "$id": "341", + "kind": "client", + "name": "Enum", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "342", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "167" + "$id": "343", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "344", + "Type": { + "$id": "345", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "277", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/float", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "278" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "279", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "280", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "281", - "Type": { - "$id": "282", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Float" - }, - { - "$id": "283", - "Name": "Decimal", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "284", - "Name": "get", - "ResourceName": "Decimal", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "285", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "286", - "kind": "constant", - "valueType": { - "$id": "287", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "288", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "162" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/decimal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get", - "Decorators": [] - }, - { - "$id": "289", - "Name": "put", - "ResourceName": "Decimal", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "290", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "291", - "kind": "constant", - "valueType": { - "$id": "292", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "293", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "162" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "294", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/decimal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "295" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "296", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "297", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "298", - "Type": { - "$id": "299", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal" - }, - { - "$id": "300", - "Name": "Decimal128", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "301", - "Name": "get", - "ResourceName": "Decimal128", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "302", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "303", - "kind": "constant", - "valueType": { - "$id": "304", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "305", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "157" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/decimal128", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get", - "Decorators": [] - }, - { - "$id": "306", - "Name": "put", - "ResourceName": "Decimal128", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "307", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "308", - "kind": "constant", - "valueType": { - "$id": "309", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "310", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "157" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "311", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/decimal128", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "312" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "313", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "314", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "315", - "Type": { - "$id": "316", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128" - }, - { - "$id": "317", - "Name": "Datetime", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "318", - "Name": "get", - "ResourceName": "Datetime", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "319", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "320", - "kind": "constant", - "valueType": { - "$id": "321", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "322", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "151" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/datetime", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get", - "Decorators": [] - }, - { - "$id": "323", - "Name": "put", - "ResourceName": "Datetime", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "324", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "325", - "kind": "constant", - "valueType": { - "$id": "326", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "327", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "151" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "328", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/datetime", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "329" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "330", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "331", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "332", - "Type": { - "$id": "333", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime" - }, - { - "$id": "334", - "Name": "Duration", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "335", - "Name": "get", - "ResourceName": "Duration", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "336", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "337", - "kind": "constant", - "valueType": { - "$id": "338", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "339", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "145" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/duration", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get", - "Decorators": [] - }, - { - "$id": "340", - "Name": "put", - "ResourceName": "Duration", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "341", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "342", - "kind": "constant", - "valueType": { - "$id": "343", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "344", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "145" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "345", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/duration", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "346" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "347", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "348", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "349", - "Type": { - "$id": "350", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Duration" - }, - { - "$id": "351", - "Name": "Enum", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "352", - "Name": "get", - "ResourceName": "Enum", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "353", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "354", - "kind": "constant", - "valueType": { - "$id": "355", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "356", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "141" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/enum", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get", - "Decorators": [] - }, - { - "$id": "357", - "Name": "put", - "ResourceName": "Enum", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "358", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "359", - "kind": "constant", - "valueType": { - "$id": "360", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "361", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "141" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "362", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/enum", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "363" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "364", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "365", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "366", - "Type": { - "$id": "367", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Enum" - }, - { - "$id": "368", - "Name": "ExtensibleEnum", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "369", - "Name": "get", - "ResourceName": "ExtensibleEnum", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "370", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "371", - "kind": "constant", - "valueType": { - "$id": "372", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "373", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "137" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/extensible-enum", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get", - "Decorators": [] - }, - { - "$id": "374", - "Name": "put", - "ResourceName": "ExtensibleEnum", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "375", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "376", - "kind": "constant", - "valueType": { - "$id": "377", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "378", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "137" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "379", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/extensible-enum", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "380" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "381", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "382", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "383", - "Type": { - "$id": "384", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum" - }, - { - "$id": "385", - "Name": "Model", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "386", - "Name": "get", - "ResourceName": "Model", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "387", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "388", - "kind": "constant", - "valueType": { - "$id": "389", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "390", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "133" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/model", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get", - "Decorators": [] - }, - { - "$id": "391", - "Name": "put", - "ResourceName": "Model", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "392", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "393", - "kind": "constant", - "valueType": { - "$id": "394", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "395", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "133" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "396", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/model", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "397" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "398", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "399", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "400", - "Type": { - "$id": "401", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Model" - }, - { - "$id": "402", - "Name": "CollectionsString", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "403", - "Name": "get", - "ResourceName": "CollectionsString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "404", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "405", - "kind": "constant", - "valueType": { - "$id": "406", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "407", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "127" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/collections/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get", - "Decorators": [] - }, - { - "$id": "408", - "Name": "put", - "ResourceName": "CollectionsString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "409", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "410", - "kind": "constant", - "valueType": { - "$id": "411", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "412", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "127" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "413", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/collections/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "414" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "415", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "416", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "417", - "Type": { - "$id": "418", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString" - }, - { - "$id": "419", - "Name": "CollectionsInt", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "420", - "Name": "get", - "ResourceName": "CollectionsInt", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "421", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "422", - "kind": "constant", - "valueType": { - "$id": "423", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "424", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "121" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/collections/int", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get", - "Decorators": [] - }, - { - "$id": "425", - "Name": "put", - "ResourceName": "CollectionsInt", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "426", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "427", - "kind": "constant", - "valueType": { - "$id": "428", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "429", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "121" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "430", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/collections/int", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "431" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "432", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "433", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "434", - "Type": { - "$id": "435", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt" - }, - { - "$id": "436", - "Name": "CollectionsModel", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "437", - "Name": "get", - "ResourceName": "CollectionsModel", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "438", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "439", - "kind": "constant", - "valueType": { - "$id": "440", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "441", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "111" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/collections/model", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get", - "Decorators": [] - }, - { - "$id": "442", - "Name": "put", - "ResourceName": "CollectionsModel", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "443", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "444", - "kind": "constant", - "valueType": { - "$id": "445", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "446", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "111" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "447", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/collections/model", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "448" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "449", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "450", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "451", - "Type": { - "$id": "452", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel" - }, - { - "$id": "453", - "Name": "DictionaryString", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "454", - "Name": "get", - "ResourceName": "DictionaryString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "455", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "456", - "kind": "constant", - "valueType": { - "$id": "457", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "458", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "104" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/dictionary/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get", - "Decorators": [] - }, - { - "$id": "459", - "Name": "put", - "ResourceName": "DictionaryString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "460", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "461", - "kind": "constant", - "valueType": { - "$id": "462", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "463", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "104" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "464", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/dictionary/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "465" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "466", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "467", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "468", - "Type": { - "$id": "469", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString" - }, - { - "$id": "470", - "Name": "Never", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "471", - "Name": "get", - "ResourceName": "Never", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "472", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "473", - "kind": "constant", - "valueType": { - "$id": "474", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "475", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "103" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/never", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get", - "Decorators": [] - }, - { - "$id": "476", - "Name": "put", - "ResourceName": "Never", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "477", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "478", - "kind": "constant", - "valueType": { - "$id": "479", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "480", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "103" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "481", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/never", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "482" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "483", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "484", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "485", - "Type": { - "$id": "486", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Never" - }, - { - "$id": "487", - "Name": "UnknownString", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "488", - "Name": "get", - "ResourceName": "UnknownString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "489", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "490", - "kind": "constant", - "valueType": { - "$id": "491", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "492", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "98" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get", - "Decorators": [] - }, - { - "$id": "493", - "Name": "put", - "ResourceName": "UnknownString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "494", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "495", - "kind": "constant", - "valueType": { - "$id": "496", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "497", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "98" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "498", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "499" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "500", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "501", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "502", - "Type": { - "$id": "503", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString" - }, - { - "$id": "504", - "Name": "UnknownInt", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "505", - "Name": "get", - "ResourceName": "UnknownInt", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "506", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "507", - "kind": "constant", - "valueType": { - "$id": "508", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "509", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "93" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/int", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get", - "Decorators": [] - }, - { - "$id": "510", - "Name": "put", - "ResourceName": "UnknownInt", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "511", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "512", - "kind": "constant", - "valueType": { - "$id": "513", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "514", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "93" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "515", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/int", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "516" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "517", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "518", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "519", - "Type": { - "$id": "520", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt" - }, - { - "$id": "521", - "Name": "UnknownDict", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "522", - "Name": "get", - "ResourceName": "UnknownDict", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "523", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "524", - "kind": "constant", - "valueType": { - "$id": "525", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "526", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "88" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/dict", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get", - "Decorators": [] - }, - { - "$id": "527", - "Name": "put", - "ResourceName": "UnknownDict", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "528", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "529", - "kind": "constant", - "valueType": { - "$id": "530", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "531", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "88" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "532", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/dict", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "533" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "534", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "535", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "536", - "Type": { - "$id": "537", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict" - }, - { - "$id": "538", - "Name": "UnknownArray", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "539", - "Name": "get", - "ResourceName": "UnknownArray", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "540", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "541", - "kind": "constant", - "valueType": { - "$id": "542", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "543", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "83" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get", - "Decorators": [] - }, - { - "$id": "544", - "Name": "put", - "ResourceName": "UnknownArray", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "545", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "546", - "kind": "constant", - "valueType": { - "$id": "547", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "548", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "83" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "549", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/array", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "550" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "551", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "552", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "553", - "Type": { - "$id": "554", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "346", + "Name": "get", + "ResourceName": "Enum", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "347", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "348", + "kind": "constant", + "valueType": { + "$id": "349", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "350", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "141" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/enum", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get", + "Decorators": [] }, - "Value": "http://localhost:3000" + { + "$id": "351", + "Name": "put", + "ResourceName": "Enum", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "352", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "353", + "kind": "constant", + "valueType": { + "$id": "354", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "355", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "141" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "356", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/enum", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray" - }, - { - "$id": "555", - "Name": "StringLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "556", - "Name": "get", - "ResourceName": "StringLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "357", + "kind": "client", + "name": "ExtensibleEnum", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "557", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "358", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "558", - "kind": "constant", - "valueType": { - "$id": "559", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "359", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "360", + "Type": { + "$id": "361", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "560", - "StatusCodes": [ - 200 + "$id": "362", + "Name": "get", + "ResourceName": "ExtensibleEnum", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "363", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "364", + "kind": "constant", + "valueType": { + "$id": "365", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "78" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "366", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "137" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/extensible-enum", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get", + "Decorators": [] + }, + { + "$id": "367", + "Name": "put", + "ResourceName": "ExtensibleEnum", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "368", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "369", + "kind": "constant", + "valueType": { + "$id": "370", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "371", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "137" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "372", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/extensible-enum", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/string/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum", + "parent": { + "$ref": "192" + } }, { - "$id": "561", - "Name": "put", - "ResourceName": "StringLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "562", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "563", - "kind": "constant", - "valueType": { - "$id": "564", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "373", + "kind": "client", + "name": "Model", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "565", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "374", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "78" + "$id": "375", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "376", + "Type": { + "$id": "377", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "566", - "StatusCodes": [ - 204 + "$id": "378", + "Name": "get", + "ResourceName": "Model", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "379", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "380", + "kind": "constant", + "valueType": { + "$id": "381", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "382", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "133" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/model", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get", + "Decorators": [] + }, + { + "$id": "383", + "Name": "put", + "ResourceName": "Model", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "384", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "385", + "kind": "constant", + "valueType": { + "$id": "386", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "387", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "133" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "388", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/model", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/string/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "567" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "568", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "569", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "570", - "Type": { - "$id": "571", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral" - }, - { - "$id": "572", - "Name": "IntLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "573", - "Name": "get", - "ResourceName": "IntLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "389", + "kind": "client", + "name": "CollectionsString", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "574", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "390", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "575", - "kind": "constant", - "valueType": { - "$id": "576", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "391", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "392", + "Type": { + "$id": "393", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "394", + "Name": "get", + "ResourceName": "CollectionsString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "395", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "396", + "kind": "constant", + "valueType": { + "$id": "397", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "398", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "127" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/collections/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get", + "Decorators": [] + }, { - "$id": "577", - "StatusCodes": [ - 200 + "$id": "399", + "Name": "put", + "ResourceName": "CollectionsString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "400", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "401", + "kind": "constant", + "valueType": { + "$id": "402", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "403", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "127" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "73" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "404", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/collections/string", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/int/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString", + "parent": { + "$ref": "192" + } }, { - "$id": "578", - "Name": "put", - "ResourceName": "IntLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "579", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "580", - "kind": "constant", - "valueType": { - "$id": "581", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "405", + "kind": "client", + "name": "CollectionsInt", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "582", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "406", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "73" + "$id": "407", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "408", + "Type": { + "$id": "409", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "410", + "Name": "get", + "ResourceName": "CollectionsInt", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "411", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "412", + "kind": "constant", + "valueType": { + "$id": "413", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "414", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "121" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/collections/int", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get", + "Decorators": [] + }, { - "$id": "583", - "StatusCodes": [ - 204 + "$id": "415", + "Name": "put", + "ResourceName": "CollectionsInt", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "416", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "417", + "kind": "constant", + "valueType": { + "$id": "418", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "419", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "121" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "420", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/collections/int", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/int/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "584" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "585", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "586", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "587", - "Type": { - "$id": "588", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral" - }, - { - "$id": "589", - "Name": "FloatLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt", + "parent": { + "$ref": "192" + } + }, { - "$id": "590", - "Name": "get", - "ResourceName": "FloatLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "421", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "591", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "422", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "592", - "kind": "constant", - "valueType": { - "$id": "593", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "423", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "424", + "Type": { + "$id": "425", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "426", + "Name": "get", + "ResourceName": "CollectionsModel", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "427", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "428", + "kind": "constant", + "valueType": { + "$id": "429", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "430", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "111" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/collections/model", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get", + "Decorators": [] + }, { - "$id": "594", - "StatusCodes": [ - 200 + "$id": "431", + "Name": "put", + "ResourceName": "CollectionsModel", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "432", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "433", + "kind": "constant", + "valueType": { + "$id": "434", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "435", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "111" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "68" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "436", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/collections/model", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/float/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel", + "parent": { + "$ref": "192" + } }, { - "$id": "595", - "Name": "put", - "ResourceName": "FloatLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "596", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "597", - "kind": "constant", - "valueType": { - "$id": "598", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "437", + "kind": "client", + "name": "DictionaryString", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "599", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "438", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "68" + "$id": "439", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "440", + "Type": { + "$id": "441", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "442", + "Name": "get", + "ResourceName": "DictionaryString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "443", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "444", + "kind": "constant", + "valueType": { + "$id": "445", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "446", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "104" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/dictionary/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get", + "Decorators": [] + }, { - "$id": "600", - "StatusCodes": [ - 204 + "$id": "447", + "Name": "put", + "ResourceName": "DictionaryString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "448", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "449", + "kind": "constant", + "valueType": { + "$id": "450", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "451", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "104" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "452", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/dictionary/string", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/float/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "601" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "602", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "603", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "604", - "Type": { - "$id": "605", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral" - }, - { - "$id": "606", - "Name": "BooleanLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "607", - "Name": "get", - "ResourceName": "BooleanLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "453", + "kind": "client", + "name": "Never", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "608", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "454", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "609", - "kind": "constant", - "valueType": { - "$id": "610", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "455", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "456", + "Type": { + "$id": "457", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "458", + "Name": "get", + "ResourceName": "Never", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "459", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "460", + "kind": "constant", + "valueType": { + "$id": "461", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "462", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "103" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/never", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get", + "Decorators": [] + }, { - "$id": "611", - "StatusCodes": [ - 200 + "$id": "463", + "Name": "put", + "ResourceName": "Never", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "464", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "465", + "kind": "constant", + "valueType": { + "$id": "466", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "467", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "103" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "62" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "468", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/never", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/boolean/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never", + "parent": { + "$ref": "192" + } }, { - "$id": "612", - "Name": "put", - "ResourceName": "BooleanLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "469", + "kind": "client", + "name": "UnknownString", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "613", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "470", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "614", - "kind": "constant", - "valueType": { - "$id": "615", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "471", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "472", + "Type": { + "$id": "473", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "474", + "Name": "get", + "ResourceName": "UnknownString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "475", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "476", + "kind": "constant", + "valueType": { + "$id": "477", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "478", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "98" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get", + "Decorators": [] }, { - "$id": "616", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "479", + "Name": "put", + "ResourceName": "UnknownString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "480", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "481", + "kind": "constant", + "valueType": { + "$id": "482", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "483", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "98" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "484", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/string", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString", + "parent": { + "$ref": "192" + } + }, + { + "$id": "485", + "kind": "client", + "name": "UnknownInt", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "486", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "62" + "$id": "487", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "488", + "Type": { + "$id": "489", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "490", + "Name": "get", + "ResourceName": "UnknownInt", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "491", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "492", + "kind": "constant", + "valueType": { + "$id": "493", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "494", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "93" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/int", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get", + "Decorators": [] + }, { - "$id": "617", - "StatusCodes": [ - 204 + "$id": "495", + "Name": "put", + "ResourceName": "UnknownInt", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "496", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "497", + "kind": "constant", + "valueType": { + "$id": "498", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "499", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "93" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "500", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/int", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/boolean/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "618" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "619", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "620", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "621", - "Type": { - "$id": "622", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral" - }, - { - "$id": "623", - "Name": "UnionStringLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "624", - "Name": "get", - "ResourceName": "UnionStringLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "501", + "kind": "client", + "name": "UnknownDict", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "625", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "502", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "626", - "kind": "constant", - "valueType": { - "$id": "627", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "503", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "504", + "Type": { + "$id": "505", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "628", - "StatusCodes": [ - 200 + "$id": "506", + "Name": "get", + "ResourceName": "UnknownDict", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "507", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "508", + "kind": "constant", + "valueType": { + "$id": "509", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "58" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "510", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "88" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/dict", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get", + "Decorators": [] + }, + { + "$id": "511", + "Name": "put", + "ResourceName": "UnknownDict", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "512", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "513", + "kind": "constant", + "valueType": { + "$id": "514", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "515", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "88" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "516", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/dict", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union/string/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict", + "parent": { + "$ref": "192" + } }, { - "$id": "629", - "Name": "put", - "ResourceName": "UnionStringLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "630", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "631", - "kind": "constant", - "valueType": { - "$id": "632", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "633", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "517", + "kind": "client", + "name": "UnknownArray", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "518", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "58" + "$id": "519", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "520", + "Type": { + "$id": "521", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "634", - "StatusCodes": [ - 204 + "$id": "522", + "Name": "get", + "ResourceName": "UnknownArray", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "523", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "524", + "kind": "constant", + "valueType": { + "$id": "525", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "526", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "83" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get", + "Decorators": [] + }, + { + "$id": "527", + "Name": "put", + "ResourceName": "UnknownArray", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "528", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "529", + "kind": "constant", + "valueType": { + "$id": "530", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "531", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "83" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "532", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/array", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union/string/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "635" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "636", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "637", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "638", - "Type": { - "$id": "639", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral" - }, - { - "$id": "640", - "Name": "UnionIntLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "641", - "Name": "get", - "ResourceName": "UnionIntLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "533", + "kind": "client", + "name": "StringLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "642", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "534", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "643", - "kind": "constant", - "valueType": { - "$id": "644", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "535", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "536", + "Type": { + "$id": "537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "538", + "Name": "get", + "ResourceName": "StringLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "539", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "540", + "kind": "constant", + "valueType": { + "$id": "541", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "542", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "78" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/string/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get", + "Decorators": [] + }, { - "$id": "645", - "StatusCodes": [ - 200 + "$id": "543", + "Name": "put", + "ResourceName": "StringLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "544", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "545", + "kind": "constant", + "valueType": { + "$id": "546", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "547", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "78" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "54" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "548", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/string/literal", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union/int/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral", + "parent": { + "$ref": "192" + } }, { - "$id": "646", - "Name": "put", - "ResourceName": "UnionIntLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "549", + "kind": "client", + "name": "IntLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "647", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "550", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "648", - "kind": "constant", - "valueType": { - "$id": "649", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "551", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "552", + "Type": { + "$id": "553", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "554", + "Name": "get", + "ResourceName": "IntLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "555", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "556", + "kind": "constant", + "valueType": { + "$id": "557", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "558", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "73" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/int/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get", + "Decorators": [] }, { - "$id": "650", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "559", + "Name": "put", + "ResourceName": "IntLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "560", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "561", + "kind": "constant", + "valueType": { + "$id": "562", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "563", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "73" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "564", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/int/literal", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral", + "parent": { + "$ref": "192" + } + }, + { + "$id": "565", + "kind": "client", + "name": "FloatLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "566", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "54" + "$id": "567", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "568", + "Type": { + "$id": "569", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "651", - "StatusCodes": [ - 204 + "$id": "570", + "Name": "get", + "ResourceName": "FloatLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "571", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "572", + "kind": "constant", + "valueType": { + "$id": "573", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union/int/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "652" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "653", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "654", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "655", - "Type": { - "$id": "656", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "574", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "68" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/float/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get", + "Decorators": [] }, - "Value": "http://localhost:3000" + { + "$id": "575", + "Name": "put", + "ResourceName": "FloatLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "576", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "577", + "kind": "constant", + "valueType": { + "$id": "578", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "579", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "68" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "580", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/float/literal", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral" - }, - { - "$id": "657", - "Name": "UnionFloatLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "658", - "Name": "get", - "ResourceName": "UnionFloatLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "581", + "kind": "client", + "name": "BooleanLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "659", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "582", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "660", - "kind": "constant", - "valueType": { - "$id": "661", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "583", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "584", + "Type": { + "$id": "585", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "662", - "StatusCodes": [ - 200 + "$id": "586", + "Name": "get", + "ResourceName": "BooleanLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "587", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "588", + "kind": "constant", + "valueType": { + "$id": "589", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "50" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "590", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "62" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/boolean/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get", + "Decorators": [] + }, + { + "$id": "591", + "Name": "put", + "ResourceName": "BooleanLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "592", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "593", + "kind": "constant", + "valueType": { + "$id": "594", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "595", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "62" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "596", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/boolean/literal", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union/float/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral", + "parent": { + "$ref": "192" + } }, { - "$id": "663", - "Name": "put", - "ResourceName": "UnionFloatLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "664", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "665", - "kind": "constant", - "valueType": { - "$id": "666", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "597", + "kind": "client", + "name": "UnionStringLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "667", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "598", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "50" + "$id": "599", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "600", + "Type": { + "$id": "601", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "602", + "Name": "get", + "ResourceName": "UnionStringLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "603", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "604", + "kind": "constant", + "valueType": { + "$id": "605", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "606", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "58" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union/string/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get", + "Decorators": [] + }, { - "$id": "668", - "StatusCodes": [ - 204 + "$id": "607", + "Name": "put", + "ResourceName": "UnionStringLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "608", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "609", + "kind": "constant", + "valueType": { + "$id": "610", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "611", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "58" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "612", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union/string/literal", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union/float/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "669" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "670", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "671", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "672", - "Type": { - "$id": "673", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral" - }, - { - "$id": "674", - "Name": "UnionEnumValue", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "675", - "Name": "get", - "ResourceName": "UnionEnumValue", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "613", + "kind": "client", + "name": "UnionIntLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "676", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "614", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "677", - "kind": "constant", - "valueType": { - "$id": "678", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "615", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "616", + "Type": { + "$id": "617", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "679", - "StatusCodes": [ - 200 + "$id": "618", + "Name": "get", + "ResourceName": "UnionIntLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "619", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "620", + "kind": "constant", + "valueType": { + "$id": "621", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "45" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "622", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "54" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union/int/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get", + "Decorators": [] + }, + { + "$id": "623", + "Name": "put", + "ResourceName": "UnionIntLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "624", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "625", + "kind": "constant", + "valueType": { + "$id": "626", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "627", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "54" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "628", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union/int/literal", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union-enum-value", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral", + "parent": { + "$ref": "192" + } }, { - "$id": "680", - "Name": "put", - "ResourceName": "UnionEnumValue", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "629", + "kind": "client", + "name": "UnionFloatLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "681", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "630", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "682", - "kind": "constant", - "valueType": { - "$id": "683", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "631", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "632", + "Type": { + "$id": "633", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "634", + "Name": "get", + "ResourceName": "UnionFloatLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "635", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "636", + "kind": "constant", + "valueType": { + "$id": "637", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "638", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "50" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union/float/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get", + "Decorators": [] }, { - "$id": "684", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "639", + "Name": "put", + "ResourceName": "UnionFloatLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "640", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "641", + "kind": "constant", + "valueType": { + "$id": "642", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "643", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "50" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "644", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union/float/literal", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral", + "parent": { + "$ref": "192" + } + }, + { + "$id": "645", + "kind": "client", + "name": "UnionEnumValue", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "646", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "45" + "$id": "647", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "648", + "Type": { + "$id": "649", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "650", + "Name": "get", + "ResourceName": "UnionEnumValue", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "651", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "652", + "kind": "constant", + "valueType": { + "$id": "653", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "654", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "45" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union-enum-value", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get", + "Decorators": [] + }, { - "$id": "685", - "StatusCodes": [ - 204 + "$id": "655", + "Name": "put", + "ResourceName": "UnionEnumValue", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "656", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "657", + "kind": "constant", + "valueType": { + "$id": "658", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "659", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "45" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "660", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union-enum-value", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union-enum-value", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "686" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "687", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "688", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "689", - "Type": { - "$id": "690", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue", + "parent": { + "$ref": "192" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json index 1279011e4bc..50cd5793336 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json @@ -7,20 +7,17 @@ "Clients": [ { "$id": "2", - "Name": "ScalarClient", - "Namespace": "Type.Scalar", - "Operations": [], - "Protocol": { - "$id": "3" - }, - "Parameters": [ + "kind": "client", + "name": "ScalarClient", + "namespace": "Type.Scalar", + "parameters": [ { - "$id": "4", + "$id": "3", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "5", + "$id": "4", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -35,9 +32,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "6", + "$id": "5", "Type": { - "$id": "7", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -46,1470 +43,1473 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar" - }, - { - "$id": "8", - "Name": "String", - "Namespace": "Type.Scalar", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar", + "children": [ { - "$id": "9", - "Name": "get", - "ResourceName": "String", - "Doc": "get string value", - "Accessibility": "public", - "Parameters": [ + "$id": "7", + "kind": "client", + "name": "String", + "namespace": "Type.Scalar", + "parameters": [ { - "$id": "10", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "8", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "11", - "kind": "constant", - "valueType": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "9", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "10", + "Type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "13", - "StatusCodes": [ - 200 + "$id": "12", + "Name": "get", + "ResourceName": "String", + "Doc": "get string value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "13", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "14", + "kind": "constant", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "16", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.String.get", + "Decorators": [] + }, + { + "$id": "18", + "Name": "put", + "ResourceName": "String", + "Doc": "put string value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "19", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "20", + "kind": "constant", + "valueType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "22", + "Name": "body", + "NameInRequest": "body", + "Doc": "_", + "Type": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "24", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Text", + "Uri": "{endpoint}", + "Path": "/type/scalar/string", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.String.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.String.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.String", + "parent": { + "$ref": "2" + } }, { - "$id": "15", - "Name": "put", - "ResourceName": "String", - "Doc": "put string value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "16", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "17", - "kind": "constant", - "valueType": { - "$id": "18", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "25", + "kind": "client", + "name": "Boolean", + "namespace": "Type.Scalar", + "parameters": [ { - "$id": "19", - "Name": "body", - "NameInRequest": "body", - "Doc": "_", + "$id": "26", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "20", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "27", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "28", + "Type": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "30", + "Name": "get", + "ResourceName": "Boolean", + "Doc": "get boolean value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "31", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "32", + "kind": "constant", + "valueType": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "34", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "35", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/boolean", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Boolean.get", + "Decorators": [] + }, { - "$id": "21", - "StatusCodes": [ - 204 + "$id": "36", + "Name": "put", + "ResourceName": "Boolean", + "Doc": "put boolean value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "37", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "38", + "kind": "constant", + "valueType": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "40", + "Name": "body", + "NameInRequest": "body", + "Doc": "_", + "Type": { + "$id": "41", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "42", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/boolean", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Boolean.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Text", - "Uri": "{endpoint}", - "Path": "/type/scalar/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.String.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "22" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "23", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "24", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "25", - "Type": { - "$id": "26", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.Boolean", + "parent": { + "$ref": "2" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.String" - }, - { - "$id": "27", - "Name": "Boolean", - "Namespace": "Type.Scalar", - "Operations": [ + }, { - "$id": "28", - "Name": "get", - "ResourceName": "Boolean", - "Doc": "get boolean value", - "Accessibility": "public", - "Parameters": [ + "$id": "43", + "kind": "client", + "name": "Unknown", + "namespace": "Type.Scalar", + "parameters": [ { - "$id": "29", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "44", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "30", - "kind": "constant", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "45", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "46", + "Type": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "32", - "StatusCodes": [ - 200 + "$id": "48", + "Name": "get", + "ResourceName": "Unknown", + "Doc": "get unknown value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "49", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "50", + "kind": "constant", + "valueType": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "33", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "52", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "53", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/unknown", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Unknown.get", + "Decorators": [] + }, + { + "$id": "54", + "Name": "put", + "ResourceName": "Unknown", + "Doc": "put unknown value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "55", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "56", + "kind": "constant", + "valueType": { + "$id": "57", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "58", + "Name": "body", + "NameInRequest": "body", + "Doc": "_", + "Type": { + "$id": "59", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "60", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/unknown", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Unknown.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/boolean", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Boolean.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.Unknown", + "parent": { + "$ref": "2" + } }, { - "$id": "34", - "Name": "put", - "ResourceName": "Boolean", - "Doc": "put boolean value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "35", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "36", - "kind": "constant", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "61", + "kind": "client", + "name": "DecimalType", + "namespace": "Type.Scalar", + "doc": "Decimal type", + "parameters": [ { - "$id": "38", - "Name": "body", - "NameInRequest": "body", - "Doc": "_", + "$id": "62", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "39", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] + "$id": "63", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "64", + "Type": { + "$id": "65", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "66", + "Name": "responseBody", + "ResourceName": "DecimalType", + "Accessibility": "public", + "Parameters": [ + { + "$id": "67", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "68", + "kind": "constant", + "valueType": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "70", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "71", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal/response_body", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody", + "Decorators": [] + }, { - "$id": "40", - "StatusCodes": [ - 204 + "$id": "72", + "Name": "requestBody", + "ResourceName": "DecimalType", + "Accessibility": "public", + "Parameters": [ + { + "$id": "73", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "74", + "kind": "constant", + "valueType": { + "$id": "75", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "76", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "77", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "78", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal/resquest_body", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody", + "Decorators": [] + }, + { + "$id": "79", + "Name": "requestParameter", + "ResourceName": "DecimalType", + "Accessibility": "public", + "Parameters": [ + { + "$id": "80", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "81", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "82", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal/request_parameter", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.DecimalType.requestParameter", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/boolean", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Boolean.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "41" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "42", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "43", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "44", - "Type": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.DecimalType", + "parent": { + "$ref": "2" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.Boolean" - }, - { - "$id": "46", - "Name": "Unknown", - "Namespace": "Type.Scalar", - "Operations": [ + }, { - "$id": "47", - "Name": "get", - "ResourceName": "Unknown", - "Doc": "get unknown value", - "Accessibility": "public", - "Parameters": [ + "$id": "83", + "kind": "client", + "name": "Decimal128Type", + "namespace": "Type.Scalar", + "doc": "Decimal128 type", + "parameters": [ { - "$id": "48", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "84", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "49", - "kind": "constant", - "valueType": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "85", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "86", + "Type": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "51", - "StatusCodes": [ - 200 + "$id": "88", + "Name": "responseBody", + "ResourceName": "Decimal128Type", + "Accessibility": "public", + "Parameters": [ + { + "$id": "89", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "90", + "kind": "constant", + "valueType": { + "$id": "91", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "52", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "92", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "93", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal128/response_body", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody", + "Decorators": [] + }, + { + "$id": "94", + "Name": "requestBody", + "ResourceName": "Decimal128Type", + "Accessibility": "public", + "Parameters": [ + { + "$id": "95", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "96", + "kind": "constant", + "valueType": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "98", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "99", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "100", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal128/resquest_body", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody", + "Decorators": [] + }, + { + "$id": "101", + "Name": "requestParameter", + "ResourceName": "Decimal128Type", + "Accessibility": "public", + "Parameters": [ + { + "$id": "102", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "103", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "104", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal128/request_parameter", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestParameter", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/unknown", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Unknown.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type", + "parent": { + "$ref": "2" + } }, { - "$id": "53", - "Name": "put", - "ResourceName": "Unknown", - "Doc": "put unknown value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "54", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "55", - "kind": "constant", - "valueType": { - "$id": "56", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "105", + "kind": "client", + "name": "DecimalVerify", + "namespace": "Type.Scalar", + "doc": "Decimal type verification", + "parameters": [ { - "$id": "57", - "Name": "body", - "NameInRequest": "body", - "Doc": "_", + "$id": "106", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "58", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] + "$id": "107", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "108", + "Type": { + "$id": "109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "110", + "Name": "prepareVerify", + "ResourceName": "DecimalVerify", + "Accessibility": "public", + "Parameters": [ + { + "$id": "111", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "112", + "kind": "constant", + "valueType": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "114", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "115", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "116", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal/prepare_verify", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify", + "Decorators": [] + }, { - "$id": "59", - "StatusCodes": [ - 204 + "$id": "117", + "Name": "verify", + "ResourceName": "DecimalVerify", + "Accessibility": "public", + "Parameters": [ + { + "$id": "118", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "119", + "kind": "constant", + "valueType": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "121", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "122", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "123", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal/verify", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify", + "Decorators": [] } ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/unknown", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Unknown.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "60" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "61", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "62", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "63", - "Type": { - "$id": "64", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify", + "parent": { + "$ref": "2" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.Unknown" - }, - { - "$id": "65", - "Name": "DecimalType", - "Namespace": "Type.Scalar", - "Doc": "Decimal type", - "Operations": [ + }, { - "$id": "66", - "Name": "responseBody", - "ResourceName": "DecimalType", - "Accessibility": "public", - "Parameters": [ + "$id": "124", + "kind": "client", + "name": "Decimal128Verify", + "namespace": "Type.Scalar", + "doc": "Decimal128 type verification", + "parameters": [ { - "$id": "67", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "125", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "68", - "kind": "constant", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "126", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "127", + "Type": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "70", - "StatusCodes": [ - 200 + "$id": "129", + "Name": "prepareVerify", + "ResourceName": "Decimal128Verify", + "Accessibility": "public", + "Parameters": [ + { + "$id": "130", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "131", + "kind": "constant", + "valueType": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "71", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal/response_body", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody", - "Decorators": [] - }, - { - "$id": "72", - "Name": "requestBody", - "ResourceName": "DecimalType", - "Accessibility": "public", - "Parameters": [ - { - "$id": "73", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "74", - "kind": "constant", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "76", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "77", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "78", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal/resquest_body", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody", - "Decorators": [] - }, - { - "$id": "79", - "Name": "requestParameter", - "ResourceName": "DecimalType", - "Accessibility": "public", - "Parameters": [ - { - "$id": "80", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "81", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "82", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal/request_parameter", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.DecimalType.requestParameter", - "Decorators": [] - } - ], - "Protocol": { - "$id": "83" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "84", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "85", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "86", - "Type": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.DecimalType" - }, - { - "$id": "88", - "Name": "Decimal128Type", - "Namespace": "Type.Scalar", - "Doc": "Decimal128 type", - "Operations": [ - { - "$id": "89", - "Name": "responseBody", - "ResourceName": "Decimal128Type", - "Accessibility": "public", - "Parameters": [ - { - "$id": "90", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "91", - "kind": "constant", - "valueType": { - "$id": "92", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "93", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "133", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "134", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "135", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyType": { - "$id": "94", - "kind": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal128/response_body", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody", - "Decorators": [] - }, - { - "$id": "95", - "Name": "requestBody", - "ResourceName": "Decimal128Type", - "Accessibility": "public", - "Parameters": [ - { - "$id": "96", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "97", - "kind": "constant", - "valueType": { - "$id": "98", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal128/prepare_verify", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify", + "Decorators": [] }, { - "$id": "99", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "100", - "kind": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "101", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal128/resquest_body", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody", - "Decorators": [] - }, - { - "$id": "102", - "Name": "requestParameter", - "ResourceName": "Decimal128Type", - "Accessibility": "public", - "Parameters": [ - { - "$id": "103", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "104", - "kind": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "105", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal128/request_parameter", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestParameter", - "Decorators": [] - } - ], - "Protocol": { - "$id": "106" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "107", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "108", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "109", - "Type": { - "$id": "110", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type" - }, - { - "$id": "111", - "Name": "DecimalVerify", - "Namespace": "Type.Scalar", - "Doc": "Decimal type verification", - "Operations": [ - { - "$id": "112", - "Name": "prepareVerify", - "ResourceName": "DecimalVerify", - "Accessibility": "public", - "Parameters": [ - { - "$id": "113", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "114", - "kind": "constant", - "valueType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "136", + "Name": "verify", + "ResourceName": "Decimal128Verify", + "Accessibility": "public", + "Parameters": [ + { + "$id": "137", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "138", + "kind": "constant", + "valueType": { + "$id": "139", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "116", - "StatusCodes": [ - 200 + { + "$id": "140", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "141", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "117", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "118", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal/prepare_verify", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify", - "Decorators": [] - }, - { - "$id": "119", - "Name": "verify", - "ResourceName": "DecimalVerify", - "Accessibility": "public", - "Parameters": [ - { - "$id": "120", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "121", - "kind": "constant", - "valueType": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "123", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "124", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "125", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal/verify", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify", - "Decorators": [] - } - ], - "Protocol": { - "$id": "126" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "127", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "128", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "129", - "Type": { - "$id": "130", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.DecimalVerify" - }, - { - "$id": "131", - "Name": "Decimal128Verify", - "Namespace": "Type.Scalar", - "Doc": "Decimal128 type verification", - "Operations": [ - { - "$id": "132", - "Name": "prepareVerify", - "ResourceName": "Decimal128Verify", - "Accessibility": "public", - "Parameters": [ - { - "$id": "133", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "134", - "kind": "constant", - "valueType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "136", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "142", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } ], - "BodyType": { - "$id": "137", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "138", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal128/verify", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal128/prepare_verify", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify", - "Decorators": [] - }, - { - "$id": "139", - "Name": "verify", - "ResourceName": "Decimal128Verify", - "Accessibility": "public", - "Parameters": [ - { - "$id": "140", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "141", - "kind": "constant", - "valueType": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "143", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "144", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "145", - "StatusCodes": [ - 204 ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal128/verify", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify", - "Decorators": [] - } - ], - "Protocol": { - "$id": "146" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "147", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "148", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "149", - "Type": { - "$id": "150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify", + "parent": { + "$ref": "2" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Verify" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json index d23b843a59c..bc533175870 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json @@ -1716,21 +1716,18 @@ "Clients": [ { "$id": "211", - "Name": "UnionClient", - "Namespace": "Type.Union", - "Doc": "Describe scenarios for various combinations of unions.", - "Operations": [], - "Protocol": { - "$id": "212" - }, - "Parameters": [ + "kind": "client", + "name": "UnionClient", + "namespace": "Type.Union", + "doc": "Describe scenarios for various combinations of unions.", + "parameters": [ { - "$id": "213", + "$id": "212", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "214", + "$id": "213", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1745,9 +1742,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "215", + "$id": "214", "Type": { - "$id": "216", + "$id": "215", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1756,1848 +1753,1851 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union" - }, - { - "$id": "217", - "Name": "StringsOnly", - "Namespace": "Type.Union", - "Doc": "Describe union of string \"a\" | \"b\" | \"c\"", - "Operations": [ - { - "$id": "218", - "Name": "get", - "ResourceName": "StringsOnly", - "Accessibility": "public", - "Parameters": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union", + "children": [ + { + "$id": "216", + "kind": "client", + "name": "StringsOnly", + "namespace": "Type.Union", + "doc": "Describe union of string \"a\" | \"b\" | \"c\"", + "parameters": [ { - "$id": "219", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "217", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "220", - "kind": "constant", - "valueType": { - "$id": "221", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "218", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "219", + "Type": { + "$id": "220", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "222", - "StatusCodes": [ - 200 + "$id": "221", + "Name": "get", + "ResourceName": "StringsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "222", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "223", + "kind": "constant", + "valueType": { + "$id": "224", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "203" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "225", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "203" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/union/strings-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringsOnly.get", + "Decorators": [] + }, + { + "$id": "226", + "Name": "send", + "ResourceName": "StringsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "227", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "228", + "kind": "constant", + "valueType": { + "$id": "229", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "230", + "Name": "sendRequest9", + "NameInRequest": "sendRequest9", + "Type": { + "$ref": "207" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "231", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/union/strings-only", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringsOnly.send", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/union/strings-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringsOnly.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.StringsOnly", + "parent": { + "$ref": "211" + } }, { - "$id": "223", - "Name": "send", - "ResourceName": "StringsOnly", - "Accessibility": "public", - "Parameters": [ - { - "$id": "224", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "225", - "kind": "constant", - "valueType": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "232", + "kind": "client", + "name": "StringExtensible", + "namespace": "Type.Union", + "doc": "Describe union of string string | \"b\" | \"c\"", + "parameters": [ { - "$id": "227", - "Name": "sendRequest9", - "NameInRequest": "sendRequest9", + "$id": "233", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "207" + "$id": "234", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "235", + "Type": { + "$id": "236", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "228", - "StatusCodes": [ - 204 + "$id": "237", + "Name": "get", + "ResourceName": "StringExtensible", + "Accessibility": "public", + "Parameters": [ + { + "$id": "238", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "239", + "kind": "constant", + "valueType": { + "$id": "240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/union/strings-only", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringsOnly.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "229" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "230", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "231", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "232", - "Type": { - "$id": "233", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "241", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "195" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/union/string-extensible", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringExtensible.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.StringsOnly" - }, - { - "$id": "234", - "Name": "StringExtensible", - "Namespace": "Type.Union", - "Doc": "Describe union of string string | \"b\" | \"c\"", - "Operations": [ - { - "$id": "235", - "Name": "get", - "ResourceName": "StringExtensible", - "Accessibility": "public", - "Parameters": [ { - "$id": "236", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "237", - "kind": "constant", - "valueType": { - "$id": "238", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "242", + "Name": "send", + "ResourceName": "StringExtensible", + "Accessibility": "public", + "Parameters": [ + { + "$id": "243", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "244", + "kind": "constant", + "valueType": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "239", - "StatusCodes": [ - 200 + { + "$id": "246", + "Name": "sendRequest8", + "NameInRequest": "sendRequest8", + "Type": { + "$ref": "199" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "195" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "247", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/union/string-extensible", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringExtensible.send", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/union/string-extensible", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringExtensible.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.StringExtensible", + "parent": { + "$ref": "211" + } }, { - "$id": "240", - "Name": "send", - "ResourceName": "StringExtensible", - "Accessibility": "public", - "Parameters": [ - { - "$id": "241", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "242", - "kind": "constant", - "valueType": { - "$id": "243", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "248", + "kind": "client", + "name": "StringExtensibleNamed", + "namespace": "Type.Union", + "doc": "Describe union of string string | \"b\" | \"c\" but where the union is named and some of the variants are named", + "parameters": [ { - "$id": "244", - "Name": "sendRequest8", - "NameInRequest": "sendRequest8", + "$id": "249", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "199" + "$id": "250", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "251", + "Type": { + "$id": "252", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "245", - "StatusCodes": [ - 204 + "$id": "253", + "Name": "get", + "ResourceName": "StringExtensibleNamed", + "Accessibility": "public", + "Parameters": [ + { + "$id": "254", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "255", + "kind": "constant", + "valueType": { + "$id": "256", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/union/string-extensible", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringExtensible.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "246" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "247", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "248", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "249", - "Type": { - "$id": "250", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "257", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "187" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/union/string-extensible-named", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.StringExtensible" - }, - { - "$id": "251", - "Name": "StringExtensibleNamed", - "Namespace": "Type.Union", - "Doc": "Describe union of string string | \"b\" | \"c\" but where the union is named and some of the variants are named", - "Operations": [ - { - "$id": "252", - "Name": "get", - "ResourceName": "StringExtensibleNamed", - "Accessibility": "public", - "Parameters": [ { - "$id": "253", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "254", - "kind": "constant", - "valueType": { - "$id": "255", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "258", + "Name": "send", + "ResourceName": "StringExtensibleNamed", + "Accessibility": "public", + "Parameters": [ + { + "$id": "259", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "260", + "kind": "constant", + "valueType": { + "$id": "261", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "256", - "StatusCodes": [ - 200 + { + "$id": "262", + "Name": "sendRequest7", + "NameInRequest": "sendRequest7", + "Type": { + "$ref": "191" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "187" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "263", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/union/string-extensible-named", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/union/string-extensible-named", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed", + "parent": { + "$ref": "211" + } }, { - "$id": "257", - "Name": "send", - "ResourceName": "StringExtensibleNamed", - "Accessibility": "public", - "Parameters": [ - { - "$id": "258", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "259", - "kind": "constant", - "valueType": { - "$id": "260", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "264", + "kind": "client", + "name": "IntsOnly", + "namespace": "Type.Union", + "doc": "Describe union of integer 1 | 2 | 3", + "parameters": [ { - "$id": "261", - "Name": "sendRequest7", - "NameInRequest": "sendRequest7", + "$id": "265", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "191" + "$id": "266", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "267", + "Type": { + "$id": "268", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "262", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/union/string-extensible-named", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "263" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "264", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "265", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "266", - "Type": { - "$id": "267", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.StringExtensibleNamed" - }, - { - "$id": "268", - "Name": "IntsOnly", - "Namespace": "Type.Union", - "Doc": "Describe union of integer 1 | 2 | 3", - "Operations": [ - { - "$id": "269", - "Name": "get", - "ResourceName": "IntsOnly", - "Accessibility": "public", - "Parameters": [ - { - "$id": "270", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "271", - "kind": "constant", - "valueType": { - "$id": "272", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "273", - "StatusCodes": [ - 200 + "$id": "269", + "Name": "get", + "ResourceName": "IntsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "270", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "271", + "kind": "constant", + "valueType": { + "$id": "272", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "179" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/union/ints-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.IntsOnly.get", - "Decorators": [] - }, - { - "$id": "274", - "Name": "send", - "ResourceName": "IntsOnly", - "Accessibility": "public", - "Parameters": [ - { - "$id": "275", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "276", - "kind": "constant", - "valueType": { - "$id": "277", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "278", - "Name": "sendRequest6", - "NameInRequest": "sendRequest6", - "Type": { - "$ref": "183" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "279", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "273", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "179" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/union/ints-only", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.IntsOnly.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "280" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "281", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "282", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "283", - "Type": { - "$id": "284", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/union/ints-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.IntsOnly.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.IntsOnly" - }, - { - "$id": "285", - "Name": "FloatsOnly", - "Namespace": "Type.Union", - "Doc": "Describe union of floats 1.1 | 2.2 | 3.3", - "Operations": [ - { - "$id": "286", - "Name": "get", - "ResourceName": "FloatsOnly", - "Accessibility": "public", - "Parameters": [ { - "$id": "287", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "288", - "kind": "constant", - "valueType": { - "$id": "289", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "274", + "Name": "send", + "ResourceName": "IntsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "275", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "276", + "kind": "constant", + "valueType": { + "$id": "277", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "290", - "StatusCodes": [ - 200 + { + "$id": "278", + "Name": "sendRequest6", + "NameInRequest": "sendRequest6", + "Type": { + "$ref": "183" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "171" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "279", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/union/ints-only", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/union/floats-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.FloatsOnly.get", - "Decorators": [] - }, - { - "$id": "291", - "Name": "send", - "ResourceName": "FloatsOnly", - "Accessibility": "public", - "Parameters": [ - { - "$id": "292", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "293", - "kind": "constant", - "valueType": { - "$id": "294", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "295", - "Name": "sendRequest5", - "NameInRequest": "sendRequest5", - "Type": { - "$ref": "175" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "296", - "StatusCodes": [ - 204 ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.IntsOnly.send", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/union/floats-only", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.FloatsOnly.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "297" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "298", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "299", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "300", - "Type": { - "$id": "301", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.IntsOnly", + "parent": { + "$ref": "211" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.FloatsOnly" - }, - { - "$id": "302", - "Name": "ModelsOnly", - "Namespace": "Type.Union", - "Doc": "Describe union of models", - "Operations": [ + }, { - "$id": "303", - "Name": "get", - "ResourceName": "ModelsOnly", - "Accessibility": "public", - "Parameters": [ + "$id": "280", + "kind": "client", + "name": "FloatsOnly", + "namespace": "Type.Union", + "doc": "Describe union of floats 1.1 | 2.2 | 3.3", + "parameters": [ { - "$id": "304", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "281", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "305", - "kind": "constant", - "valueType": { - "$id": "306", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "282", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "307", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "157" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/union/models-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.ModelsOnly.get", - "Decorators": [] - }, - { - "$id": "308", - "Name": "send", - "ResourceName": "ModelsOnly", - "Accessibility": "public", - "Parameters": [ - { - "$id": "309", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "310", - "kind": "constant", - "valueType": { - "$id": "311", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "283", + "Type": { + "$id": "284", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "312", - "Name": "sendRequest4", - "NameInRequest": "sendRequest4", - "Type": { - "$ref": "167" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "313", - "StatusCodes": [ - 204 + "$id": "285", + "Name": "get", + "ResourceName": "FloatsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "286", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "287", + "kind": "constant", + "valueType": { + "$id": "288", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/union/models-only", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.ModelsOnly.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "314" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "315", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "316", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "317", - "Type": { - "$id": "318", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "289", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "171" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/union/floats-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.FloatsOnly.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.ModelsOnly" - }, - { - "$id": "319", - "Name": "EnumsOnly", - "Namespace": "Type.Union", - "Doc": "Describe union of 2 different enums", - "Operations": [ - { - "$id": "320", - "Name": "get", - "ResourceName": "EnumsOnly", - "Accessibility": "public", - "Parameters": [ { - "$id": "321", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "322", - "kind": "constant", - "valueType": { - "$id": "323", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "290", + "Name": "send", + "ResourceName": "FloatsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "291", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "292", + "kind": "constant", + "valueType": { + "$id": "293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "324", - "StatusCodes": [ - 200 + { + "$id": "294", + "Name": "sendRequest5", + "NameInRequest": "sendRequest5", + "Type": { + "$ref": "175" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "142" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "295", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/union/floats-only", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/union/enums-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.EnumsOnly.get", - "Decorators": [] - }, - { - "$id": "325", - "Name": "send", - "ResourceName": "EnumsOnly", - "Accessibility": "public", - "Parameters": [ - { - "$id": "326", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "327", - "kind": "constant", - "valueType": { - "$id": "328", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "329", - "Name": "sendRequest3", - "NameInRequest": "sendRequest3", - "Type": { - "$ref": "153" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "330", - "StatusCodes": [ - 204 ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.FloatsOnly.send", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/union/enums-only", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.EnumsOnly.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "331" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "332", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "333", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "334", - "Type": { - "$id": "335", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.FloatsOnly", + "parent": { + "$ref": "211" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.EnumsOnly" - }, - { - "$id": "336", - "Name": "StringAndArray", - "Namespace": "Type.Union", - "Doc": "Describe union of a string and an array of strings", - "Operations": [ + }, { - "$id": "337", - "Name": "get", - "ResourceName": "StringAndArray", - "Accessibility": "public", - "Parameters": [ + "$id": "296", + "kind": "client", + "name": "ModelsOnly", + "namespace": "Type.Union", + "doc": "Describe union of models", + "parameters": [ { - "$id": "338", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "297", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "339", - "kind": "constant", - "valueType": { - "$id": "340", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "298", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "341", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "119" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/union/string-and-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringAndArray.get", - "Decorators": [] - }, - { - "$id": "342", - "Name": "send", - "ResourceName": "StringAndArray", - "Accessibility": "public", - "Parameters": [ - { - "$id": "343", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "344", - "kind": "constant", - "valueType": { - "$id": "345", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "299", + "Type": { + "$id": "300", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "346", - "Name": "sendRequest2", - "NameInRequest": "sendRequest2", - "Type": { - "$ref": "138" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "347", - "StatusCodes": [ - 204 + "$id": "301", + "Name": "get", + "ResourceName": "ModelsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "302", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "303", + "kind": "constant", + "valueType": { + "$id": "304", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/union/string-and-array", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringAndArray.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "348" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "349", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "350", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "351", - "Type": { - "$id": "352", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "305", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "157" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/union/models-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.ModelsOnly.get", + "Decorators": [] }, - "Value": "http://localhost:3000" + { + "$id": "306", + "Name": "send", + "ResourceName": "ModelsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "307", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "308", + "kind": "constant", + "valueType": { + "$id": "309", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "310", + "Name": "sendRequest4", + "NameInRequest": "sendRequest4", + "Type": { + "$ref": "167" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "311", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/union/models-only", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.ModelsOnly.send", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.ModelsOnly", + "parent": { + "$ref": "211" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.StringAndArray" - }, - { - "$id": "353", - "Name": "MixedLiterals", - "Namespace": "Type.Union", - "Doc": "Describe union of floats \"a\" | 2 | 3.3", - "Operations": [ + }, { - "$id": "354", - "Name": "get", - "ResourceName": "MixedLiterals", - "Accessibility": "public", - "Parameters": [ + "$id": "312", + "kind": "client", + "name": "EnumsOnly", + "namespace": "Type.Union", + "doc": "Describe union of 2 different enums", + "parameters": [ { - "$id": "355", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "313", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "356", - "kind": "constant", - "valueType": { - "$id": "357", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "314", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "315", + "Type": { + "$id": "316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "317", + "Name": "get", + "ResourceName": "EnumsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "318", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "319", + "kind": "constant", + "valueType": { + "$id": "320", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "321", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "142" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/union/enums-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.EnumsOnly.get", + "Decorators": [] + }, { - "$id": "358", - "StatusCodes": [ - 200 + "$id": "322", + "Name": "send", + "ResourceName": "EnumsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "323", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "324", + "kind": "constant", + "valueType": { + "$id": "325", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "326", + "Name": "sendRequest3", + "NameInRequest": "sendRequest3", + "Type": { + "$ref": "153" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "89" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "327", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/union/enums-only", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.EnumsOnly.send", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/union/mixed-literals", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.MixedLiterals.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.EnumsOnly", + "parent": { + "$ref": "211" + } }, { - "$id": "359", - "Name": "send", - "ResourceName": "MixedLiterals", - "Accessibility": "public", - "Parameters": [ - { - "$id": "360", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "361", - "kind": "constant", - "valueType": { - "$id": "362", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "328", + "kind": "client", + "name": "StringAndArray", + "namespace": "Type.Union", + "doc": "Describe union of a string and an array of strings", + "parameters": [ { - "$id": "363", - "Name": "sendRequest1", - "NameInRequest": "sendRequest1", + "$id": "329", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "115" + "$id": "330", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "331", + "Type": { + "$id": "332", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "333", + "Name": "get", + "ResourceName": "StringAndArray", + "Accessibility": "public", + "Parameters": [ + { + "$id": "334", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "335", + "kind": "constant", + "valueType": { + "$id": "336", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "337", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "119" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/union/string-and-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringAndArray.get", + "Decorators": [] + }, { - "$id": "364", - "StatusCodes": [ - 204 + "$id": "338", + "Name": "send", + "ResourceName": "StringAndArray", + "Accessibility": "public", + "Parameters": [ + { + "$id": "339", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "340", + "kind": "constant", + "valueType": { + "$id": "341", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "342", + "Name": "sendRequest2", + "NameInRequest": "sendRequest2", + "Type": { + "$ref": "138" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "343", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/union/string-and-array", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringAndArray.send", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/union/mixed-literals", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.MixedLiterals.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "365" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "366", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "367", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "368", - "Type": { - "$id": "369", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.StringAndArray", + "parent": { + "$ref": "211" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.MixedLiterals" - }, - { - "$id": "370", - "Name": "MixedTypes", - "Namespace": "Type.Union", - "Doc": "Describe union of floats \"a\" | 2 | 3.3", - "Operations": [ + }, { - "$id": "371", - "Name": "get", - "ResourceName": "MixedTypes", - "Accessibility": "public", - "Parameters": [ + "$id": "344", + "kind": "client", + "name": "MixedLiterals", + "namespace": "Type.Union", + "doc": "Describe union of floats \"a\" | 2 | 3.3", + "parameters": [ { - "$id": "372", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "345", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "373", - "kind": "constant", - "valueType": { - "$id": "374", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "346", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "347", + "Type": { + "$id": "348", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "375", - "StatusCodes": [ - 200 + "$id": "349", + "Name": "get", + "ResourceName": "MixedLiterals", + "Accessibility": "public", + "Parameters": [ + { + "$id": "350", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "351", + "kind": "constant", + "valueType": { + "$id": "352", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "54" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "353", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "89" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/union/mixed-literals", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.MixedLiterals.get", + "Decorators": [] + }, + { + "$id": "354", + "Name": "send", + "ResourceName": "MixedLiterals", + "Accessibility": "public", + "Parameters": [ + { + "$id": "355", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "356", + "kind": "constant", + "valueType": { + "$id": "357", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "358", + "Name": "sendRequest1", + "NameInRequest": "sendRequest1", + "Type": { + "$ref": "115" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "359", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/union/mixed-literals", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.MixedLiterals.send", + "Decorators": [] } ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/type/union/mixed-types", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.MixedTypes.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.MixedLiterals", + "parent": { + "$ref": "211" + } }, { - "$id": "376", - "Name": "send", - "ResourceName": "MixedTypes", - "Accessibility": "public", - "Parameters": [ - { - "$id": "377", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "378", - "kind": "constant", - "valueType": { - "$id": "379", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "360", + "kind": "client", + "name": "MixedTypes", + "namespace": "Type.Union", + "doc": "Describe union of floats \"a\" | 2 | 3.3", + "parameters": [ { - "$id": "380", - "Name": "sendRequest", - "NameInRequest": "sendRequest", + "$id": "361", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "85" + "$id": "362", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "363", + "Type": { + "$id": "364", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "365", + "Name": "get", + "ResourceName": "MixedTypes", + "Accessibility": "public", + "Parameters": [ + { + "$id": "366", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "367", + "kind": "constant", + "valueType": { + "$id": "368", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "369", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "54" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/type/union/mixed-types", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.MixedTypes.get", + "Decorators": [] + }, { - "$id": "381", - "StatusCodes": [ - 204 + "$id": "370", + "Name": "send", + "ResourceName": "MixedTypes", + "Accessibility": "public", + "Parameters": [ + { + "$id": "371", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "372", + "kind": "constant", + "valueType": { + "$id": "373", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "374", + "Name": "sendRequest", + "NameInRequest": "sendRequest", + "Type": { + "$ref": "85" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "375", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/type/union/mixed-types", + "RequestMediaTypes": [ + "application/json" ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.MixedTypes.send", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/type/union/mixed-types", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.MixedTypes.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "382" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "383", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "384", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "385", - "Type": { - "$id": "386", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypes", + "parent": { + "$ref": "211" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.MixedTypes" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json index 95462791f46..6f718d86bad 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json @@ -146,26 +146,68 @@ "Clients": [ { "$id": "18", - "Name": "AddedClient", - "Namespace": "Versioning.Added", - "Doc": "Test for the `@added` decorator.", - "Operations": [ + "kind": "client", + "name": "AddedClient", + "namespace": "Versioning.Added", + "doc": "Test for the `@added` decorator.", + "parameters": [ { "$id": "19", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "20", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "21", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "6" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "22", "Name": "v1", "ResourceName": "Added", "Accessibility": "public", "Parameters": [ { - "$id": "20", + "$id": "23", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "21", + "$id": "24", "kind": "constant", "valueType": { - "$id": "22", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -185,14 +227,14 @@ "SkipUrlEncoding": false }, { - "$id": "23", + "$id": "26", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "24", + "$id": "27", "kind": "constant", "valueType": { - "$id": "25", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -212,7 +254,7 @@ "SkipUrlEncoding": false }, { - "$id": "26", + "$id": "29", "Name": "body", "NameInRequest": "body", "Type": { @@ -231,7 +273,7 @@ ], "Responses": [ { - "$id": "27", + "$id": "30", "StatusCodes": [ 200 ], @@ -260,52 +302,10 @@ "Decorators": [] } ], - "Protocol": { - "$id": "28" - }, - "Parameters": [ - { - "$id": "29", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "30", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "31", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "6" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Added" + "crossLanguageDefinitionId": "Versioning.Added" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json index 0bbd05cea27..ab9ab991e1a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json @@ -369,22 +369,64 @@ "Clients": [ { "$id": "47", - "Name": "AddedClient", - "Namespace": "Versioning.Added", - "Doc": "Test for the `@added` decorator.", - "Operations": [ + "kind": "client", + "name": "AddedClient", + "namespace": "Versioning.Added", + "doc": "Test for the `@added` decorator.", + "parameters": [ { "$id": "48", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "49", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "50", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "12" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "51", "Name": "v1", "ResourceName": "Added", "Accessibility": "public", "Parameters": [ { - "$id": "49", + "$id": "52", "Name": "headerV2", "NameInRequest": "header-v2", "Type": { - "$id": "50", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -401,15 +443,15 @@ "SkipUrlEncoding": false }, { - "$id": "51", + "$id": "54", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "52", + "$id": "55", "kind": "constant", "valueType": { - "$id": "53", + "$id": "56", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -429,14 +471,14 @@ "SkipUrlEncoding": false }, { - "$id": "54", + "$id": "57", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "55", + "$id": "58", "kind": "constant", "valueType": { - "$id": "56", + "$id": "59", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -456,7 +498,7 @@ "SkipUrlEncoding": false }, { - "$id": "57", + "$id": "60", "Name": "body", "NameInRequest": "body", "Type": { @@ -475,7 +517,7 @@ ], "Responses": [ { - "$id": "58", + "$id": "61", "StatusCodes": [ 200 ], @@ -504,21 +546,21 @@ "Decorators": [] }, { - "$id": "59", + "$id": "62", "Name": "v2", "ResourceName": "Added", "Accessibility": "public", "Parameters": [ { - "$id": "60", + "$id": "63", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "61", + "$id": "64", "kind": "constant", "valueType": { - "$id": "62", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -538,14 +580,14 @@ "SkipUrlEncoding": false }, { - "$id": "63", + "$id": "66", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "64", + "$id": "67", "kind": "constant", "valueType": { - "$id": "65", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -565,7 +607,7 @@ "SkipUrlEncoding": false }, { - "$id": "66", + "$id": "69", "Name": "body", "NameInRequest": "body", "Type": { @@ -584,7 +626,7 @@ ], "Responses": [ { - "$id": "67", + "$id": "70", "StatusCodes": [ 200 ], @@ -613,215 +655,178 @@ "Decorators": [] } ], - "Protocol": { - "$id": "68" - }, - "Parameters": [ - { - "$id": "69", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "70", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "71", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "12" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1", + "v2" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Added" - }, - { - "$id": "72", - "Name": "InterfaceV2", - "Namespace": "Versioning.Added", - "Operations": [ + "crossLanguageDefinitionId": "Versioning.Added", + "children": [ { - "$id": "73", - "Name": "v2InInterface", - "ResourceName": "InterfaceV2", - "Accessibility": "public", - "Parameters": [ - { - "$id": "74", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "75", - "kind": "constant", - "valueType": { - "$id": "76", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "71", + "kind": "client", + "name": "InterfaceV2", + "namespace": "Versioning.Added", + "parameters": [ { - "$id": "77", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "72", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "78", - "kind": "constant", - "valueType": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "73", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" }, { - "$id": "80", - "Name": "body", - "NameInRequest": "body", + "$id": "74", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", "Type": { - "$ref": "33" + "$ref": "12" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, + "IsRequired": true, "IsEndpoint": false, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Kind": "Client" } ], - "Responses": [ + "operations": [ { - "$id": "81", - "StatusCodes": [ - 200 + "$id": "75", + "Name": "v2InInterface", + "ResourceName": "InterfaceV2", + "Accessibility": "public", + "Parameters": [ + { + "$id": "76", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "77", + "kind": "constant", + "valueType": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "79", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "80", + "kind": "constant", + "valueType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "82", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "33" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "33" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "83", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "33" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/versioning/added/api-version:{version}", + "Path": "/interface-v2/v2", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}/versioning/added/api-version:{version}", - "Path": "/interface-v2/v2", - "RequestMediaTypes": [ - "application/json" + "apiVersions": [ + "v2" ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface", - "Decorators": [] - } - ], - "Protocol": { - "$id": "82" - }, - "Parent": "AddedClient", - "Parameters": [ - { - "$id": "83", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "84", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "85", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "12" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2", + "parent": { + "$ref": "47" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Added.InterfaceV2" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json index fbf9521525b..38526575490 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json @@ -113,22 +113,64 @@ "Clients": [ { "$id": "15", - "Name": "MadeOptionalClient", - "Namespace": "Versioning.MadeOptional", - "Doc": "Test for the `@madeOptional` decorator.", - "Operations": [ + "kind": "client", + "name": "MadeOptionalClient", + "namespace": "Versioning.MadeOptional", + "doc": "Test for the `@madeOptional` decorator.", + "parameters": [ { "$id": "16", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "17", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "18", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "19", "Name": "test", "ResourceName": "MadeOptional", "Accessibility": "public", "Parameters": [ { - "$id": "17", + "$id": "20", "Name": "param", "NameInRequest": "param", "Type": { - "$id": "18", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -145,15 +187,15 @@ "SkipUrlEncoding": false }, { - "$id": "19", + "$id": "22", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "20", + "$id": "23", "kind": "constant", "valueType": { - "$id": "21", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -173,14 +215,14 @@ "SkipUrlEncoding": false }, { - "$id": "22", + "$id": "25", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "23", + "$id": "26", "kind": "constant", "valueType": { - "$id": "24", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -200,7 +242,7 @@ "SkipUrlEncoding": false }, { - "$id": "25", + "$id": "28", "Name": "body", "NameInRequest": "body", "Type": { @@ -219,7 +261,7 @@ ], "Responses": [ { - "$id": "26", + "$id": "29", "StatusCodes": [ 200 ], @@ -248,52 +290,10 @@ "Decorators": [] } ], - "Protocol": { - "$id": "27" - }, - "Parameters": [ - { - "$id": "28", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "29", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "30", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.MadeOptional" + "crossLanguageDefinitionId": "Versioning.MadeOptional" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json index 15b7c6e2742..8ae440b2e5a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json @@ -132,22 +132,64 @@ "Clients": [ { "$id": "17", - "Name": "MadeOptionalClient", - "Namespace": "Versioning.MadeOptional", - "Doc": "Test for the `@madeOptional` decorator.", - "Operations": [ + "kind": "client", + "name": "MadeOptionalClient", + "namespace": "Versioning.MadeOptional", + "doc": "Test for the `@madeOptional` decorator.", + "parameters": [ { "$id": "18", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "19", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "20", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "21", "Name": "test", "ResourceName": "MadeOptional", "Accessibility": "public", "Parameters": [ { - "$id": "19", + "$id": "22", "Name": "param", "NameInRequest": "param", "Type": { - "$id": "20", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -164,15 +206,15 @@ "SkipUrlEncoding": false }, { - "$id": "21", + "$id": "24", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "22", + "$id": "25", "kind": "constant", "valueType": { - "$id": "23", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -192,14 +234,14 @@ "SkipUrlEncoding": false }, { - "$id": "24", + "$id": "27", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "25", + "$id": "28", "kind": "constant", "valueType": { - "$id": "26", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -219,7 +261,7 @@ "SkipUrlEncoding": false }, { - "$id": "27", + "$id": "30", "Name": "body", "NameInRequest": "body", "Type": { @@ -238,7 +280,7 @@ ], "Responses": [ { - "$id": "28", + "$id": "31", "StatusCodes": [ 200 ], @@ -267,52 +309,11 @@ "Decorators": [] } ], - "Protocol": { - "$id": "29" - }, - "Parameters": [ - { - "$id": "30", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "31", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "32", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1", + "v2" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.MadeOptional" + "crossLanguageDefinitionId": "Versioning.MadeOptional" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json index 1ce3759f6e5..c0bad2ca125 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json @@ -496,27 +496,69 @@ "Clients": [ { "$id": "64", - "Name": "RemovedClient", - "Namespace": "Versioning.Removed", - "Doc": "Test for the `@removed` decorator.", - "Operations": [ + "kind": "client", + "name": "RemovedClient", + "namespace": "Versioning.Removed", + "doc": "Test for the `@removed` decorator.", + "parameters": [ { "$id": "65", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "66", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "67", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "Type": { + "$ref": "18" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "68", "Name": "v1", "ResourceName": "Removed", "Doc": "This operation should not be generated with latest version's signature.", "Accessibility": "public", "Parameters": [ { - "$id": "66", + "$id": "69", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "67", + "$id": "70", "kind": "constant", "valueType": { - "$id": "68", + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -536,14 +578,14 @@ "SkipUrlEncoding": false }, { - "$id": "69", + "$id": "72", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "70", + "$id": "73", "kind": "constant", "valueType": { - "$id": "71", + "$id": "74", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -563,7 +605,7 @@ "SkipUrlEncoding": false }, { - "$id": "72", + "$id": "75", "Name": "body", "NameInRequest": "body", "Type": { @@ -582,7 +624,7 @@ ], "Responses": [ { - "$id": "73", + "$id": "76", "StatusCodes": [ 200 ], @@ -611,17 +653,17 @@ "Decorators": [] }, { - "$id": "74", + "$id": "77", "Name": "v2", "ResourceName": "Removed", "Accessibility": "public", "Parameters": [ { - "$id": "75", + "$id": "78", "Name": "param", "NameInRequest": "param", "Type": { - "$id": "76", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -638,15 +680,15 @@ "SkipUrlEncoding": false }, { - "$id": "77", + "$id": "80", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "78", + "$id": "81", "kind": "constant", "valueType": { - "$id": "79", + "$id": "82", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -666,14 +708,14 @@ "SkipUrlEncoding": false }, { - "$id": "80", + "$id": "83", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "81", + "$id": "84", "kind": "constant", "valueType": { - "$id": "82", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -693,7 +735,7 @@ "SkipUrlEncoding": false }, { - "$id": "83", + "$id": "86", "Name": "body", "NameInRequest": "body", "Type": { @@ -712,7 +754,7 @@ ], "Responses": [ { - "$id": "84", + "$id": "87", "StatusCodes": [ 200 ], @@ -741,22 +783,22 @@ "Decorators": [] }, { - "$id": "85", + "$id": "88", "Name": "modelV3", "ResourceName": "Removed", "Doc": "This operation will pass different paths and different request bodies based on different versions.", "Accessibility": "public", "Parameters": [ { - "$id": "86", + "$id": "89", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "87", + "$id": "90", "kind": "constant", "valueType": { - "$id": "88", + "$id": "91", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -776,14 +818,14 @@ "SkipUrlEncoding": false }, { - "$id": "89", + "$id": "92", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "90", + "$id": "93", "kind": "constant", "valueType": { - "$id": "91", + "$id": "94", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -803,7 +845,7 @@ "SkipUrlEncoding": false }, { - "$id": "92", + "$id": "95", "Name": "body", "NameInRequest": "body", "Type": { @@ -822,7 +864,7 @@ ], "Responses": [ { - "$id": "93", + "$id": "96", "StatusCodes": [ 200 ], @@ -851,216 +893,178 @@ "Decorators": [] } ], - "Protocol": { - "$id": "94" - }, - "Parameters": [ - { - "$id": "95", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "96", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "97", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "Type": { - "$ref": "18" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Removed" - }, - { - "$id": "98", - "Name": "InterfaceV1", - "Namespace": "Versioning.Removed", - "Doc": "This operation group should not be generated with latest version.", - "Operations": [ + "crossLanguageDefinitionId": "Versioning.Removed", + "children": [ { - "$id": "99", - "Name": "v1InInterface", - "ResourceName": "InterfaceV1", - "Accessibility": "public", - "Parameters": [ - { - "$id": "100", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "101", - "kind": "constant", - "valueType": { - "$id": "102", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "97", + "kind": "client", + "name": "InterfaceV1", + "namespace": "Versioning.Removed", + "doc": "This operation group should not be generated with latest version.", + "parameters": [ { - "$id": "103", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "98", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "104", - "kind": "constant", - "valueType": { - "$id": "105", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "99", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" }, { - "$id": "106", - "Name": "body", - "NameInRequest": "body", + "$id": "100", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "Type": { - "$ref": "22" + "$ref": "18" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, + "IsRequired": true, "IsEndpoint": false, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Kind": "Client" } ], - "Responses": [ + "operations": [ { - "$id": "107", - "StatusCodes": [ - 200 + "$id": "101", + "Name": "v1InInterface", + "ResourceName": "InterfaceV1", + "Accessibility": "public", + "Parameters": [ + { + "$id": "102", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "103", + "kind": "constant", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "105", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "106", + "kind": "constant", + "valueType": { + "$id": "107", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "108", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "22" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "22" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "109", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "22" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/versioning/removed/api-version:{version}", + "Path": "/interface-v1/v1", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}/versioning/removed/api-version:{version}", - "Path": "/interface-v1/v1", - "RequestMediaTypes": [ - "application/json" + "apiVersions": [ + "v1" ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface", - "Decorators": [] - } - ], - "Protocol": { - "$id": "108" - }, - "Parent": "RemovedClient", - "Parameters": [ - { - "$id": "109", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "110", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "111", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "Type": { - "$ref": "18" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", + "parent": { + "$ref": "64" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Removed.InterfaceV1" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json index 21d6816ca9b..68b074afb84 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json @@ -339,26 +339,68 @@ "Clients": [ { "$id": "42", - "Name": "RemovedClient", - "Namespace": "Versioning.Removed", - "Doc": "Test for the `@removed` decorator.", - "Operations": [ + "kind": "client", + "name": "RemovedClient", + "namespace": "Versioning.Removed", + "doc": "Test for the `@removed` decorator.", + "parameters": [ { "$id": "43", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "44", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "45", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "Type": { + "$ref": "12" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "46", "Name": "v2", "ResourceName": "Removed", "Accessibility": "public", "Parameters": [ { - "$id": "44", + "$id": "47", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "45", + "$id": "48", "kind": "constant", "valueType": { - "$id": "46", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -378,14 +420,14 @@ "SkipUrlEncoding": false }, { - "$id": "47", + "$id": "50", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "48", + "$id": "51", "kind": "constant", "valueType": { - "$id": "49", + "$id": "52", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -405,7 +447,7 @@ "SkipUrlEncoding": false }, { - "$id": "50", + "$id": "53", "Name": "body", "NameInRequest": "body", "Type": { @@ -424,7 +466,7 @@ ], "Responses": [ { - "$id": "51", + "$id": "54", "StatusCodes": [ 200 ], @@ -453,22 +495,22 @@ "Decorators": [] }, { - "$id": "52", + "$id": "55", "Name": "modelV3", "ResourceName": "Removed", "Doc": "This operation will pass different paths and different request bodies based on different versions.", "Accessibility": "public", "Parameters": [ { - "$id": "53", + "$id": "56", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "54", + "$id": "57", "kind": "constant", "valueType": { - "$id": "55", + "$id": "58", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -488,14 +530,14 @@ "SkipUrlEncoding": false }, { - "$id": "56", + "$id": "59", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "57", + "$id": "60", "kind": "constant", "valueType": { - "$id": "58", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -515,7 +557,7 @@ "SkipUrlEncoding": false }, { - "$id": "59", + "$id": "62", "Name": "body", "NameInRequest": "body", "Type": { @@ -534,7 +576,7 @@ ], "Responses": [ { - "$id": "60", + "$id": "63", "StatusCodes": [ 200 ], @@ -563,52 +605,12 @@ "Decorators": [] } ], - "Protocol": { - "$id": "61" - }, - "Parameters": [ - { - "$id": "62", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "63", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "64", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "Type": { - "$ref": "12" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1", + "v2preview", + "v2" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Removed" + "crossLanguageDefinitionId": "Versioning.Removed" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json index 9f5af44e7dc..c5617146ba0 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json @@ -439,27 +439,69 @@ "Clients": [ { "$id": "57", - "Name": "RemovedClient", - "Namespace": "Versioning.Removed", - "Doc": "Test for the `@removed` decorator.", - "Operations": [ + "kind": "client", + "name": "RemovedClient", + "namespace": "Versioning.Removed", + "doc": "Test for the `@removed` decorator.", + "parameters": [ { "$id": "58", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "59", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "60", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "Type": { + "$ref": "12" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "61", "Name": "v1", "ResourceName": "Removed", "Doc": "This operation should not be generated with latest version's signature.", "Accessibility": "public", "Parameters": [ { - "$id": "59", + "$id": "62", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "60", + "$id": "63", "kind": "constant", "valueType": { - "$id": "61", + "$id": "64", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -479,14 +521,14 @@ "SkipUrlEncoding": false }, { - "$id": "62", + "$id": "65", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "63", + "$id": "66", "kind": "constant", "valueType": { - "$id": "64", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -506,7 +548,7 @@ "SkipUrlEncoding": false }, { - "$id": "65", + "$id": "68", "Name": "body", "NameInRequest": "body", "Type": { @@ -525,7 +567,7 @@ ], "Responses": [ { - "$id": "66", + "$id": "69", "StatusCodes": [ 200 ], @@ -554,17 +596,17 @@ "Decorators": [] }, { - "$id": "67", + "$id": "70", "Name": "v2", "ResourceName": "Removed", "Accessibility": "public", "Parameters": [ { - "$id": "68", + "$id": "71", "Name": "param", "NameInRequest": "param", "Type": { - "$id": "69", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -581,15 +623,15 @@ "SkipUrlEncoding": false }, { - "$id": "70", + "$id": "73", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "71", + "$id": "74", "kind": "constant", "valueType": { - "$id": "72", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -609,14 +651,14 @@ "SkipUrlEncoding": false }, { - "$id": "73", + "$id": "76", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "74", + "$id": "77", "kind": "constant", "valueType": { - "$id": "75", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -636,7 +678,7 @@ "SkipUrlEncoding": false }, { - "$id": "76", + "$id": "79", "Name": "body", "NameInRequest": "body", "Type": { @@ -655,7 +697,7 @@ ], "Responses": [ { - "$id": "77", + "$id": "80", "StatusCodes": [ 200 ], @@ -684,22 +726,22 @@ "Decorators": [] }, { - "$id": "78", + "$id": "81", "Name": "modelV3", "ResourceName": "Removed", "Doc": "This operation will pass different paths and different request bodies based on different versions.", "Accessibility": "public", "Parameters": [ { - "$id": "79", + "$id": "82", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "80", + "$id": "83", "kind": "constant", "valueType": { - "$id": "81", + "$id": "84", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -719,14 +761,14 @@ "SkipUrlEncoding": false }, { - "$id": "82", + "$id": "85", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "83", + "$id": "86", "kind": "constant", "valueType": { - "$id": "84", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -746,7 +788,7 @@ "SkipUrlEncoding": false }, { - "$id": "85", + "$id": "88", "Name": "body", "NameInRequest": "body", "Type": { @@ -765,7 +807,7 @@ ], "Responses": [ { - "$id": "86", + "$id": "89", "StatusCodes": [ 200 ], @@ -794,216 +836,180 @@ "Decorators": [] } ], - "Protocol": { - "$id": "87" - }, - "Parameters": [ - { - "$id": "88", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "89", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "90", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "Type": { - "$ref": "12" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1", + "v2preview" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Removed" - }, - { - "$id": "91", - "Name": "InterfaceV1", - "Namespace": "Versioning.Removed", - "Doc": "This operation group should not be generated with latest version.", - "Operations": [ + "crossLanguageDefinitionId": "Versioning.Removed", + "children": [ { - "$id": "92", - "Name": "v1InInterface", - "ResourceName": "InterfaceV1", - "Accessibility": "public", - "Parameters": [ - { - "$id": "93", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "94", - "kind": "constant", - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "90", + "kind": "client", + "name": "InterfaceV1", + "namespace": "Versioning.Removed", + "doc": "This operation group should not be generated with latest version.", + "parameters": [ { - "$id": "96", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "91", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "97", - "kind": "constant", - "valueType": { - "$id": "98", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "92", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" }, { - "$id": "99", - "Name": "body", - "NameInRequest": "body", + "$id": "93", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "Type": { - "$ref": "18" + "$ref": "12" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, + "IsRequired": true, "IsEndpoint": false, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Kind": "Client" } ], - "Responses": [ + "operations": [ { - "$id": "100", - "StatusCodes": [ - 200 + "$id": "94", + "Name": "v1InInterface", + "ResourceName": "InterfaceV1", + "Accessibility": "public", + "Parameters": [ + { + "$id": "95", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "96", + "kind": "constant", + "valueType": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "98", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "99", + "kind": "constant", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "101", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "18" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "18" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "102", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "18" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/versioning/removed/api-version:{version}", + "Path": "/interface-v1/v1", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}/versioning/removed/api-version:{version}", - "Path": "/interface-v1/v1", - "RequestMediaTypes": [ - "application/json" + "apiVersions": [ + "v1", + "v2preview" ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface", - "Decorators": [] - } - ], - "Protocol": { - "$id": "101" - }, - "Parent": "RemovedClient", - "Parameters": [ - { - "$id": "102", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "103", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "104", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "Type": { - "$ref": "12" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", + "parent": { + "$ref": "57" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Removed.InterfaceV1" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json index b0ee790f0cd..eafee38e623 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json @@ -195,22 +195,64 @@ "Clients": [ { "$id": "25", - "Name": "RenamedFromClient", - "Namespace": "Versioning.RenamedFrom", - "Doc": "Test for the `@renamedFrom` decorator.", - "Operations": [ + "kind": "client", + "name": "RenamedFromClient", + "namespace": "Versioning.RenamedFrom", + "doc": "Test for the `@renamedFrom` decorator.", + "parameters": [ { "$id": "26", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "27", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "28", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "6" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "29", "Name": "oldOp", "ResourceName": "RenamedFrom", "Accessibility": "public", "Parameters": [ { - "$id": "27", + "$id": "30", "Name": "oldQuery", "NameInRequest": "newQuery", "Type": { - "$id": "28", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -227,15 +269,15 @@ "SkipUrlEncoding": false }, { - "$id": "29", + "$id": "32", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "30", + "$id": "33", "kind": "constant", "valueType": { - "$id": "31", + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -255,14 +297,14 @@ "SkipUrlEncoding": false }, { - "$id": "32", + "$id": "35", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "33", + "$id": "36", "kind": "constant", "valueType": { - "$id": "34", + "$id": "37", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -282,7 +324,7 @@ "SkipUrlEncoding": false }, { - "$id": "35", + "$id": "38", "Name": "body", "NameInRequest": "body", "Type": { @@ -301,7 +343,7 @@ ], "Responses": [ { - "$id": "36", + "$id": "39", "StatusCodes": [ 200 ], @@ -330,215 +372,177 @@ "Decorators": [] } ], - "Protocol": { - "$id": "37" - }, - "Parameters": [ - { - "$id": "38", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "39", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "40", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "6" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.RenamedFrom" - }, - { - "$id": "41", - "Name": "OldInterface", - "Namespace": "Versioning.RenamedFrom", - "Operations": [ + "crossLanguageDefinitionId": "Versioning.RenamedFrom", + "children": [ { - "$id": "42", - "Name": "newOpInNewInterface", - "ResourceName": "OldInterface", - "Accessibility": "public", - "Parameters": [ - { - "$id": "43", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "44", - "kind": "constant", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "40", + "kind": "client", + "name": "OldInterface", + "namespace": "Versioning.RenamedFrom", + "parameters": [ { - "$id": "46", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "41", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "47", - "kind": "constant", - "valueType": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "42", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" }, { - "$id": "49", - "Name": "body", - "NameInRequest": "body", + "$id": "43", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", "Type": { - "$ref": "10" + "$ref": "6" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, + "IsRequired": true, "IsEndpoint": false, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Kind": "Client" } ], - "Responses": [ + "operations": [ { - "$id": "50", - "StatusCodes": [ - 200 + "$id": "44", + "Name": "newOpInNewInterface", + "ResourceName": "OldInterface", + "Accessibility": "public", + "Parameters": [ + { + "$id": "45", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "46", + "kind": "constant", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "48", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "49", + "kind": "constant", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "51", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "10" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "10" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "52", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "10" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/versioning/renamed-from/api-version:{version}", + "Path": "/interface/test", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}/versioning/renamed-from/api-version:{version}", - "Path": "/interface/test", - "RequestMediaTypes": [ - "application/json" + "apiVersions": [ + "v1" ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface", - "Decorators": [] - } - ], - "Protocol": { - "$id": "51" - }, - "Parent": "RenamedFromClient", - "Parameters": [ - { - "$id": "52", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "53", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "54", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "6" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface", + "parent": { + "$ref": "25" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json index 375e23dc672..dc8ab518177 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json @@ -214,22 +214,64 @@ "Clients": [ { "$id": "27", - "Name": "RenamedFromClient", - "Namespace": "Versioning.RenamedFrom", - "Doc": "Test for the `@renamedFrom` decorator.", - "Operations": [ + "kind": "client", + "name": "RenamedFromClient", + "namespace": "Versioning.RenamedFrom", + "doc": "Test for the `@renamedFrom` decorator.", + "parameters": [ { "$id": "28", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "29", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "30", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "6" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "31", "Name": "newOp", "ResourceName": "RenamedFrom", "Accessibility": "public", "Parameters": [ { - "$id": "29", + "$id": "32", "Name": "newQuery", "NameInRequest": "newQuery", "Type": { - "$id": "30", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -246,15 +288,15 @@ "SkipUrlEncoding": false }, { - "$id": "31", + "$id": "34", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "32", + "$id": "35", "kind": "constant", "valueType": { - "$id": "33", + "$id": "36", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -274,14 +316,14 @@ "SkipUrlEncoding": false }, { - "$id": "34", + "$id": "37", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "35", + "$id": "38", "kind": "constant", "valueType": { - "$id": "36", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -301,7 +343,7 @@ "SkipUrlEncoding": false }, { - "$id": "37", + "$id": "40", "Name": "body", "NameInRequest": "body", "Type": { @@ -320,7 +362,7 @@ ], "Responses": [ { - "$id": "38", + "$id": "41", "StatusCodes": [ 200 ], @@ -349,215 +391,179 @@ "Decorators": [] } ], - "Protocol": { - "$id": "39" - }, - "Parameters": [ - { - "$id": "40", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "41", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "42", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "6" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1", + "v2" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.RenamedFrom" - }, - { - "$id": "43", - "Name": "NewInterface", - "Namespace": "Versioning.RenamedFrom", - "Operations": [ + "crossLanguageDefinitionId": "Versioning.RenamedFrom", + "children": [ { - "$id": "44", - "Name": "newOpInNewInterface", - "ResourceName": "NewInterface", - "Accessibility": "public", - "Parameters": [ - { - "$id": "45", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "46", - "kind": "constant", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "42", + "kind": "client", + "name": "NewInterface", + "namespace": "Versioning.RenamedFrom", + "parameters": [ { - "$id": "48", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "43", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "49", - "kind": "constant", - "valueType": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "44", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" }, { - "$id": "51", - "Name": "body", - "NameInRequest": "body", + "$id": "45", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", "Type": { - "$ref": "12" + "$ref": "6" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, + "IsRequired": true, "IsEndpoint": false, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Kind": "Client" } ], - "Responses": [ + "operations": [ { - "$id": "52", - "StatusCodes": [ - 200 + "$id": "46", + "Name": "newOpInNewInterface", + "ResourceName": "NewInterface", + "Accessibility": "public", + "Parameters": [ + { + "$id": "47", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "48", + "kind": "constant", + "valueType": { + "$id": "49", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "50", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "51", + "kind": "constant", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "53", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "12" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "12" - }, - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "54", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "12" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/versioning/renamed-from/api-version:{version}", + "Path": "/interface/test", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface", + "Decorators": [] } ], - "HttpMethod": "POST", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}/versioning/renamed-from/api-version:{version}", - "Path": "/interface/test", - "RequestMediaTypes": [ - "application/json" + "apiVersions": [ + "v1", + "v2" ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface", - "Decorators": [] - } - ], - "Protocol": { - "$id": "53" - }, - "Parent": "RenamedFromClient", - "Parameters": [ - { - "$id": "54", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "55", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "56", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "6" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface", + "parent": { + "$ref": "27" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json index 2c3c6c3bc59..033b0fb3caf 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json @@ -49,26 +49,68 @@ "Clients": [ { "$id": "6", - "Name": "ReturnTypeChangedFromClient", - "Namespace": "Versioning.ReturnTypeChangedFrom", - "Doc": "Test for the `@returnTypeChangedFrom` decorator.", - "Operations": [ + "kind": "client", + "name": "ReturnTypeChangedFromClient", + "namespace": "Versioning.ReturnTypeChangedFrom", + "doc": "Test for the `@returnTypeChangedFrom` decorator.", + "parameters": [ { "$id": "7", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "8", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "9", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "10", "Name": "test", "ResourceName": "ReturnTypeChangedFrom", "Accessibility": "public", "Parameters": [ { - "$id": "8", + "$id": "11", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "9", + "$id": "12", "kind": "constant", "valueType": { - "$id": "10", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -88,14 +130,14 @@ "SkipUrlEncoding": false }, { - "$id": "11", + "$id": "14", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "12", + "$id": "15", "kind": "constant", "valueType": { - "$id": "13", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -115,11 +157,11 @@ "SkipUrlEncoding": false }, { - "$id": "14", + "$id": "17", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "15", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -138,12 +180,12 @@ ], "Responses": [ { - "$id": "16", + "$id": "19", "StatusCodes": [ 200 ], "BodyType": { - "$id": "17", + "$id": "20", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -171,52 +213,10 @@ "Decorators": [] } ], - "Protocol": { - "$id": "18" - }, - "Parameters": [ - { - "$id": "19", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "20", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "21", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom" + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json index 3e33f02b72c..112a2a50362 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json @@ -68,26 +68,68 @@ "Clients": [ { "$id": "8", - "Name": "ReturnTypeChangedFromClient", - "Namespace": "Versioning.ReturnTypeChangedFrom", - "Doc": "Test for the `@returnTypeChangedFrom` decorator.", - "Operations": [ + "kind": "client", + "name": "ReturnTypeChangedFromClient", + "namespace": "Versioning.ReturnTypeChangedFrom", + "doc": "Test for the `@returnTypeChangedFrom` decorator.", + "parameters": [ { "$id": "9", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "10", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "11", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "12", "Name": "test", "ResourceName": "ReturnTypeChangedFrom", "Accessibility": "public", "Parameters": [ { - "$id": "10", + "$id": "13", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "11", + "$id": "14", "kind": "constant", "valueType": { - "$id": "12", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -107,14 +149,14 @@ "SkipUrlEncoding": false }, { - "$id": "13", + "$id": "16", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "14", + "$id": "17", "kind": "constant", "valueType": { - "$id": "15", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -134,11 +176,11 @@ "SkipUrlEncoding": false }, { - "$id": "16", + "$id": "19", "Name": "body", "NameInRequest": "body", "Type": { - "$id": "17", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -157,12 +199,12 @@ ], "Responses": [ { - "$id": "18", + "$id": "21", "StatusCodes": [ 200 ], "BodyType": { - "$id": "19", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -190,52 +232,11 @@ "Decorators": [] } ], - "Protocol": { - "$id": "20" - }, - "Parameters": [ - { - "$id": "21", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "22", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "23", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1", + "v2" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom" + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json index 387b529973f..4075de73c75 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json @@ -113,22 +113,64 @@ "Clients": [ { "$id": "15", - "Name": "TypeChangedFromClient", - "Namespace": "Versioning.TypeChangedFrom", - "Doc": "Test for the `@typeChangedFrom` decorator.", - "Operations": [ + "kind": "client", + "name": "TypeChangedFromClient", + "namespace": "Versioning.TypeChangedFrom", + "doc": "Test for the `@typeChangedFrom` decorator.", + "parameters": [ { "$id": "16", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "17", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "18", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "19", "Name": "test", "ResourceName": "TypeChangedFrom", "Accessibility": "public", "Parameters": [ { - "$id": "17", + "$id": "20", "Name": "param", "NameInRequest": "param", "Type": { - "$id": "18", + "$id": "21", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -145,15 +187,15 @@ "SkipUrlEncoding": false }, { - "$id": "19", + "$id": "22", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "20", + "$id": "23", "kind": "constant", "valueType": { - "$id": "21", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -173,14 +215,14 @@ "SkipUrlEncoding": false }, { - "$id": "22", + "$id": "25", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "23", + "$id": "26", "kind": "constant", "valueType": { - "$id": "24", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -200,7 +242,7 @@ "SkipUrlEncoding": false }, { - "$id": "25", + "$id": "28", "Name": "body", "NameInRequest": "body", "Type": { @@ -219,7 +261,7 @@ ], "Responses": [ { - "$id": "26", + "$id": "29", "StatusCodes": [ 200 ], @@ -248,52 +290,10 @@ "Decorators": [] } ], - "Protocol": { - "$id": "27" - }, - "Parameters": [ - { - "$id": "28", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "29", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "30", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.TypeChangedFrom" + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom" } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json index 0aa1e4b2099..ef5d30f3808 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json @@ -132,22 +132,64 @@ "Clients": [ { "$id": "17", - "Name": "TypeChangedFromClient", - "Namespace": "Versioning.TypeChangedFrom", - "Doc": "Test for the `@typeChangedFrom` decorator.", - "Operations": [ + "kind": "client", + "name": "TypeChangedFromClient", + "namespace": "Versioning.TypeChangedFrom", + "doc": "Test for the `@typeChangedFrom` decorator.", + "parameters": [ { "$id": "18", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "19", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "20", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "21", "Name": "test", "ResourceName": "TypeChangedFrom", "Accessibility": "public", "Parameters": [ { - "$id": "19", + "$id": "22", "Name": "param", "NameInRequest": "param", "Type": { - "$id": "20", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -164,15 +206,15 @@ "SkipUrlEncoding": false }, { - "$id": "21", + "$id": "24", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "22", + "$id": "25", "kind": "constant", "valueType": { - "$id": "23", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -192,14 +234,14 @@ "SkipUrlEncoding": false }, { - "$id": "24", + "$id": "27", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "25", + "$id": "28", "kind": "constant", "valueType": { - "$id": "26", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -219,7 +261,7 @@ "SkipUrlEncoding": false }, { - "$id": "27", + "$id": "30", "Name": "body", "NameInRequest": "body", "Type": { @@ -238,7 +280,7 @@ ], "Responses": [ { - "$id": "28", + "$id": "31", "StatusCodes": [ 200 ], @@ -267,52 +309,11 @@ "Decorators": [] } ], - "Protocol": { - "$id": "29" - }, - "Parameters": [ - { - "$id": "30", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "31", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "32", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1", + "v2" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.TypeChangedFrom" + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom" } ] } From f4d1e2616f146df9ebc1eb0967e61d4e8d541bec Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Tue, 4 Mar 2025 15:50:10 +0800 Subject: [PATCH 07/20] some clean up --- .../src/Providers/ClientProvider.cs | 1 - .../InputTypes/Serialization/TypeSpecInputClientConverter.cs | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs index f52b8b49f98..403c6949866 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs @@ -8,7 +8,6 @@ using System.Text; using System.Threading; using Microsoft.TypeSpec.Generator.ClientModel.Primitives; -using Microsoft.TypeSpec.Generator.EmitterRpc; using Microsoft.TypeSpec.Generator.Expressions; using Microsoft.TypeSpec.Generator.Input; using Microsoft.TypeSpec.Generator.Primitives; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs index 252e0e049ff..c14069898c8 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs @@ -76,6 +76,9 @@ public override void Write(Utf8JsonWriter writer, InputClient value, JsonSeriali client.Children = children ?? []; var lastSegment = GetLastSegment(client.Namespace); + // TODO -- this is a workaround. We should not build the client name twice here and in the `ClientProvider`. + // but now we do not really have a way to notice us that we should have one particular namespace updated across all types. + // tracking https://github.com/microsoft/typespec/issues/6241 if (lastSegment == client.Name) { // invalid namespace segment found, add it into the list From d9cc472ed224fb72ec1011feb8591cd8c3ae3e15 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Wed, 5 Mar 2025 16:02:32 +0800 Subject: [PATCH 08/20] regen --- .../src/Providers/ClientProvider.cs | 40 +- .../src/InputTypes/InputNamespace.cs | 14 +- .../TypeSpecInputClientConverter.cs | 23 - .../TypeSpecInputNamespaceConverter.cs | 6 +- .../Serialization/TypeSpecSerialization.cs | 66 +- .../client-operation-group/tspCodeModel.json | 554 +- .../structure/default/tspCodeModel.json | 988 +- .../renamed-operation/tspCodeModel.json | 312 +- .../two-operation-group/tspCodeModel.json | 488 +- .../http/encode/bytes/tspCodeModel.json | 3372 ++--- .../http/encode/datetime/tspCodeModel.json | 2710 ++-- .../http/encode/duration/tspCodeModel.json | 2766 ++-- .../http/encode/numeric/tspCodeModel.json | 706 +- .../http/parameters/basic/tspCodeModel.json | 450 +- .../body-optionality/tspCodeModel.json | 458 +- .../collection-format/tspCodeModel.json | 800 +- .../http/parameters/spread/tspCodeModel.json | 2046 +-- .../content-negotiation/tspCodeModel.json | 698 +- .../http/payload/media-type/tspCodeModel.json | 654 +- .../multipart/src/Generated/FormData.cs | 2 +- .../src/Generated/FormDataHttpParts.cs | 6 +- .../Generated/FormDataHttpPartsContentType.cs | 2 +- .../Generated/FormDataHttpPartsNonString.cs | 2 +- .../http/payload/multipart/tspCodeModel.json | 2095 +-- .../routes/src/Generated/PathParameters.cs | 10 +- .../Generated/PathParametersLabelExpansion.cs | 6 +- .../PathParametersLabelExpansionExplode.cs | 2 +- .../PathParametersLabelExpansionStandard.cs | 2 +- .../PathParametersMatrixExpansion.cs | 6 +- .../PathParametersMatrixExpansionExplode.cs | 2 +- .../PathParametersMatrixExpansionStandard.cs | 2 +- .../Generated/PathParametersPathExpansion.cs | 6 +- .../PathParametersPathExpansionExplode.cs | 2 +- .../PathParametersPathExpansionStandard.cs | 2 +- .../PathParametersReservedExpansion.cs | 2 +- .../PathParametersSimpleExpansion.cs | 6 +- .../PathParametersSimpleExpansionExplode.cs | 2 +- .../PathParametersSimpleExpansionStandard.cs | 2 +- .../routes/src/Generated/QueryParameters.cs | 4 +- .../QueryParametersQueryContinuation.cs | 6 +- ...QueryParametersQueryContinuationExplode.cs | 2 +- ...ueryParametersQueryContinuationStandard.cs | 2 +- .../QueryParametersQueryExpansion.cs | 6 +- .../QueryParametersQueryExpansionExplode.cs | 2 +- .../QueryParametersQueryExpansionStandard.cs | 2 +- .../Spector/http/routes/tspCodeModel.json | 6613 +++++----- .../encoded-name/json/tspCodeModel.json | 348 +- .../conditional-request/tspCodeModel.json | 116 +- .../http/special-words/tspCodeModel.json | 9822 +++++++------- .../Spector/http/type/array/tspCodeModel.json | 5358 ++++---- .../http/type/dictionary/tspCodeModel.json | 4354 +++---- .../type/enum/extensible/tspCodeModel.json | 598 +- .../http/type/enum/fixed/tspCodeModel.json | 496 +- .../additional-properties/tspCodeModel.json | 10762 ++++++++-------- .../type/property/nullable/tspCodeModel.json | 4216 +++--- .../property/optionality/tspCodeModel.json | 9572 +++++++------- .../property/value-types/tspCodeModel.json | 9816 +++++++------- .../http/type/scalar/tspCodeModel.json | 2666 ++-- .../Spector/http/type/union/tspCodeModel.json | 3286 ++--- .../versioning/added/v2/tspCodeModel.json | 415 +- .../versioning/removed/v1/tspCodeModel.json | 434 +- .../removed/v2Preview/tspCodeModel.json | 436 +- .../renamedFrom/v1/tspCodeModel.json | 396 +- .../renamedFrom/v2/tspCodeModel.json | 398 +- 64 files changed, 44731 insertions(+), 44705 deletions(-) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs index 403c6949866..990b5bf8aee 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs @@ -235,45 +235,7 @@ private IReadOnlyList GetClientParameters() protected override string BuildRelativeFilePath() => Path.Combine("src", "Generated", $"{Name}.cs"); - protected override string BuildName() - { - var myName = _inputClient.Name.ToCleanName(); - if (_inputClient.Parent == null) - { - // if this client does not have a parent, it is a toplevel client - return myName; - } - - var parents = new List(); - var parent = _inputClient.Parent; - while (parent != null) - { - parents.Add(parent); - parent = parent.Parent; - } - - // General rule for client name: - // We alaways concat all its parents' name together as the prefix of the client name, but we exclude the root client's name. - // Therefore: - // for the first level children, its client name is its original name - // for deeper children, we add its parents' name as the prefix until the root (excluded) - - if (parents.Count >= 2) - { - // when this client is more than second level client (its parent is not the root client), - // we concat all its parents' name together as the client name prefix, but exclude the root client's name. - var clientName = new StringBuilder(); - for (int i = parents.Count - 2; i >= 0; i--) - { - clientName.Append(parents[i].Name.ToCleanName()); - } - clientName.Append(myName); - return clientName.ToString(); - } - - // when this client is the first level client (its parent is the root client), we just use its name - return myName; - } + protected override string BuildName() => _inputClient.Name.ToCleanName(); protected override FieldProvider[] BuildFields() { diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputNamespace.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputNamespace.cs index 684b6ac6109..7ec288a2e06 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputNamespace.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputNamespace.cs @@ -15,7 +15,9 @@ public class InputNamespace "Enum", ]; - public InputNamespace(string name, IReadOnlyList apiVersions, IReadOnlyList enums, IReadOnlyList models, IReadOnlyList clients, InputAuth? auth, IReadOnlyList? invalidNamespaceSegments = null) + private readonly List _invalidNamespaceSegments; + + public InputNamespace(string name, IReadOnlyList apiVersions, IReadOnlyList enums, IReadOnlyList models, IReadOnlyList clients, InputAuth? auth) { Name = name; ApiVersions = apiVersions; @@ -23,9 +25,8 @@ public InputNamespace(string name, IReadOnlyList apiVersions, IReadOnlyL Models = models; Clients = clients; Auth = auth; - InvalidNamespaceSegments = invalidNamespaceSegments != null ? - [.._knownInvalidNamespaceSegments, ..invalidNamespaceSegments] : - _knownInvalidNamespaceSegments; + _invalidNamespaceSegments = [.. _knownInvalidNamespaceSegments]; + InvalidNamespaceSegments = _invalidNamespaceSegments; } public InputNamespace() : this(name: string.Empty, apiVersions: Array.Empty(), enums: Array.Empty(), models: Array.Empty(), clients: Array.Empty(), auth: new InputAuth()) { } @@ -37,5 +38,10 @@ public InputNamespace(string name, IReadOnlyList apiVersions, IReadOnlyL public IReadOnlyList Clients { get; init; } public InputAuth? Auth { get; init; } public IReadOnlyList InvalidNamespaceSegments { get; init; } + + internal void AddInvalidNamespaceSegment(string segment) + { + _invalidNamespaceSegments.Add(segment); + } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs index c14069898c8..70dffb9ad69 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs @@ -75,30 +75,7 @@ public override void Write(Utf8JsonWriter writer, InputClient value, JsonSeriali client.Parent = parent; client.Children = children ?? []; - var lastSegment = GetLastSegment(client.Namespace); - // TODO -- this is a workaround. We should not build the client name twice here and in the `ClientProvider`. - // but now we do not really have a way to notice us that we should have one particular namespace updated across all types. - // tracking https://github.com/microsoft/typespec/issues/6241 - if (lastSegment == client.Name) - { - // invalid namespace segment found, add it into the list - var invalidNamespaceSegments = (List)resolver.ResolveReference(TypeSpecSerialization.InvalidNamespaceSegmentsKey); - invalidNamespaceSegments.Add(client.Name); - } - return client; } - - private static string GetLastSegment(string @namespace) - { - var span = @namespace.AsSpan(); - var index = span.LastIndexOf('.'); - if (index == -1) - { - return @namespace; - } - - return span.Slice(index + 1).ToString(); - } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputNamespaceConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputNamespaceConverter.cs index e7de80d480b..230168b858d 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputNamespaceConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputNamespaceConverter.cs @@ -30,9 +30,6 @@ public override void Write(Utf8JsonWriter writer, InputNamespace value, JsonSeri reader.Read(); } - var invalidNamespaceSegments = new List(); - resolver.AddReference(TypeSpecSerialization.InvalidNamespaceSegmentsKey, invalidNamespaceSegments); - string? name = null; IReadOnlyList? apiVersions = null; IReadOnlyList? enums = null; @@ -66,8 +63,7 @@ public override void Write(Utf8JsonWriter writer, InputNamespace value, JsonSeri enums, models, clients, - auth, - invalidNamespaceSegments); + auth); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs index 24e6316b144..52d6322bdb9 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs @@ -1,6 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using System.Text.Json; using System.Text.Json.Serialization; using AutoRest.CSharp.Common.Input; @@ -9,7 +13,6 @@ namespace Microsoft.TypeSpec.Generator.Input { public static class TypeSpecSerialization { - internal const string InvalidNamespaceSegmentsKey = "InvalidNamespaceSegments"; public static InputNamespace? Deserialize(string json) { var referenceHandler = new TypeSpecReferenceHandler(); @@ -49,7 +52,66 @@ public static class TypeSpecSerialization } }; - return JsonSerializer.Deserialize(json, options); + var inputNamespace = JsonSerializer.Deserialize(json, options); + + if (inputNamespace != null) + { + UpdateClientsName(inputNamespace, inputNamespace.Clients, new List()); + } + + return inputNamespace; + } + + private static void UpdateClientsName(InputNamespace inputNamespace, IReadOnlyList clients, List parentNames) + { + foreach (var client in clients) + { + var cleanName = client.Name.ToCleanName(); + client.Name = BuildClientName(cleanName, parentNames); + + var lastSegment = GetLastSegment(client.Namespace); + if (lastSegment == client.Name) + { + // when the last segment is the same as the name of this client, we would have a namespace conflict. + // therefore here we add it into the list of invalid namespace segments, and later when we escape the namespace with invalid segments, we could give a warning. + inputNamespace.AddInvalidNamespaceSegment(lastSegment); + } + + parentNames.Add(cleanName); + UpdateClientsName(inputNamespace, client.Children, parentNames); + parentNames.RemoveAt(parentNames.Count - 1); + } + } + + private static string BuildClientName(string name, List parentNames) + { + if (parentNames.Count <= 1) + { + // toplevel client, and first level sub-client will keep its orignal name. + return name; + } + + // more deeper level client will prepend all their parents' name (except for the root) as the prefix of the client name to avoid client name conflict + // such as we have client A.B.C and A.D.C, now the two subclient C will be named to BC and DC. + var builder = new StringBuilder(); + foreach (var parentName in parentNames.Skip(1)) + { + builder.Append(parentName); + } + builder.Append(name); + return builder.ToString(); + } + + private static string GetLastSegment(string @namespace) + { + var span = @namespace.AsSpan(); + var index = span.LastIndexOf('.'); + if (index == -1) + { + return @namespace; + } + + return span.Slice(index + 1).ToString(); } } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json index 5e950ea3373..33a81c8179e 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json @@ -113,46 +113,17 @@ "Clients": [ { "$id": "14", - "Name": "FirstClient", - "Namespace": "Client.Structure.ClientOperationGroup", - "Operations": [ + "kind": "client", + "name": "FirstClient", + "namespace": "Client.Structure.ClientOperationGroup", + "parameters": [ { "$id": "15", - "Name": "one", - "ResourceName": "ClientOperationGroup", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "16", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/one", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.one", - "Decorators": [] - } - ], - "Protocol": { - "$id": "17" - }, - "Parameters": [ - { - "$id": "18", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "19", + "$id": "16", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -168,7 +139,7 @@ "Kind": "Client" }, { - "$id": "20", + "$id": "17", "Name": "client", "NameInRequest": "client", "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -186,23 +157,16 @@ "Kind": "Client" } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup" - }, - { - "$id": "21", - "Name": "Group3", - "Namespace": "Client.Structure.ClientOperationGroup", - "Operations": [ + "operations": [ { - "$id": "22", - "Name": "two", - "ResourceName": "Group3", + "$id": "18", + "Name": "one", + "ResourceName": "ClientOperationGroup", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "23", + "$id": "19", "StatusCodes": [ 204 ], @@ -212,130 +176,215 @@ ], "HttpMethod": "POST", "Uri": "{endpoint}/client/structure/{client}", - "Path": "/two", + "Path": "/one", "BufferResponse": true, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.two", + "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.one", "Decorators": [] - }, + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup", + "children": [ { - "$id": "24", - "Name": "three", - "ResourceName": "Group3", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "$id": "20", + "kind": "client", + "name": "Group3", + "namespace": "Client.Structure.ClientOperationGroup", + "parameters": [ { - "$id": "25", - "StatusCodes": [ - 204 + "$id": "21", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "22", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "23", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "24", + "Name": "two", + "ResourceName": "Group3", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "25", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/two", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.two", + "Decorators": [] + }, + { + "$id": "26", + "Name": "three", + "ResourceName": "Group3", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "27", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/three", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.three", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/three", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.three", - "Decorators": [] - } - ], - "Protocol": { - "$id": "26" - }, - "Parent": "FirstClient", - "Parameters": [ - { - "$id": "27", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "28", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3", + "parent": { + "$ref": "14" + } }, { - "$id": "29", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3" - }, - { - "$id": "30", - "Name": "Group4", - "Namespace": "Client.Structure.ClientOperationGroup", - "Operations": [ - { - "$id": "31", - "Name": "four", - "ResourceName": "Group4", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "$id": "28", + "kind": "client", + "name": "Group4", + "namespace": "Client.Structure.ClientOperationGroup", + "parameters": [ + { + "$id": "29", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "30", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "31", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ { "$id": "32", - "StatusCodes": [ - 204 + "Name": "four", + "ResourceName": "Group4", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "33", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/four", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4.four", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/four", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4.four", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4", + "parent": { + "$ref": "14" + } } - ], - "Protocol": { - "$id": "33" - }, - "Parent": "FirstClient", - "Parameters": [ + ] + }, + { + "$id": "34", + "kind": "client", + "name": "SubNamespace.SecondClient", + "namespace": "Client.Structure.AnotherClientOperationGroup", + "parameters": [ { - "$id": "34", + "$id": "35", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "35", + "$id": "36", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -351,7 +400,7 @@ "Kind": "Client" }, { - "$id": "36", + "$id": "37", "Name": "client", "NameInRequest": "client", "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -369,14 +418,7 @@ "Kind": "Client" } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4" - }, - { - "$id": "37", - "Name": "SubNamespace.SecondClient", - "Namespace": "Client.Structure.AnotherClientOperationGroup", - "Operations": [ + "operations": [ { "$id": "38", "Name": "five", @@ -403,131 +445,89 @@ "Decorators": [] } ], - "Protocol": { - "$id": "40" - }, - "Parameters": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup", + "children": [ { - "$id": "41", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "42", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "43", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup" - }, - { - "$id": "44", - "Name": "Group5", - "Namespace": "Client.Structure.AnotherClientOperationGroup", - "Operations": [ - { - "$id": "45", - "Name": "six", - "ResourceName": "Group5", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "$id": "40", + "kind": "client", + "name": "Group5", + "namespace": "Client.Structure.AnotherClientOperationGroup", + "parameters": [ { - "$id": "46", - "StatusCodes": [ - 204 + "$id": "41", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "42", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "43", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "44", + "Name": "six", + "ResourceName": "Group5", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "45", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/six", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5.six", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/six", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5.six", - "Decorators": [] - } - ], - "Protocol": { - "$id": "47" - }, - "Parent": "SubNamespace.SecondClient", - "Parameters": [ - { - "$id": "48", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "49", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "50", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5", + "parent": { + "$ref": "34" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json index fcdc3875014..c2210ba9b48 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json @@ -113,72 +113,18 @@ "Clients": [ { "$id": "14", - "Name": "ServiceClient", - "Namespace": "Client.Structure.Service", - "Doc": "Test that we can use @client and @operationGroup decorators to customize client side code structure, such as:\n1. have everything as default.\n2. to rename client or operation group\n3. one client can have more than one operations groups\n4. split one interface into two clients\n5. have two clients with operations come from different interfaces\n6. have two clients with a hierarchy relation.", - "Operations": [ + "kind": "client", + "name": "ServiceClient", + "namespace": "Client.Structure.Service", + "doc": "Test that we can use @client and @operationGroup decorators to customize client side code structure, such as:\n1. have everything as default.\n2. to rename client or operation group\n3. one client can have more than one operations groups\n4. split one interface into two clients\n5. have two clients with operations come from different interfaces\n6. have two clients with a hierarchy relation.", + "parameters": [ { "$id": "15", - "Name": "one", - "ResourceName": "Service", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "16", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/one", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.one", - "Decorators": [] - }, - { - "$id": "17", - "Name": "two", - "ResourceName": "Service", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "18", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/two", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.two", - "Decorators": [] - } - ], - "Protocol": { - "$id": "19" - }, - "Parameters": [ - { - "$id": "20", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "21", + "$id": "16", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -194,60 +140,7 @@ "Kind": "Client" }, { - "$id": "22", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service" - }, - { - "$id": "23", - "Name": "Baz", - "Namespace": "Client.Structure.Service.Baz", - "Operations": [], - "Protocol": { - "$id": "24" - }, - "Parent": "ServiceClient", - "Parameters": [ - { - "$id": "25", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "26", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "27", + "$id": "17", "Name": "client", "NameInRequest": "client", "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -265,23 +158,16 @@ "Kind": "Client" } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service.Baz" - }, - { - "$id": "28", - "Name": "BazFoo", - "Namespace": "Client.Structure.Service.Baz", - "Operations": [ + "operations": [ { - "$id": "29", - "Name": "seven", - "ResourceName": "Foo", + "$id": "18", + "Name": "one", + "ResourceName": "Service", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "30", + "$id": "19", "StatusCodes": [ 204 ], @@ -291,76 +177,22 @@ ], "HttpMethod": "POST", "Uri": "{endpoint}/client/structure/{client}", - "Path": "/seven", + "Path": "/one", "BufferResponse": true, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo.seven", + "CrossLanguageDefinitionId": "Client.Structure.Service.one", "Decorators": [] - } - ], - "Protocol": { - "$id": "31" - }, - "Parent": "Baz", - "Parameters": [ - { - "$id": "32", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "33", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" }, { - "$id": "34", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo" - }, - { - "$id": "35", - "Name": "Qux", - "Namespace": "Client.Structure.Service.Qux", - "Operations": [ - { - "$id": "36", - "Name": "eight", - "ResourceName": "Qux", + "$id": "20", + "Name": "two", + "ResourceName": "Service", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "37", + "$id": "21", "StatusCodes": [ 204 ], @@ -370,348 +202,518 @@ ], "HttpMethod": "POST", "Uri": "{endpoint}/client/structure/{client}", - "Path": "/eight", + "Path": "/two", "BufferResponse": true, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Qux.eight", + "CrossLanguageDefinitionId": "Client.Structure.Service.two", "Decorators": [] } ], - "Protocol": { - "$id": "38" - }, - "Parent": "ServiceClient", - "Parameters": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.Service", + "children": [ { - "$id": "39", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "40", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" + "$id": "22", + "kind": "client", + "name": "Baz", + "namespace": "Client.Structure.Service.Baz", + "parameters": [ + { + "$id": "23", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "24", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "25", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Baz", + "parent": { + "$ref": "14" }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "children": [ + { + "$id": "26", + "kind": "client", + "name": "Foo", + "namespace": "Client.Structure.Service.Baz", + "parameters": [ + { + "$id": "27", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "28", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "29", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "30", + "Name": "seven", + "ResourceName": "Foo", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "31", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/seven", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo.seven", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo", + "parent": { + "$ref": "22" + } + } + ] }, { - "$id": "41", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service.Qux" - }, - { - "$id": "42", - "Name": "QuxBar", - "Namespace": "Client.Structure.Service.Qux", - "Operations": [ - { - "$id": "43", - "Name": "nine", - "ResourceName": "Bar", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "$id": "32", + "kind": "client", + "name": "Qux", + "namespace": "Client.Structure.Service.Qux", + "parameters": [ { - "$id": "44", - "StatusCodes": [ - 204 + "$id": "33", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "34", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "35", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "36", + "Name": "eight", + "ResourceName": "Qux", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "37", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/eight", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Qux.eight", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/nine", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar.nine", - "Decorators": [] - } - ], - "Protocol": { - "$id": "45" - }, - "Parent": "Qux", - "Parameters": [ - { - "$id": "46", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "47", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Qux", + "parent": { + "$ref": "14" }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "children": [ + { + "$id": "38", + "kind": "client", + "name": "Bar", + "namespace": "Client.Structure.Service.Qux", + "parameters": [ + { + "$id": "39", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "40", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "41", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "42", + "Name": "nine", + "ResourceName": "Bar", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "43", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/nine", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar.nine", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar", + "parent": { + "$ref": "32" + } + } + ] }, { - "$id": "48", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar" - }, - { - "$id": "49", - "Name": "Foo", - "Namespace": "Client.Structure.Service", - "Operations": [ - { - "$id": "50", - "Name": "three", - "ResourceName": "Foo", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "$id": "44", + "kind": "client", + "name": "Foo", + "namespace": "Client.Structure.Service", + "parameters": [ { - "$id": "51", - "StatusCodes": [ - 204 + "$id": "45", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "46", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "47", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "48", + "Name": "three", + "ResourceName": "Foo", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "49", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/three", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Foo.three", + "Decorators": [] + }, + { + "$id": "50", + "Name": "four", + "ResourceName": "Foo", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "51", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/four", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Foo.four", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/three", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Foo.three", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Foo", + "parent": { + "$ref": "14" + } }, { "$id": "52", - "Name": "four", - "ResourceName": "Foo", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "kind": "client", + "name": "Bar", + "namespace": "Client.Structure.Service", + "parameters": [ { "$id": "53", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "54", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "55", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/four", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Foo.four", - "Decorators": [] - } - ], - "Protocol": { - "$id": "54" - }, - "Parent": "ServiceClient", - "Parameters": [ - { - "$id": "55", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "56", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "57", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service.Foo" - }, - { - "$id": "58", - "Name": "Bar", - "Namespace": "Client.Structure.Service", - "Operations": [ - { - "$id": "59", - "Name": "five", - "ResourceName": "Bar", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "operations": [ { - "$id": "60", - "StatusCodes": [ - 204 + "$id": "56", + "Name": "five", + "ResourceName": "Bar", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "57", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/five", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Bar.five", - "Decorators": [] - }, - { - "$id": "61", - "Name": "six", - "ResourceName": "Bar", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/five", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Bar.five", + "Decorators": [] + }, { - "$id": "62", - "StatusCodes": [ - 204 + "$id": "58", + "Name": "six", + "ResourceName": "Bar", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "59", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/six", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.Service.Bar.six", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/six", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.Service.Bar.six", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Bar", + "parent": { + "$ref": "14" + } } - ], - "Protocol": { - "$id": "63" - }, - "Parent": "ServiceClient", - "Parameters": [ - { - "$id": "64", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "65", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "66", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.Service.Bar" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json index 365c14cff67..8b83787a3c1 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json @@ -113,96 +113,17 @@ "Clients": [ { "$id": "14", - "Name": "RenamedOperationClient", - "Namespace": "Client.Structure.RenamedOperation", - "Operations": [ + "kind": "client", + "name": "RenamedOperationClient", + "namespace": "Client.Structure.RenamedOperation", + "parameters": [ { "$id": "15", - "Name": "renamedOne", - "ResourceName": "RenamedOperation", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "16", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/one", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedOne", - "Decorators": [] - }, - { - "$id": "17", - "Name": "renamedThree", - "ResourceName": "RenamedOperation", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "18", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/three", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedThree", - "Decorators": [] - }, - { - "$id": "19", - "Name": "renamedFive", - "ResourceName": "RenamedOperation", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "20", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/five", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedFive", - "Decorators": [] - } - ], - "Protocol": { - "$id": "21" - }, - "Parameters": [ - { - "$id": "22", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "23", + "$id": "16", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -218,7 +139,7 @@ "Kind": "Client" }, { - "$id": "24", + "$id": "17", "Name": "client", "NameInRequest": "client", "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -236,23 +157,16 @@ "Kind": "Client" } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation" - }, - { - "$id": "25", - "Name": "Group", - "Namespace": "Client.Structure.RenamedOperation", - "Operations": [ + "operations": [ { - "$id": "26", - "Name": "renamedTwo", - "ResourceName": "Group", + "$id": "18", + "Name": "renamedOne", + "ResourceName": "RenamedOperation", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "27", + "$id": "19", "StatusCodes": [ 204 ], @@ -262,22 +176,22 @@ ], "HttpMethod": "POST", "Uri": "{endpoint}/client/structure/{client}", - "Path": "/two", + "Path": "/one", "BufferResponse": true, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedTwo", + "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedOne", "Decorators": [] }, { - "$id": "28", - "Name": "renamedFour", - "ResourceName": "Group", + "$id": "20", + "Name": "renamedThree", + "ResourceName": "RenamedOperation", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "29", + "$id": "21", "StatusCodes": [ 204 ], @@ -287,22 +201,22 @@ ], "HttpMethod": "POST", "Uri": "{endpoint}/client/structure/{client}", - "Path": "/four", + "Path": "/three", "BufferResponse": true, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedFour", + "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedThree", "Decorators": [] }, { - "$id": "30", - "Name": "renamedSix", - "ResourceName": "Group", + "$id": "22", + "Name": "renamedFive", + "ResourceName": "RenamedOperation", "Accessibility": "public", "Parameters": [], "Responses": [ { - "$id": "31", + "$id": "23", "StatusCodes": [ 204 ], @@ -312,61 +226,147 @@ ], "HttpMethod": "POST", "Uri": "{endpoint}/client/structure/{client}", - "Path": "/six", + "Path": "/five", "BufferResponse": true, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedSix", + "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedFive", "Decorators": [] } ], - "Protocol": { - "$id": "32" - }, - "Parent": "RenamedOperationClient", - "Parameters": [ - { - "$id": "33", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "34", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation", + "children": [ { - "$id": "35", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "$id": "24", + "kind": "client", + "name": "Group", + "namespace": "Client.Structure.RenamedOperation", + "parameters": [ + { + "$id": "25", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "26", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "27", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "28", + "Name": "renamedTwo", + "ResourceName": "Group", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "29", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/two", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedTwo", + "Decorators": [] + }, + { + "$id": "30", + "Name": "renamedFour", + "ResourceName": "Group", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "31", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/four", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedFour", + "Decorators": [] + }, + { + "$id": "32", + "Name": "renamedSix", + "ResourceName": "Group", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "33", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/six", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedSix", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group", + "parent": { + "$ref": "14" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json index 50f699eb285..005c3b6c564 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json @@ -113,20 +113,17 @@ "Clients": [ { "$id": "14", - "Name": "TwoOperationGroupClient", - "Namespace": "Client.Structure.TwoOperationGroup", - "Operations": [], - "Protocol": { - "$id": "15" - }, - "Parameters": [ + "kind": "client", + "name": "TwoOperationGroupClient", + "namespace": "Client.Structure.TwoOperationGroup", + "parameters": [ { - "$id": "16", + "$id": "15", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "17", + "$id": "16", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -142,7 +139,7 @@ "Kind": "Client" }, { - "$id": "18", + "$id": "17", "Name": "client", "NameInRequest": "client", "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -160,266 +157,269 @@ "Kind": "Client" } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup" - }, - { - "$id": "19", - "Name": "Group1", - "Namespace": "Client.Structure.TwoOperationGroup", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup", + "children": [ { - "$id": "20", - "Name": "one", - "ResourceName": "Group1", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "$id": "18", + "kind": "client", + "name": "Group1", + "namespace": "Client.Structure.TwoOperationGroup", + "parameters": [ + { + "$id": "19", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "20", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, { "$id": "21", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/one", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.one", - "Decorators": [] - }, - { - "$id": "22", - "Name": "three", - "ResourceName": "Group1", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "operations": [ + { + "$id": "22", + "Name": "one", + "ResourceName": "Group1", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "23", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/one", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.one", + "Decorators": [] + }, { - "$id": "23", - "StatusCodes": [ - 204 + "$id": "24", + "Name": "three", + "ResourceName": "Group1", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "25", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/three", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.three", + "Decorators": [] + }, + { + "$id": "26", + "Name": "four", + "ResourceName": "Group1", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "27", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/four", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.four", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/three", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.three", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1", + "parent": { + "$ref": "14" + } }, { - "$id": "24", - "Name": "four", - "ResourceName": "Group1", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "$id": "28", + "kind": "client", + "name": "Group2", + "namespace": "Client.Structure.TwoOperationGroup", + "parameters": [ { - "$id": "25", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false + "$id": "29", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "30", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "31", + "Name": "client", + "NameInRequest": "client", + "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "Type": { + "$ref": "2" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/four", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.four", - "Decorators": [] - } - ], - "Protocol": { - "$id": "26" - }, - "Parent": "TwoOperationGroupClient", - "Parameters": [ - { - "$id": "27", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "28", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "29", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1" - }, - { - "$id": "30", - "Name": "Group2", - "Namespace": "Client.Structure.TwoOperationGroup", - "Operations": [ - { - "$id": "31", - "Name": "two", - "ResourceName": "Group2", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "operations": [ { "$id": "32", - "StatusCodes": [ - 204 + "Name": "two", + "ResourceName": "Group2", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "33", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/two", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.two", - "Decorators": [] - }, - { - "$id": "33", - "Name": "five", - "ResourceName": "Group2", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/two", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.two", + "Decorators": [] + }, { "$id": "34", - "StatusCodes": [ - 204 + "Name": "five", + "ResourceName": "Group2", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "35", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/five", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.five", - "Decorators": [] - }, - { - "$id": "35", - "Name": "six", - "ResourceName": "Group2", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/five", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.five", + "Decorators": [] + }, { "$id": "36", - "StatusCodes": [ - 204 + "Name": "six", + "ResourceName": "Group2", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "37", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "Uri": "{endpoint}/client/structure/{client}", + "Path": "/six", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.six", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/client/structure/{client}", - "Path": "/six", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.six", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2", + "parent": { + "$ref": "14" + } } - ], - "Protocol": { - "$id": "37" - }, - "Parent": "TwoOperationGroupClient", - "Parameters": [ - { - "$id": "38", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "39", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "40", - "Name": "client", - "NameInRequest": "client", - "Doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "Type": { - "$ref": "2" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json index 0abfc8c450e..aed60422dbb 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json @@ -175,21 +175,18 @@ "Clients": [ { "$id": "24", - "Name": "BytesClient", - "Namespace": "Encode.Bytes", - "Doc": "Test for encode decorator on bytes.", - "Operations": [], - "Protocol": { - "$id": "25" - }, - "Parameters": [ + "kind": "client", + "name": "BytesClient", + "namespace": "Encode.Bytes", + "doc": "Test for encode decorator on bytes.", + "parameters": [ { - "$id": "26", + "$id": "25", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "27", + "$id": "26", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -204,9 +201,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "28", + "$id": "27", "Type": { - "$id": "29", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -215,1554 +212,1547 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Bytes" - }, - { - "$id": "30", - "Name": "Query", - "Namespace": "Encode.Bytes.Query", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Bytes", + "children": [ { - "$id": "31", - "Name": "default", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "$id": "29", + "kind": "client", + "name": "Query", + "namespace": "Encode.Bytes.Query", + "parameters": [ { - "$id": "32", - "Name": "value", - "NameInRequest": "value", + "$id": "30", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "33", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] + "$id": "31", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "32", + "Type": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { "$id": "34", - "StatusCodes": [ - 204 + "Name": "default", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "35", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "36", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/query/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Query.default", - "Decorators": [] - }, - { - "$id": "35", - "Name": "base64", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "36", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "37", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "Responses": [ + { + "$id": "37", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/query/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Query.default", + "Decorators": [] + }, { "$id": "38", - "StatusCodes": [ - 204 + "Name": "base64", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "39", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "40", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/query/base64", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Query.base64", - "Decorators": [] - }, - { - "$id": "39", - "Name": "base64url", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "40", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "41", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "42", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "41", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/query/base64url", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Query.base64url", - "Decorators": [] - }, - { - "$id": "43", - "Name": "base64urlArray", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/query/base64", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Query.base64", + "Decorators": [] + }, { - "$id": "44", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "45", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "46", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "47", + "$id": "42", + "Name": "base64url", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "43", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "44", "kind": "bytes", "name": "bytes", - "encode": "base64", + "encode": "base64url", "crossLanguageDefinitionId": "TypeSpec.bytes", "decorators": [] }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "45", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/query/base64url", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Query.base64url", + "Decorators": [] + }, { - "$id": "48", - "StatusCodes": [ - 204 + "$id": "46", + "Name": "base64urlArray", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "47", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "48", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "49", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "50", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "51", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/query/base64url-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/query/base64url-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "49" - }, - "Parent": "BytesClient", - "Parameters": [ - { - "$id": "50", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "51", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "52", - "Type": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Bytes.Query", + "parent": { + "$ref": "24" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Bytes.Query" - }, - { - "$id": "54", - "Name": "Property", - "Namespace": "Encode.Bytes.Property", - "Operations": [ + }, { - "$id": "55", - "Name": "default", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + "$id": "52", + "kind": "client", + "name": "Property", + "namespace": "Encode.Bytes.Property", + "parameters": [ { - "$id": "56", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "53", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "57", - "kind": "constant", - "valueType": { - "$id": "58", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "54", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "59", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "60", - "kind": "constant", - "valueType": { - "$id": "61", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "55", + "Type": { + "$id": "56", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "62", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "63", - "StatusCodes": [ - 200 + "$id": "57", + "Name": "default", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "58", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "59", + "kind": "constant", + "valueType": { + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "61", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "62", + "kind": "constant", + "valueType": { + "$id": "63", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "64", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "2" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "65", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/bytes/property/default", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/bytes/property/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Property.default", - "Decorators": [] - }, - { - "$id": "64", - "Name": "base64", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Property.default", + "Decorators": [] + }, { - "$id": "65", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "66", - "kind": "constant", - "valueType": { + "$id": "66", + "Name": "base64", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "68", + "kind": "constant", + "valueType": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "68", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "69", - "kind": "constant", - "valueType": { + { "$id": "70", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "71", + "kind": "constant", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "73", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "7" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "74", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "7" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/bytes/property/base64", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Property.base64", + "Decorators": [] }, { - "$id": "71", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "7" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "75", + "Name": "base64url", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "76", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "77", + "kind": "constant", + "valueType": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "79", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "80", + "kind": "constant", + "valueType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "82", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "12" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "83", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "12" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/bytes/property/base64url", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Property.base64url", + "Decorators": [] + }, { - "$id": "72", - "StatusCodes": [ - 200 + "$id": "84", + "Name": "base64urlArray", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "85", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "86", + "kind": "constant", + "valueType": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "88", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "89", + "kind": "constant", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "91", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "17" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "7" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "92", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "17" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/bytes/property/base64url-array", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/bytes/property/base64", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Property.base64", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Bytes.Property", + "parent": { + "$ref": "24" + } }, { - "$id": "73", - "Name": "base64url", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + "$id": "93", + "kind": "client", + "name": "Header", + "namespace": "Encode.Bytes.Header", + "parameters": [ { - "$id": "74", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "94", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "75", - "kind": "constant", - "valueType": { - "$id": "76", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "95", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "77", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "78", - "kind": "constant", - "valueType": { - "$id": "79", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "96", + "Type": { + "$id": "97", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "80", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "12" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "98", + "Name": "default", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "99", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "100", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "101", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/header/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Header.default", + "Decorators": [] + }, { - "$id": "81", - "StatusCodes": [ - 200 + "$id": "102", + "Name": "base64", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "103", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "104", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "12" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] + "Responses": [ + { + "$id": "105", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/header/base64", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Header.base64", + "Decorators": [] + }, + { + "$id": "106", + "Name": "base64url", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "107", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "108", + "kind": "bytes", + "name": "bytes", + "encode": "base64url", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "109", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/header/base64url", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Header.base64url", + "Decorators": [] + }, + { + "$id": "110", + "Name": "base64urlArray", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "111", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "112", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "113", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "114", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "115", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/header/base64url-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/bytes/property/base64url", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Property.base64url", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Bytes.Header", + "parent": { + "$ref": "24" + } }, { - "$id": "82", - "Name": "base64urlArray", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + "$id": "116", + "kind": "client", + "name": "RequestBody", + "namespace": "Encode.Bytes.RequestBody", + "parameters": [ { - "$id": "83", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "117", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "84", - "kind": "constant", - "valueType": { - "$id": "85", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "118", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "86", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "87", - "kind": "constant", - "valueType": { - "$id": "88", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "119", + "Type": { + "$id": "120", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "89", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "17" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "90", - "StatusCodes": [ - 200 + "$id": "121", + "Name": "default", + "ResourceName": "RequestBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "122", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "123", + "kind": "constant", + "valueType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "125", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "126", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "17" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "127", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/request/default", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/bytes/property/base64url-array", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "91" - }, - "Parent": "BytesClient", - "Parameters": [ - { - "$id": "92", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "93", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "94", - "Type": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Bytes.Property" - }, - { - "$id": "96", - "Name": "Header", - "Namespace": "Encode.Bytes.Header", - "Operations": [ - { - "$id": "97", - "Name": "default", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "98", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "99", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "100", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/header/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Header.default", - "Decorators": [] - }, - { - "$id": "101", - "Name": "base64", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "102", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "103", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "104", - "StatusCodes": [ - 204 ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/header/base64", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Header.base64", - "Decorators": [] - }, - { - "$id": "105", - "Name": "base64url", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "106", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "107", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "108", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/header/base64url", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Header.base64url", - "Decorators": [] - }, - { - "$id": "109", - "Name": "base64urlArray", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.default", + "Decorators": [] + }, { - "$id": "110", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "111", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "112", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "113", + "$id": "128", + "Name": "octetStream", + "ResourceName": "RequestBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "129", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "130", + "kind": "constant", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "132", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "133", "kind": "bytes", "name": "bytes", - "encode": "base64", "crossLanguageDefinitionId": "TypeSpec.bytes", "decorators": [] }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "114", - "StatusCodes": [ - 204 + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/header/base64url-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "115" - }, - "Parent": "BytesClient", - "Parameters": [ - { - "$id": "116", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "117", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "118", - "Type": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "134", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/request/octet-stream", + "RequestMediaTypes": [ + "application/octet-stream" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Bytes.Header" - }, - { - "$id": "120", - "Name": "RequestBody", - "Namespace": "Encode.Bytes.RequestBody", - "Operations": [ - { - "$id": "121", - "Name": "default", - "ResourceName": "RequestBody", - "Accessibility": "public", - "Parameters": [ { - "$id": "122", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "123", - "kind": "constant", - "valueType": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "135", + "Name": "customContentType", + "ResourceName": "RequestBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "136", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "137", + "kind": "constant", + "valueType": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "125", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "126", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "127", - "StatusCodes": [ - 204 + { + "$id": "139", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "140", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/request/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.default", - "Decorators": [] - }, - { - "$id": "128", - "Name": "octetStream", - "ResourceName": "RequestBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "129", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "130", - "kind": "constant", - "valueType": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "132", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "133", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "134", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "141", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/request/octet-stream", - "RequestMediaTypes": [ - "application/octet-stream" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream", - "Decorators": [] - }, - { - "$id": "135", - "Name": "customContentType", - "ResourceName": "RequestBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "136", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "137", - "kind": "constant", - "valueType": { - "$id": "138", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "139", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "140", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "141", - "StatusCodes": [ - 204 + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/request/custom-content-type", + "RequestMediaTypes": [ + "image/png" ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/request/custom-content-type", - "RequestMediaTypes": [ - "image/png" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType", - "Decorators": [] - }, - { - "$id": "142", - "Name": "base64", - "ResourceName": "RequestBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "143", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "144", - "kind": "constant", - "valueType": { - "$id": "145", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType", + "Decorators": [] }, { - "$id": "146", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "147", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "148", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/request/base64", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64", - "Decorators": [] - }, - { - "$id": "149", - "Name": "base64url", - "ResourceName": "RequestBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "150", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "151", - "kind": "constant", - "valueType": { - "$id": "152", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "142", + "Name": "base64", + "ResourceName": "RequestBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "143", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "144", + "kind": "constant", + "valueType": { + "$id": "145", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "153", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "154", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "155", - "StatusCodes": [ - 204 + { + "$id": "146", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "147", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/request/base64url", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url", - "Decorators": [] - } - ], - "Protocol": { - "$id": "156" - }, - "Parent": "BytesClient", - "Parameters": [ - { - "$id": "157", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "158", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "159", - "Type": { - "$id": "160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody" - }, - { - "$id": "161", - "Name": "ResponseBody", - "Namespace": "Encode.Bytes.ResponseBody", - "Operations": [ - { - "$id": "162", - "Name": "default", - "ResourceName": "ResponseBody", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "148", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/request/base64", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64", + "Decorators": [] + }, { - "$id": "163", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "164", - "kind": "constant", - "valueType": { - "$id": "165", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "149", + "Name": "base64url", + "ResourceName": "RequestBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "150", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "151", + "kind": "constant", + "valueType": { + "$id": "152", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "166", - "StatusCodes": [ - 200 + { + "$id": "153", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "154", + "kind": "bytes", + "name": "bytes", + "encode": "base64url", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "167", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "155", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/request/base64url", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/response/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody", + "parent": { + "$ref": "24" + } }, { - "$id": "168", - "Name": "octetStream", - "ResourceName": "ResponseBody", - "Accessibility": "public", - "Parameters": [ + "$id": "156", + "kind": "client", + "name": "ResponseBody", + "namespace": "Encode.Bytes.ResponseBody", + "parameters": [ { - "$id": "169", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "157", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "170", - "kind": "constant", - "valueType": { - "$id": "171", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] + "$id": "158", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "159", + "Type": { + "$id": "160", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "172", - "StatusCodes": [ - 200 + "$id": "161", + "Name": "default", + "ResourceName": "ResponseBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "162", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "163", + "kind": "constant", + "valueType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "173", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Headers": [ + "Responses": [ { - "$id": "174", - "Name": "contentType", - "NameInResponse": "content-type", + "$id": "165", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "166", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/response/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default", + "Decorators": [] + }, + { + "$id": "167", + "Name": "octetStream", + "ResourceName": "ResponseBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "168", + "Name": "accept", + "NameInRequest": "Accept", "Type": { - "$id": "175", + "$id": "169", "kind": "constant", "valueType": { - "$id": "176", + "$id": "170", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1770,81 +1760,81 @@ }, "value": "application/octet-stream", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/octet-stream" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/response/octet-stream", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream", - "Decorators": [] - }, - { - "$id": "177", - "Name": "customContentType", - "ResourceName": "ResponseBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "178", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "179", - "kind": "constant", - "valueType": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "181", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "171", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "172", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Headers": [ + { + "$id": "173", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "174", + "kind": "constant", + "valueType": { + "$id": "175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/octet-stream" + ] + } ], - "BodyType": { - "$id": "182", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Headers": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/response/octet-stream", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream", + "Decorators": [] + }, + { + "$id": "176", + "Name": "customContentType", + "ResourceName": "ResponseBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "183", - "Name": "contentType", - "NameInResponse": "content-type", + "$id": "177", + "Name": "accept", + "NameInRequest": "Accept", "Type": { - "$id": "184", + "$id": "178", "kind": "constant", "valueType": { - "$id": "185", + "$id": "179", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1852,200 +1842,210 @@ }, "value": "image/png", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "180", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "181", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Headers": [ + { + "$id": "182", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "183", + "kind": "constant", + "valueType": { + "$id": "184", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "image/png" + ] } ], - "IsErrorResponse": false, - "ContentTypes": [ - "image/png" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/response/custom-content-type", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType", - "Decorators": [] - }, - { - "$id": "186", - "Name": "base64", - "ResourceName": "ResponseBody", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/response/custom-content-type", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType", + "Decorators": [] + }, { - "$id": "187", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "188", - "kind": "constant", - "valueType": { + "$id": "185", + "Name": "base64", + "ResourceName": "ResponseBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "186", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "187", + "kind": "constant", + "valueType": { + "$id": "188", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { "$id": "189", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "190", - "StatusCodes": [ - 200 + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "190", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyType": { - "$id": "191", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/response/base64", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64", - "Decorators": [] - }, - { - "$id": "192", - "Name": "base64url", - "ResourceName": "ResponseBody", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/response/base64", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64", + "Decorators": [] + }, { - "$id": "193", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "194", - "kind": "constant", - "valueType": { + "$id": "191", + "Name": "base64url", + "ResourceName": "ResponseBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "192", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "193", + "kind": "constant", + "valueType": { + "$id": "194", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { "$id": "195", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "196", - "StatusCodes": [ - 200 + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "196", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "197", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyType": { - "$id": "197", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "198", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/bytes/body/response/base64url", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64url", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/bytes/body/response/base64url", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64url", - "Decorators": [] - } - ], - "Protocol": { - "$id": "199" - }, - "Parent": "BytesClient", - "Parameters": [ - { - "$id": "200", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "201", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "202", - "Type": { - "$id": "203", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody", + "parent": { + "$ref": "24" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Bytes.ResponseBody" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json index a34eb02a2c0..3c4c452d886 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json @@ -255,21 +255,18 @@ "Clients": [ { "$id": "35", - "Name": "DatetimeClient", - "Namespace": "Encode.Datetime", - "Doc": "Test for encode decorator on datetime.", - "Operations": [], - "Protocol": { - "$id": "36" - }, - "Parameters": [ + "kind": "client", + "name": "DatetimeClient", + "namespace": "Encode.Datetime", + "doc": "Test for encode decorator on datetime.", + "parameters": [ { - "$id": "37", + "$id": "36", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "38", + "$id": "37", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -284,9 +281,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "39", + "$id": "38", "Type": { - "$id": "40", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -295,268 +292,176 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Datetime" - }, - { - "$id": "41", - "Name": "Query", - "Namespace": "Encode.Datetime.Query", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Datetime", + "children": [ { - "$id": "42", - "Name": "default", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "$id": "40", + "kind": "client", + "name": "Query", + "namespace": "Encode.Datetime.Query", + "parameters": [ { - "$id": "43", - "Name": "value", - "NameInRequest": "value", + "$id": "41", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "44", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "$id": "42", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "46", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/query/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Query.default", - "Decorators": [] - }, - { - "$id": "47", - "Name": "rfc3339", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "48", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "49", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, + "IsEndpoint": true, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "51", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/query/rfc3339", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339", - "Decorators": [] - }, - { - "$id": "52", - "Name": "rfc7231", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "53", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "54", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "55", + "Kind": "Client", + "DefaultValue": { + "$id": "43", + "Type": { + "$id": "44", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "56", - "StatusCodes": [ - 204 + "$id": "45", + "Name": "default", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "46", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "47", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/query/rfc7231", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Query.rfc7231", - "Decorators": [] - }, - { - "$id": "57", - "Name": "unixTimestamp", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "58", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "59", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "60", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "61", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "49", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/query/unix-timestamp", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp", - "Decorators": [] - }, - { - "$id": "62", - "Name": "unixTimestampArray", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/query/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Query.default", + "Decorators": [] + }, { - "$id": "63", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "64", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "65", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "66", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", + "$id": "50", + "Name": "rfc3339", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "51", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "52", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "53", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "67", + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "54", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/query/rfc3339", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339", + "Decorators": [] + }, + { + "$id": "55", + "Name": "rfc7231", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "56", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "57", "kind": "utcDateTime", "name": "utcDateTime", - "encode": "rfc3339", + "encode": "rfc7231", "wireType": { - "$id": "68", + "$id": "58", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -565,1037 +470,813 @@ "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "59", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/query/rfc7231", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Query.rfc7231", + "Decorators": [] + }, + { + "$id": "60", + "Name": "unixTimestamp", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "61", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "62", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "63", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "64", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/query/unix-timestamp", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp", + "Decorators": [] + }, { - "$id": "69", - "StatusCodes": [ - 204 + "$id": "65", + "Name": "unixTimestampArray", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "66", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "67", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "68", + "kind": "utcDateTime", + "name": "unixTimestampDatetime", + "encode": "unixTimestamp", + "wireType": { + "$id": "69", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", + "baseType": { + "$id": "70", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "71", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "72", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/query/unix-timestamp-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestampArray", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/query/unix-timestamp-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestampArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "70" - }, - "Parent": "DatetimeClient", - "Parameters": [ - { - "$id": "71", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "72", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "73", - "Type": { - "$id": "74", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Datetime.Query", + "parent": { + "$ref": "35" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Datetime.Query" - }, - { - "$id": "75", - "Name": "Property", - "Namespace": "Encode.Datetime.Property", - "Operations": [ + }, { - "$id": "76", - "Name": "default", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + "$id": "73", + "kind": "client", + "name": "Property", + "namespace": "Encode.Datetime.Property", + "parameters": [ { - "$id": "77", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "74", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "78", - "kind": "constant", - "valueType": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "75", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "80", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "81", - "kind": "constant", - "valueType": { - "$id": "82", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "76", + "Type": { + "$id": "77", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "83", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "84", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "2" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/datetime/property/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Property.default", - "Decorators": [] - }, - { - "$id": "85", - "Name": "rfc3339", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "86", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "87", - "kind": "constant", - "valueType": { - "$id": "88", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "78", + "Name": "default", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "79", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "80", + "kind": "constant", + "valueType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "89", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "90", - "kind": "constant", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "82", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "83", + "kind": "constant", + "valueType": { + "$id": "84", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "92", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "8" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "93", - "StatusCodes": [ - 200 + { + "$id": "85", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "8" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/datetime/property/rfc3339", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339", - "Decorators": [] - }, - { - "$id": "94", - "Name": "rfc7231", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "95", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "96", - "kind": "constant", - "valueType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "98", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "99", - "kind": "constant", - "valueType": { - "$id": "100", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "101", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "14" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "102", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "86", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyType": { - "$ref": "14" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/datetime/property/default", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/datetime/property/rfc7231", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231", - "Decorators": [] - }, - { - "$id": "103", - "Name": "unixTimestamp", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "104", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "105", - "kind": "constant", - "valueType": { - "$id": "106", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "107", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "108", - "kind": "constant", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "110", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "20" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "111", - "StatusCodes": [ - 200 ], - "BodyType": { - "$ref": "20" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/datetime/property/unix-timestamp", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp", - "Decorators": [] - }, - { - "$id": "112", - "Name": "unixTimestampArray", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "113", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "114", - "kind": "constant", - "valueType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Property.default", + "Decorators": [] }, { - "$id": "116", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "117", - "kind": "constant", - "valueType": { - "$id": "118", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "87", + "Name": "rfc3339", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "88", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "89", + "kind": "constant", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "119", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "26" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "120", - "StatusCodes": [ - 200 + { + "$id": "91", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "92", + "kind": "constant", + "valueType": { + "$id": "93", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "94", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "8" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "26" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "95", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "8" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/datetime/property/rfc3339", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/datetime/property/unix-timestamp-array", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "121" - }, - "Parent": "DatetimeClient", - "Parameters": [ - { - "$id": "122", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "123", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "124", - "Type": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Datetime.Property" - }, - { - "$id": "126", - "Name": "Header", - "Namespace": "Encode.Datetime.Header", - "Operations": [ - { - "$id": "127", - "Name": "default", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ { - "$id": "128", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "129", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "130", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "96", + "Name": "rfc7231", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "97", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "98", + "kind": "constant", + "valueType": { + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "131", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/header/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Header.default", - "Decorators": [] - }, - { - "$id": "132", - "Name": "rfc3339", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "133", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "134", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "100", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "101", + "kind": "constant", + "valueType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "136", - "StatusCodes": [ - 204 + { + "$id": "103", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "14" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/header/rfc3339", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339", - "Decorators": [] - }, - { - "$id": "137", - "Name": "rfc7231", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "138", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "139", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "141", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "104", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "14" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/datetime/property/rfc7231", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/header/rfc7231", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231", - "Decorators": [] - }, - { - "$id": "142", - "Name": "unixTimestamp", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231", + "Decorators": [] + }, { - "$id": "143", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "144", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "145", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] + "$id": "105", + "Name": "unixTimestamp", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "106", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "107", + "kind": "constant", + "valueType": { + "$id": "108", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "146", - "StatusCodes": [ - 204 + { + "$id": "109", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "110", + "kind": "constant", + "valueType": { + "$id": "111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "112", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "20" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/header/unix-timestamp", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp", - "Decorators": [] - }, - { - "$id": "147", - "Name": "unixTimestampArray", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "113", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "20" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/datetime/property/unix-timestamp", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp", + "Decorators": [] + }, { - "$id": "148", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "149", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "150", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "151", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", + "$id": "114", + "Name": "unixTimestampArray", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "115", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "116", + "kind": "constant", + "valueType": { + "$id": "117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "152", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "153", + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "118", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "119", + "kind": "constant", + "valueType": { + "$id": "120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "value": "application/json", "decorators": [] }, - "decorators": [] + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "121", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "26" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "122", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "26" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/datetime/property/unix-timestamp-array", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Datetime.Property", + "parent": { + "$ref": "35" + } + }, + { + "$id": "123", + "kind": "client", + "name": "Header", + "namespace": "Encode.Datetime.Header", + "parameters": [ + { + "$id": "124", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "125", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "154", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "126", + "Type": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/header/unix-timestamp-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "155" - }, - "Parent": "DatetimeClient", - "Parameters": [ - { - "$id": "156", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "157", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "158", - "Type": { - "$id": "159", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Datetime.Header" - }, - { - "$id": "160", - "Name": "ResponseHeader", - "Namespace": "Encode.Datetime.ResponseHeader", - "Operations": [ - { - "$id": "161", - "Name": "default", - "ResourceName": "ResponseHeader", - "Accessibility": "public", - "Parameters": [], - "Responses": [ + "operations": [ { - "$id": "162", - "StatusCodes": [ - 204 - ], - "Headers": [ + "$id": "128", + "Name": "default", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ { - "$id": "163", + "$id": "129", "Name": "value", - "NameInResponse": "value", + "NameInRequest": "value", "Type": { - "$id": "164", + "$id": "130", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "165", + "$id": "131", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1603,45 +1284,54 @@ }, "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/responseheader/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.default", - "Decorators": [] - }, - { - "$id": "166", - "Name": "rfc3339", - "ResourceName": "ResponseHeader", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "167", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "132", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/header/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Header.default", + "Decorators": [] + }, + { + "$id": "133", + "Name": "rfc3339", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ { - "$id": "168", + "$id": "134", "Name": "value", - "NameInResponse": "value", + "NameInRequest": "value", "Type": { - "$id": "169", + "$id": "135", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "170", + "$id": "136", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1649,45 +1339,54 @@ }, "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/responseheader/rfc3339", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc3339", - "Decorators": [] - }, - { - "$id": "171", - "Name": "rfc7231", - "ResourceName": "ResponseHeader", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "172", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "137", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/header/rfc3339", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339", + "Decorators": [] + }, + { + "$id": "138", + "Name": "rfc7231", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ { - "$id": "173", + "$id": "139", "Name": "value", - "NameInResponse": "value", + "NameInRequest": "value", "Type": { - "$id": "174", + "$id": "140", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "175", + "$id": "141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1695,45 +1394,54 @@ }, "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/responseheader/rfc7231", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc7231", - "Decorators": [] - }, - { - "$id": "176", - "Name": "unixTimestamp", - "ResourceName": "ResponseHeader", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "177", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "142", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/header/rfc7231", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231", + "Decorators": [] + }, + { + "$id": "143", + "Name": "unixTimestamp", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ { - "$id": "178", + "$id": "144", "Name": "value", - "NameInResponse": "value", + "NameInRequest": "value", "Type": { - "$id": "179", + "$id": "145", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "180", + "$id": "146", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -1741,61 +1449,353 @@ }, "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "147", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/header/unix-timestamp", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp", + "Decorators": [] + }, + { + "$id": "148", + "Name": "unixTimestampArray", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "149", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "150", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "151", + "kind": "utcDateTime", + "name": "unixTimestampDatetime", + "encode": "unixTimestamp", + "wireType": { + "$id": "152", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", + "baseType": { + "$id": "153", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "155", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false } ], - "IsErrorResponse": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/header/unix-timestamp-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/datetime/responseheader/unix-timestamp", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.unixTimestamp", - "Decorators": [] - } - ], - "Protocol": { - "$id": "181" - }, - "Parent": "DatetimeClient", - "Parameters": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Datetime.Header", + "parent": { + "$ref": "35" + } + }, { - "$id": "182", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "183", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "184", - "Type": { - "$id": "185", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "156", + "kind": "client", + "name": "ResponseHeader", + "namespace": "Encode.Datetime.ResponseHeader", + "parameters": [ + { + "$id": "157", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "158", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "159", + "Type": { + "$id": "160", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "161", + "Name": "default", + "ResourceName": "ResponseHeader", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "162", + "StatusCodes": [ + 204 + ], + "Headers": [ + { + "$id": "163", + "Name": "value", + "NameInResponse": "value", + "Type": { + "$id": "164", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "165", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/responseheader/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.default", + "Decorators": [] }, - "Value": "http://localhost:3000" + { + "$id": "166", + "Name": "rfc3339", + "ResourceName": "ResponseHeader", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "167", + "StatusCodes": [ + 204 + ], + "Headers": [ + { + "$id": "168", + "Name": "value", + "NameInResponse": "value", + "Type": { + "$id": "169", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "170", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/responseheader/rfc3339", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc3339", + "Decorators": [] + }, + { + "$id": "171", + "Name": "rfc7231", + "ResourceName": "ResponseHeader", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "172", + "StatusCodes": [ + 204 + ], + "Headers": [ + { + "$id": "173", + "Name": "value", + "NameInResponse": "value", + "Type": { + "$id": "174", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/responseheader/rfc7231", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc7231", + "Decorators": [] + }, + { + "$id": "176", + "Name": "unixTimestamp", + "ResourceName": "ResponseHeader", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "177", + "StatusCodes": [ + 204 + ], + "Headers": [ + { + "$id": "178", + "Name": "value", + "NameInResponse": "value", + "Type": { + "$id": "179", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "180", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/datetime/responseheader/unix-timestamp", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.unixTimestamp", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader", + "parent": { + "$ref": "35" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Datetime.ResponseHeader" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json index 7641a50f343..38c36454bd9 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json @@ -300,21 +300,18 @@ "Clients": [ { "$id": "41", - "Name": "DurationClient", - "Namespace": "Encode.Duration", - "Doc": "Test for encode decorator on duration.", - "Operations": [], - "Protocol": { - "$id": "42" - }, - "Parameters": [ + "kind": "client", + "name": "DurationClient", + "namespace": "Encode.Duration", + "doc": "Test for encode decorator on duration.", + "parameters": [ { - "$id": "43", + "$id": "42", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "44", + "$id": "43", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -329,9 +326,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "45", + "$id": "44", "Type": { - "$id": "46", + "$id": "45", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -340,1245 +337,1208 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Duration" - }, - { - "$id": "47", - "Name": "Query", - "Namespace": "Encode.Duration.Query", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Duration", + "children": [ { - "$id": "48", - "Name": "default", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "$id": "46", + "kind": "client", + "name": "Query", + "namespace": "Encode.Duration.Query", + "parameters": [ { - "$id": "49", - "Name": "input", - "NameInRequest": "input", + "$id": "47", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "50", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] + "$id": "48", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "52", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/duration/query/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Query.default", - "Decorators": [] - }, - { - "$id": "53", - "Name": "iso8601", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "54", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$id": "55", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "56", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "49", + "Type": { + "$id": "50", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "57", - "StatusCodes": [ - 204 + "$id": "51", + "Name": "default", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "52", + "Name": "input", + "NameInRequest": "input", + "Type": { + "$id": "53", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/duration/query/iso8601", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Query.iso8601", - "Decorators": [] - }, - { - "$id": "58", - "Name": "int32Seconds", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "55", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/duration/query/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Query.default", + "Decorators": [] + }, { - "$id": "59", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$id": "60", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "61", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "56", + "Name": "iso8601", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "57", + "Name": "input", + "NameInRequest": "input", + "Type": { + "$id": "58", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "59", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "60", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/duration/query/iso8601", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Query.iso8601", + "Decorators": [] + }, { - "$id": "62", - "StatusCodes": [ - 204 + "$id": "61", + "Name": "int32Seconds", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "62", + "Name": "input", + "NameInRequest": "input", + "Type": { + "$id": "63", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "64", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/duration/query/int32-seconds", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Query.int32Seconds", - "Decorators": [] - }, - { - "$id": "63", - "Name": "floatSeconds", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "65", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/duration/query/int32-seconds", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Query.int32Seconds", + "Decorators": [] + }, { - "$id": "64", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$id": "65", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "66", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "66", + "Name": "floatSeconds", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "67", + "Name": "input", + "NameInRequest": "input", + "Type": { + "$id": "68", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "69", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "70", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/duration/query/float-seconds", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds", + "Decorators": [] + }, { - "$id": "67", - "StatusCodes": [ - 204 + "$id": "71", + "Name": "float64Seconds", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "72", + "Name": "input", + "NameInRequest": "input", + "Type": { + "$id": "73", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "74", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "75", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/duration/query/float64-seconds", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds", + "Decorators": [] + }, + { + "$id": "76", + "Name": "int32SecondsArray", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "77", + "Name": "input", + "NameInRequest": "input", + "Type": { + "$id": "78", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "79", + "kind": "duration", + "name": "Int32Duration", + "encode": "seconds", + "wireType": { + "$id": "80", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", + "baseType": { + "$id": "81", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "82", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "83", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/duration/query/int32-seconds-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsArray", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/duration/query/float-seconds", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Duration.Query", + "parent": { + "$ref": "41" + } }, { - "$id": "68", - "Name": "float64Seconds", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "$id": "84", + "kind": "client", + "name": "Property", + "namespace": "Encode.Duration.Property", + "parameters": [ { - "$id": "69", - "Name": "input", - "NameInRequest": "input", + "$id": "85", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "70", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "71", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] + "$id": "86", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "87", + "Type": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "72", - "StatusCodes": [ - 204 + "$id": "89", + "Name": "default", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "90", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "91", + "kind": "constant", + "valueType": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "93", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "94", + "kind": "constant", + "valueType": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "96", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/duration/query/float64-seconds", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds", - "Decorators": [] - }, - { - "$id": "73", - "Name": "int32SecondsArray", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "97", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/duration/property/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Property.default", + "Decorators": [] + }, { - "$id": "74", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$id": "75", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "76", - "kind": "duration", - "name": "Int32Duration", - "encode": "seconds", - "wireType": { - "$id": "77", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "98", + "Name": "iso8601", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "99", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "100", + "kind": "constant", + "valueType": { + "$id": "101", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", - "baseType": { - "$id": "78", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "79", + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "102", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "103", + "kind": "constant", + "valueType": { + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", + "value": "application/json", "decorators": [] }, - "decorators": [] + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "80", - "StatusCodes": [ - 204 + { + "$id": "105", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "8" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/duration/query/int32-seconds-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "81" - }, - "Parent": "DurationClient", - "Parameters": [ - { - "$id": "82", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "83", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "84", - "Type": { - "$id": "85", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "106", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "8" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/duration/property/iso8601", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Property.iso8601", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Duration.Query" - }, - { - "$id": "86", - "Name": "Property", - "Namespace": "Encode.Duration.Property", - "Operations": [ - { - "$id": "87", - "Name": "default", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ { - "$id": "88", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "89", - "kind": "constant", - "valueType": { - "$id": "90", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "91", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "92", - "kind": "constant", - "valueType": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "94", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "95", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "2" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/duration/property/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Property.default", - "Decorators": [] - }, - { - "$id": "96", - "Name": "iso8601", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "97", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "98", - "kind": "constant", - "valueType": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "100", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "101", - "kind": "constant", - "valueType": { - "$id": "102", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "103", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "8" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "104", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "8" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/duration/property/iso8601", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Property.iso8601", - "Decorators": [] - }, - { - "$id": "105", - "Name": "int32Seconds", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "106", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "107", - "kind": "constant", - "valueType": { + "$id": "107", + "Name": "int32Seconds", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { "$id": "108", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "109", + "kind": "constant", + "valueType": { + "$id": "110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "109", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "110", - "kind": "constant", - "valueType": { + { "$id": "111", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "112", + "kind": "constant", + "valueType": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "112", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "14" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "113", - "StatusCodes": [ - 200 + { + "$id": "114", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "14" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "14" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "115", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "14" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/duration/property/int32-seconds", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/duration/property/int32-seconds", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds", - "Decorators": [] - }, - { - "$id": "114", - "Name": "floatSeconds", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds", + "Decorators": [] + }, { - "$id": "115", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "116", - "kind": "constant", - "valueType": { + "$id": "116", + "Name": "floatSeconds", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "118", + "kind": "constant", + "valueType": { + "$id": "119", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "118", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "119", - "kind": "constant", - "valueType": { + { "$id": "120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "121", + "kind": "constant", + "valueType": { + "$id": "122", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "121", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "20" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "122", - "StatusCodes": [ - 200 + { + "$id": "123", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "20" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "20" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "124", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "20" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/duration/property/float-seconds", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/duration/property/float-seconds", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds", - "Decorators": [] - }, - { - "$id": "123", - "Name": "float64Seconds", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds", + "Decorators": [] + }, { - "$id": "124", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "125", - "kind": "constant", - "valueType": { + "$id": "125", + "Name": "float64Seconds", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { "$id": "126", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "127", + "kind": "constant", + "valueType": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "127", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "128", - "kind": "constant", - "valueType": { + { "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "130", + "kind": "constant", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "130", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "26" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "131", - "StatusCodes": [ - 200 + { + "$id": "132", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "26" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "26" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "133", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "26" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/duration/property/float64-seconds", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/duration/property/float64-seconds", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds", - "Decorators": [] - }, - { - "$id": "132", - "Name": "floatSecondsArray", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "133", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "134", - "kind": "constant", - "valueType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "136", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "137", - "kind": "constant", - "valueType": { - "$id": "138", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds", + "Decorators": [] }, { - "$id": "139", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "32" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "140", - "StatusCodes": [ - 200 + "$id": "134", + "Name": "floatSecondsArray", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "135", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "136", + "kind": "constant", + "valueType": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "138", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "139", + "kind": "constant", + "valueType": { + "$id": "140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "141", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "32" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "32" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "142", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "32" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/duration/property/float-seconds-array", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/duration/property/float-seconds-array", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "141" - }, - "Parent": "DurationClient", - "Parameters": [ - { - "$id": "142", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "143", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "144", - "Type": { - "$id": "145", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Duration.Property", + "parent": { + "$ref": "41" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Duration.Property" - }, - { - "$id": "146", - "Name": "Header", - "Namespace": "Encode.Duration.Header", - "Operations": [ + }, { - "$id": "147", - "Name": "default", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "$id": "143", + "kind": "client", + "name": "Header", + "namespace": "Encode.Duration.Header", + "parameters": [ { - "$id": "148", - "Name": "duration", - "NameInRequest": "duration", + "$id": "144", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "149", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] + "$id": "145", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "151", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/duration/header/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Header.default", - "Decorators": [] - }, - { - "$id": "152", - "Name": "iso8601", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "153", - "Name": "duration", - "NameInRequest": "duration", - "Type": { - "$id": "154", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "155", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "146", + "Type": { + "$id": "147", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "156", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false + "Value": "http://localhost:3000" + } } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/duration/header/iso8601", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Header.iso8601", - "Decorators": [] - }, - { - "$id": "157", - "Name": "iso8601Array", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "operations": [ { - "$id": "158", - "Name": "duration", - "NameInRequest": "duration", - "Type": { - "$id": "159", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "160", - "kind": "duration", - "name": "Iso8601Duration", - "encode": "ISO8601", - "wireType": { - "$id": "161", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "148", + "Name": "default", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "149", + "Name": "duration", + "NameInRequest": "duration", + "Type": { + "$id": "150", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "151", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", "decorators": [] }, - "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", - "baseType": { - "$id": "162", + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "152", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/duration/header/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Header.default", + "Decorators": [] + }, + { + "$id": "153", + "Name": "iso8601", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "154", + "Name": "duration", + "NameInRequest": "duration", + "Type": { + "$id": "155", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "163", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1587,247 +1547,287 @@ "crossLanguageDefinitionId": "TypeSpec.duration", "decorators": [] }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "157", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/duration/header/iso8601", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Header.iso8601", + "Decorators": [] + }, { - "$id": "164", - "StatusCodes": [ - 204 + "$id": "158", + "Name": "iso8601Array", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "159", + "Name": "duration", + "NameInRequest": "duration", + "Type": { + "$id": "160", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "161", + "kind": "duration", + "name": "Iso8601Duration", + "encode": "ISO8601", + "wireType": { + "$id": "162", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", + "baseType": { + "$id": "163", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/duration/header/iso8601-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array", - "Decorators": [] - }, - { - "$id": "165", - "Name": "int32Seconds", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "165", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/duration/header/iso8601-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array", + "Decorators": [] + }, { "$id": "166", - "Name": "duration", - "NameInRequest": "duration", - "Type": { - "$id": "167", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "168", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "169", - "StatusCodes": [ - 204 + "Name": "int32Seconds", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "167", + "Name": "duration", + "NameInRequest": "duration", + "Type": { + "$id": "168", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "169", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/duration/header/int32-seconds", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds", - "Decorators": [] - }, - { - "$id": "170", - "Name": "floatSeconds", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "170", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/duration/header/int32-seconds", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds", + "Decorators": [] + }, { "$id": "171", - "Name": "duration", - "NameInRequest": "duration", - "Type": { - "$id": "172", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "173", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "174", - "StatusCodes": [ - 204 + "Name": "floatSeconds", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "172", + "Name": "duration", + "NameInRequest": "duration", + "Type": { + "$id": "173", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "174", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/duration/header/float-seconds", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds", - "Decorators": [] - }, - { - "$id": "175", - "Name": "float64Seconds", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "175", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/duration/header/float-seconds", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds", + "Decorators": [] + }, { "$id": "176", - "Name": "duration", - "NameInRequest": "duration", - "Type": { - "$id": "177", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "178", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "179", - "StatusCodes": [ - 204 + "Name": "float64Seconds", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "177", + "Name": "duration", + "NameInRequest": "duration", + "Type": { + "$id": "178", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "179", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "180", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/encode/duration/header/float64-seconds", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/encode/duration/header/float64-seconds", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds", - "Decorators": [] - } - ], - "Protocol": { - "$id": "180" - }, - "Parent": "DurationClient", - "Parameters": [ - { - "$id": "181", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "182", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "183", - "Type": { - "$id": "184", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Duration.Header", + "parent": { + "$ref": "41" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Duration.Header" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json index 8c7dff2f354..87012aff90d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json @@ -122,21 +122,18 @@ "Clients": [ { "$id": "17", - "Name": "NumericClient", - "Namespace": "Encode.Numeric", - "Doc": "Test for encode decorator on integer.", - "Operations": [], - "Protocol": { - "$id": "18" - }, - "Parameters": [ + "kind": "client", + "name": "NumericClient", + "namespace": "Encode.Numeric", + "doc": "Test for encode decorator on integer.", + "parameters": [ { - "$id": "19", + "$id": "18", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "20", + "$id": "19", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -151,9 +148,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "21", + "$id": "20", "Type": { - "$id": "22", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -162,375 +159,378 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Numeric" - }, - { - "$id": "23", - "Name": "Property", - "Namespace": "Encode.Numeric.Property", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Numeric", + "children": [ { - "$id": "24", - "Name": "safeintAsString", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + "$id": "22", + "kind": "client", + "name": "Property", + "namespace": "Encode.Numeric.Property", + "parameters": [ { - "$id": "25", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "23", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "26", - "kind": "constant", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "24", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "28", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "29", - "kind": "constant", - "valueType": { - "$id": "30", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "25", + "Type": { + "$id": "26", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "31", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "32", - "StatusCodes": [ - 200 + "$id": "27", + "Name": "safeintAsString", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "28", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "29", + "kind": "constant", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "31", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "32", + "kind": "constant", + "valueType": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "34", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "2" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "35", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/numeric/property/safeint", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/numeric/property/safeint", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString", - "Decorators": [] - }, - { - "$id": "33", - "Name": "uint32AsStringOptional", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "34", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "35", - "kind": "constant", - "valueType": { - "$id": "36", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString", + "Decorators": [] }, { - "$id": "37", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "38", - "kind": "constant", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "36", + "Name": "uint32AsStringOptional", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "37", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "38", + "kind": "constant", + "valueType": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "40", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$ref": "7" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "41", - "StatusCodes": [ - 200 + { + "$id": "40", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "41", + "kind": "constant", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "43", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$ref": "7" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "7" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "44", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "7" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/numeric/property/uint32", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/numeric/property/uint32", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional", - "Decorators": [] - }, - { - "$id": "42", - "Name": "uint8AsString", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "43", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "44", - "kind": "constant", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional", + "Decorators": [] }, { - "$id": "46", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "47", - "kind": "constant", - "valueType": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "45", + "Name": "uint8AsString", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "46", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "47", + "kind": "constant", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "49", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$ref": "12" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "50", - "StatusCodes": [ - 200 + { + "$id": "49", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "50", + "kind": "constant", + "valueType": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "52", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$ref": "12" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "12" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "53", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "12" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/encode/numeric/property/uint8", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/encode/numeric/property/uint8", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString", - "Decorators": [] - } - ], - "Protocol": { - "$id": "51" - }, - "Parent": "NumericClient", - "Parameters": [ - { - "$id": "52", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "53", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "54", - "Type": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Encode.Numeric.Property", + "parent": { + "$ref": "17" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Encode.Numeric.Property" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json index ee9262832db..a2b1d6e70d7 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json @@ -83,21 +83,18 @@ "Clients": [ { "$id": "12", - "Name": "BasicClient", - "Namespace": "Parameters.Basic", - "Doc": "Test for basic parameters cases.", - "Operations": [], - "Protocol": { - "$id": "13" - }, - "Parameters": [ + "kind": "client", + "name": "BasicClient", + "namespace": "Parameters.Basic", + "doc": "Test for basic parameters cases.", + "parameters": [ { - "$id": "14", + "$id": "13", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "15", + "$id": "14", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -112,9 +109,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "16", + "$id": "15", "Type": { - "$id": "17", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -123,248 +120,251 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.Basic" - }, - { - "$id": "18", - "Name": "ExplicitBody", - "Namespace": "Parameters.Basic.ExplicitBody", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.Basic", + "children": [ { - "$id": "19", - "Name": "simple", - "ResourceName": "ExplicitBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "20", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "21", - "kind": "constant", - "valueType": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "17", + "kind": "client", + "name": "ExplicitBody", + "namespace": "Parameters.Basic.ExplicitBody", + "parameters": [ { - "$id": "23", - "Name": "body", - "NameInRequest": "body", + "$id": "18", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "7" + "$id": "19", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "20", + "Type": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "24", - "StatusCodes": [ - 204 + "$id": "22", + "Name": "simple", + "ResourceName": "ExplicitBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "23", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "24", + "kind": "constant", + "valueType": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "26", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "7" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "27", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/parameters/basic/explicit-body/simple", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/parameters/basic/explicit-body/simple", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple", - "Decorators": [] - } - ], - "Protocol": { - "$id": "25" - }, - "Parent": "BasicClient", - "Parameters": [ - { - "$id": "26", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "27", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "28", - "Type": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody", + "parent": { + "$ref": "12" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.Basic.ExplicitBody" - }, - { - "$id": "30", - "Name": "ImplicitBody", - "Namespace": "Parameters.Basic.ImplicitBody", - "Operations": [ + }, { - "$id": "31", - "Name": "simple", - "ResourceName": "ImplicitBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "32", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "33", - "kind": "constant", - "valueType": { - "$id": "34", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "28", + "kind": "client", + "name": "ImplicitBody", + "namespace": "Parameters.Basic.ImplicitBody", + "parameters": [ { - "$id": "35", - "Name": "simpleRequest", - "NameInRequest": "simpleRequest", + "$id": "29", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "2" + "$id": "30", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "31", + "Type": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "36", - "StatusCodes": [ - 204 + "$id": "33", + "Name": "simple", + "ResourceName": "ImplicitBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "34", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "35", + "kind": "constant", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "37", + "Name": "simpleRequest", + "NameInRequest": "simpleRequest", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "38", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/parameters/basic/implicit-body/simple", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/parameters/basic/implicit-body/simple", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple", - "Decorators": [] - } - ], - "Protocol": { - "$id": "37" - }, - "Parent": "BasicClient", - "Parameters": [ - { - "$id": "38", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "39", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "40", - "Type": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody", + "parent": { + "$ref": "12" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.Basic.ImplicitBody" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json index 115ac7310f8..7a9d19e9419 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json @@ -45,26 +45,60 @@ "Clients": [ { "$id": "7", - "Name": "BodyOptionalityClient", - "Namespace": "Parameters.BodyOptionality", - "Doc": "Test describing optionality of the request body.", - "Operations": [ + "kind": "client", + "name": "BodyOptionalityClient", + "namespace": "Parameters.BodyOptionality", + "doc": "Test describing optionality of the request body.", + "parameters": [ { "$id": "8", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "9", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "10", + "Type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "12", "Name": "requiredExplicit", "ResourceName": "BodyOptionality", "Accessibility": "public", "Parameters": [ { - "$id": "9", + "$id": "13", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "10", + "$id": "14", "kind": "constant", "valueType": { - "$id": "11", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -84,7 +118,7 @@ "SkipUrlEncoding": false }, { - "$id": "12", + "$id": "16", "Name": "body", "NameInRequest": "body", "Type": { @@ -103,7 +137,7 @@ ], "Responses": [ { - "$id": "13", + "$id": "17", "StatusCodes": [ 204 ], @@ -124,21 +158,21 @@ "Decorators": [] }, { - "$id": "14", + "$id": "18", "Name": "requiredImplicit", "ResourceName": "BodyOptionality", "Accessibility": "public", "Parameters": [ { - "$id": "15", + "$id": "19", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "16", + "$id": "20", "kind": "constant", "valueType": { - "$id": "17", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -158,7 +192,7 @@ "SkipUrlEncoding": false }, { - "$id": "18", + "$id": "22", "Name": "bodyModel", "NameInRequest": "bodyModel", "Type": { @@ -177,7 +211,7 @@ ], "Responses": [ { - "$id": "19", + "$id": "23", "StatusCodes": [ 204 ], @@ -198,238 +232,204 @@ "Decorators": [] } ], - "Protocol": { - "$id": "20" - }, - "Parameters": [ - { - "$id": "21", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "22", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "23", - "Type": { - "$id": "24", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.BodyOptionality" - }, - { - "$id": "25", - "Name": "OptionalExplicit", - "Namespace": "Parameters.BodyOptionality.OptionalExplicit", - "Operations": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.BodyOptionality", + "children": [ { - "$id": "26", - "Name": "set", - "ResourceName": "OptionalExplicit", - "Accessibility": "public", - "Parameters": [ - { - "$id": "27", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "28", - "kind": "constant", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": false, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "24", + "kind": "client", + "name": "OptionalExplicit", + "namespace": "Parameters.BodyOptionality.OptionalExplicit", + "parameters": [ { - "$id": "30", - "Name": "body", - "NameInRequest": "body", + "$id": "25", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "2" + "$id": "26", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": false, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "31", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/parameters/body-optionality/optional-explicit/set", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set", - "Decorators": [] - }, - { - "$id": "32", - "Name": "omit", - "ResourceName": "OptionalExplicit", - "Accessibility": "public", - "Parameters": [ - { - "$id": "33", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "34", - "kind": "constant", - "valueType": { - "$id": "35", + "Kind": "Client", + "DefaultValue": { + "$id": "27", + "Type": { + "$id": "28", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": false, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "36", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": false, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "37", - "StatusCodes": [ - 204 + "$id": "29", + "Name": "set", + "ResourceName": "OptionalExplicit", + "Accessibility": "public", + "Parameters": [ + { + "$id": "30", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "31", + "kind": "constant", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "33", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "34", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/parameters/body-optionality/optional-explicit/set", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set", + "Decorators": [] + }, + { + "$id": "35", + "Name": "omit", + "ResourceName": "OptionalExplicit", + "Accessibility": "public", + "Parameters": [ + { + "$id": "36", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "37", + "kind": "constant", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "39", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "40", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/parameters/body-optionality/optional-explicit/omit", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/parameters/body-optionality/optional-explicit/omit", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit", - "Decorators": [] - } - ], - "Protocol": { - "$id": "38" - }, - "Parent": "BodyOptionalityClient", - "Parameters": [ - { - "$id": "39", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "40", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "41", - "Type": { - "$id": "42", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit", + "parent": { + "$ref": "7" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json index 7986391fdbc..8ff75baa561 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json @@ -7,21 +7,18 @@ "Clients": [ { "$id": "2", - "Name": "CollectionFormatClient", - "Namespace": "Parameters.CollectionFormat", - "Doc": "Test for collectionFormat.", - "Operations": [], - "Protocol": { - "$id": "3" - }, - "Parameters": [ + "kind": "client", + "name": "CollectionFormatClient", + "namespace": "Parameters.CollectionFormat", + "doc": "Test for collectionFormat.", + "parameters": [ { - "$id": "4", + "$id": "3", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "5", + "$id": "4", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -36,9 +33,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "6", + "$id": "5", "Type": { - "$id": "7", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -47,435 +44,438 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.CollectionFormat" - }, - { - "$id": "8", - "Name": "Query", - "Namespace": "Parameters.CollectionFormat.Query", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat", + "children": [ { - "$id": "9", - "Name": "multi", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "$id": "7", + "kind": "client", + "name": "Query", + "namespace": "Parameters.CollectionFormat.Query", + "parameters": [ { - "$id": "10", - "Name": "colors", - "NameInRequest": "colors", - "Doc": "Possible values for colors are [blue,red,green]", + "$id": "8", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "11", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "9", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": true, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "13", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/parameters/collection-format/query/multi", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi", - "Decorators": [] - }, - { - "$id": "14", - "Name": "ssv", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ - { - "$id": "15", - "Name": "colors", - "NameInRequest": "colors", - "Doc": "Possible values for colors are [blue,red,green]", - "Type": { - "$id": "16", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "17", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "10", + "Type": { + "$id": "11", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": " ", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "18", - "StatusCodes": [ - 204 + "$id": "12", + "Name": "multi", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "13", + "Name": "colors", + "NameInRequest": "colors", + "Doc": "Possible values for colors are [blue,red,green]", + "Type": { + "$id": "14", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/parameters/collection-format/query/ssv", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv", - "Decorators": [] - }, - { - "$id": "19", - "Name": "tsv", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "16", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/parameters/collection-format/query/multi", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi", + "Decorators": [] + }, { - "$id": "20", - "Name": "colors", - "NameInRequest": "colors", - "Doc": "Possible values for colors are [blue,red,green]", - "Type": { - "$id": "21", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": "\t", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "17", + "Name": "ssv", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "18", + "Name": "colors", + "NameInRequest": "colors", + "Doc": "Possible values for colors are [blue,red,green]", + "Type": { + "$id": "19", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": " ", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "21", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/parameters/collection-format/query/ssv", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv", + "Decorators": [] + }, { - "$id": "23", - "StatusCodes": [ - 204 + "$id": "22", + "Name": "tsv", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "23", + "Name": "colors", + "NameInRequest": "colors", + "Doc": "Possible values for colors are [blue,red,green]", + "Type": { + "$id": "24", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": "\t", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/parameters/collection-format/query/tsv", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.tsv", - "Decorators": [] - }, - { - "$id": "24", - "Name": "pipes", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "26", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/parameters/collection-format/query/tsv", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.tsv", + "Decorators": [] + }, { - "$id": "25", - "Name": "colors", - "NameInRequest": "colors", - "Doc": "Possible values for colors are [blue,red,green]", - "Type": { - "$id": "26", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": "|", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "27", + "Name": "pipes", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "28", + "Name": "colors", + "NameInRequest": "colors", + "Doc": "Possible values for colors are [blue,red,green]", + "Type": { + "$id": "29", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": "|", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "31", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/parameters/collection-format/query/pipes", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes", + "Decorators": [] + }, { - "$id": "28", - "StatusCodes": [ - 204 + "$id": "32", + "Name": "csv", + "ResourceName": "Query", + "Accessibility": "public", + "Parameters": [ + { + "$id": "33", + "Name": "colors", + "NameInRequest": "colors", + "Doc": "Possible values for colors are [blue,red,green]", + "Type": { + "$id": "34", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "35", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "36", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/parameters/collection-format/query/csv", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/parameters/collection-format/query/pipes", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query", + "parent": { + "$ref": "2" + } }, { - "$id": "29", - "Name": "csv", - "ResourceName": "Query", - "Accessibility": "public", - "Parameters": [ + "$id": "37", + "kind": "client", + "name": "Header", + "namespace": "Parameters.CollectionFormat.Header", + "parameters": [ { - "$id": "30", - "Name": "colors", - "NameInRequest": "colors", - "Doc": "Possible values for colors are [blue,red,green]", + "$id": "38", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "31", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "32", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "39", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "33", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/parameters/collection-format/query/csv", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv", - "Decorators": [] - } - ], - "Protocol": { - "$id": "34" - }, - "Parent": "CollectionFormatClient", - "Parameters": [ - { - "$id": "35", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "36", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "37", - "Type": { - "$id": "38", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Query" - }, - { - "$id": "39", - "Name": "Header", - "Namespace": "Parameters.CollectionFormat.Header", - "Operations": [ - { - "$id": "40", - "Name": "csv", - "ResourceName": "Header", - "Accessibility": "public", - "Parameters": [ - { - "$id": "41", - "Name": "colors", - "NameInRequest": "colors", - "Doc": "Possible values for colors are [blue,red,green]", - "Type": { - "$id": "42", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "43", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "40", + "Type": { + "$id": "41", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "ArraySerializationDelimiter": ",", - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "44", - "StatusCodes": [ - 204 + "$id": "42", + "Name": "csv", + "ResourceName": "Header", + "Accessibility": "public", + "Parameters": [ + { + "$id": "43", + "Name": "colors", + "NameInRequest": "colors", + "Doc": "Possible values for colors are [blue,red,green]", + "Type": { + "$id": "44", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "45", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "46", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/parameters/collection-format/header/csv", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/parameters/collection-format/header/csv", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv", - "Decorators": [] - } - ], - "Protocol": { - "$id": "45" - }, - "Parent": "CollectionFormatClient", - "Parameters": [ - { - "$id": "46", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "47", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "48", - "Type": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header", + "parent": { + "$ref": "2" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.CollectionFormat.Header" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json index 3f941d3336c..96693acb385 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json @@ -392,21 +392,18 @@ "Clients": [ { "$id": "55", - "Name": "SpreadClient", - "Namespace": "Parameters.Spread", - "Doc": "Test for the spread operator.", - "Operations": [], - "Protocol": { - "$id": "56" - }, - "Parameters": [ + "kind": "client", + "name": "SpreadClient", + "namespace": "Parameters.Spread", + "doc": "Test for the spread operator.", + "parameters": [ { - "$id": "57", + "$id": "56", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "58", + "$id": "57", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -421,9 +418,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "59", + "$id": "58", "Type": { - "$id": "60", + "$id": "59", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -432,1087 +429,1090 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.Spread" - }, - { - "$id": "61", - "Name": "Model", - "Namespace": "Parameters.Spread.Model", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.Spread", + "children": [ { - "$id": "62", - "Name": "spreadAsRequestBody", - "ResourceName": "Model", - "Accessibility": "public", - "Parameters": [ + "$id": "60", + "kind": "client", + "name": "Model", + "namespace": "Parameters.Spread.Model", + "parameters": [ { - "$id": "63", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "61", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "64", - "kind": "constant", - "valueType": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "62", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "66", - "Name": "bodyParameter", - "NameInRequest": "bodyParameter", - "Type": { - "$ref": "45" - }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "67", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/parameters/spread/model/request-body", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody", - "Decorators": [] - }, - { - "$id": "68", - "Name": "spreadCompositeRequestOnlyWithBody", - "ResourceName": "Model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "69", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "70", - "kind": "constant", - "valueType": { - "$id": "71", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "63", + "Type": { + "$id": "64", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "72", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "45" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "73", - "StatusCodes": [ - 204 + "$id": "65", + "Name": "spreadAsRequestBody", + "ResourceName": "Model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "66", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "67", + "kind": "constant", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "69", + "Name": "bodyParameter", + "NameInRequest": "bodyParameter", + "Type": { + "$ref": "45" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/parameters/spread/model/composite-request-only-with-body", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody", - "Decorators": [] - }, - { - "$id": "74", - "Name": "spreadCompositeRequestWithoutBody", - "ResourceName": "Model", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "70", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/parameters/spread/model/request-body", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody", + "Decorators": [] + }, { - "$id": "75", - "Name": "name", - "NameInRequest": "name", - "Type": { - "$id": "76", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "71", + "Name": "spreadCompositeRequestOnlyWithBody", + "ResourceName": "Model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "72", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "73", + "kind": "constant", + "valueType": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "75", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "45" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "76", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/parameters/spread/model/composite-request-only-with-body", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody", + "Decorators": [] }, { "$id": "77", - "Name": "testHeader", - "NameInRequest": "test-header", - "Type": { - "$id": "78", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "79", - "StatusCodes": [ - 204 + "Name": "spreadCompositeRequestWithoutBody", + "ResourceName": "Model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "78", + "Name": "name", + "NameInRequest": "name", + "Type": { + "$id": "79", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "80", + "Name": "testHeader", + "NameInRequest": "test-header", + "Type": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/parameters/spread/model/composite-request-without-body/{name}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody", - "Decorators": [] - }, - { - "$id": "80", - "Name": "spreadCompositeRequest", - "ResourceName": "Model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "81", - "Name": "name", - "NameInRequest": "name", - "Type": { - "$id": "82", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "82", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/parameters/spread/model/composite-request-without-body/{name}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody", + "Decorators": [] }, { "$id": "83", - "Name": "testHeader", - "NameInRequest": "test-header", - "Type": { - "$id": "84", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "85", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "86", - "kind": "constant", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "spreadCompositeRequest", + "ResourceName": "Model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "84", + "Name": "name", + "NameInRequest": "name", + "Type": { + "$id": "85", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "86", + "Name": "testHeader", + "NameInRequest": "test-header", + "Type": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "88", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "89", + "kind": "constant", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "91", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "45" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "92", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/parameters/spread/model/composite-request/{name}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest", + "Decorators": [] }, { - "$id": "88", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "45" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "89", - "StatusCodes": [ - 204 + "$id": "93", + "Name": "spreadCompositeRequestMix", + "ResourceName": "Model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "94", + "Name": "name", + "NameInRequest": "name", + "Type": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "96", + "Name": "testHeader", + "NameInRequest": "test-header", + "Type": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "98", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "99", + "kind": "constant", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "101", + "Name": "spreadCompositeRequestMixRequest", + "NameInRequest": "spreadCompositeRequestMixRequest", + "Type": { + "$ref": "50" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "102", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/parameters/spread/model/composite-request-mix/{name}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/parameters/spread/model/composite-request/{name}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.Spread.Model", + "parent": { + "$ref": "55" + } }, { - "$id": "90", - "Name": "spreadCompositeRequestMix", - "ResourceName": "Model", - "Accessibility": "public", - "Parameters": [ + "$id": "103", + "kind": "client", + "name": "Alias", + "namespace": "Parameters.Spread.Alias", + "parameters": [ { - "$id": "91", - "Name": "name", - "NameInRequest": "name", + "$id": "104", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "92", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "105", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Path", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "93", - "Name": "testHeader", - "NameInRequest": "test-header", - "Type": { - "$id": "94", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, + "IsEndpoint": true, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "95", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "96", - "kind": "constant", - "valueType": { - "$id": "97", + "Kind": "Client", + "DefaultValue": { + "$id": "106", + "Type": { + "$id": "107", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "98", - "Name": "spreadCompositeRequestMixRequest", - "NameInRequest": "spreadCompositeRequestMixRequest", - "Type": { - "$ref": "50" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "99", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false + "Value": "http://localhost:3000" + } } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/parameters/spread/model/composite-request-mix/{name}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix", - "Decorators": [] - } - ], - "Protocol": { - "$id": "100" - }, - "Parent": "SpreadClient", - "Parameters": [ - { - "$id": "101", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "102", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "103", - "Type": { - "$id": "104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.Spread.Model" - }, - { - "$id": "105", - "Name": "Alias", - "Namespace": "Parameters.Spread.Alias", - "Operations": [ - { - "$id": "106", - "Name": "spreadAsRequestBody", - "ResourceName": "Alias", - "Accessibility": "public", - "Parameters": [ + "operations": [ { - "$id": "107", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "108", - "kind": "constant", - "valueType": { + "$id": "108", + "Name": "spreadAsRequestBody", + "ResourceName": "Alias", + "Accessibility": "public", + "Parameters": [ + { "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "110", + "kind": "constant", + "valueType": { + "$id": "111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "110", - "Name": "spreadAsRequestBodyRequest", - "NameInRequest": "spreadAsRequestBodyRequest", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "111", - "StatusCodes": [ - 204 + { + "$id": "112", + "Name": "spreadAsRequestBodyRequest", + "NameInRequest": "spreadAsRequestBodyRequest", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/parameters/spread/alias/request-body", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody", - "Decorators": [] - }, - { - "$id": "112", - "Name": "spreadParameterWithInnerModel", - "ResourceName": "Alias", - "Accessibility": "public", - "Parameters": [ - { - "$id": "113", - "Name": "id", - "NameInRequest": "id", - "Type": { - "$id": "114", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "115", - "Name": "x-ms-test-header", - "NameInRequest": "x-ms-test-header", - "Type": { - "$id": "116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "113", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/parameters/spread/alias/request-body", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody", + "Decorators": [] }, { - "$id": "117", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "118", - "kind": "constant", - "valueType": { + "$id": "114", + "Name": "spreadParameterWithInnerModel", + "ResourceName": "Alias", + "Accessibility": "public", + "Parameters": [ + { + "$id": "115", + "Name": "id", + "NameInRequest": "id", + "Type": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "117", + "Name": "x-ms-test-header", + "NameInRequest": "x-ms-test-header", + "Type": { + "$id": "118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "120", + "kind": "constant", + "valueType": { + "$id": "121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "120", - "Name": "spreadParameterWithInnerModelRequest", - "NameInRequest": "spreadParameterWithInnerModelRequest", - "Type": { - "$ref": "7" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "121", - "StatusCodes": [ - 204 + { + "$id": "122", + "Name": "spreadParameterWithInnerModelRequest", + "NameInRequest": "spreadParameterWithInnerModelRequest", + "Type": { + "$ref": "7" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/parameters/spread/alias/inner-model-parameter/{id}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel", - "Decorators": [] - }, - { - "$id": "122", - "Name": "spreadAsRequestParameter", - "ResourceName": "Alias", - "Accessibility": "public", - "Parameters": [ - { - "$id": "123", - "Name": "id", - "NameInRequest": "id", - "Type": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "125", - "Name": "x-ms-test-header", - "NameInRequest": "x-ms-test-header", - "Type": { - "$id": "126", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "123", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/parameters/spread/alias/inner-model-parameter/{id}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel", + "Decorators": [] }, { - "$id": "127", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "128", - "kind": "constant", - "valueType": { + "$id": "124", + "Name": "spreadAsRequestParameter", + "ResourceName": "Alias", + "Accessibility": "public", + "Parameters": [ + { + "$id": "125", + "Name": "id", + "NameInRequest": "id", + "Type": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "127", + "Name": "x-ms-test-header", + "NameInRequest": "x-ms-test-header", + "Type": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "130", + "kind": "constant", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "130", - "Name": "spreadAsRequestParameterRequest", - "NameInRequest": "spreadAsRequestParameterRequest", - "Type": { - "$ref": "12" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "131", - "StatusCodes": [ - 204 + { + "$id": "132", + "Name": "spreadAsRequestParameterRequest", + "NameInRequest": "spreadAsRequestParameterRequest", + "Type": { + "$ref": "12" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/parameters/spread/alias/request-parameter/{id}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter", - "Decorators": [] - }, - { - "$id": "132", - "Name": "spreadWithMultipleParameters", - "ResourceName": "Alias", - "Accessibility": "public", - "Parameters": [ - { - "$id": "133", - "Name": "id", - "NameInRequest": "id", - "Type": { - "$id": "134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "135", - "Name": "x-ms-test-header", - "NameInRequest": "x-ms-test-header", - "Type": { - "$id": "136", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "133", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/parameters/spread/alias/request-parameter/{id}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter", + "Decorators": [] }, { - "$id": "137", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "138", - "kind": "constant", - "valueType": { + "$id": "134", + "Name": "spreadWithMultipleParameters", + "ResourceName": "Alias", + "Accessibility": "public", + "Parameters": [ + { + "$id": "135", + "Name": "id", + "NameInRequest": "id", + "Type": { + "$id": "136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "137", + "Name": "x-ms-test-header", + "NameInRequest": "x-ms-test-header", + "Type": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { "$id": "139", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "140", + "kind": "constant", + "valueType": { + "$id": "141", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "140", - "Name": "spreadWithMultipleParametersRequest", - "NameInRequest": "spreadWithMultipleParametersRequest", - "Type": { - "$ref": "17" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "141", - "StatusCodes": [ - 204 + { + "$id": "142", + "Name": "spreadWithMultipleParametersRequest", + "NameInRequest": "spreadWithMultipleParametersRequest", + "Type": { + "$ref": "17" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/parameters/spread/alias/multiple-parameters/{id}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters", - "Decorators": [] - }, - { - "$id": "142", - "Name": "spreadParameterWithInnerAlias", - "ResourceName": "Alias", - "Doc": "spread an alias with contains another alias property as body.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "143", - "Name": "id", - "NameInRequest": "id", - "Type": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "145", - "Name": "x-ms-test-header", - "NameInRequest": "x-ms-test-header", - "Type": { - "$id": "146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "143", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/parameters/spread/alias/multiple-parameters/{id}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters", + "Decorators": [] }, { - "$id": "147", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "148", - "kind": "constant", - "valueType": { + "$id": "144", + "Name": "spreadParameterWithInnerAlias", + "ResourceName": "Alias", + "Doc": "spread an alias with contains another alias property as body.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "145", + "Name": "id", + "NameInRequest": "id", + "Type": { + "$id": "146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "147", + "Name": "x-ms-test-header", + "NameInRequest": "x-ms-test-header", + "Type": { + "$id": "148", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "150", + "kind": "constant", + "valueType": { + "$id": "151", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "150", - "Name": "spreadParameterWithInnerAliasRequest", - "NameInRequest": "spreadParameterWithInnerAliasRequest", - "Type": { - "$ref": "36" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "151", - "StatusCodes": [ - 204 + { + "$id": "152", + "Name": "spreadParameterWithInnerAliasRequest", + "NameInRequest": "spreadParameterWithInnerAliasRequest", + "Type": { + "$ref": "36" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "153", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/parameters/spread/alias/inner-alias-parameter/{id}", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/parameters/spread/alias/inner-alias-parameter/{id}", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias", - "Decorators": [] - } - ], - "Protocol": { - "$id": "152" - }, - "Parent": "SpreadClient", - "Parameters": [ - { - "$id": "153", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "154", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "155", - "Type": { - "$id": "156", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Parameters.Spread.Alias", + "parent": { + "$ref": "55" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Parameters.Spread.Alias" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json index f0be964e710..48c4dea3db6 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json @@ -46,21 +46,18 @@ "Clients": [ { "$id": "7", - "Name": "ContentNegotiationClient", - "Namespace": "Payload.ContentNegotiation", - "Doc": "Test describing optionality of the request body.", - "Operations": [], - "Protocol": { - "$id": "8" - }, - "Parameters": [ + "kind": "client", + "name": "ContentNegotiationClient", + "namespace": "Payload.ContentNegotiation", + "doc": "Test describing optionality of the request body.", + "parameters": [ { - "$id": "9", + "$id": "8", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "10", + "$id": "9", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -75,9 +72,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "11", + "$id": "10", "Type": { - "$id": "12", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -86,71 +83,64 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.ContentNegotiation" - }, - { - "$id": "13", - "Name": "SameBody", - "Namespace": "Payload.ContentNegotiation.SameBody", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation", + "children": [ { - "$id": "14", - "Name": "getAvatarAsPng", - "ResourceName": "SameBody", - "Accessibility": "public", - "Parameters": [ + "$id": "12", + "kind": "client", + "name": "SameBody", + "namespace": "Payload.ContentNegotiation.SameBody", + "parameters": [ { - "$id": "15", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "13", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "16", - "kind": "constant", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] + "$id": "14", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "15", + "Type": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "18", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "19", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Headers": [ + "$id": "17", + "Name": "getAvatarAsPng", + "ResourceName": "SameBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "20", - "Name": "contentType", - "NameInResponse": "content-type", + "$id": "18", + "Name": "accept", + "NameInRequest": "Accept", "Type": { - "$id": "21", + "$id": "19", "kind": "constant", "valueType": { - "$id": "22", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -158,81 +148,81 @@ }, "value": "image/png", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false, - "ContentTypes": [ - "image/png" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/content-negotiation/same-body", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng", - "Decorators": [] - }, - { - "$id": "23", - "Name": "getAvatarAsJpeg", - "ResourceName": "SameBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "24", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "25", - "kind": "constant", - "valueType": { - "$id": "26", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/jpeg", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "27", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "21", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "22", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Headers": [ + { + "$id": "23", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "24", + "kind": "constant", + "valueType": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "image/png" + ] + } ], - "BodyType": { - "$id": "28", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Headers": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/content-negotiation/same-body", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng", + "Decorators": [] + }, + { + "$id": "26", + "Name": "getAvatarAsJpeg", + "ResourceName": "SameBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "29", - "Name": "contentType", - "NameInResponse": "content-type", + "$id": "27", + "Name": "accept", + "NameInRequest": "Accept", "Type": { - "$id": "30", + "$id": "28", "kind": "constant", "valueType": { - "$id": "31", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -240,127 +230,127 @@ }, "value": "image/jpeg", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false, - "ContentTypes": [ - "image/jpeg" - ] + "Responses": [ + { + "$id": "30", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "31", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Headers": [ + { + "$id": "32", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "33", + "kind": "constant", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/jpeg", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "image/jpeg" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/content-negotiation/same-body", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsJpeg", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/content-negotiation/same-body", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsJpeg", - "Decorators": [] - } - ], - "Protocol": { - "$id": "32" - }, - "Parent": "ContentNegotiationClient", - "Parameters": [ - { - "$id": "33", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "34", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "35", - "Type": { - "$id": "36", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody", + "parent": { + "$ref": "7" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody" - }, - { - "$id": "37", - "Name": "DifferentBody", - "Namespace": "Payload.ContentNegotiation.DifferentBody", - "Operations": [ + }, { - "$id": "38", - "Name": "getAvatarAsPng", - "ResourceName": "DifferentBody", - "Accessibility": "public", - "Parameters": [ + "$id": "35", + "kind": "client", + "name": "DifferentBody", + "namespace": "Payload.ContentNegotiation.DifferentBody", + "parameters": [ { - "$id": "39", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "36", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "40", - "kind": "constant", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] + "$id": "37", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "38", + "Type": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "42", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "43", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "Headers": [ + "$id": "40", + "Name": "getAvatarAsPng", + "ResourceName": "DifferentBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "44", - "Name": "contentType", - "NameInResponse": "content-type", + "$id": "41", + "Name": "accept", + "NameInRequest": "Accept", "Type": { - "$id": "45", + "$id": "42", "kind": "constant", "valueType": { - "$id": "46", + "$id": "43", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -368,77 +358,81 @@ }, "value": "image/png", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false, - "ContentTypes": [ - "image/png" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/content-negotiation/different-body", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng", - "Decorators": [] - }, - { - "$id": "47", - "Name": "getAvatarAsJson", - "ResourceName": "DifferentBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "48", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "49", - "kind": "constant", - "valueType": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "51", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "44", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "45", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "Headers": [ + { + "$id": "46", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "47", + "kind": "constant", + "valueType": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "image/png" + ] + } ], - "BodyType": { - "$ref": "2" - }, - "Headers": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/content-negotiation/different-body", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng", + "Decorators": [] + }, + { + "$id": "49", + "Name": "getAvatarAsJson", + "ResourceName": "DifferentBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "52", - "Name": "contentType", - "NameInResponse": "content-type", + "$id": "50", + "Name": "accept", + "NameInRequest": "Accept", "Type": { - "$id": "53", + "$id": "51", "kind": "constant", "valueType": { - "$id": "54", + "$id": "52", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -446,64 +440,70 @@ }, "value": "application/json", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "53", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "Headers": [ + { + "$id": "54", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "55", + "kind": "constant", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/content-negotiation/different-body", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsJson", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/content-negotiation/different-body", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsJson", - "Decorators": [] - } - ], - "Protocol": { - "$id": "55" - }, - "Parent": "ContentNegotiationClient", - "Parameters": [ - { - "$id": "56", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "57", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "58", - "Type": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody", + "parent": { + "$ref": "7" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json index 236716dd307..101561a6d9f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json @@ -7,21 +7,18 @@ "Clients": [ { "$id": "2", - "Name": "MediaTypeClient", - "Namespace": "Payload.MediaType", - "Doc": "Test the payload with different media types and different types of the payload itself.", - "Operations": [], - "Protocol": { - "$id": "3" - }, - "Parameters": [ + "kind": "client", + "name": "MediaTypeClient", + "namespace": "Payload.MediaType", + "doc": "Test the payload with different media types and different types of the payload itself.", + "parameters": [ { - "$id": "4", + "$id": "3", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "5", + "$id": "4", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -36,9 +33,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "6", + "$id": "5", "Type": { - "$id": "7", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -47,148 +44,64 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MediaType" - }, - { - "$id": "8", - "Name": "StringBody", - "Namespace": "Payload.MediaType.StringBody", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.MediaType", + "children": [ { - "$id": "9", - "Name": "sendAsText", - "ResourceName": "StringBody", - "Accessibility": "public", - "Parameters": [ + "$id": "7", + "kind": "client", + "name": "StringBody", + "namespace": "Payload.MediaType.StringBody", + "parameters": [ { - "$id": "10", - "Name": "contentType", - "NameInRequest": "Content-Type", + "$id": "8", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "11", - "kind": "constant", - "valueType": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] + "$id": "9", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "13", - "Name": "text", - "NameInRequest": "text", - "Type": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "15", - "StatusCodes": [ - 200 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/payload/media-type/string-body/sendAsText", - "RequestMediaTypes": [ - "text/plain" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText", - "Decorators": [] - }, - { - "$id": "16", - "Name": "getAsText", - "ResourceName": "StringBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "17", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "18", - "kind": "constant", - "valueType": { - "$id": "19", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "10", + "Type": { + "$id": "11", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "text/plain", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "20", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Headers": [ + "$id": "12", + "Name": "sendAsText", + "ResourceName": "StringBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "22", + "$id": "13", "Name": "contentType", - "NameInResponse": "content-type", + "NameInRequest": "Content-Type", "Type": { - "$id": "23", + "$id": "14", "kind": "constant", "valueType": { - "$id": "24", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -196,158 +109,158 @@ }, "value": "text/plain", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "16", + "Name": "text", + "NameInRequest": "text", + "Type": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "18", + "StatusCodes": [ + 200 + ], + "Headers": [], + "IsErrorResponse": false } ], - "IsErrorResponse": false, - "ContentTypes": [ + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/payload/media-type/string-body/sendAsText", + "RequestMediaTypes": [ "text/plain" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/payload/media-type/string-body/getAsText", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText", - "Decorators": [] - }, - { - "$id": "25", - "Name": "sendAsJson", - "ResourceName": "StringBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "26", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "27", - "kind": "constant", - "valueType": { - "$id": "28", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText", + "Decorators": [] }, { - "$id": "29", - "Name": "text", - "NameInRequest": "text", - "Type": { - "$id": "30", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "31", - "StatusCodes": [ - 200 + "$id": "19", + "Name": "getAsText", + "ResourceName": "StringBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "20", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "21", + "kind": "constant", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/payload/media-type/string-body/sendAsJson", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson", - "Decorators": [] - }, - { - "$id": "32", - "Name": "getAsJson", - "ResourceName": "StringBody", - "Accessibility": "public", - "Parameters": [ - { - "$id": "33", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "34", - "kind": "constant", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "36", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "23", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Headers": [ + { + "$id": "25", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "26", + "kind": "constant", + "valueType": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "text/plain" + ] + } ], - "BodyType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Headers": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/payload/media-type/string-body/getAsText", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText", + "Decorators": [] + }, + { + "$id": "28", + "Name": "sendAsJson", + "ResourceName": "StringBody", + "Accessibility": "public", + "Parameters": [ { - "$id": "38", + "$id": "29", "Name": "contentType", - "NameInResponse": "content-type", + "NameInRequest": "Content-Type", "Type": { - "$id": "39", + "$id": "30", "kind": "constant", "valueType": { - "$id": "40", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -355,64 +268,151 @@ }, "value": "application/json", "decorators": [] - } + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "32", + "Name": "text", + "NameInRequest": "text", + "Type": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false } ], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "34", + "StatusCodes": [ + 200 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/payload/media-type/string-body/sendAsJson", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson", + "Decorators": [] + }, + { + "$id": "35", + "Name": "getAsJson", + "ResourceName": "StringBody", + "Accessibility": "public", + "Parameters": [ + { + "$id": "36", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "37", + "kind": "constant", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "39", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Headers": [ + { + "$id": "41", + "Name": "contentType", + "NameInResponse": "content-type", + "Type": { + "$id": "42", + "kind": "constant", + "valueType": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/payload/media-type/string-body/getAsJson", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsJson", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/payload/media-type/string-body/getAsJson", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsJson", - "Decorators": [] - } - ], - "Protocol": { - "$id": "41" - }, - "Parent": "MediaTypeClient", - "Parameters": [ - { - "$id": "42", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "43", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "44", - "Type": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.MediaType.StringBody", + "parent": { + "$ref": "2" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MediaType.StringBody" + ] } ] } 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 6482a516e6f..0d2268a2a18 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,7 +5,7 @@ using System.ClientModel; using System.ClientModel.Primitives; using System.Threading.Tasks; -using Payload.MultiPart._FormData._HttpParts; +using Payload.MultiPart._FormData.HttpParts; namespace Payload.MultiPart._FormData { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpParts.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpParts.cs index 9191886e40d..033e295e92d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpParts.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpParts.cs @@ -5,10 +5,10 @@ using System.ClientModel; using System.ClientModel.Primitives; using System.Threading.Tasks; -using Payload.MultiPart._FormData._HttpParts._ContentType; -using Payload.MultiPart._FormData._HttpParts._NonString; +using Payload.MultiPart._FormData.HttpParts.ContentType; +using Payload.MultiPart._FormData.HttpParts.NonString; -namespace Payload.MultiPart._FormData._HttpParts +namespace Payload.MultiPart._FormData.HttpParts { public partial class FormDataHttpParts { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsContentType.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsContentType.cs index f2e5551be65..32cb80df3d0 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsContentType.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsContentType.cs @@ -6,7 +6,7 @@ using System.ClientModel.Primitives; using System.Threading.Tasks; -namespace Payload.MultiPart._FormData._HttpParts._ContentType +namespace Payload.MultiPart._FormData.HttpParts.ContentType { public partial class FormDataHttpPartsContentType { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsNonString.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsNonString.cs index c4b3c4fab44..47557d7876b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsNonString.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/FormDataHttpPartsNonString.cs @@ -6,7 +6,7 @@ using System.ClientModel.Primitives; using System.Threading.Tasks; -namespace Payload.MultiPart._FormData._HttpParts._NonString +namespace Payload.MultiPart._FormData.HttpParts.NonString { public partial class FormDataHttpPartsNonString { 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 a98004c0f89..505bff140e0 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 @@ -1360,21 +1360,18 @@ "Clients": [ { "$id": "5651", - "Name": "MultiPartClient", - "Namespace": "Payload.MultiPart", - "Doc": "Test for multipart", - "Operations": [], - "Protocol": { - "$id": "5652" - }, - "Parameters": [ + "kind": "client", + "name": "MultiPartClient", + "namespace": "Payload.MultiPart", + "doc": "Test for multipart", + "parameters": [ { - "$id": "5653", + "$id": "5652", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "5654", + "$id": "5653", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1389,9 +1386,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "5655", + "$id": "5654", "Type": { - "$id": "5656", + "$id": "5655", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1400,1080 +1397,1084 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MultiPart" - }, - { - "$id": "5657", - "Name": "FormData", - "Namespace": "Payload.MultiPart.FormData", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.MultiPart", + "children": [ { - "$id": "5658", - "Name": "basic", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5659", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5660", - "kind": "constant", - "valueType": { - "$id": "5661", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "5656", + "kind": "client", + "name": "FormData", + "namespace": "Payload.MultiPart.FormData", + "parameters": [ { - "$id": "5662", - "Name": "body", - "NameInRequest": "body", + "$id": "5657", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "5" + "$id": "5658", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5663", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/mixed-parts", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.basic", - "Decorators": [] - }, - { - "$id": "5664", - "Name": "fileArrayAndBasic", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data for mixed scenarios", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5665", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5666", - "kind": "constant", - "valueType": { - "$id": "5667", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5668", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "14" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, + "IsEndpoint": true, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5669", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/complex-parts", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic", - "Decorators": [] - }, - { - "$id": "5670", - "Name": "jsonPart", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5671", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5672", - "kind": "constant", - "valueType": { - "$id": "5673", + "Kind": "Client", + "DefaultValue": { + "$id": "5659", + "Type": { + "$id": "5660", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5674", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "36" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5675", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false + "Value": "http://localhost:3000" + } } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/json-part", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart", - "Decorators": [] - }, - { - "$id": "5676", - "Name": "binaryArrayParts", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", - "Accessibility": "public", - "Parameters": [ + "operations": [ { - "$id": "5677", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5678", - "kind": "constant", - "valueType": { - "$id": "5679", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5661", + "Name": "basic", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5662", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5663", + "kind": "constant", + "valueType": { + "$id": "5664", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5680", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "44" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5681", - "StatusCodes": [ - 204 + { + "$id": "5665", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "5" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/binary-array-parts", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts", - "Decorators": [] - }, - { - "$id": "5682", - "Name": "multiBinaryParts", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "5666", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/mixed-parts", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.basic", + "Decorators": [] + }, { - "$id": "5683", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5684", - "kind": "constant", - "valueType": { - "$id": "5685", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5667", + "Name": "fileArrayAndBasic", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data for mixed scenarios", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5668", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5669", + "kind": "constant", + "valueType": { + "$id": "5670", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "5671", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "14" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5672", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/complex-parts", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic", + "Decorators": [] }, { - "$id": "5686", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "54" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5687", - "StatusCodes": [ - 204 + "$id": "5673", + "Name": "jsonPart", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5674", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5675", + "kind": "constant", + "valueType": { + "$id": "5676", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5677", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "36" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/multi-binary-parts", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts", - "Decorators": [] - }, - { - "$id": "5688", - "Name": "checkFileNameAndContentType", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "5678", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/json-part", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart", + "Decorators": [] + }, { - "$id": "5689", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5690", - "kind": "constant", - "valueType": { - "$id": "5691", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5679", + "Name": "binaryArrayParts", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5680", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5681", + "kind": "constant", + "valueType": { + "$id": "5682", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "5683", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "44" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5684", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/binary-array-parts", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts", + "Decorators": [] }, { - "$id": "5692", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "5" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5693", - "StatusCodes": [ - 204 + "$id": "5685", + "Name": "multiBinaryParts", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5686", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5687", + "kind": "constant", + "valueType": { + "$id": "5688", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5689", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "54" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/check-filename-and-content-type", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType", - "Decorators": [] - }, - { - "$id": "5694", - "Name": "anonymousModel", - "ResourceName": "FormData", - "Doc": "Test content-type: multipart/form-data", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "5690", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/multi-binary-parts", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts", + "Decorators": [] + }, { - "$id": "5695", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5696", - "kind": "constant", - "valueType": { - "$id": "5697", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5691", + "Name": "checkFileNameAndContentType", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5692", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5693", + "kind": "constant", + "valueType": { + "$id": "5694", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "5695", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "5" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5696", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/check-filename-and-content-type", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType", + "Decorators": [] }, { - "$id": "5698", - "Name": "anonymousModelRequest", - "NameInRequest": "anonymousModelRequest", - "Type": { - "$ref": "63" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "5697", + "Name": "anonymousModel", + "ResourceName": "FormData", + "Doc": "Test content-type: multipart/form-data", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5698", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5699", + "kind": "constant", + "valueType": { + "$id": "5700", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5701", + "Name": "anonymousModelRequest", + "NameInRequest": "anonymousModelRequest", + "Type": { + "$ref": "63" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5702", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/anonymous-model", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel", + "Decorators": [] } ], - "Responses": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData", + "parent": { + "$ref": "5651" + }, + "children": [ { - "$id": "5699", - "StatusCodes": [ - 204 + "$id": "5703", + "kind": "client", + "name": "HttpParts", + "namespace": "Payload.MultiPart.FormData.HttpParts", + "parameters": [ + { + "$id": "5704", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "5705", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "5706", + "Type": { + "$id": "5707", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/anonymous-model", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel", - "Decorators": [] - } - ], - "Protocol": { - "$id": "5700" - }, - "Parent": "MultiPartClient", - "Parameters": [ - { - "$id": "5701", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "5702", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "5703", - "Type": { - "$id": "5704", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData" - }, - { - "$id": "5705", - "Name": "FormDataHttpParts", - "Namespace": "Payload.MultiPart.FormData.HttpParts", - "Operations": [ - { - "$id": "5706", - "Name": "jsonArrayAndFileArray", - "ResourceName": "HttpParts", - "Doc": "Test content-type: multipart/form-data for mixed scenarios", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5707", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5708", - "kind": "constant", - "valueType": { - "$id": "5709", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5710", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "68" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5711", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/complex-parts-with-httppart", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray", - "Decorators": [] - } - ], - "Protocol": { - "$id": "5712" - }, - "Parent": "FormData", - "Parameters": [ - { - "$id": "5713", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "5714", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "5715", - "Type": { - "$id": "5716", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts" - }, - { - "$id": "5717", - "Name": "FormDataHttpPartsContentType", - "Namespace": "Payload.MultiPart.FormData.HttpParts.ContentType", - "Operations": [ - { - "$id": "5718", - "Name": "imageJpegContentType", - "ResourceName": "ContentType", - "Doc": "Test content-type: multipart/form-data", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5719", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5720", - "kind": "constant", - "valueType": { - "$id": "5721", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5722", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "5614" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5723", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/check-filename-and-specific-content-type-with-httppart", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType", - "Decorators": [] - }, - { - "$id": "5724", - "Name": "requiredContentType", - "ResourceName": "ContentType", - "Doc": "Test content-type: multipart/form-data", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5725", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5726", - "kind": "constant", - "valueType": { - "$id": "5727", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5728", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "5633" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5729", - "StatusCodes": [ - 204 + "operations": [ + { + "$id": "5708", + "Name": "jsonArrayAndFileArray", + "ResourceName": "HttpParts", + "Doc": "Test content-type: multipart/form-data for mixed scenarios", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5709", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5710", + "kind": "constant", + "valueType": { + "$id": "5711", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5712", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "68" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5713", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/complex-parts-with-httppart", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray", + "Decorators": [] + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/check-filename-and-required-content-type-with-httppart", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType", - "Decorators": [] - }, - { - "$id": "5730", - "Name": "optionalContentType", - "ResourceName": "ContentType", - "Doc": "Test content-type: multipart/form-data for optional content type", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5731", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5732", - "kind": "constant", - "valueType": { - "$id": "5733", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts", + "parent": { + "$ref": "5656" }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5734", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "5637" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5735", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/file-with-http-part-optional-content-type", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType", - "Decorators": [] - } - ], - "Protocol": { - "$id": "5736" - }, - "Parent": "FormDataHttpParts", - "Parameters": [ - { - "$id": "5737", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "5738", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "5739", - "Type": { - "$id": "5740", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType" - }, - { - "$id": "5741", - "Name": "FormDataHttpPartsNonString", - "Namespace": "Payload.MultiPart.FormData.HttpParts.NonString", - "Operations": [ - { - "$id": "5742", - "Name": "float", - "ResourceName": "NonString", - "Doc": "Test content-type: multipart/form-data for non string", - "Accessibility": "public", - "Parameters": [ - { - "$id": "5743", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "5744", - "kind": "constant", - "valueType": { - "$id": "5745", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "children": [ + { + "$id": "5714", + "kind": "client", + "name": "ContentType", + "namespace": "Payload.MultiPart.FormData.HttpParts.ContentType", + "parameters": [ + { + "$id": "5715", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "5716", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "5717", + "Type": { + "$id": "5718", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "5719", + "Name": "imageJpegContentType", + "ResourceName": "ContentType", + "Doc": "Test content-type: multipart/form-data", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5720", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5721", + "kind": "constant", + "valueType": { + "$id": "5722", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5723", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "5614" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5724", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/check-filename-and-specific-content-type-with-httppart", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType", + "Decorators": [] + }, + { + "$id": "5725", + "Name": "requiredContentType", + "ResourceName": "ContentType", + "Doc": "Test content-type: multipart/form-data", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5726", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5727", + "kind": "constant", + "valueType": { + "$id": "5728", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5729", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "5633" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5730", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/check-filename-and-required-content-type-with-httppart", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType", + "Decorators": [] + }, + { + "$id": "5731", + "Name": "optionalContentType", + "ResourceName": "ContentType", + "Doc": "Test content-type: multipart/form-data for optional content type", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5732", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5733", + "kind": "constant", + "valueType": { + "$id": "5734", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5735", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "5637" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5736", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/file-with-http-part-optional-content-type", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType", + "parent": { + "$ref": "5703" + } }, - "value": "multipart/form-data", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "5746", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "4774" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "5747", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false + { + "$id": "5737", + "kind": "client", + "name": "NonString", + "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", + "parameters": [ + { + "$id": "5738", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "5739", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "5740", + "Type": { + "$id": "5741", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "5742", + "Name": "float", + "ResourceName": "NonString", + "Doc": "Test content-type: multipart/form-data for non string", + "Accessibility": "public", + "Parameters": [ + { + "$id": "5743", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Type": { + "$id": "5744", + "kind": "constant", + "valueType": { + "$id": "5745", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "5746", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "4774" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "5747", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/multipart/form-data/non-string-float", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString", + "parent": { + "$ref": "5703" + } + } + ] } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/multipart/form-data/non-string-float", - "RequestMediaTypes": [ - "multipart/form-data" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float", - "Decorators": [] + ] } - ], - "Protocol": { - "$id": "5748" - }, - "Parent": "FormDataHttpParts", - "Parameters": [ - { - "$id": "5749", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "5750", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "5751", - "Type": { - "$id": "5752", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParameters.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParameters.cs index 3d40712a9a0..3e17767b7d8 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParameters.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParameters.cs @@ -6,11 +6,11 @@ using System.ClientModel.Primitives; using System.Threading; using System.Threading.Tasks; -using Routes._PathParameters._LabelExpansion; -using Routes._PathParameters._MatrixExpansion; -using Routes._PathParameters._PathExpansion; -using Routes._PathParameters._ReservedExpansion; -using Routes._PathParameters._SimpleExpansion; +using Routes._PathParameters.LabelExpansion; +using Routes._PathParameters.MatrixExpansion; +using Routes._PathParameters.PathExpansion; +using Routes._PathParameters.ReservedExpansion; +using Routes._PathParameters.SimpleExpansion; namespace Routes._PathParameters { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansion.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansion.cs index f09f947d576..b7d6a6cbc7c 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansion.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansion.cs @@ -3,10 +3,10 @@ #nullable disable using System.ClientModel.Primitives; -using Routes._PathParameters._LabelExpansion._Explode; -using Routes._PathParameters._LabelExpansion._Standard; +using Routes._PathParameters.LabelExpansion.Explode; +using Routes._PathParameters.LabelExpansion.Standard; -namespace Routes._PathParameters._LabelExpansion +namespace Routes._PathParameters.LabelExpansion { public partial class PathParametersLabelExpansion { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionExplode.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionExplode.cs index 8387c5f96da..79470e680e1 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionExplode.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionExplode.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters._LabelExpansion._Explode +namespace Routes._PathParameters.LabelExpansion.Explode { public partial class PathParametersLabelExpansionExplode { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionStandard.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionStandard.cs index 0429ac92326..0b742d05724 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionStandard.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersLabelExpansionStandard.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters._LabelExpansion._Standard +namespace Routes._PathParameters.LabelExpansion.Standard { public partial class PathParametersLabelExpansionStandard { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansion.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansion.cs index 7ee6cb912c2..6bf98190256 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansion.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansion.cs @@ -3,10 +3,10 @@ #nullable disable using System.ClientModel.Primitives; -using Routes._PathParameters._MatrixExpansion._Explode; -using Routes._PathParameters._MatrixExpansion._Standard; +using Routes._PathParameters.MatrixExpansion.Explode; +using Routes._PathParameters.MatrixExpansion.Standard; -namespace Routes._PathParameters._MatrixExpansion +namespace Routes._PathParameters.MatrixExpansion { public partial class PathParametersMatrixExpansion { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionExplode.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionExplode.cs index c998157b652..b92df406571 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionExplode.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionExplode.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters._MatrixExpansion._Explode +namespace Routes._PathParameters.MatrixExpansion.Explode { public partial class PathParametersMatrixExpansionExplode { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionStandard.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionStandard.cs index 3e9eb20c7c2..d40c1696d15 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionStandard.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersMatrixExpansionStandard.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters._MatrixExpansion._Standard +namespace Routes._PathParameters.MatrixExpansion.Standard { public partial class PathParametersMatrixExpansionStandard { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansion.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansion.cs index fcdb41d412b..ec2f665c1a2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansion.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansion.cs @@ -3,10 +3,10 @@ #nullable disable using System.ClientModel.Primitives; -using Routes._PathParameters._PathExpansion._Explode; -using Routes._PathParameters._PathExpansion._Standard; +using Routes._PathParameters.PathExpansion.Explode; +using Routes._PathParameters.PathExpansion.Standard; -namespace Routes._PathParameters._PathExpansion +namespace Routes._PathParameters.PathExpansion { public partial class PathParametersPathExpansion { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionExplode.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionExplode.cs index 628d3cf2848..b7f10f1c6d4 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionExplode.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionExplode.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters._PathExpansion._Explode +namespace Routes._PathParameters.PathExpansion.Explode { public partial class PathParametersPathExpansionExplode { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionStandard.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionStandard.cs index d812398daf3..d58ca6fbc4d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionStandard.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersPathExpansionStandard.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters._PathExpansion._Standard +namespace Routes._PathParameters.PathExpansion.Standard { public partial class PathParametersPathExpansionStandard { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersReservedExpansion.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersReservedExpansion.cs index dd014ad482e..3becc3ca8f2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersReservedExpansion.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersReservedExpansion.cs @@ -7,7 +7,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters._ReservedExpansion +namespace Routes._PathParameters.ReservedExpansion { public partial class PathParametersReservedExpansion { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansion.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansion.cs index 86d2b14c30a..cb3b2ce1c3a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansion.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansion.cs @@ -3,10 +3,10 @@ #nullable disable using System.ClientModel.Primitives; -using Routes._PathParameters._SimpleExpansion._Explode; -using Routes._PathParameters._SimpleExpansion._Standard; +using Routes._PathParameters.SimpleExpansion.Explode; +using Routes._PathParameters.SimpleExpansion.Standard; -namespace Routes._PathParameters._SimpleExpansion +namespace Routes._PathParameters.SimpleExpansion { public partial class PathParametersSimpleExpansion { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionExplode.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionExplode.cs index ecb4f5f7a16..00c4d218a1c 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionExplode.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionExplode.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters._SimpleExpansion._Explode +namespace Routes._PathParameters.SimpleExpansion.Explode { public partial class PathParametersSimpleExpansionExplode { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionStandard.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionStandard.cs index ca7b738848e..63477a318ae 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionStandard.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/PathParametersSimpleExpansionStandard.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._PathParameters._SimpleExpansion._Standard +namespace Routes._PathParameters.SimpleExpansion.Standard { public partial class PathParametersSimpleExpansionStandard { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParameters.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParameters.cs index bb7e8d1aaac..4ccfde73030 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParameters.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParameters.cs @@ -6,8 +6,8 @@ using System.ClientModel.Primitives; using System.Threading; using System.Threading.Tasks; -using Routes._QueryParameters._QueryContinuation; -using Routes._QueryParameters._QueryExpansion; +using Routes._QueryParameters.QueryContinuation; +using Routes._QueryParameters.QueryExpansion; namespace Routes._QueryParameters { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuation.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuation.cs index a129eb2c72f..c1e1821e791 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuation.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuation.cs @@ -3,10 +3,10 @@ #nullable disable using System.ClientModel.Primitives; -using Routes._QueryParameters._QueryContinuation._Explode; -using Routes._QueryParameters._QueryContinuation._Standard; +using Routes._QueryParameters.QueryContinuation.Explode; +using Routes._QueryParameters.QueryContinuation.Standard; -namespace Routes._QueryParameters._QueryContinuation +namespace Routes._QueryParameters.QueryContinuation { public partial class QueryParametersQueryContinuation { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationExplode.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationExplode.cs index c3a41f016c8..b9a3cb696d4 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationExplode.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationExplode.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._QueryParameters._QueryContinuation._Explode +namespace Routes._QueryParameters.QueryContinuation.Explode { public partial class QueryParametersQueryContinuationExplode { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationStandard.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationStandard.cs index e8b73c86669..679ca546a46 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationStandard.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryContinuationStandard.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._QueryParameters._QueryContinuation._Standard +namespace Routes._QueryParameters.QueryContinuation.Standard { public partial class QueryParametersQueryContinuationStandard { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansion.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansion.cs index 345e14a717f..7038262cc30 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansion.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansion.cs @@ -3,10 +3,10 @@ #nullable disable using System.ClientModel.Primitives; -using Routes._QueryParameters._QueryExpansion._Explode; -using Routes._QueryParameters._QueryExpansion._Standard; +using Routes._QueryParameters.QueryExpansion.Explode; +using Routes._QueryParameters.QueryExpansion.Standard; -namespace Routes._QueryParameters._QueryExpansion +namespace Routes._QueryParameters.QueryExpansion { public partial class QueryParametersQueryExpansion { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionExplode.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionExplode.cs index 002991d200b..cedde7fe6aa 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionExplode.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionExplode.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._QueryParameters._QueryExpansion._Explode +namespace Routes._QueryParameters.QueryExpansion.Explode { public partial class QueryParametersQueryExpansionExplode { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionStandard.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionStandard.cs index b53282b322e..dd88da3b509 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionStandard.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Generated/QueryParametersQueryExpansionStandard.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Routes._QueryParameters._QueryExpansion._Standard +namespace Routes._QueryParameters.QueryExpansion.Standard { public partial class QueryParametersQueryExpansionStandard { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json index 2c685deecae..1c6f0856f58 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json @@ -7,47 +7,18 @@ "Clients": [ { "$id": "2", - "Name": "RoutesClient", - "Namespace": "Routes", - "Doc": "Define scenario in building the http route/uri", - "Operations": [ + "kind": "client", + "name": "RoutesClient", + "namespace": "Routes", + "doc": "Define scenario in building the http route/uri", + "parameters": [ { "$id": "3", - "Name": "fixed", - "ResourceName": "Routes", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "4", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/fixed", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.fixed", - "Decorators": [] - } - ], - "Protocol": { - "$id": "5" - }, - "Parameters": [ - { - "$id": "6", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "7", + "$id": "4", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -62,9 +33,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "8", + "$id": "5", "Type": { - "$id": "9", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -73,45 +44,16 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes" - }, - { - "$id": "10", - "Name": "PathParameters", - "Namespace": "Routes.PathParameters", - "Operations": [ + "operations": [ { - "$id": "11", - "Name": "templateOnly", - "ResourceName": "PathParameters", + "$id": "7", + "Name": "fixed", + "ResourceName": "Routes", "Accessibility": "public", - "Parameters": [ - { - "$id": "12", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], + "Parameters": [], "Responses": [ { - "$id": "14", + "$id": "8", "StatusCodes": [ 204 ], @@ -121,3287 +63,3342 @@ ], "HttpMethod": "GET", "Uri": "{endpoint}", - "Path": "/routes/path/template-only/{param}", + "Path": "/routes/fixed", "BufferResponse": true, "GenerateProtocolMethod": true, "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.templateOnly", + "CrossLanguageDefinitionId": "Routes.fixed", "Decorators": [] - }, - { - "$id": "15", - "Name": "explicit", - "ResourceName": "PathParameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "16", - "Name": "param", - "NameInRequest": "param", + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Routes", + "children": [ + { + "$id": "9", + "kind": "client", + "name": "PathParameters", + "namespace": "Routes.PathParameters", + "parameters": [ + { + "$id": "10", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "11", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Path", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "12", + "Type": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "14", + "Name": "templateOnly", + "ResourceName": "PathParameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "15", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "17", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/template-only/{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.templateOnly", + "Decorators": [] + }, { "$id": "18", - "StatusCodes": [ - 204 + "Name": "explicit", + "ResourceName": "PathParameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "19", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/explicit/{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.explicit", - "Decorators": [] + "Responses": [ + { + "$id": "21", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/explicit/{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.explicit", + "Decorators": [] + }, + { + "$id": "22", + "Name": "annotationOnly", + "ResourceName": "PathParameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "23", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "25", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/annotation-only/{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.annotationOnly", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Routes.PathParameters", + "parent": { + "$ref": "2" + }, + "children": [ + { + "$id": "26", + "kind": "client", + "name": "ReservedExpansion", + "namespace": "Routes.PathParameters.ReservedExpansion", + "parameters": [ + { + "$id": "27", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "28", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "29", + "Type": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "31", + "Name": "template", + "ResourceName": "ReservedExpansion", + "Accessibility": "public", + "Parameters": [ + { + "$id": "32", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": true + } + ], + "Responses": [ + { + "$id": "34", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/reserved-expansion/template/{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template", + "Decorators": [] + }, + { + "$id": "35", + "Name": "annotation", + "ResourceName": "ReservedExpansion", + "Accessibility": "public", + "Parameters": [ + { + "$id": "36", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "37", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": true + } + ], + "Responses": [ + { + "$id": "38", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/reserved-expansion/annotation/{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.annotation", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion", + "parent": { + "$ref": "9" + } + }, + { + "$id": "39", + "kind": "client", + "name": "SimpleExpansion", + "namespace": "Routes.PathParameters.SimpleExpansion", + "parameters": [ + { + "$id": "40", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "41", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "42", + "Type": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion", + "parent": { + "$ref": "9" + }, + "children": [ + { + "$id": "44", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.SimpleExpansion.Standard", + "parameters": [ + { + "$id": "45", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "46", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "47", + "Type": { + "$id": "48", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "49", + "Name": "primitive", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "50", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "52", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/simple/standard/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive", + "Decorators": [] + }, + { + "$id": "53", + "Name": "array", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "54", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "55", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "57", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/simple/standard/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array", + "Decorators": [] + }, + { + "$id": "58", + "Name": "record", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "59", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "60", + "kind": "dict", + "keyType": { + "$id": "61", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "62", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "63", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/simple/standard/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard", + "parent": { + "$ref": "39" + } + }, + { + "$id": "64", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.SimpleExpansion.Explode", + "parameters": [ + { + "$id": "65", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "66", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "67", + "Type": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "69", + "Name": "primitive", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "70", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "71", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "72", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/simple/explode/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive", + "Decorators": [] + }, + { + "$id": "73", + "Name": "array", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "74", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "75", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "76", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "77", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/simple/explode/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array", + "Decorators": [] + }, + { + "$id": "78", + "Name": "record", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "79", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "80", + "kind": "dict", + "keyType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "82", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "83", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/simple/explode/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode", + "parent": { + "$ref": "39" + } + } + ] + }, + { + "$id": "84", + "kind": "client", + "name": "PathExpansion", + "namespace": "Routes.PathParameters.PathExpansion", + "parameters": [ + { + "$id": "85", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "86", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "87", + "Type": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion", + "parent": { + "$ref": "9" + }, + "children": [ + { + "$id": "89", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.PathExpansion.Standard", + "parameters": [ + { + "$id": "90", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "91", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "92", + "Type": { + "$id": "93", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "94", + "Name": "primitive", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "95", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "97", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/path/standard/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive", + "Decorators": [] + }, + { + "$id": "98", + "Name": "array", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "99", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "100", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "101", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "102", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/path/standard/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array", + "Decorators": [] + }, + { + "$id": "103", + "Name": "record", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "104", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "105", + "kind": "dict", + "keyType": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "107", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "108", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/path/standard/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard", + "parent": { + "$ref": "84" + } + }, + { + "$id": "109", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.PathExpansion.Explode", + "parameters": [ + { + "$id": "110", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "111", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "112", + "Type": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "114", + "Name": "primitive", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "115", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "117", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/path/explode/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive", + "Decorators": [] + }, + { + "$id": "118", + "Name": "array", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "119", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "120", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "122", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/path/explode/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array", + "Decorators": [] + }, + { + "$id": "123", + "Name": "record", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "124", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "125", + "kind": "dict", + "keyType": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "127", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "128", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/path/explode/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode", + "parent": { + "$ref": "84" + } + } + ] + }, + { + "$id": "129", + "kind": "client", + "name": "LabelExpansion", + "namespace": "Routes.PathParameters.LabelExpansion", + "parameters": [ + { + "$id": "130", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "131", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "132", + "Type": { + "$id": "133", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion", + "parent": { + "$ref": "9" + }, + "children": [ + { + "$id": "134", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.LabelExpansion.Standard", + "parameters": [ + { + "$id": "135", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "136", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "137", + "Type": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "139", + "Name": "primitive", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "140", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "141", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "142", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/label/standard/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive", + "Decorators": [] + }, + { + "$id": "143", + "Name": "array", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "144", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "145", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "147", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/label/standard/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array", + "Decorators": [] + }, + { + "$id": "148", + "Name": "record", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "149", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "150", + "kind": "dict", + "keyType": { + "$id": "151", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "152", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "153", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/label/standard/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard", + "parent": { + "$ref": "129" + } + }, + { + "$id": "154", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.LabelExpansion.Explode", + "parameters": [ + { + "$id": "155", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "156", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "157", + "Type": { + "$id": "158", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "159", + "Name": "primitive", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "160", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "161", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "162", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/label/explode/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive", + "Decorators": [] + }, + { + "$id": "163", + "Name": "array", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "164", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "165", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "166", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "167", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/label/explode/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array", + "Decorators": [] + }, + { + "$id": "168", + "Name": "record", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "169", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "170", + "kind": "dict", + "keyType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "172", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "173", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/label/explode/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode", + "parent": { + "$ref": "129" + } + } + ] + }, + { + "$id": "174", + "kind": "client", + "name": "MatrixExpansion", + "namespace": "Routes.PathParameters.MatrixExpansion", + "parameters": [ + { + "$id": "175", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "176", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "177", + "Type": { + "$id": "178", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion", + "parent": { + "$ref": "9" + }, + "children": [ + { + "$id": "179", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.MatrixExpansion.Standard", + "parameters": [ + { + "$id": "180", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "181", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "182", + "Type": { + "$id": "183", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "184", + "Name": "primitive", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "185", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "186", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "187", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/matrix/standard/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive", + "Decorators": [] + }, + { + "$id": "188", + "Name": "array", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "189", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "190", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "192", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/matrix/standard/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array", + "Decorators": [] + }, + { + "$id": "193", + "Name": "record", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "194", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "195", + "kind": "dict", + "keyType": { + "$id": "196", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "197", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "198", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/matrix/standard/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard", + "parent": { + "$ref": "174" + } + }, + { + "$id": "199", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.MatrixExpansion.Explode", + "parameters": [ + { + "$id": "200", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "201", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "202", + "Type": { + "$id": "203", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "204", + "Name": "primitive", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "205", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "206", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "207", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/matrix/explode/primitive{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive", + "Decorators": [] + }, + { + "$id": "208", + "Name": "array", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "209", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "210", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "212", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/matrix/explode/array{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array", + "Decorators": [] + }, + { + "$id": "213", + "Name": "record", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "214", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "215", + "kind": "dict", + "keyType": { + "$id": "216", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "217", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "218", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/path/matrix/explode/record{param}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode", + "parent": { + "$ref": "174" + } + } + ] + } + ] }, { - "$id": "19", - "Name": "annotationOnly", - "ResourceName": "PathParameters", - "Accessibility": "public", - "Parameters": [ + "$id": "219", + "kind": "client", + "name": "QueryParameters", + "namespace": "Routes.QueryParameters", + "parameters": [ { - "$id": "20", - "Name": "param", - "NameInRequest": "param", + "$id": "220", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "221", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Path", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "222", + "Type": { + "$id": "223", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "22", - "StatusCodes": [ - 204 + "$id": "224", + "Name": "templateOnly", + "ResourceName": "QueryParameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "225", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/annotation-only/{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.annotationOnly", - "Decorators": [] - } - ], - "Protocol": { - "$id": "23" - }, - "Parent": "RoutesClient", - "Parameters": [ - { - "$id": "24", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "25", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "26", - "Type": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "227", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/template-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.templateOnly", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters" - }, - { - "$id": "28", - "Name": "PathParametersReservedExpansion", - "Namespace": "Routes.PathParameters.ReservedExpansion", - "Operations": [ - { - "$id": "29", - "Name": "template", - "ResourceName": "ReservedExpansion", - "Accessibility": "public", - "Parameters": [ { - "$id": "30", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "228", + "Name": "explicit", + "ResourceName": "QueryParameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "229", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "230", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "231", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/explicit", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.explicit", + "Decorators": [] + }, + { + "$id": "232", + "Name": "annotationOnly", + "ResourceName": "QueryParameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "233", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "234", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "235", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/annotation-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.annotationOnly", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Routes.QueryParameters", + "parent": { + "$ref": "2" + }, + "children": [ + { + "$id": "236", + "kind": "client", + "name": "QueryExpansion", + "namespace": "Routes.QueryParameters.QueryExpansion", + "parameters": [ + { + "$id": "237", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "238", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "239", + "Type": { + "$id": "240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion", + "parent": { + "$ref": "219" }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": true - } - ], - "Responses": [ + "children": [ + { + "$id": "241", + "kind": "client", + "name": "Standard", + "namespace": "Routes.QueryParameters.QueryExpansion.Standard", + "parameters": [ + { + "$id": "242", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "243", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "244", + "Type": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "246", + "Name": "primitive", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "247", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "248", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "249", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/query-expansion/standard/primitive", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive", + "Decorators": [] + }, + { + "$id": "250", + "Name": "array", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "251", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "252", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "254", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/query-expansion/standard/array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array", + "Decorators": [] + }, + { + "$id": "255", + "Name": "record", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "256", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "257", + "kind": "dict", + "keyType": { + "$id": "258", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "259", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "260", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/query-expansion/standard/record", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard", + "parent": { + "$ref": "236" + } + }, + { + "$id": "261", + "kind": "client", + "name": "Explode", + "namespace": "Routes.QueryParameters.QueryExpansion.Explode", + "parameters": [ + { + "$id": "262", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "263", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "264", + "Type": { + "$id": "265", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "266", + "Name": "primitive", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "267", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "268", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "269", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/query-expansion/explode/primitive", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive", + "Decorators": [] + }, + { + "$id": "270", + "Name": "array", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "271", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "272", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "273", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "274", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/query-expansion/explode/array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array", + "Decorators": [] + }, + { + "$id": "275", + "Name": "record", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "276", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "277", + "kind": "dict", + "keyType": { + "$id": "278", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "279", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "280", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/query-expansion/explode/record", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode", + "parent": { + "$ref": "236" + } + } + ] + }, { - "$id": "32", - "StatusCodes": [ - 204 + "$id": "281", + "kind": "client", + "name": "QueryContinuation", + "namespace": "Routes.QueryParameters.QueryContinuation", + "parameters": [ + { + "$id": "282", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "283", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "284", + "Type": { + "$id": "285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/reserved-expansion/template/{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template", - "Decorators": [] + "operations": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation", + "parent": { + "$ref": "219" + }, + "children": [ + { + "$id": "286", + "kind": "client", + "name": "Standard", + "namespace": "Routes.QueryParameters.QueryContinuation.Standard", + "parameters": [ + { + "$id": "287", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "288", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "289", + "Type": { + "$id": "290", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "291", + "Name": "primitive", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "292", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "294", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/query-continuation/standard/primitive?fixed=true", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive", + "Decorators": [] + }, + { + "$id": "295", + "Name": "array", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "296", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "297", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "298", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "299", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/query-continuation/standard/array?fixed=true", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array", + "Decorators": [] + }, + { + "$id": "300", + "Name": "record", + "ResourceName": "Standard", + "Accessibility": "public", + "Parameters": [ + { + "$id": "301", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "302", + "kind": "dict", + "keyType": { + "$id": "303", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "304", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "305", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/query-continuation/standard/record?fixed=true", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard", + "parent": { + "$ref": "281" + } + }, + { + "$id": "306", + "kind": "client", + "name": "Explode", + "namespace": "Routes.QueryParameters.QueryContinuation.Explode", + "parameters": [ + { + "$id": "307", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "308", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "309", + "Type": { + "$id": "310", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "311", + "Name": "primitive", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "312", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "313", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "314", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/query-continuation/explode/primitive?fixed=true", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive", + "Decorators": [] + }, + { + "$id": "315", + "Name": "array", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "316", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "317", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "318", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "319", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/query-continuation/explode/array?fixed=true", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array", + "Decorators": [] + }, + { + "$id": "320", + "Name": "record", + "ResourceName": "Explode", + "Accessibility": "public", + "Parameters": [ + { + "$id": "321", + "Name": "param", + "NameInRequest": "param", + "Type": { + "$id": "322", + "kind": "dict", + "keyType": { + "$id": "323", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "324", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "325", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/query/query-continuation/explode/record?fixed=true", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.record", + "Decorators": [] + } + ], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode", + "parent": { + "$ref": "281" + } + } + ] + } + ] }, { - "$id": "33", - "Name": "annotation", - "ResourceName": "ReservedExpansion", - "Accessibility": "public", - "Parameters": [ + "$id": "326", + "kind": "client", + "name": "InInterface", + "namespace": "Routes", + "parameters": [ { - "$id": "34", - "Name": "param", - "NameInRequest": "param", + "$id": "327", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "328", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Path", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": true + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "329", + "Type": { + "$id": "330", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "36", - "StatusCodes": [ - 204 + "$id": "331", + "Name": "fixed", + "ResourceName": "InInterface", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "332", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/reserved-expansion/annotation/{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.annotation", - "Decorators": [] - } - ], - "Protocol": { - "$id": "37" - }, - "Parent": "PathParameters", - "Parameters": [ - { - "$id": "38", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "39", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "40", - "Type": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/routes/in-interface/fixed", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Routes.InInterface.fixed", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Routes.InInterface", + "parent": { + "$ref": "2" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion" - }, - { - "$id": "42", - "Name": "PathParametersSimpleExpansion", - "Namespace": "Routes.PathParameters.SimpleExpansion", - "Operations": [], - "Protocol": { - "$id": "43" - }, - "Parent": "PathParameters", - "Parameters": [ - { - "$id": "44", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "45", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "46", - "Type": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion" - }, - { - "$id": "48", - "Name": "PathParametersSimpleExpansionStandard", - "Namespace": "Routes.PathParameters.SimpleExpansion.Standard", - "Operations": [ - { - "$id": "49", - "Name": "primitive", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "50", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "52", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/simple/standard/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive", - "Decorators": [] - }, - { - "$id": "53", - "Name": "array", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "54", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "55", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "56", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "57", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/simple/standard/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array", - "Decorators": [] - }, - { - "$id": "58", - "Name": "record", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "59", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "60", - "kind": "dict", - "keyType": { - "$id": "61", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "62", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "63", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/simple/standard/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "64" - }, - "Parent": "PathParametersSimpleExpansion", - "Parameters": [ - { - "$id": "65", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "66", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "67", - "Type": { - "$id": "68", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard" - }, - { - "$id": "69", - "Name": "PathParametersSimpleExpansionExplode", - "Namespace": "Routes.PathParameters.SimpleExpansion.Explode", - "Operations": [ - { - "$id": "70", - "Name": "primitive", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "71", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "72", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "73", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/simple/explode/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive", - "Decorators": [] - }, - { - "$id": "74", - "Name": "array", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "75", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "76", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "78", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/simple/explode/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array", - "Decorators": [] - }, - { - "$id": "79", - "Name": "record", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "80", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "81", - "kind": "dict", - "keyType": { - "$id": "82", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "83", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "84", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/simple/explode/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "85" - }, - "Parent": "PathParametersSimpleExpansion", - "Parameters": [ - { - "$id": "86", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "87", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "88", - "Type": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode" - }, - { - "$id": "90", - "Name": "PathParametersPathExpansion", - "Namespace": "Routes.PathParameters.PathExpansion", - "Operations": [], - "Protocol": { - "$id": "91" - }, - "Parent": "PathParameters", - "Parameters": [ - { - "$id": "92", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "93", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "94", - "Type": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion" - }, - { - "$id": "96", - "Name": "PathParametersPathExpansionStandard", - "Namespace": "Routes.PathParameters.PathExpansion.Standard", - "Operations": [ - { - "$id": "97", - "Name": "primitive", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "98", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "100", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/path/standard/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive", - "Decorators": [] - }, - { - "$id": "101", - "Name": "array", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "102", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "103", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "105", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/path/standard/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array", - "Decorators": [] - }, - { - "$id": "106", - "Name": "record", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "107", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "108", - "kind": "dict", - "keyType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "110", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "111", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/path/standard/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "112" - }, - "Parent": "PathParametersPathExpansion", - "Parameters": [ - { - "$id": "113", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "114", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "115", - "Type": { - "$id": "116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard" - }, - { - "$id": "117", - "Name": "PathParametersPathExpansionExplode", - "Namespace": "Routes.PathParameters.PathExpansion.Explode", - "Operations": [ - { - "$id": "118", - "Name": "primitive", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "119", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "121", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/path/explode/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive", - "Decorators": [] - }, - { - "$id": "122", - "Name": "array", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "123", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "124", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "126", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/path/explode/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array", - "Decorators": [] - }, - { - "$id": "127", - "Name": "record", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "128", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "129", - "kind": "dict", - "keyType": { - "$id": "130", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "131", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "132", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/path/explode/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "133" - }, - "Parent": "PathParametersPathExpansion", - "Parameters": [ - { - "$id": "134", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "135", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "136", - "Type": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode" - }, - { - "$id": "138", - "Name": "PathParametersLabelExpansion", - "Namespace": "Routes.PathParameters.LabelExpansion", - "Operations": [], - "Protocol": { - "$id": "139" - }, - "Parent": "PathParameters", - "Parameters": [ - { - "$id": "140", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "141", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "142", - "Type": { - "$id": "143", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion" - }, - { - "$id": "144", - "Name": "PathParametersLabelExpansionStandard", - "Namespace": "Routes.PathParameters.LabelExpansion.Standard", - "Operations": [ - { - "$id": "145", - "Name": "primitive", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "146", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "148", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/label/standard/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive", - "Decorators": [] - }, - { - "$id": "149", - "Name": "array", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "150", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "151", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "152", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "153", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/label/standard/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array", - "Decorators": [] - }, - { - "$id": "154", - "Name": "record", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "155", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "156", - "kind": "dict", - "keyType": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "158", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "159", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/label/standard/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "160" - }, - "Parent": "PathParametersLabelExpansion", - "Parameters": [ - { - "$id": "161", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "162", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "163", - "Type": { - "$id": "164", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard" - }, - { - "$id": "165", - "Name": "PathParametersLabelExpansionExplode", - "Namespace": "Routes.PathParameters.LabelExpansion.Explode", - "Operations": [ - { - "$id": "166", - "Name": "primitive", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "167", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "168", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "169", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/label/explode/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive", - "Decorators": [] - }, - { - "$id": "170", - "Name": "array", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "171", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "172", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "173", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "174", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/label/explode/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array", - "Decorators": [] - }, - { - "$id": "175", - "Name": "record", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "176", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "177", - "kind": "dict", - "keyType": { - "$id": "178", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "179", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "180", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/label/explode/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "181" - }, - "Parent": "PathParametersLabelExpansion", - "Parameters": [ - { - "$id": "182", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "183", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "184", - "Type": { - "$id": "185", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode" - }, - { - "$id": "186", - "Name": "PathParametersMatrixExpansion", - "Namespace": "Routes.PathParameters.MatrixExpansion", - "Operations": [], - "Protocol": { - "$id": "187" - }, - "Parent": "PathParameters", - "Parameters": [ - { - "$id": "188", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "189", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "190", - "Type": { - "$id": "191", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion" - }, - { - "$id": "192", - "Name": "PathParametersMatrixExpansionStandard", - "Namespace": "Routes.PathParameters.MatrixExpansion.Standard", - "Operations": [ - { - "$id": "193", - "Name": "primitive", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "194", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "195", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "196", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/matrix/standard/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive", - "Decorators": [] - }, - { - "$id": "197", - "Name": "array", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "198", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "199", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "200", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "201", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/matrix/standard/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array", - "Decorators": [] - }, - { - "$id": "202", - "Name": "record", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "203", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "204", - "kind": "dict", - "keyType": { - "$id": "205", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "206", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "207", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/matrix/standard/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "208" - }, - "Parent": "PathParametersMatrixExpansion", - "Parameters": [ - { - "$id": "209", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "210", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "211", - "Type": { - "$id": "212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard" - }, - { - "$id": "213", - "Name": "PathParametersMatrixExpansionExplode", - "Namespace": "Routes.PathParameters.MatrixExpansion.Explode", - "Operations": [ - { - "$id": "214", - "Name": "primitive", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "215", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "217", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/matrix/explode/primitive{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive", - "Decorators": [] - }, - { - "$id": "218", - "Name": "array", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "219", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "220", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "221", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "222", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/matrix/explode/array{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array", - "Decorators": [] - }, - { - "$id": "223", - "Name": "record", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "224", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "225", - "kind": "dict", - "keyType": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "227", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Path", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "228", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/path/matrix/explode/record{param}", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "229" - }, - "Parent": "PathParametersMatrixExpansion", - "Parameters": [ - { - "$id": "230", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "231", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "232", - "Type": { - "$id": "233", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode" - }, - { - "$id": "234", - "Name": "QueryParameters", - "Namespace": "Routes.QueryParameters", - "Operations": [ - { - "$id": "235", - "Name": "templateOnly", - "ResourceName": "QueryParameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "236", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "237", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "238", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/template-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.templateOnly", - "Decorators": [] - }, - { - "$id": "239", - "Name": "explicit", - "ResourceName": "QueryParameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "240", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "242", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/explicit", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.explicit", - "Decorators": [] - }, - { - "$id": "243", - "Name": "annotationOnly", - "ResourceName": "QueryParameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "244", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "245", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "246", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/annotation-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.annotationOnly", - "Decorators": [] - } - ], - "Protocol": { - "$id": "247" - }, - "Parent": "RoutesClient", - "Parameters": [ - { - "$id": "248", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "249", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "250", - "Type": { - "$id": "251", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters" - }, - { - "$id": "252", - "Name": "QueryParametersQueryExpansion", - "Namespace": "Routes.QueryParameters.QueryExpansion", - "Operations": [], - "Protocol": { - "$id": "253" - }, - "Parent": "QueryParameters", - "Parameters": [ - { - "$id": "254", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "255", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "256", - "Type": { - "$id": "257", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion" - }, - { - "$id": "258", - "Name": "QueryParametersQueryExpansionStandard", - "Namespace": "Routes.QueryParameters.QueryExpansion.Standard", - "Operations": [ - { - "$id": "259", - "Name": "primitive", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "260", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "261", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "262", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/query-expansion/standard/primitive", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive", - "Decorators": [] - }, - { - "$id": "263", - "Name": "array", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "264", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "265", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "266", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "267", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/query-expansion/standard/array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array", - "Decorators": [] - }, - { - "$id": "268", - "Name": "record", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "269", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "270", - "kind": "dict", - "keyType": { - "$id": "271", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "272", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "273", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/query-expansion/standard/record", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "274" - }, - "Parent": "QueryParametersQueryExpansion", - "Parameters": [ - { - "$id": "275", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "276", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "277", - "Type": { - "$id": "278", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard" - }, - { - "$id": "279", - "Name": "QueryParametersQueryExpansionExplode", - "Namespace": "Routes.QueryParameters.QueryExpansion.Explode", - "Operations": [ - { - "$id": "280", - "Name": "primitive", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "281", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "282", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "283", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/query-expansion/explode/primitive", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive", - "Decorators": [] - }, - { - "$id": "284", - "Name": "array", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "285", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "286", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "287", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "288", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/query-expansion/explode/array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array", - "Decorators": [] - }, - { - "$id": "289", - "Name": "record", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "290", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "291", - "kind": "dict", - "keyType": { - "$id": "292", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "293", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "294", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/query-expansion/explode/record", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "295" - }, - "Parent": "QueryParametersQueryExpansion", - "Parameters": [ - { - "$id": "296", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "297", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "298", - "Type": { - "$id": "299", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode" - }, - { - "$id": "300", - "Name": "QueryParametersQueryContinuation", - "Namespace": "Routes.QueryParameters.QueryContinuation", - "Operations": [], - "Protocol": { - "$id": "301" - }, - "Parent": "QueryParameters", - "Parameters": [ - { - "$id": "302", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "303", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "304", - "Type": { - "$id": "305", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation" - }, - { - "$id": "306", - "Name": "QueryParametersQueryContinuationStandard", - "Namespace": "Routes.QueryParameters.QueryContinuation.Standard", - "Operations": [ - { - "$id": "307", - "Name": "primitive", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "308", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "309", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "310", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/query-continuation/standard/primitive?fixed=true", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive", - "Decorators": [] - }, - { - "$id": "311", - "Name": "array", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "312", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "313", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "314", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "315", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/query-continuation/standard/array?fixed=true", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array", - "Decorators": [] - }, - { - "$id": "316", - "Name": "record", - "ResourceName": "Standard", - "Accessibility": "public", - "Parameters": [ - { - "$id": "317", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "318", - "kind": "dict", - "keyType": { - "$id": "319", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "320", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "321", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/query-continuation/standard/record?fixed=true", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "322" - }, - "Parent": "QueryParametersQueryContinuation", - "Parameters": [ - { - "$id": "323", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "324", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "325", - "Type": { - "$id": "326", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard" - }, - { - "$id": "327", - "Name": "QueryParametersQueryContinuationExplode", - "Namespace": "Routes.QueryParameters.QueryContinuation.Explode", - "Operations": [ - { - "$id": "328", - "Name": "primitive", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "329", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "330", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "331", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/query-continuation/explode/primitive?fixed=true", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive", - "Decorators": [] - }, - { - "$id": "332", - "Name": "array", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "333", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "334", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "335", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "336", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/query-continuation/explode/array?fixed=true", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array", - "Decorators": [] - }, - { - "$id": "337", - "Name": "record", - "ResourceName": "Explode", - "Accessibility": "public", - "Parameters": [ - { - "$id": "338", - "Name": "param", - "NameInRequest": "param", - "Type": { - "$id": "339", - "kind": "dict", - "keyType": { - "$id": "340", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "341", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": true, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "342", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/query/query-continuation/explode/record?fixed=true", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.record", - "Decorators": [] - } - ], - "Protocol": { - "$id": "343" - }, - "Parent": "QueryParametersQueryContinuation", - "Parameters": [ - { - "$id": "344", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "345", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "346", - "Type": { - "$id": "347", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode" - }, - { - "$id": "348", - "Name": "InInterface", - "Namespace": "Routes", - "Operations": [ - { - "$id": "349", - "Name": "fixed", - "ResourceName": "InInterface", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "350", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/routes/in-interface/fixed", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Routes.InInterface.fixed", - "Decorators": [] - } - ], - "Protocol": { - "$id": "351" - }, - "Parent": "RoutesClient", - "Parameters": [ - { - "$id": "352", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "353", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "354", - "Type": { - "$id": "355", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Routes.InInterface" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json index b040fa2a9f4..cb9d07e51e5 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json @@ -46,21 +46,18 @@ "Clients": [ { "$id": "7", - "Name": "JsonClient", - "Namespace": "Serialization.EncodedName.Json", - "Doc": "Projection", - "Operations": [], - "Protocol": { - "$id": "8" - }, - "Parameters": [ + "kind": "client", + "name": "JsonClient", + "namespace": "Serialization.EncodedName.Json", + "doc": "Projection", + "parameters": [ { - "$id": "9", + "$id": "8", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "10", + "$id": "9", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -75,9 +72,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "11", + "$id": "10", "Type": { - "$id": "12", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -86,187 +83,190 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Serialization.EncodedName.Json" - }, - { - "$id": "13", - "Name": "Property", - "Namespace": "Serialization.EncodedName.Json.Property", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Serialization.EncodedName.Json", + "children": [ { - "$id": "14", - "Name": "send", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ + "$id": "12", + "kind": "client", + "name": "Property", + "namespace": "Serialization.EncodedName.Json.Property", + "parameters": [ { - "$id": "15", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "13", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "16", - "kind": "constant", - "valueType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "14", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "18", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "19", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/serialization/encoded-name/json/property", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send", - "Decorators": [] - }, - { - "$id": "20", - "Name": "get", - "ResourceName": "Property", - "Accessibility": "public", - "Parameters": [ - { - "$id": "21", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "22", - "kind": "constant", - "valueType": { - "$id": "23", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "15", + "Type": { + "$id": "16", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "24", - "StatusCodes": [ - 200 + "$id": "17", + "Name": "send", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "18", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "19", + "kind": "constant", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "21", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "2" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "22", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/serialization/encoded-name/json/property", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send", + "Decorators": [] + }, + { + "$id": "23", + "Name": "get", + "ResourceName": "Property", + "Accessibility": "public", + "Parameters": [ + { + "$id": "24", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "25", + "kind": "constant", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "27", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/serialization/encoded-name/json/property", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.get", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/serialization/encoded-name/json/property", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.get", - "Decorators": [] - } - ], - "Protocol": { - "$id": "25" - }, - "Parent": "JsonClient", - "Parameters": [ - { - "$id": "26", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "27", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "28", - "Type": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property", + "parent": { + "$ref": "7" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Serialization.EncodedName.Json.Property" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json index d8a73d61efb..4dd9400acef 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json @@ -7,24 +7,58 @@ "Clients": [ { "$id": "2", - "Name": "ConditionalRequestClient", - "Namespace": "SpecialHeaders.ConditionalRequest", - "Doc": "Illustrates conditional request headers", - "Operations": [ + "kind": "client", + "name": "ConditionalRequestClient", + "namespace": "SpecialHeaders.ConditionalRequest", + "doc": "Illustrates conditional request headers", + "parameters": [ { "$id": "3", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "4", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "5", + "Type": { + "$id": "6", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "7", "Name": "postIfMatch", "ResourceName": "ConditionalRequest", "Doc": "Check when only If-Match in header is defined.", "Accessibility": "public", "Parameters": [ { - "$id": "4", + "$id": "8", "Name": "ifMatch", "NameInRequest": "If-Match", "Doc": "The request should only proceed if an entity matches this string.", "Type": { - "$id": "5", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -43,7 +77,7 @@ ], "Responses": [ { - "$id": "6", + "$id": "10", "StatusCodes": [ 204 ], @@ -61,19 +95,19 @@ "Decorators": [] }, { - "$id": "7", + "$id": "11", "Name": "postIfNoneMatch", "ResourceName": "ConditionalRequest", "Doc": "Check when only If-None-Match in header is defined.", "Accessibility": "public", "Parameters": [ { - "$id": "8", + "$id": "12", "Name": "ifNoneMatch", "NameInRequest": "If-None-Match", "Doc": "The request should only proceed if no entity matches this string.", "Type": { - "$id": "9", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -92,7 +126,7 @@ ], "Responses": [ { - "$id": "10", + "$id": "14", "StatusCodes": [ 204 ], @@ -110,24 +144,24 @@ "Decorators": [] }, { - "$id": "11", + "$id": "15", "Name": "headIfModifiedSince", "ResourceName": "ConditionalRequest", "Doc": "Check when only If-Modified-Since in header is defined.", "Accessibility": "public", "Parameters": [ { - "$id": "12", + "$id": "16", "Name": "ifModifiedSince", "NameInRequest": "If-Modified-Since", "Doc": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", "Type": { - "$id": "13", + "$id": "17", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "14", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -149,7 +183,7 @@ ], "Responses": [ { - "$id": "15", + "$id": "19", "StatusCodes": [ 204 ], @@ -167,24 +201,24 @@ "Decorators": [] }, { - "$id": "16", + "$id": "20", "Name": "postIfUnmodifiedSince", "ResourceName": "ConditionalRequest", "Doc": "Check when only If-Unmodified-Since in header is defined.", "Accessibility": "public", "Parameters": [ { - "$id": "17", + "$id": "21", "Name": "ifUnmodifiedSince", "NameInRequest": "If-Unmodified-Since", "Doc": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", "Type": { - "$id": "18", + "$id": "22", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "19", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -206,7 +240,7 @@ ], "Responses": [ { - "$id": "20", + "$id": "24", "StatusCodes": [ 204 ], @@ -224,44 +258,8 @@ "Decorators": [] } ], - "Protocol": { - "$id": "21" - }, - "Parameters": [ - { - "$id": "22", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "23", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "24", - "Type": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest" + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest" } ] } 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 241a5c3f57c..ae4c4357600 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 @@ -1266,21 +1266,18 @@ "Clients": [ { "$id": "172", - "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```", - "Operations": [], - "Protocol": { - "$id": "173" - }, - "Parameters": [ + "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```", + "parameters": [ { - "$id": "174", + "$id": "173", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "175", + "$id": "174", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1295,9 +1292,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "176", + "$id": "175", "Type": { - "$id": "177", + "$id": "176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1306,5135 +1303,5138 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialWords" - }, - { - "$id": "178", - "Name": "Models", - "Namespace": "SpecialWords.Models", - "Doc": "Verify model names", - "Operations": [ - { - "$id": "179", - "Name": "withAnd", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "180", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "181", - "kind": "constant", - "valueType": { - "$id": "182", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "183", - "Name": "body", - "NameInRequest": "body", + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialWords", + "children": [ + { + "$id": "177", + "kind": "client", + "name": "Models", + "namespace": "SpecialWords.Models", + "doc": "Verify model names", + "parameters": [ + { + "$id": "178", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "7" + "$id": "179", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "184", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/and", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withAnd", - "Decorators": [] - }, - { - "$id": "185", - "Name": "withAs", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "186", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "187", - "kind": "constant", - "valueType": { - "$id": "188", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "180", + "Type": { + "$id": "181", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "182", + "Name": "withAnd", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "183", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "184", + "kind": "constant", + "valueType": { + "$id": "185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "186", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "7" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "187", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/and", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withAnd", + "Decorators": [] }, { - "$id": "189", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "12" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "190", - "StatusCodes": [ - 204 + "$id": "188", + "Name": "withAs", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "189", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "190", + "kind": "constant", + "valueType": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "192", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "12" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/as", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withAs", - "Decorators": [] - }, - { - "$id": "191", - "Name": "withAssert", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "193", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/as", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withAs", + "Decorators": [] + }, { - "$id": "192", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "193", - "kind": "constant", - "valueType": { - "$id": "194", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "194", + "Name": "withAssert", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "195", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "196", + "kind": "constant", + "valueType": { + "$id": "197", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "198", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "17" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "199", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/assert", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withAssert", + "Decorators": [] }, { - "$id": "195", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "17" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "196", - "StatusCodes": [ - 204 + "$id": "200", + "Name": "withAsync", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "201", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "202", + "kind": "constant", + "valueType": { + "$id": "203", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "204", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "22" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/assert", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withAssert", - "Decorators": [] - }, - { - "$id": "197", - "Name": "withAsync", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "205", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/async", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withAsync", + "Decorators": [] + }, { - "$id": "198", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "199", - "kind": "constant", - "valueType": { - "$id": "200", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "206", + "Name": "withAwait", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "207", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "208", + "kind": "constant", + "valueType": { + "$id": "209", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "210", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "27" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "211", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/await", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withAwait", + "Decorators": [] }, { - "$id": "201", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "22" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "212", + "Name": "withBreak", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "213", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "214", + "kind": "constant", + "valueType": { + "$id": "215", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "216", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "32" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "217", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/break", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withBreak", + "Decorators": [] + }, { - "$id": "202", - "StatusCodes": [ - 204 + "$id": "218", + "Name": "withClass", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "219", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "220", + "kind": "constant", + "valueType": { + "$id": "221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "222", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "37" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/async", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withAsync", - "Decorators": [] - }, - { - "$id": "203", - "Name": "withAwait", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "223", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/class", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withClass", + "Decorators": [] + }, { - "$id": "204", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "205", - "kind": "constant", - "valueType": { - "$id": "206", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "224", + "Name": "withConstructor", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "225", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "226", + "kind": "constant", + "valueType": { + "$id": "227", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "228", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "42" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "229", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/constructor", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withConstructor", + "Decorators": [] }, { - "$id": "207", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "27" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "230", + "Name": "withContinue", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "231", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "232", + "kind": "constant", + "valueType": { + "$id": "233", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "234", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "47" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "235", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/continue", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withContinue", + "Decorators": [] + }, { - "$id": "208", - "StatusCodes": [ - 204 + "$id": "236", + "Name": "withDef", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "237", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "238", + "kind": "constant", + "valueType": { + "$id": "239", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "240", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "52" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/await", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withAwait", - "Decorators": [] - }, - { - "$id": "209", - "Name": "withBreak", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "241", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/def", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withDef", + "Decorators": [] + }, { - "$id": "210", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "211", - "kind": "constant", - "valueType": { - "$id": "212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "242", + "Name": "withDel", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "243", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "244", + "kind": "constant", + "valueType": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "246", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "57" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "247", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/del", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withDel", + "Decorators": [] }, { - "$id": "213", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "32" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "248", + "Name": "withElif", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "249", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "250", + "kind": "constant", + "valueType": { + "$id": "251", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "252", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "62" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "253", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/elif", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withElif", + "Decorators": [] + }, { - "$id": "214", - "StatusCodes": [ - 204 + "$id": "254", + "Name": "withElse", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "255", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "256", + "kind": "constant", + "valueType": { + "$id": "257", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "258", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "67" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/break", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withBreak", - "Decorators": [] - }, - { - "$id": "215", - "Name": "withClass", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "259", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/else", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withElse", + "Decorators": [] + }, { - "$id": "216", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "217", - "kind": "constant", - "valueType": { - "$id": "218", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "260", + "Name": "withExcept", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "261", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "262", + "kind": "constant", + "valueType": { + "$id": "263", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "264", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "72" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "265", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/except", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withExcept", + "Decorators": [] }, { - "$id": "219", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "37" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "266", + "Name": "withExec", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "267", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "268", + "kind": "constant", + "valueType": { + "$id": "269", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "270", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "77" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "271", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/exec", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withExec", + "Decorators": [] + }, { - "$id": "220", - "StatusCodes": [ - 204 + "$id": "272", + "Name": "withFinally", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "273", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "274", + "kind": "constant", + "valueType": { + "$id": "275", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "276", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "82" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/class", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withClass", - "Decorators": [] - }, - { - "$id": "221", - "Name": "withConstructor", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "277", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/finally", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withFinally", + "Decorators": [] + }, { - "$id": "222", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "223", - "kind": "constant", - "valueType": { - "$id": "224", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "278", + "Name": "withFor", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "279", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "280", + "kind": "constant", + "valueType": { + "$id": "281", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "282", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "87" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "283", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/for", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withFor", + "Decorators": [] }, { - "$id": "225", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "42" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "284", + "Name": "withFrom", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "285", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "286", + "kind": "constant", + "valueType": { + "$id": "287", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "288", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "92" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "289", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/from", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withFrom", + "Decorators": [] + }, { - "$id": "226", - "StatusCodes": [ - 204 + "$id": "290", + "Name": "withGlobal", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "291", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "292", + "kind": "constant", + "valueType": { + "$id": "293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "294", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "97" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/constructor", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withConstructor", - "Decorators": [] - }, - { - "$id": "227", - "Name": "withContinue", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "295", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/global", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withGlobal", + "Decorators": [] + }, { - "$id": "228", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "229", - "kind": "constant", - "valueType": { - "$id": "230", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "296", + "Name": "withIf", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "297", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "298", + "kind": "constant", + "valueType": { + "$id": "299", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "300", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "102" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "301", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/if", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withIf", + "Decorators": [] }, { - "$id": "231", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "47" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "232", - "StatusCodes": [ - 204 + "$id": "302", + "Name": "withImport", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "303", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "304", + "kind": "constant", + "valueType": { + "$id": "305", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "306", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "107" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/continue", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withContinue", - "Decorators": [] - }, - { - "$id": "233", - "Name": "withDef", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "307", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/import", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withImport", + "Decorators": [] + }, { - "$id": "234", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "235", - "kind": "constant", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "308", + "Name": "withIn", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "309", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "310", + "kind": "constant", + "valueType": { + "$id": "311", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "312", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "112" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "313", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/in", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withIn", + "Decorators": [] }, { - "$id": "237", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "52" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "238", - "StatusCodes": [ - 204 + "$id": "314", + "Name": "withIs", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "315", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "316", + "kind": "constant", + "valueType": { + "$id": "317", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "318", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "117" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/def", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withDef", - "Decorators": [] - }, - { - "$id": "239", - "Name": "withDel", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "319", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/is", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withIs", + "Decorators": [] + }, { - "$id": "240", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "241", - "kind": "constant", - "valueType": { - "$id": "242", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "320", + "Name": "withLambda", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "321", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "322", + "kind": "constant", + "valueType": { + "$id": "323", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "324", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "122" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "325", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/lambda", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withLambda", + "Decorators": [] }, { - "$id": "243", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "57" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "244", - "StatusCodes": [ - 204 + "$id": "326", + "Name": "withNot", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "327", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "328", + "kind": "constant", + "valueType": { + "$id": "329", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "330", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "127" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/del", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withDel", - "Decorators": [] - }, - { - "$id": "245", - "Name": "withElif", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "331", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/not", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withNot", + "Decorators": [] + }, { - "$id": "246", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "247", - "kind": "constant", - "valueType": { - "$id": "248", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "332", + "Name": "withOr", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "333", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "334", + "kind": "constant", + "valueType": { + "$id": "335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "336", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "132" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "337", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/or", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withOr", + "Decorators": [] }, { - "$id": "249", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "62" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "250", - "StatusCodes": [ - 204 + "$id": "338", + "Name": "withPass", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "339", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "340", + "kind": "constant", + "valueType": { + "$id": "341", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "342", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "137" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/elif", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withElif", - "Decorators": [] - }, - { - "$id": "251", - "Name": "withElse", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "343", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/pass", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withPass", + "Decorators": [] + }, { - "$id": "252", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "253", - "kind": "constant", - "valueType": { - "$id": "254", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "344", + "Name": "withRaise", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "345", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "346", + "kind": "constant", + "valueType": { + "$id": "347", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "348", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "142" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "349", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/raise", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withRaise", + "Decorators": [] }, { - "$id": "255", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "67" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "256", - "StatusCodes": [ - 204 + "$id": "350", + "Name": "withReturn", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "351", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "352", + "kind": "constant", + "valueType": { + "$id": "353", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "354", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "147" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/else", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withElse", - "Decorators": [] - }, - { - "$id": "257", - "Name": "withExcept", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "355", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/return", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withReturn", + "Decorators": [] + }, { - "$id": "258", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "259", - "kind": "constant", - "valueType": { - "$id": "260", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "356", + "Name": "withTry", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "357", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "358", + "kind": "constant", + "valueType": { + "$id": "359", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "360", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "152" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "361", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/try", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withTry", + "Decorators": [] }, { - "$id": "261", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "72" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "262", - "StatusCodes": [ - 204 + "$id": "362", + "Name": "withWhile", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "363", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "364", + "kind": "constant", + "valueType": { + "$id": "365", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "366", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "157" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/except", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withExcept", - "Decorators": [] - }, - { - "$id": "263", - "Name": "withExec", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "367", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/while", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withWhile", + "Decorators": [] + }, { - "$id": "264", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "265", - "kind": "constant", - "valueType": { - "$id": "266", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "368", + "Name": "withWith", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "369", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "370", + "kind": "constant", + "valueType": { + "$id": "371", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "372", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "162" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "373", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/with", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withWith", + "Decorators": [] }, { - "$id": "267", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "77" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "268", - "StatusCodes": [ - 204 + "$id": "374", + "Name": "withYield", + "ResourceName": "Models", + "Accessibility": "public", + "Parameters": [ + { + "$id": "375", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "376", + "kind": "constant", + "valueType": { + "$id": "377", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "378", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "167" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "379", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/models/yield", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Models.withYield", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/exec", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withExec", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialWords.Models", + "parent": { + "$ref": "172" + } }, { - "$id": "269", - "Name": "withFinally", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "270", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "271", - "kind": "constant", - "valueType": { - "$id": "272", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "380", + "kind": "client", + "name": "ModelProperties", + "namespace": "SpecialWords.ModelProperties", + "doc": "Verify model names", + "parameters": [ { - "$id": "273", - "Name": "body", - "NameInRequest": "body", + "$id": "381", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "82" + "$id": "382", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "274", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/finally", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withFinally", - "Decorators": [] - }, - { - "$id": "275", - "Name": "withFor", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "276", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "277", - "kind": "constant", - "valueType": { - "$id": "278", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "383", + "Type": { + "$id": "384", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "279", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "87" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "280", - "StatusCodes": [ - 204 + "$id": "385", + "Name": "sameAsModel", + "ResourceName": "ModelProperties", + "Accessibility": "public", + "Parameters": [ + { + "$id": "386", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "387", + "kind": "constant", + "valueType": { + "$id": "388", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "389", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "390", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/special-words/model-properties/same-as-model", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/for", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withFor", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialWords.ModelProperties", + "parent": { + "$ref": "172" + } }, { - "$id": "281", - "Name": "withFrom", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "282", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "283", - "kind": "constant", - "valueType": { - "$id": "284", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "285", - "Name": "body", - "NameInRequest": "body", + "$id": "391", + "kind": "client", + "name": "Operations", + "namespace": "SpecialWords", + "doc": "Test reserved words as operation name.", + "parameters": [ + { + "$id": "392", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "92" + "$id": "393", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "394", + "Type": { + "$id": "395", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "286", - "StatusCodes": [ - 204 + "$id": "396", + "Name": "and", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "397", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/from", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withFrom", - "Decorators": [] - }, - { - "$id": "287", - "Name": "withGlobal", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/and", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.and", + "Decorators": [] + }, { - "$id": "288", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "289", - "kind": "constant", - "valueType": { - "$id": "290", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "398", + "Name": "as", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "399", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/as", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.as", + "Decorators": [] }, { - "$id": "291", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "97" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "292", - "StatusCodes": [ - 204 + "$id": "400", + "Name": "assert", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "401", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/global", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withGlobal", - "Decorators": [] - }, - { - "$id": "293", - "Name": "withIf", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "294", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "295", - "kind": "constant", - "valueType": { - "$id": "296", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/assert", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.assert", + "Decorators": [] }, { - "$id": "297", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "102" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "298", - "StatusCodes": [ - 204 + "$id": "402", + "Name": "async", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "403", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/if", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withIf", - "Decorators": [] - }, - { - "$id": "299", - "Name": "withImport", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "300", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "301", - "kind": "constant", - "valueType": { - "$id": "302", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/async", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.async", + "Decorators": [] }, { - "$id": "303", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "107" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "304", - "StatusCodes": [ - 204 + "$id": "404", + "Name": "await", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "405", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/import", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withImport", - "Decorators": [] - }, - { - "$id": "305", - "Name": "withIn", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "306", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "307", - "kind": "constant", - "valueType": { - "$id": "308", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/await", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.await", + "Decorators": [] }, { - "$id": "309", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "112" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "310", - "StatusCodes": [ - 204 + "$id": "406", + "Name": "break", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "407", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/in", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withIn", - "Decorators": [] - }, - { - "$id": "311", - "Name": "withIs", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "312", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "313", - "kind": "constant", - "valueType": { - "$id": "314", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/break", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.break", + "Decorators": [] }, { - "$id": "315", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "117" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "316", - "StatusCodes": [ - 204 + "$id": "408", + "Name": "class", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "409", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/is", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withIs", - "Decorators": [] - }, - { - "$id": "317", - "Name": "withLambda", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "318", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "319", - "kind": "constant", - "valueType": { - "$id": "320", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/class", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.class", + "Decorators": [] }, { - "$id": "321", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "122" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "322", - "StatusCodes": [ - 204 + "$id": "410", + "Name": "constructor", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "411", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/lambda", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withLambda", - "Decorators": [] - }, - { - "$id": "323", - "Name": "withNot", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "324", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "325", - "kind": "constant", - "valueType": { - "$id": "326", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/constructor", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.constructor", + "Decorators": [] }, { - "$id": "327", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "127" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "328", - "StatusCodes": [ - 204 + "$id": "412", + "Name": "continue", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "413", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/not", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withNot", - "Decorators": [] - }, - { - "$id": "329", - "Name": "withOr", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "330", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "331", - "kind": "constant", - "valueType": { - "$id": "332", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/continue", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.continue", + "Decorators": [] }, { - "$id": "333", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "132" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "334", - "StatusCodes": [ - 204 + "$id": "414", + "Name": "def", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "415", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/or", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withOr", - "Decorators": [] - }, - { - "$id": "335", - "Name": "withPass", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "336", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "337", - "kind": "constant", - "valueType": { - "$id": "338", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/def", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.def", + "Decorators": [] }, { - "$id": "339", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "137" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "340", - "StatusCodes": [ - 204 + "$id": "416", + "Name": "del", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "417", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/pass", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withPass", - "Decorators": [] - }, - { - "$id": "341", - "Name": "withRaise", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "342", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "343", - "kind": "constant", - "valueType": { - "$id": "344", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/del", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.del", + "Decorators": [] }, { - "$id": "345", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "142" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "346", - "StatusCodes": [ - 204 + "$id": "418", + "Name": "elif", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "419", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/raise", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withRaise", - "Decorators": [] - }, - { - "$id": "347", - "Name": "withReturn", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "348", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "349", - "kind": "constant", - "valueType": { - "$id": "350", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/elif", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.elif", + "Decorators": [] }, { - "$id": "351", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "147" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "352", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/return", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withReturn", - "Decorators": [] - }, - { - "$id": "353", - "Name": "withTry", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "354", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "355", - "kind": "constant", - "valueType": { - "$id": "356", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "357", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "152" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "358", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/try", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withTry", - "Decorators": [] - }, - { - "$id": "359", - "Name": "withWhile", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "360", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "361", - "kind": "constant", - "valueType": { - "$id": "362", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "363", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "157" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "364", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/while", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withWhile", - "Decorators": [] - }, - { - "$id": "365", - "Name": "withWith", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "366", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "367", - "kind": "constant", - "valueType": { - "$id": "368", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "369", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "162" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "370", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/with", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withWith", - "Decorators": [] - }, - { - "$id": "371", - "Name": "withYield", - "ResourceName": "Models", - "Accessibility": "public", - "Parameters": [ - { - "$id": "372", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "373", - "kind": "constant", - "valueType": { - "$id": "374", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "375", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "167" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "376", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/models/yield", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Models.withYield", - "Decorators": [] - } - ], - "Protocol": { - "$id": "377" - }, - "Parent": "SpecialWordsClient", - "Parameters": [ - { - "$id": "378", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "379", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "380", - "Type": { - "$id": "381", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialWords.Models" - }, - { - "$id": "382", - "Name": "ModelProperties", - "Namespace": "SpecialWords.ModelProperties", - "Doc": "Verify model names", - "Operations": [ - { - "$id": "383", - "Name": "sameAsModel", - "ResourceName": "ModelProperties", - "Accessibility": "public", - "Parameters": [ - { - "$id": "384", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "385", - "kind": "constant", - "valueType": { - "$id": "386", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "387", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "388", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/special-words/model-properties/same-as-model", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel", - "Decorators": [] - } - ], - "Protocol": { - "$id": "389" - }, - "Parent": "SpecialWordsClient", - "Parameters": [ - { - "$id": "390", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "391", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "392", - "Type": { - "$id": "393", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialWords.ModelProperties" - }, - { - "$id": "394", - "Name": "Operations", - "Namespace": "SpecialWords", - "Doc": "Test reserved words as operation name.", - "Operations": [ - { - "$id": "395", - "Name": "and", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "396", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/and", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.and", - "Decorators": [] - }, - { - "$id": "397", - "Name": "as", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "398", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/as", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.as", - "Decorators": [] - }, - { - "$id": "399", - "Name": "assert", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "400", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/assert", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.assert", - "Decorators": [] - }, - { - "$id": "401", - "Name": "async", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "402", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/async", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.async", - "Decorators": [] - }, - { - "$id": "403", - "Name": "await", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "404", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/await", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.await", - "Decorators": [] - }, - { - "$id": "405", - "Name": "break", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "406", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/break", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.break", - "Decorators": [] - }, - { - "$id": "407", - "Name": "class", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "408", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/class", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.class", - "Decorators": [] - }, - { - "$id": "409", - "Name": "constructor", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "410", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/constructor", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.constructor", - "Decorators": [] - }, - { - "$id": "411", - "Name": "continue", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "412", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/continue", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.continue", - "Decorators": [] - }, - { - "$id": "413", - "Name": "def", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "414", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/def", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.def", - "Decorators": [] - }, - { - "$id": "415", - "Name": "del", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "416", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/del", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.del", - "Decorators": [] - }, - { - "$id": "417", - "Name": "elif", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "418", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/elif", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.elif", - "Decorators": [] - }, - { - "$id": "419", - "Name": "else", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "420", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/else", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.else", - "Decorators": [] - }, - { - "$id": "421", - "Name": "except", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "422", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/except", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.except", - "Decorators": [] - }, - { - "$id": "423", - "Name": "exec", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "424", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/exec", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.exec", - "Decorators": [] - }, - { - "$id": "425", - "Name": "finally", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "426", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/finally", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.finally", - "Decorators": [] - }, - { - "$id": "427", - "Name": "for", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "428", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/for", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.for", - "Decorators": [] - }, - { - "$id": "429", - "Name": "from", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "430", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/from", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.from", - "Decorators": [] - }, - { - "$id": "431", - "Name": "global", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "432", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/global", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.global", - "Decorators": [] - }, - { - "$id": "433", - "Name": "if", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "434", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/if", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.if", - "Decorators": [] - }, - { - "$id": "435", - "Name": "import", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "436", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/import", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.import", - "Decorators": [] - }, - { - "$id": "437", - "Name": "in", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "438", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/in", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.in", - "Decorators": [] - }, - { - "$id": "439", - "Name": "is", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "440", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/is", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.is", - "Decorators": [] - }, - { - "$id": "441", - "Name": "lambda", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "442", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/lambda", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.lambda", - "Decorators": [] - }, - { - "$id": "443", - "Name": "not", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "444", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/not", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.not", - "Decorators": [] - }, - { - "$id": "445", - "Name": "or", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "446", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/or", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.or", - "Decorators": [] - }, - { - "$id": "447", - "Name": "pass", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "448", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/pass", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.pass", - "Decorators": [] - }, - { - "$id": "449", - "Name": "raise", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "450", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/raise", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.raise", - "Decorators": [] - }, - { - "$id": "451", - "Name": "return", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "452", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/return", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.return", - "Decorators": [] - }, - { - "$id": "453", - "Name": "try", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "454", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/try", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.try", - "Decorators": [] - }, - { - "$id": "455", - "Name": "while", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "456", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/while", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.while", - "Decorators": [] - }, - { - "$id": "457", - "Name": "with", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "458", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/with", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.with", - "Decorators": [] - }, - { - "$id": "459", - "Name": "yield", - "ResourceName": "Operations", - "Accessibility": "public", - "Parameters": [], - "Responses": [ - { - "$id": "460", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/operations/yield", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Operations.yield", - "Decorators": [] - } - ], - "Protocol": { - "$id": "461" - }, - "Parent": "SpecialWordsClient", - "Parameters": [ - { - "$id": "462", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "463", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "464", - "Type": { - "$id": "465", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialWords.Operations" - }, - { - "$id": "466", - "Name": "Parameters", - "Namespace": "SpecialWords", - "Doc": "Verify reserved words as parameter name.", - "Operations": [ - { - "$id": "467", - "Name": "withAnd", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "468", - "Name": "and", - "NameInRequest": "and", - "Type": { - "$id": "469", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "470", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/and", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAnd", - "Decorators": [] - }, - { - "$id": "471", - "Name": "withAs", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "472", - "Name": "as", - "NameInRequest": "as", - "Type": { - "$id": "473", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "474", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/as", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAs", - "Decorators": [] - }, - { - "$id": "475", - "Name": "withAssert", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "476", - "Name": "assert", - "NameInRequest": "assert", - "Type": { - "$id": "477", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "478", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/assert", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAssert", - "Decorators": [] - }, - { - "$id": "479", - "Name": "withAsync", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "480", - "Name": "async", - "NameInRequest": "async", - "Type": { - "$id": "481", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "482", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/async", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAsync", - "Decorators": [] - }, - { - "$id": "483", - "Name": "withAwait", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "484", - "Name": "await", - "NameInRequest": "await", - "Type": { - "$id": "485", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "486", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/await", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAwait", - "Decorators": [] - }, - { - "$id": "487", - "Name": "withBreak", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "488", - "Name": "break", - "NameInRequest": "break", - "Type": { - "$id": "489", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "490", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/break", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withBreak", - "Decorators": [] - }, - { - "$id": "491", - "Name": "withClass", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "492", - "Name": "class", - "NameInRequest": "class", - "Type": { - "$id": "493", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "494", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/class", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withClass", - "Decorators": [] - }, - { - "$id": "495", - "Name": "withConstructor", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "496", - "Name": "constructor", - "NameInRequest": "constructor", - "Type": { - "$id": "497", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "498", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/constructor", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor", - "Decorators": [] - }, - { - "$id": "499", - "Name": "withContinue", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "500", - "Name": "continue", - "NameInRequest": "continue", - "Type": { - "$id": "501", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "420", + "Name": "else", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "421", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/else", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.else", + "Decorators": [] + }, { - "$id": "502", - "StatusCodes": [ - 204 + "$id": "422", + "Name": "except", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "423", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/continue", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withContinue", - "Decorators": [] - }, - { - "$id": "503", - "Name": "withDef", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/except", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.except", + "Decorators": [] + }, { - "$id": "504", - "Name": "def", - "NameInRequest": "def", - "Type": { - "$id": "505", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "424", + "Name": "exec", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "425", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/exec", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.exec", + "Decorators": [] + }, { - "$id": "506", - "StatusCodes": [ - 204 + "$id": "426", + "Name": "finally", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "427", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/def", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withDef", - "Decorators": [] - }, - { - "$id": "507", - "Name": "withDel", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/finally", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.finally", + "Decorators": [] + }, { - "$id": "508", - "Name": "del", - "NameInRequest": "del", - "Type": { - "$id": "509", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "428", + "Name": "for", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "429", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/for", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.for", + "Decorators": [] + }, { - "$id": "510", - "StatusCodes": [ - 204 + "$id": "430", + "Name": "from", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "431", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/del", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withDel", - "Decorators": [] - }, - { - "$id": "511", - "Name": "withElif", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/from", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.from", + "Decorators": [] + }, { - "$id": "512", - "Name": "elif", - "NameInRequest": "elif", - "Type": { - "$id": "513", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "432", + "Name": "global", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "433", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/global", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.global", + "Decorators": [] + }, { - "$id": "514", - "StatusCodes": [ - 204 + "$id": "434", + "Name": "if", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "435", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/elif", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withElif", - "Decorators": [] - }, - { - "$id": "515", - "Name": "withElse", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/if", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.if", + "Decorators": [] + }, { - "$id": "516", - "Name": "else", - "NameInRequest": "else", - "Type": { - "$id": "517", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "436", + "Name": "import", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "437", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/import", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.import", + "Decorators": [] + }, { - "$id": "518", - "StatusCodes": [ - 204 + "$id": "438", + "Name": "in", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "439", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/else", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withElse", - "Decorators": [] - }, - { - "$id": "519", - "Name": "withExcept", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/in", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.in", + "Decorators": [] + }, { - "$id": "520", - "Name": "except", - "NameInRequest": "except", - "Type": { - "$id": "521", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "440", + "Name": "is", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "441", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/is", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.is", + "Decorators": [] + }, { - "$id": "522", - "StatusCodes": [ - 204 + "$id": "442", + "Name": "lambda", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "443", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/except", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withExcept", - "Decorators": [] - }, - { - "$id": "523", - "Name": "withExec", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/lambda", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.lambda", + "Decorators": [] + }, { - "$id": "524", - "Name": "exec", - "NameInRequest": "exec", - "Type": { - "$id": "525", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "444", + "Name": "not", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "445", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/not", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.not", + "Decorators": [] + }, { - "$id": "526", - "StatusCodes": [ - 204 + "$id": "446", + "Name": "or", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "447", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/exec", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withExec", - "Decorators": [] - }, - { - "$id": "527", - "Name": "withFinally", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/or", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.or", + "Decorators": [] + }, { - "$id": "528", - "Name": "finally", - "NameInRequest": "finally", - "Type": { - "$id": "529", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "448", + "Name": "pass", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "449", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/pass", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.pass", + "Decorators": [] + }, { - "$id": "530", - "StatusCodes": [ - 204 + "$id": "450", + "Name": "raise", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "451", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/finally", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withFinally", - "Decorators": [] - }, - { - "$id": "531", - "Name": "withFor", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/raise", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.raise", + "Decorators": [] + }, { - "$id": "532", - "Name": "for", - "NameInRequest": "for", - "Type": { - "$id": "533", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "452", + "Name": "return", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "453", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/return", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.return", + "Decorators": [] + }, { - "$id": "534", - "StatusCodes": [ - 204 + "$id": "454", + "Name": "try", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "455", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/for", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withFor", - "Decorators": [] - }, - { - "$id": "535", - "Name": "withFrom", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/try", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.try", + "Decorators": [] + }, { - "$id": "536", - "Name": "from", - "NameInRequest": "from", - "Type": { - "$id": "537", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "456", + "Name": "while", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "457", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/while", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.while", + "Decorators": [] + }, + { + "$id": "458", + "Name": "with", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "459", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/with", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.with", + "Decorators": [] + }, { - "$id": "538", - "StatusCodes": [ - 204 + "$id": "460", + "Name": "yield", + "ResourceName": "Operations", + "Accessibility": "public", + "Parameters": [], + "Responses": [ + { + "$id": "461", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/from", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withFrom", - "Decorators": [] + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/operations/yield", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Operations.yield", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialWords.Operations", + "parent": { + "$ref": "172" + } }, { - "$id": "539", - "Name": "withGlobal", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ - { - "$id": "540", - "Name": "global", - "NameInRequest": "global", + "$id": "462", + "kind": "client", + "name": "Parameters", + "namespace": "SpecialWords", + "doc": "Verify reserved words as parameter name.", + "parameters": [ + { + "$id": "463", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "541", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "464", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Query", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "465", + "Type": { + "$id": "466", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "467", + "Name": "withAnd", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "468", + "Name": "and", + "NameInRequest": "and", + "Type": { + "$id": "469", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "470", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/and", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAnd", + "Decorators": [] + }, { - "$id": "542", - "StatusCodes": [ - 204 + "$id": "471", + "Name": "withAs", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "472", + "Name": "as", + "NameInRequest": "as", + "Type": { + "$id": "473", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/global", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal", - "Decorators": [] - }, - { - "$id": "543", - "Name": "withIf", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "474", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/as", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAs", + "Decorators": [] + }, { - "$id": "544", - "Name": "if", - "NameInRequest": "if", - "Type": { - "$id": "545", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "475", + "Name": "withAssert", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "476", + "Name": "assert", + "NameInRequest": "assert", + "Type": { + "$id": "477", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "478", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/assert", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAssert", + "Decorators": [] + }, { - "$id": "546", - "StatusCodes": [ - 204 + "$id": "479", + "Name": "withAsync", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "480", + "Name": "async", + "NameInRequest": "async", + "Type": { + "$id": "481", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/if", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withIf", - "Decorators": [] - }, - { - "$id": "547", - "Name": "withImport", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "482", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/async", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAsync", + "Decorators": [] + }, { - "$id": "548", - "Name": "import", - "NameInRequest": "import", - "Type": { - "$id": "549", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "483", + "Name": "withAwait", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "484", + "Name": "await", + "NameInRequest": "await", + "Type": { + "$id": "485", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "486", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/await", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withAwait", + "Decorators": [] + }, { - "$id": "550", - "StatusCodes": [ - 204 + "$id": "487", + "Name": "withBreak", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "488", + "Name": "break", + "NameInRequest": "break", + "Type": { + "$id": "489", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/import", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withImport", - "Decorators": [] - }, - { - "$id": "551", - "Name": "withIn", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "490", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/break", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withBreak", + "Decorators": [] + }, { - "$id": "552", - "Name": "in", - "NameInRequest": "in", - "Type": { - "$id": "553", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "491", + "Name": "withClass", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "492", + "Name": "class", + "NameInRequest": "class", + "Type": { + "$id": "493", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "494", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/class", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withClass", + "Decorators": [] + }, { - "$id": "554", - "StatusCodes": [ - 204 + "$id": "495", + "Name": "withConstructor", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "496", + "Name": "constructor", + "NameInRequest": "constructor", + "Type": { + "$id": "497", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/in", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withIn", - "Decorators": [] - }, - { - "$id": "555", - "Name": "withIs", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "498", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/constructor", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor", + "Decorators": [] + }, { - "$id": "556", - "Name": "is", - "NameInRequest": "is", - "Type": { - "$id": "557", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "499", + "Name": "withContinue", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "500", + "Name": "continue", + "NameInRequest": "continue", + "Type": { + "$id": "501", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "502", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/continue", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withContinue", + "Decorators": [] + }, { - "$id": "558", - "StatusCodes": [ - 204 + "$id": "503", + "Name": "withDef", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "504", + "Name": "def", + "NameInRequest": "def", + "Type": { + "$id": "505", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/is", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withIs", - "Decorators": [] - }, - { - "$id": "559", - "Name": "withLambda", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "506", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/def", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withDef", + "Decorators": [] + }, { - "$id": "560", - "Name": "lambda", - "NameInRequest": "lambda", - "Type": { - "$id": "561", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "507", + "Name": "withDel", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "508", + "Name": "del", + "NameInRequest": "del", + "Type": { + "$id": "509", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "510", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/del", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withDel", + "Decorators": [] + }, { - "$id": "562", - "StatusCodes": [ - 204 + "$id": "511", + "Name": "withElif", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "512", + "Name": "elif", + "NameInRequest": "elif", + "Type": { + "$id": "513", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/lambda", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withLambda", - "Decorators": [] - }, - { - "$id": "563", - "Name": "withNot", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "514", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/elif", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withElif", + "Decorators": [] + }, { - "$id": "564", - "Name": "not", - "NameInRequest": "not", - "Type": { - "$id": "565", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "515", + "Name": "withElse", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "516", + "Name": "else", + "NameInRequest": "else", + "Type": { + "$id": "517", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "518", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/else", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withElse", + "Decorators": [] + }, { - "$id": "566", - "StatusCodes": [ - 204 + "$id": "519", + "Name": "withExcept", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "520", + "Name": "except", + "NameInRequest": "except", + "Type": { + "$id": "521", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/not", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withNot", - "Decorators": [] - }, - { - "$id": "567", - "Name": "withOr", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "522", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/except", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withExcept", + "Decorators": [] + }, { - "$id": "568", - "Name": "or", - "NameInRequest": "or", - "Type": { - "$id": "569", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "523", + "Name": "withExec", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "524", + "Name": "exec", + "NameInRequest": "exec", + "Type": { + "$id": "525", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "526", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/exec", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withExec", + "Decorators": [] + }, { - "$id": "570", - "StatusCodes": [ - 204 + "$id": "527", + "Name": "withFinally", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "528", + "Name": "finally", + "NameInRequest": "finally", + "Type": { + "$id": "529", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/or", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withOr", - "Decorators": [] - }, - { - "$id": "571", - "Name": "withPass", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "530", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/finally", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withFinally", + "Decorators": [] + }, { - "$id": "572", - "Name": "pass", - "NameInRequest": "pass", - "Type": { - "$id": "573", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "531", + "Name": "withFor", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "532", + "Name": "for", + "NameInRequest": "for", + "Type": { + "$id": "533", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "534", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/for", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withFor", + "Decorators": [] + }, { - "$id": "574", - "StatusCodes": [ - 204 + "$id": "535", + "Name": "withFrom", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "536", + "Name": "from", + "NameInRequest": "from", + "Type": { + "$id": "537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/pass", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withPass", - "Decorators": [] - }, - { - "$id": "575", - "Name": "withRaise", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "538", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/from", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withFrom", + "Decorators": [] + }, { - "$id": "576", - "Name": "raise", - "NameInRequest": "raise", - "Type": { - "$id": "577", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "539", + "Name": "withGlobal", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "540", + "Name": "global", + "NameInRequest": "global", + "Type": { + "$id": "541", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "542", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/global", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal", + "Decorators": [] + }, { - "$id": "578", - "StatusCodes": [ - 204 + "$id": "543", + "Name": "withIf", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "544", + "Name": "if", + "NameInRequest": "if", + "Type": { + "$id": "545", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/raise", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withRaise", - "Decorators": [] - }, - { - "$id": "579", - "Name": "withReturn", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "546", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/if", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withIf", + "Decorators": [] + }, { - "$id": "580", - "Name": "return", - "NameInRequest": "return", - "Type": { - "$id": "581", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "547", + "Name": "withImport", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "548", + "Name": "import", + "NameInRequest": "import", + "Type": { + "$id": "549", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "550", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/import", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withImport", + "Decorators": [] + }, { - "$id": "582", - "StatusCodes": [ - 204 + "$id": "551", + "Name": "withIn", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "552", + "Name": "in", + "NameInRequest": "in", + "Type": { + "$id": "553", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/return", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withReturn", - "Decorators": [] - }, - { - "$id": "583", - "Name": "withTry", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "554", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/in", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withIn", + "Decorators": [] + }, { - "$id": "584", - "Name": "try", - "NameInRequest": "try", - "Type": { - "$id": "585", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "555", + "Name": "withIs", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "556", + "Name": "is", + "NameInRequest": "is", + "Type": { + "$id": "557", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "558", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/is", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withIs", + "Decorators": [] + }, { - "$id": "586", - "StatusCodes": [ - 204 + "$id": "559", + "Name": "withLambda", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "560", + "Name": "lambda", + "NameInRequest": "lambda", + "Type": { + "$id": "561", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/try", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withTry", - "Decorators": [] - }, - { - "$id": "587", - "Name": "withWhile", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "562", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/lambda", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withLambda", + "Decorators": [] + }, { - "$id": "588", - "Name": "while", - "NameInRequest": "while", - "Type": { - "$id": "589", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "563", + "Name": "withNot", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "564", + "Name": "not", + "NameInRequest": "not", + "Type": { + "$id": "565", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "566", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/not", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withNot", + "Decorators": [] + }, { - "$id": "590", - "StatusCodes": [ - 204 + "$id": "567", + "Name": "withOr", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "568", + "Name": "or", + "NameInRequest": "or", + "Type": { + "$id": "569", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/while", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withWhile", - "Decorators": [] - }, - { - "$id": "591", - "Name": "withWith", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "570", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/or", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withOr", + "Decorators": [] + }, { - "$id": "592", - "Name": "with", - "NameInRequest": "with", - "Type": { - "$id": "593", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "571", + "Name": "withPass", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "572", + "Name": "pass", + "NameInRequest": "pass", + "Type": { + "$id": "573", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "574", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/pass", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withPass", + "Decorators": [] + }, { - "$id": "594", - "StatusCodes": [ - 204 + "$id": "575", + "Name": "withRaise", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "576", + "Name": "raise", + "NameInRequest": "raise", + "Type": { + "$id": "577", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/with", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withWith", - "Decorators": [] - }, - { - "$id": "595", - "Name": "withYield", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "578", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/raise", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withRaise", + "Decorators": [] + }, { - "$id": "596", - "Name": "yield", - "NameInRequest": "yield", - "Type": { - "$id": "597", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "579", + "Name": "withReturn", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "580", + "Name": "return", + "NameInRequest": "return", + "Type": { + "$id": "581", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "582", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/return", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withReturn", + "Decorators": [] + }, { - "$id": "598", - "StatusCodes": [ - 204 + "$id": "583", + "Name": "withTry", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "584", + "Name": "try", + "NameInRequest": "try", + "Type": { + "$id": "585", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/yield", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withYield", - "Decorators": [] - }, - { - "$id": "599", - "Name": "withCancellationToken", - "ResourceName": "Parameters", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "586", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/try", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withTry", + "Decorators": [] + }, { - "$id": "600", - "Name": "cancellationToken", - "NameInRequest": "cancellationToken", - "Type": { - "$id": "601", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "587", + "Name": "withWhile", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "588", + "Name": "while", + "NameInRequest": "while", + "Type": { + "$id": "589", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "590", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/while", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withWhile", + "Decorators": [] + }, { - "$id": "602", - "StatusCodes": [ - 204 + "$id": "591", + "Name": "withWith", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "592", + "Name": "with", + "NameInRequest": "with", + "Type": { + "$id": "593", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/special-words/parameters/cancellationToken", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "SpecialWords.Parameters.withCancellationToken", - "Decorators": [] - } - ], - "Protocol": { - "$id": "603" - }, - "Parent": "SpecialWordsClient", - "Parameters": [ - { - "$id": "604", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "605", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "606", - "Type": { - "$id": "607", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "594", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/with", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withWith", + "Decorators": [] }, - "Value": "http://localhost:3000" + { + "$id": "595", + "Name": "withYield", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "596", + "Name": "yield", + "NameInRequest": "yield", + "Type": { + "$id": "597", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "598", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/yield", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withYield", + "Decorators": [] + }, + { + "$id": "599", + "Name": "withCancellationToken", + "ResourceName": "Parameters", + "Accessibility": "public", + "Parameters": [ + { + "$id": "600", + "Name": "cancellationToken", + "NameInRequest": "cancellationToken", + "Type": { + "$id": "601", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "602", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/special-words/parameters/cancellationToken", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "SpecialWords.Parameters.withCancellationToken", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "SpecialWords.Parameters", + "parent": { + "$ref": "172" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "SpecialWords.Parameters" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json index 2637282f38a..3bf8e148685 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json @@ -76,21 +76,18 @@ "Clients": [ { "$id": "11", - "Name": "ArrayClient", - "Namespace": "Type.Array", - "Doc": "Illustrates various types of arrays.", - "Operations": [], - "Protocol": { - "$id": "12" - }, - "Parameters": [ + "kind": "client", + "name": "ArrayClient", + "namespace": "Type.Array", + "doc": "Illustrates various types of arrays.", + "parameters": [ { - "$id": "13", + "$id": "12", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "14", + "$id": "13", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -105,9 +102,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "15", + "$id": "14", "Type": { - "$id": "16", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -116,2861 +113,2864 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array" - }, - { - "$id": "17", - "Name": "Int32Value", - "Namespace": "Type.Array", - "Doc": "Array of int32 values", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array", + "children": [ { - "$id": "18", - "Name": "get", - "ResourceName": "Int32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "19", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "16", + "kind": "client", + "name": "Int32Value", + "namespace": "Type.Array", + "doc": "Array of int32 values", + "parameters": [ + { + "$id": "17", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "20", - "kind": "constant", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "18", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "19", + "Type": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "21", + "Name": "get", + "ResourceName": "Int32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "22", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "23", + "kind": "constant", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "25", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "26", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "27", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/int32", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.Int32Value.get", + "Decorators": [] + }, { - "$id": "22", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "23", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "24", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "$id": "28", + "Name": "put", + "ResourceName": "Int32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "29", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "30", + "kind": "constant", + "valueType": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "32", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "33", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "34", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "35", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/int32", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.Int32Value.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/int32", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.Int32Value.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.Int32Value", + "parent": { + "$ref": "11" + } }, { - "$id": "25", - "Name": "put", - "ResourceName": "Int32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "26", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "27", - "kind": "constant", - "valueType": { - "$id": "28", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "36", + "kind": "client", + "name": "Int64Value", + "namespace": "Type.Array", + "doc": "Array of int64 values", + "parameters": [ { - "$id": "29", - "Name": "body", - "NameInRequest": "body", + "$id": "37", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "30", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "31", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "38", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "39", + "Type": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "41", + "Name": "get", + "ResourceName": "Int64Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "42", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "43", + "kind": "constant", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "45", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "46", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "47", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/int64", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.Int64Value.get", + "Decorators": [] + }, { - "$id": "32", - "StatusCodes": [ - 204 + "$id": "48", + "Name": "put", + "ResourceName": "Int64Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "49", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "50", + "kind": "constant", + "valueType": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "52", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "53", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "54", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "55", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/int64", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.Int64Value.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/int32", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.Int32Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "33" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "34", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "35", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "36", - "Type": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.Int64Value", + "parent": { + "$ref": "11" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.Int32Value" - }, - { - "$id": "38", - "Name": "Int64Value", - "Namespace": "Type.Array", - "Doc": "Array of int64 values", - "Operations": [ + }, { - "$id": "39", - "Name": "get", - "ResourceName": "Int64Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "40", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "56", + "kind": "client", + "name": "BooleanValue", + "namespace": "Type.Array", + "doc": "Array of boolean values", + "parameters": [ + { + "$id": "57", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "41", - "kind": "constant", - "valueType": { - "$id": "42", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "58", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "59", + "Type": { + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "43", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "44", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "45", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] + "$id": "61", + "Name": "get", + "ResourceName": "BooleanValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "62", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "63", + "kind": "constant", + "valueType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "65", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "66", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "67", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/boolean", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.BooleanValue.get", + "Decorators": [] + }, + { + "$id": "68", + "Name": "put", + "ResourceName": "BooleanValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "69", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "70", + "kind": "constant", + "valueType": { + "$id": "71", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "72", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "73", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "74", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "75", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/boolean", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.BooleanValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/int64", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.Int64Value.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.BooleanValue", + "parent": { + "$ref": "11" + } }, { - "$id": "46", - "Name": "put", - "ResourceName": "Int64Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "47", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "76", + "kind": "client", + "name": "StringValue", + "namespace": "Type.Array", + "doc": "Array of string values", + "parameters": [ + { + "$id": "77", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "48", - "kind": "constant", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "78", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "79", + "Type": { + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "81", + "Name": "get", + "ResourceName": "StringValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "82", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "83", + "kind": "constant", + "valueType": { + "$id": "84", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "85", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "86", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.StringValue.get", + "Decorators": [] }, { - "$id": "50", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "51", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "52", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] + "$id": "88", + "Name": "put", + "ResourceName": "StringValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "89", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "90", + "kind": "constant", + "valueType": { + "$id": "91", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "92", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "93", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "95", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/string", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.StringValue.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.StringValue", + "parent": { + "$ref": "11" + } + }, + { + "$id": "96", + "kind": "client", + "name": "Float32Value", + "namespace": "Type.Array", + "doc": "Array of float values", + "parameters": [ + { + "$id": "97", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "98", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "99", + "Type": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "101", + "Name": "get", + "ResourceName": "Float32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "102", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "103", + "kind": "constant", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "105", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "106", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "107", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/float32", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.Float32Value.get", + "Decorators": [] + }, { - "$id": "53", - "StatusCodes": [ - 204 + "$id": "108", + "Name": "put", + "ResourceName": "Float32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "109", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "110", + "kind": "constant", + "valueType": { + "$id": "111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "112", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "113", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "114", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "115", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/float32", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.Float32Value.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/int64", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.Int64Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "54" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "55", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "56", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "57", - "Type": { - "$id": "58", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.Float32Value", + "parent": { + "$ref": "11" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.Int64Value" - }, - { - "$id": "59", - "Name": "BooleanValue", - "Namespace": "Type.Array", - "Doc": "Array of boolean values", - "Operations": [ + }, { - "$id": "60", - "Name": "get", - "ResourceName": "BooleanValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "61", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "116", + "kind": "client", + "name": "DatetimeValue", + "namespace": "Type.Array", + "doc": "Array of datetime values", + "parameters": [ + { + "$id": "117", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "62", - "kind": "constant", - "valueType": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "118", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "119", + "Type": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "121", + "Name": "get", + "ResourceName": "DatetimeValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "122", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "123", + "kind": "constant", + "valueType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "125", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "126", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "127", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/datetime", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.DatetimeValue.get", + "Decorators": [] + }, { - "$id": "64", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "65", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "66", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] + "$id": "129", + "Name": "put", + "ResourceName": "DatetimeValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "130", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "131", + "kind": "constant", + "valueType": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "133", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "134", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "135", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "137", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/datetime", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.DatetimeValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/boolean", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.BooleanValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.DatetimeValue", + "parent": { + "$ref": "11" + } }, { - "$id": "67", - "Name": "put", - "ResourceName": "BooleanValue", - "Accessibility": "public", - "Parameters": [ + "$id": "138", + "kind": "client", + "name": "DurationValue", + "namespace": "Type.Array", + "doc": "Array of duration values", + "parameters": [ { - "$id": "68", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "139", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "69", - "kind": "constant", - "valueType": { - "$id": "70", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "140", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "141", + "Type": { + "$id": "142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "143", + "Name": "get", + "ResourceName": "DurationValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "144", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "145", + "kind": "constant", + "valueType": { + "$id": "146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "147", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "148", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "149", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "150", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/duration", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.DurationValue.get", + "Decorators": [] }, { - "$id": "71", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "72", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "73", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] + "$id": "151", + "Name": "put", + "ResourceName": "DurationValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "152", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "153", + "kind": "constant", + "valueType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "155", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "156", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "157", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "158", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "159", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/duration", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.DurationValue.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.DurationValue", + "parent": { + "$ref": "11" + } + }, + { + "$id": "160", + "kind": "client", + "name": "UnknownValue", + "namespace": "Type.Array", + "doc": "Array of unknown values", + "parameters": [ + { + "$id": "161", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "162", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "163", + "Type": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "165", + "Name": "get", + "ResourceName": "UnknownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "166", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "167", + "kind": "constant", + "valueType": { + "$id": "168", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "169", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "170", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "171", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/unknown", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.UnknownValue.get", + "Decorators": [] + }, { - "$id": "74", - "StatusCodes": [ - 204 + "$id": "172", + "Name": "put", + "ResourceName": "UnknownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "173", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "174", + "kind": "constant", + "valueType": { + "$id": "175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "176", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "177", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "178", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "179", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/unknown", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.UnknownValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/boolean", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.BooleanValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "75" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "76", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "77", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "78", - "Type": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.UnknownValue", + "parent": { + "$ref": "11" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.BooleanValue" - }, - { - "$id": "80", - "Name": "StringValue", - "Namespace": "Type.Array", - "Doc": "Array of string values", - "Operations": [ + }, { - "$id": "81", - "Name": "get", - "ResourceName": "StringValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "82", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "180", + "kind": "client", + "name": "ModelValue", + "namespace": "Type.Array", + "doc": "Array of model values", + "parameters": [ + { + "$id": "181", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "83", - "kind": "constant", - "valueType": { - "$id": "84", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "182", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "183", + "Type": { + "$id": "184", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "185", + "Name": "get", + "ResourceName": "ModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "186", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "187", + "kind": "constant", + "valueType": { + "$id": "188", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "189", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "190", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "2" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/model", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.ModelValue.get", + "Decorators": [] + }, { - "$id": "85", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "86", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "191", + "Name": "put", + "ResourceName": "ModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "192", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "193", + "kind": "constant", + "valueType": { + "$id": "194", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "195", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "196", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "2" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "197", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/model", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.ModelValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.StringValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.ModelValue", + "parent": { + "$ref": "11" + } }, { - "$id": "88", - "Name": "put", - "ResourceName": "StringValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "89", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "198", + "kind": "client", + "name": "NullableFloatValue", + "namespace": "Type.Array", + "doc": "Array of nullable float values", + "parameters": [ + { + "$id": "199", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "90", - "kind": "constant", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "200", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "92", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "93", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "94", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "201", + "Type": { + "$id": "202", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "203", + "Name": "get", + "ResourceName": "NullableFloatValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "204", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "205", + "kind": "constant", + "valueType": { + "$id": "206", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "207", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "208", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "209", + "kind": "nullable", + "type": { + "$id": "210", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-float", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableFloatValue.get", + "Decorators": [] + }, { - "$id": "95", - "StatusCodes": [ - 204 + "$id": "211", + "Name": "put", + "ResourceName": "NullableFloatValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "212", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "213", + "kind": "constant", + "valueType": { + "$id": "214", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "215", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "216", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "209" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "217", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-float", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableFloatValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.StringValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "96" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "97", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "98", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "99", - "Type": { - "$id": "100", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue", + "parent": { + "$ref": "11" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.StringValue" - }, - { - "$id": "101", - "Name": "Float32Value", - "Namespace": "Type.Array", - "Doc": "Array of float values", - "Operations": [ + }, { - "$id": "102", - "Name": "get", - "ResourceName": "Float32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "103", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "218", + "kind": "client", + "name": "NullableInt32Value", + "namespace": "Type.Array", + "doc": "Array of nullable int32 values", + "parameters": [ + { + "$id": "219", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "104", - "kind": "constant", - "valueType": { - "$id": "105", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "220", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "221", + "Type": { + "$id": "222", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "223", + "Name": "get", + "ResourceName": "NullableInt32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "224", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "225", + "kind": "constant", + "valueType": { + "$id": "226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "227", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "228", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "229", + "kind": "nullable", + "type": { + "$id": "230", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-int32", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableInt32Value.get", + "Decorators": [] + }, { - "$id": "106", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "107", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "108", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] + "$id": "231", + "Name": "put", + "ResourceName": "NullableInt32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "232", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "233", + "kind": "constant", + "valueType": { + "$id": "234", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "235", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "236", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "229" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "237", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-int32", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableInt32Value.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/float32", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.Float32Value.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value", + "parent": { + "$ref": "11" + } }, { - "$id": "109", - "Name": "put", - "ResourceName": "Float32Value", - "Accessibility": "public", - "Parameters": [ + "$id": "238", + "kind": "client", + "name": "NullableBooleanValue", + "namespace": "Type.Array", + "doc": "Array of nullable boolean values", + "parameters": [ { - "$id": "110", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "239", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "111", - "kind": "constant", - "valueType": { - "$id": "112", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "240", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "241", + "Type": { + "$id": "242", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "243", + "Name": "get", + "ResourceName": "NullableBooleanValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "244", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "245", + "kind": "constant", + "valueType": { + "$id": "246", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "247", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "248", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "249", + "kind": "nullable", + "type": { + "$id": "250", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-boolean", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get", + "Decorators": [] }, { - "$id": "113", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "114", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "115", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] + "$id": "251", + "Name": "put", + "ResourceName": "NullableBooleanValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "252", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "253", + "kind": "constant", + "valueType": { + "$id": "254", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "255", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "256", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "249" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "257", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-boolean", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue", + "parent": { + "$ref": "11" + } + }, + { + "$id": "258", + "kind": "client", + "name": "NullableStringValue", + "namespace": "Type.Array", + "doc": "Array of nullable string values", + "parameters": [ + { + "$id": "259", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "260", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "261", + "Type": { + "$id": "262", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "116", - "StatusCodes": [ - 204 + "$id": "263", + "Name": "get", + "ResourceName": "NullableStringValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "264", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "265", + "kind": "constant", + "valueType": { + "$id": "266", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/float32", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.Float32Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "117" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "118", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "119", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "120", - "Type": { - "$id": "121", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.Float32Value" - }, - { - "$id": "122", - "Name": "DatetimeValue", - "Namespace": "Type.Array", - "Doc": "Array of datetime values", - "Operations": [ - { - "$id": "123", - "Name": "get", - "ResourceName": "DatetimeValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "124", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "125", - "kind": "constant", - "valueType": { - "$id": "126", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "127", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "128", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "129", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "130", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/datetime", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.DatetimeValue.get", - "Decorators": [] - }, - { - "$id": "131", - "Name": "put", - "ResourceName": "DatetimeValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "132", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "133", - "kind": "constant", - "valueType": { - "$id": "134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "135", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "136", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "137", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "138", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "139", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/datetime", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.DatetimeValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "140" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "141", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "142", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "143", - "Type": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.DatetimeValue" - }, - { - "$id": "145", - "Name": "DurationValue", - "Namespace": "Type.Array", - "Doc": "Array of duration values", - "Operations": [ - { - "$id": "146", - "Name": "get", - "ResourceName": "DurationValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "147", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "148", - "kind": "constant", - "valueType": { - "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "150", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "151", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "152", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "153", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/duration", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.DurationValue.get", - "Decorators": [] - }, - { - "$id": "154", - "Name": "put", - "ResourceName": "DurationValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "155", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "156", - "kind": "constant", - "valueType": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "158", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "159", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "160", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "161", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "162", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/duration", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.DurationValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "163" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "164", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "165", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "166", - "Type": { - "$id": "167", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.DurationValue" - }, - { - "$id": "168", - "Name": "UnknownValue", - "Namespace": "Type.Array", - "Doc": "Array of unknown values", - "Operations": [ - { - "$id": "169", - "Name": "get", - "ResourceName": "UnknownValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "170", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "171", - "kind": "constant", - "valueType": { - "$id": "172", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "173", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "174", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "175", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/unknown", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.UnknownValue.get", - "Decorators": [] - }, - { - "$id": "176", - "Name": "put", - "ResourceName": "UnknownValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "177", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "178", - "kind": "constant", - "valueType": { - "$id": "179", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "180", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "181", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "182", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "183", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/unknown", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.UnknownValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "184" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "185", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "186", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "187", - "Type": { - "$id": "188", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.UnknownValue" - }, - { - "$id": "189", - "Name": "ModelValue", - "Namespace": "Type.Array", - "Doc": "Array of model values", - "Operations": [ - { - "$id": "190", - "Name": "get", - "ResourceName": "ModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "191", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "192", - "kind": "constant", - "valueType": { - "$id": "193", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "194", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "195", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "2" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/model", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.ModelValue.get", - "Decorators": [] - }, - { - "$id": "196", - "Name": "put", - "ResourceName": "ModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "197", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "198", - "kind": "constant", - "valueType": { - "$id": "199", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "200", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "201", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "2" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "202", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/model", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.ModelValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "203" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "204", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "205", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "206", - "Type": { - "$id": "207", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.ModelValue" - }, - { - "$id": "208", - "Name": "NullableFloatValue", - "Namespace": "Type.Array", - "Doc": "Array of nullable float values", - "Operations": [ - { - "$id": "209", - "Name": "get", - "ResourceName": "NullableFloatValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "210", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "211", - "kind": "constant", - "valueType": { - "$id": "212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "213", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "214", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "215", - "kind": "nullable", - "type": { - "$id": "216", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "namespace": "" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-float", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableFloatValue.get", - "Decorators": [] - }, - { - "$id": "217", - "Name": "put", - "ResourceName": "NullableFloatValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "218", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "219", - "kind": "constant", - "valueType": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "221", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "222", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "215" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "223", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-float", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableFloatValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "224" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "225", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "226", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "227", - "Type": { - "$id": "228", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.NullableFloatValue" - }, - { - "$id": "229", - "Name": "NullableInt32Value", - "Namespace": "Type.Array", - "Doc": "Array of nullable int32 values", - "Operations": [ - { - "$id": "230", - "Name": "get", - "ResourceName": "NullableInt32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "231", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "232", - "kind": "constant", - "valueType": { - "$id": "233", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "234", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "235", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "236", - "kind": "nullable", - "type": { - "$id": "237", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "namespace": "" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-int32", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableInt32Value.get", - "Decorators": [] - }, - { - "$id": "238", - "Name": "put", - "ResourceName": "NullableInt32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "239", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "242", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "243", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "236" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "244", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-int32", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableInt32Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "245" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "246", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "247", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "248", - "Type": { - "$id": "249", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "267", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "268", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "269", + "kind": "nullable", + "type": { + "$id": "270", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableStringValue.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.NullableInt32Value" - }, - { - "$id": "250", - "Name": "NullableBooleanValue", - "Namespace": "Type.Array", - "Doc": "Array of nullable boolean values", - "Operations": [ - { - "$id": "251", - "Name": "get", - "ResourceName": "NullableBooleanValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "252", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "253", - "kind": "constant", - "valueType": { - "$id": "254", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ { - "$id": "255", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "256", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "257", - "kind": "nullable", - "type": { - "$id": "258", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "271", + "Name": "put", + "ResourceName": "NullableStringValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "272", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "273", + "kind": "constant", + "valueType": { + "$id": "274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "namespace": "" + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "275", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "276", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "269" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "277", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-string", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableStringValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-boolean", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.NullableStringValue", + "parent": { + "$ref": "11" + } }, { - "$id": "259", - "Name": "put", - "ResourceName": "NullableBooleanValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "260", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "261", - "kind": "constant", - "valueType": { - "$id": "262", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "263", - "Name": "body", - "NameInRequest": "body", + "$id": "278", + "kind": "client", + "name": "NullableModelValue", + "namespace": "Type.Array", + "doc": "Array of nullable model values", + "parameters": [ + { + "$id": "279", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "264", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "257" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "280", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "265", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-boolean", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "266" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "267", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "268", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "269", - "Type": { - "$id": "270", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.NullableBooleanValue" - }, - { - "$id": "271", - "Name": "NullableStringValue", - "Namespace": "Type.Array", - "Doc": "Array of nullable string values", - "Operations": [ - { - "$id": "272", - "Name": "get", - "ResourceName": "NullableStringValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "273", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "274", - "kind": "constant", - "valueType": { - "$id": "275", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "281", + "Type": { + "$id": "282", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ - { - "$id": "276", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "277", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "278", - "kind": "nullable", - "type": { - "$id": "279", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "operations": [ + { + "$id": "283", + "Name": "get", + "ResourceName": "NullableModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "284", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "285", + "kind": "constant", + "valueType": { + "$id": "286", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "namespace": "" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableStringValue.get", - "Decorators": [] - }, - { - "$id": "280", - "Name": "put", - "ResourceName": "NullableStringValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "281", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "282", - "kind": "constant", - "valueType": { - "$id": "283", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "284", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "285", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "278" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "286", - "StatusCodes": [ - 204 + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableStringValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "287" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "288", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "289", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "290", - "Type": { - "$id": "291", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "287", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "288", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "289", + "kind": "nullable", + "type": { + "$ref": "2" + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-model", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableModelValue.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.NullableStringValue" - }, - { - "$id": "292", - "Name": "NullableModelValue", - "Namespace": "Type.Array", - "Doc": "Array of nullable model values", - "Operations": [ - { - "$id": "293", - "Name": "get", - "ResourceName": "NullableModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "294", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "295", - "kind": "constant", - "valueType": { - "$id": "296", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ { - "$id": "297", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "298", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "299", - "kind": "nullable", - "type": { - "$ref": "2" + "$id": "290", + "Name": "put", + "ResourceName": "NullableModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "291", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "292", + "kind": "constant", + "valueType": { + "$id": "293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, - "namespace": "" + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + { + "$id": "294", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "295", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "289" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "296", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/array/nullable-model", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-model", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableModelValue.get", - "Decorators": [] - }, - { - "$id": "300", - "Name": "put", - "ResourceName": "NullableModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "301", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "302", - "kind": "constant", - "valueType": { - "$id": "303", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "304", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "305", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "299" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "306", - "StatusCodes": [ - 204 ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Array.NullableModelValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/array/nullable-model", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Array.NullableModelValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "307" - }, - "Parent": "ArrayClient", - "Parameters": [ - { - "$id": "308", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "309", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "310", - "Type": { - "$id": "311", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Array.NullableModelValue", + "parent": { + "$ref": "11" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Array.NullableModelValue" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json index 690599910d6..310f4cd7050 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json @@ -81,21 +81,18 @@ "Clients": [ { "$id": "12", - "Name": "DictionaryClient", - "Namespace": "Type.Dictionary", - "Doc": "Illustrates various of dictionaries.", - "Operations": [], - "Protocol": { - "$id": "13" - }, - "Parameters": [ + "kind": "client", + "name": "DictionaryClient", + "namespace": "Type.Dictionary", + "doc": "Illustrates various of dictionaries.", + "parameters": [ { - "$id": "14", + "$id": "13", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "15", + "$id": "14", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -110,9 +107,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "16", + "$id": "15", "Type": { - "$id": "17", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -121,2357 +118,2360 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary" - }, - { - "$id": "18", - "Name": "Int32Value", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of int32 values", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary", + "children": [ { - "$id": "19", - "Name": "get", - "ResourceName": "Int32Value", - "Accessibility": "public", - "Parameters": [ + "$id": "17", + "kind": "client", + "name": "Int32Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of int32 values", + "parameters": [ { - "$id": "20", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "18", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "21", - "kind": "constant", - "valueType": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "19", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "20", + "Type": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "23", - "StatusCodes": [ - 200 + "$id": "22", + "Name": "get", + "ResourceName": "Int32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "23", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "24", + "kind": "constant", + "valueType": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "24", - "kind": "dict", - "keyType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { + "Responses": [ + { "$id": "26", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "27", + "kind": "dict", + "keyType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "29", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/dictionary/int32", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.Int32Value.get", + "Decorators": [] + }, + { + "$id": "30", + "Name": "put", + "ResourceName": "Int32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "31", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "32", + "kind": "constant", + "valueType": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "34", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "35", + "kind": "dict", + "keyType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "37", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "38", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/dictionary/int32", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.Int32Value.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/dictionary/int32", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.Int32Value.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value", + "parent": { + "$ref": "12" + } }, { - "$id": "27", - "Name": "put", - "ResourceName": "Int32Value", - "Accessibility": "public", - "Parameters": [ + "$id": "39", + "kind": "client", + "name": "Int64Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of int64 values", + "parameters": [ { - "$id": "28", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "40", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "29", - "kind": "constant", - "valueType": { - "$id": "30", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "41", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "31", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "32", - "kind": "dict", - "keyType": { - "$id": "33", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "42", + "Type": { + "$id": "43", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "34", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "44", + "Name": "get", + "ResourceName": "Int64Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "45", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "46", + "kind": "constant", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "48", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "49", + "kind": "dict", + "keyType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "51", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/dictionary/int64", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.Int64Value.get", + "Decorators": [] + }, { - "$id": "35", - "StatusCodes": [ - 204 + "$id": "52", + "Name": "put", + "ResourceName": "Int64Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "53", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "54", + "kind": "constant", + "valueType": { + "$id": "55", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "56", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "57", + "kind": "dict", + "keyType": { + "$id": "58", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "59", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "60", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/dictionary/int64", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.Int64Value.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/dictionary/int32", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.Int32Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "36" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "37", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "38", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "39", - "Type": { - "$id": "40", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value", + "parent": { + "$ref": "12" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.Int32Value" - }, - { - "$id": "41", - "Name": "Int64Value", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of int64 values", - "Operations": [ + }, { - "$id": "42", - "Name": "get", - "ResourceName": "Int64Value", - "Accessibility": "public", - "Parameters": [ + "$id": "61", + "kind": "client", + "name": "BooleanValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of boolean values", + "parameters": [ { - "$id": "43", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "62", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "44", - "kind": "constant", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "63", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "64", + "Type": { + "$id": "65", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "46", - "StatusCodes": [ - 200 + "$id": "66", + "Name": "get", + "ResourceName": "BooleanValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "67", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "68", + "kind": "constant", + "valueType": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "47", - "kind": "dict", - "keyType": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "49", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "70", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "71", + "kind": "dict", + "keyType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "73", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/dictionary/boolean", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get", + "Decorators": [] + }, + { + "$id": "74", + "Name": "put", + "ResourceName": "BooleanValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "75", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "76", + "kind": "constant", + "valueType": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "78", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "79", + "kind": "dict", + "keyType": { + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "81", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "82", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/dictionary/boolean", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/dictionary/int64", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.Int64Value.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue", + "parent": { + "$ref": "12" + } }, { - "$id": "50", - "Name": "put", - "ResourceName": "Int64Value", - "Accessibility": "public", - "Parameters": [ + "$id": "83", + "kind": "client", + "name": "StringValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of string values", + "parameters": [ { - "$id": "51", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "84", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "52", - "kind": "constant", - "valueType": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "85", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "54", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "55", - "kind": "dict", - "keyType": { - "$id": "56", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "86", + "Type": { + "$id": "87", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "valueType": { - "$id": "57", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "88", + "Name": "get", + "ResourceName": "StringValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "89", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "90", + "kind": "constant", + "valueType": { + "$id": "91", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "92", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "93", + "kind": "dict", + "keyType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/dictionary/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.StringValue.get", + "Decorators": [] + }, { - "$id": "58", - "StatusCodes": [ - 204 + "$id": "96", + "Name": "put", + "ResourceName": "StringValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "97", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "98", + "kind": "constant", + "valueType": { + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "100", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "101", + "kind": "dict", + "keyType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "103", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "104", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/dictionary/string", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.StringValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/dictionary/int64", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.Int64Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "59" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "60", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "61", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "62", - "Type": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.StringValue", + "parent": { + "$ref": "12" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.Int64Value" - }, - { - "$id": "64", - "Name": "BooleanValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of boolean values", - "Operations": [ + }, { - "$id": "65", - "Name": "get", - "ResourceName": "BooleanValue", - "Accessibility": "public", - "Parameters": [ + "$id": "105", + "kind": "client", + "name": "Float32Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of float values", + "parameters": [ { - "$id": "66", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "106", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "67", - "kind": "constant", - "valueType": { - "$id": "68", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "107", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "108", + "Type": { + "$id": "109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "69", - "StatusCodes": [ - 200 + "$id": "110", + "Name": "get", + "ResourceName": "Float32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "111", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "112", + "kind": "constant", + "valueType": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "70", - "kind": "dict", - "keyType": { - "$id": "71", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "72", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "114", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "115", + "kind": "dict", + "keyType": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "117", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/dictionary/float32", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.Float32Value.get", + "Decorators": [] + }, + { + "$id": "118", + "Name": "put", + "ResourceName": "Float32Value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "119", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "120", + "kind": "constant", + "valueType": { + "$id": "121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "122", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "123", + "kind": "dict", + "keyType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "125", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "126", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/dictionary/float32", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.Float32Value.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/dictionary/boolean", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value", + "parent": { + "$ref": "12" + } }, { - "$id": "73", - "Name": "put", - "ResourceName": "BooleanValue", - "Accessibility": "public", - "Parameters": [ + "$id": "127", + "kind": "client", + "name": "DatetimeValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of datetime values", + "parameters": [ { - "$id": "74", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "128", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "75", - "kind": "constant", - "valueType": { - "$id": "76", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "129", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "77", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "78", - "kind": "dict", - "keyType": { - "$id": "79", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "130", + "Type": { + "$id": "131", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "80", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "81", - "StatusCodes": [ - 204 + "$id": "132", + "Name": "get", + "ResourceName": "DatetimeValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "133", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "134", + "kind": "constant", + "valueType": { + "$id": "135", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/dictionary/boolean", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "82" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "83", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "84", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "85", - "Type": { - "$id": "86", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.BooleanValue" - }, - { - "$id": "87", - "Name": "StringValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of string values", - "Operations": [ - { - "$id": "88", - "Name": "get", - "ResourceName": "StringValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "89", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "90", - "kind": "constant", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "92", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "93", - "kind": "dict", - "keyType": { - "$id": "94", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/dictionary/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.StringValue.get", - "Decorators": [] - }, - { - "$id": "96", - "Name": "put", - "ResourceName": "StringValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "97", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "98", - "kind": "constant", - "valueType": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "100", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "101", - "kind": "dict", - "keyType": { - "$id": "102", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "103", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "104", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/dictionary/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.StringValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "105" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "106", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "107", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "108", - "Type": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.StringValue" - }, - { - "$id": "110", - "Name": "Float32Value", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of float values", - "Operations": [ - { - "$id": "111", - "Name": "get", - "ResourceName": "Float32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "112", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "113", - "kind": "constant", - "valueType": { - "$id": "114", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "115", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "116", - "kind": "dict", - "keyType": { - "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "118", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/dictionary/float32", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.Float32Value.get", - "Decorators": [] - }, - { - "$id": "119", - "Name": "put", - "ResourceName": "Float32Value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "120", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "121", - "kind": "constant", - "valueType": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "123", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "124", - "kind": "dict", - "keyType": { - "$id": "125", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "126", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "127", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/dictionary/float32", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.Float32Value.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "128" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "129", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "130", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "131", - "Type": { - "$id": "132", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.Float32Value" - }, - { - "$id": "133", - "Name": "DatetimeValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of datetime values", - "Operations": [ - { - "$id": "134", - "Name": "get", - "ResourceName": "DatetimeValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "135", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "136", - "kind": "constant", - "valueType": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "138", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "139", - "kind": "dict", - "keyType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "141", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/dictionary/datetime", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get", - "Decorators": [] - }, - { - "$id": "143", - "Name": "put", - "ResourceName": "DatetimeValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "144", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "145", - "kind": "constant", - "valueType": { - "$id": "146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "147", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "148", - "kind": "dict", - "keyType": { - "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "150", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "151", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "Responses": [ + { + "$id": "136", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "137", + "kind": "dict", + "keyType": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "139", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "152", - "StatusCodes": [ - 204 + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/dictionary/datetime", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "153" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "154", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "155", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "156", - "Type": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/dictionary/datetime", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.DatetimeValue" - }, - { - "$id": "158", - "Name": "DurationValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of duration values", - "Operations": [ - { - "$id": "159", - "Name": "get", - "ResourceName": "DurationValue", - "Accessibility": "public", - "Parameters": [ { - "$id": "160", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "161", - "kind": "constant", - "valueType": { - "$id": "162", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "163", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "164", - "kind": "dict", - "keyType": { - "$id": "165", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "166", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "167", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "141", + "Name": "put", + "ResourceName": "DatetimeValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "142", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "143", + "kind": "constant", + "valueType": { + "$id": "144", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/dictionary/duration", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.DurationValue.get", - "Decorators": [] - }, - { - "$id": "168", - "Name": "put", - "ResourceName": "DurationValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "169", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "170", - "kind": "constant", - "valueType": { - "$id": "171", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "172", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "173", - "kind": "dict", - "keyType": { - "$id": "174", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "175", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "176", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "145", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "146", + "kind": "dict", + "keyType": { + "$id": "147", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "148", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "149", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "177", - "StatusCodes": [ - 204 + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/dictionary/duration", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.DurationValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "178" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "179", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "180", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "181", - "Type": { - "$id": "182", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.DurationValue" - }, - { - "$id": "183", - "Name": "UnknownValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of unknown values", - "Operations": [ - { - "$id": "184", - "Name": "get", - "ResourceName": "UnknownValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "185", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "186", - "kind": "constant", - "valueType": { - "$id": "187", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "188", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "150", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "BodyType": { - "$id": "189", - "kind": "dict", - "keyType": { - "$id": "190", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "191", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/dictionary/datetime", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/dictionary/unknown", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get", - "Decorators": [] - }, - { - "$id": "192", - "Name": "put", - "ResourceName": "UnknownValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "193", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "194", - "kind": "constant", - "valueType": { - "$id": "195", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "196", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "197", - "kind": "dict", - "keyType": { - "$id": "198", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "199", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "200", - "StatusCodes": [ - 204 ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/dictionary/unknown", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "201" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "202", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "203", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "204", - "Type": { - "$id": "205", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue", + "parent": { + "$ref": "12" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.UnknownValue" - }, - { - "$id": "206", - "Name": "ModelValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of model values", - "Operations": [ - { - "$id": "207", - "Name": "get", - "ResourceName": "ModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "208", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "209", - "kind": "constant", - "valueType": { - "$id": "210", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "211", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$id": "212", - "kind": "dict", - "keyType": { - "$id": "213", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "2" - }, - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/dictionary/model", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.ModelValue.get", - "Decorators": [] }, - { - "$id": "214", - "Name": "put", - "ResourceName": "ModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "215", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "216", - "kind": "constant", - "valueType": { - "$id": "217", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + { + "$id": "151", + "kind": "client", + "name": "DurationValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of duration values", + "parameters": [ { - "$id": "218", - "Name": "body", - "NameInRequest": "body", + "$id": "152", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "219", - "kind": "dict", - "keyType": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "2" - }, - "decorators": [] + "$id": "153", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "154", + "Type": { + "$id": "155", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "156", + "Name": "get", + "ResourceName": "DurationValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "157", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "158", + "kind": "constant", + "valueType": { + "$id": "159", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "160", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "161", + "kind": "dict", + "keyType": { + "$id": "162", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "163", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/dictionary/duration", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.DurationValue.get", + "Decorators": [] + }, { - "$id": "221", - "StatusCodes": [ - 204 + "$id": "165", + "Name": "put", + "ResourceName": "DurationValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "166", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "167", + "kind": "constant", + "valueType": { + "$id": "168", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "169", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "170", + "kind": "dict", + "keyType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "172", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "173", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "174", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/dictionary/duration", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.DurationValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/dictionary/model", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.ModelValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "222" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "223", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "224", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "225", - "Type": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue", + "parent": { + "$ref": "12" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.ModelValue" - }, - { - "$id": "227", - "Name": "RecursiveModelValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of model values", - "Operations": [ + }, { - "$id": "228", - "Name": "get", - "ResourceName": "RecursiveModelValue", - "Accessibility": "public", - "Parameters": [ + "$id": "175", + "kind": "client", + "name": "UnknownValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of unknown values", + "parameters": [ { - "$id": "229", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "176", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "230", - "kind": "constant", - "valueType": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "177", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "178", + "Type": { + "$id": "179", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "232", - "StatusCodes": [ - 200 + "$id": "180", + "Name": "get", + "ResourceName": "UnknownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "181", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "182", + "kind": "constant", + "valueType": { + "$id": "183", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "233", - "kind": "dict", - "keyType": { - "$id": "234", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "2" - }, - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "184", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "185", + "kind": "dict", + "keyType": { + "$id": "186", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "187", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/dictionary/unknown", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get", + "Decorators": [] + }, + { + "$id": "188", + "Name": "put", + "ResourceName": "UnknownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "189", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "190", + "kind": "constant", + "valueType": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "192", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "193", + "kind": "dict", + "keyType": { + "$id": "194", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "195", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "196", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/dictionary/unknown", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/dictionary/model/recursive", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue", + "parent": { + "$ref": "12" + } }, { - "$id": "235", - "Name": "put", - "ResourceName": "RecursiveModelValue", - "Accessibility": "public", - "Parameters": [ + "$id": "197", + "kind": "client", + "name": "ModelValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of model values", + "parameters": [ { - "$id": "236", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "198", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "237", - "kind": "constant", - "valueType": { - "$id": "238", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "199", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "239", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "240", - "kind": "dict", - "keyType": { - "$id": "241", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "200", + "Type": { + "$id": "201", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "valueType": { - "$ref": "2" - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "242", - "StatusCodes": [ - 204 + "$id": "202", + "Name": "get", + "ResourceName": "ModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "203", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "204", + "kind": "constant", + "valueType": { + "$id": "205", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "206", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "207", + "kind": "dict", + "keyType": { + "$id": "208", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2" + }, + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/dictionary/model", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.ModelValue.get", + "Decorators": [] + }, + { + "$id": "209", + "Name": "put", + "ResourceName": "ModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "210", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "211", + "kind": "constant", + "valueType": { + "$id": "212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "213", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "214", + "kind": "dict", + "keyType": { + "$id": "215", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2" + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "216", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/dictionary/model", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.ModelValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/dictionary/model/recursive", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "243" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "244", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "245", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "246", - "Type": { - "$id": "247", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue", + "parent": { + "$ref": "12" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue" - }, - { - "$id": "248", - "Name": "NullableFloatValue", - "Namespace": "Type.Dictionary", - "Doc": "Dictionary of nullable float values", - "Operations": [ + }, { - "$id": "249", - "Name": "get", - "ResourceName": "NullableFloatValue", - "Accessibility": "public", - "Parameters": [ + "$id": "217", + "kind": "client", + "name": "RecursiveModelValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of model values", + "parameters": [ { - "$id": "250", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "218", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "251", - "kind": "constant", - "valueType": { - "$id": "252", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "219", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "220", + "Type": { + "$id": "221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "253", - "StatusCodes": [ - 200 + "$id": "222", + "Name": "get", + "ResourceName": "RecursiveModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "223", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "224", + "kind": "constant", + "valueType": { + "$id": "225", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "254", - "kind": "dict", - "keyType": { - "$id": "255", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "256", - "kind": "nullable", - "type": { - "$id": "257", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "Responses": [ + { + "$id": "226", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "227", + "kind": "dict", + "keyType": { + "$id": "228", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2" + }, "decorators": [] }, - "namespace": "" - }, - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/dictionary/model/recursive", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get", + "Decorators": [] + }, + { + "$id": "229", + "Name": "put", + "ResourceName": "RecursiveModelValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "230", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "231", + "kind": "constant", + "valueType": { + "$id": "232", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "233", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "234", + "kind": "dict", + "keyType": { + "$id": "235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2" + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "236", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/dictionary/model/recursive", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/dictionary/nullable-float", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue", + "parent": { + "$ref": "12" + } }, { - "$id": "258", - "Name": "put", - "ResourceName": "NullableFloatValue", - "Accessibility": "public", - "Parameters": [ + "$id": "237", + "kind": "client", + "name": "NullableFloatValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of nullable float values", + "parameters": [ { - "$id": "259", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "238", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "260", - "kind": "constant", - "valueType": { - "$id": "261", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "239", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "262", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "263", - "kind": "dict", - "keyType": { - "$id": "264", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "240", + "Type": { + "$id": "241", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "valueType": { - "$ref": "256" - }, - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "265", - "StatusCodes": [ - 204 + "$id": "242", + "Name": "get", + "ResourceName": "NullableFloatValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "243", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "244", + "kind": "constant", + "valueType": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "246", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "247", + "kind": "dict", + "keyType": { + "$id": "248", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "249", + "kind": "nullable", + "type": { + "$id": "250", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/dictionary/nullable-float", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get", + "Decorators": [] + }, + { + "$id": "251", + "Name": "put", + "ResourceName": "NullableFloatValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "252", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "253", + "kind": "constant", + "valueType": { + "$id": "254", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "255", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "256", + "kind": "dict", + "keyType": { + "$id": "257", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "249" + }, + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "258", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/dictionary/nullable-float", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/dictionary/nullable-float", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "266" - }, - "Parent": "DictionaryClient", - "Parameters": [ - { - "$id": "267", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "268", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "269", - "Type": { - "$id": "270", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue", + "parent": { + "$ref": "12" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json index 4b07c0510fe..6099b54e23d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json @@ -155,20 +155,17 @@ "Clients": [ { "$id": "18", - "Name": "ExtensibleClient", - "Namespace": "Type.Enum.Extensible", - "Operations": [], - "Protocol": { - "$id": "19" - }, - "Parameters": [ + "kind": "client", + "name": "ExtensibleClient", + "namespace": "Type.Enum.Extensible", + "parameters": [ { - "$id": "20", + "$id": "19", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "21", + "$id": "20", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -183,9 +180,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "22", + "$id": "21", "Type": { - "$id": "23", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -194,320 +191,323 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Enum.Extensible" - }, - { - "$id": "24", - "Name": "String", - "Namespace": "Type.Enum.Extensible", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Enum.Extensible", + "children": [ { - "$id": "25", - "Name": "getKnownValue", - "ResourceName": "String", - "Accessibility": "public", - "Parameters": [ + "$id": "23", + "kind": "client", + "name": "String", + "namespace": "Type.Enum.Extensible", + "parameters": [ { - "$id": "26", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "24", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "27", - "kind": "constant", - "valueType": { - "$id": "28", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "25", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "29", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "2" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/enum/extensible/string/known-value", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue", - "Decorators": [] - }, - { - "$id": "30", - "Name": "getUnknownValue", - "ResourceName": "String", - "Accessibility": "public", - "Parameters": [ - { - "$id": "31", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "32", - "kind": "constant", - "valueType": { - "$id": "33", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "26", + "Type": { + "$id": "27", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "34", - "StatusCodes": [ - 200 + "$id": "28", + "Name": "getKnownValue", + "ResourceName": "String", + "Accessibility": "public", + "Parameters": [ + { + "$id": "29", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "30", + "kind": "constant", + "valueType": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "2" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/enum/extensible/string/unknown-value", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue", - "Decorators": [] - }, - { - "$id": "35", - "Name": "putKnownValue", - "ResourceName": "String", - "Accessibility": "public", - "Parameters": [ - { - "$id": "36", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "37", - "kind": "constant", - "valueType": { - "$id": "38", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "32", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/enum/extensible/string/known-value", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue", + "Decorators": [] }, { - "$id": "39", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "40", - "StatusCodes": [ - 204 + "$id": "33", + "Name": "getUnknownValue", + "ResourceName": "String", + "Accessibility": "public", + "Parameters": [ + { + "$id": "34", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "35", + "kind": "constant", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/enum/extensible/string/known-value", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue", - "Decorators": [] - }, - { - "$id": "41", - "Name": "putUnknownValue", - "ResourceName": "String", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "37", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/enum/extensible/string/unknown-value", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue", + "Decorators": [] + }, { - "$id": "42", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "43", - "kind": "constant", - "valueType": { - "$id": "44", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "38", + "Name": "putKnownValue", + "ResourceName": "String", + "Accessibility": "public", + "Parameters": [ + { + "$id": "39", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "40", + "kind": "constant", + "valueType": { + "$id": "41", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "42", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "43", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/enum/extensible/string/known-value", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue", + "Decorators": [] }, { - "$id": "45", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "46", - "StatusCodes": [ - 204 + "$id": "44", + "Name": "putUnknownValue", + "ResourceName": "String", + "Accessibility": "public", + "Parameters": [ + { + "$id": "45", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "46", + "kind": "constant", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "48", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "49", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/enum/extensible/string/unknown-value", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/enum/extensible/string/unknown-value", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue", - "Decorators": [] - } - ], - "Protocol": { - "$id": "47" - }, - "Parent": "ExtensibleClient", - "Parameters": [ - { - "$id": "48", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "49", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "50", - "Type": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Enum.Extensible.String", + "parent": { + "$ref": "18" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Enum.Extensible.String" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json index 1c287fd1e14..affdf0968ac 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json @@ -155,20 +155,17 @@ "Clients": [ { "$id": "18", - "Name": "FixedClient", - "Namespace": "Type.Enum.Fixed", - "Operations": [], - "Protocol": { - "$id": "19" - }, - "Parameters": [ + "kind": "client", + "name": "FixedClient", + "namespace": "Type.Enum.Fixed", + "parameters": [ { - "$id": "20", + "$id": "19", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "21", + "$id": "20", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -183,9 +180,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "22", + "$id": "21", "Type": { - "$id": "23", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -194,266 +191,269 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Enum.Fixed" - }, - { - "$id": "24", - "Name": "String", - "Namespace": "Type.Enum.Fixed", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Enum.Fixed", + "children": [ { - "$id": "25", - "Name": "getKnownValue", - "ResourceName": "String", - "Doc": "getKnownValue", - "Accessibility": "public", - "Parameters": [ + "$id": "23", + "kind": "client", + "name": "String", + "namespace": "Type.Enum.Fixed", + "parameters": [ { - "$id": "26", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "24", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "27", - "kind": "constant", - "valueType": { - "$id": "28", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "25", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "29", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "2" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/enum/fixed/string/known-value", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue", - "Decorators": [] - }, - { - "$id": "30", - "Name": "putKnownValue", - "ResourceName": "String", - "Doc": "putKnownValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "31", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "32", - "kind": "constant", - "valueType": { - "$id": "33", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "26", + "Type": { + "$id": "27", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "34", - "Name": "body", - "NameInRequest": "body", - "Doc": "_", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "35", - "StatusCodes": [ - 204 + "$id": "28", + "Name": "getKnownValue", + "ResourceName": "String", + "Doc": "getKnownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "29", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "30", + "kind": "constant", + "valueType": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/enum/fixed/string/known-value", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue", - "Decorators": [] - }, - { - "$id": "36", - "Name": "putUnknownValue", - "ResourceName": "String", - "Doc": "putUnknownValue", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "32", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/enum/fixed/string/known-value", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue", + "Decorators": [] + }, { - "$id": "37", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "38", - "kind": "constant", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "33", + "Name": "putKnownValue", + "ResourceName": "String", + "Doc": "putKnownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "34", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "35", + "kind": "constant", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "37", + "Name": "body", + "NameInRequest": "body", + "Doc": "_", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "38", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/enum/fixed/string/known-value", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue", + "Decorators": [] }, { - "$id": "40", - "Name": "body", - "NameInRequest": "body", - "Doc": "_", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "41", - "StatusCodes": [ - 204 + "$id": "39", + "Name": "putUnknownValue", + "ResourceName": "String", + "Doc": "putUnknownValue", + "Accessibility": "public", + "Parameters": [ + { + "$id": "40", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "41", + "kind": "constant", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "43", + "Name": "body", + "NameInRequest": "body", + "Doc": "_", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "44", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/enum/fixed/string/unknown-value", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/enum/fixed/string/unknown-value", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue", - "Decorators": [] - } - ], - "Protocol": { - "$id": "42" - }, - "Parent": "FixedClient", - "Parameters": [ - { - "$id": "43", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "44", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "45", - "Type": { - "$id": "46", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Enum.Fixed.String", + "parent": { + "$ref": "18" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Enum.Fixed.String" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json index 90beaaa0ed2..7d7ae4dc367 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json @@ -2219,21 +2219,18 @@ "Clients": [ { "$id": "278", - "Name": "AdditionalPropertiesClient", - "Namespace": "Type.Property.AdditionalProperties", - "Doc": "Tests for additional properties of models", - "Operations": [], - "Protocol": { - "$id": "279" - }, - "Parameters": [ + "kind": "client", + "name": "AdditionalPropertiesClient", + "namespace": "Type.Property.AdditionalProperties", + "doc": "Tests for additional properties of models", + "parameters": [ { - "$id": "280", + "$id": "279", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "281", + "$id": "280", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2248,9 +2245,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "282", + "$id": "281", "Type": { - "$id": "283", + "$id": "282", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2259,5832 +2256,5835 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties" - }, - { - "$id": "284", - "Name": "ExtendsUnknown", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "285", - "Name": "get", - "ResourceName": "ExtendsUnknown", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties", + "children": [ + { + "$id": "283", + "kind": "client", + "name": "ExtendsUnknown", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "286", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "284", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "287", - "kind": "constant", - "valueType": { - "$id": "288", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "285", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "286", + "Type": { + "$id": "287", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "289", - "StatusCodes": [ - 200 + "$id": "288", + "Name": "get", + "ResourceName": "ExtendsUnknown", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "289", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "290", + "kind": "constant", + "valueType": { + "$id": "291", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "264" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "292", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "264" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordUnknown", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get", + "Decorators": [] + }, + { + "$id": "293", + "Name": "put", + "ResourceName": "ExtendsUnknown", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "294", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "295", + "kind": "constant", + "valueType": { + "$id": "296", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "297", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "264" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "298", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordUnknown", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordUnknown", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown", + "parent": { + "$ref": "278" + } }, { - "$id": "290", - "Name": "put", - "ResourceName": "ExtendsUnknown", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "291", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "292", - "kind": "constant", - "valueType": { - "$id": "293", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "299", + "kind": "client", + "name": "ExtendsUnknownDerived", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "294", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "300", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "264" + "$id": "301", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "302", + "Type": { + "$id": "303", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "304", + "Name": "get", + "ResourceName": "ExtendsUnknownDerived", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "305", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "306", + "kind": "constant", + "valueType": { + "$id": "307", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "308", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "263" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordUnknownDerived", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get", + "Decorators": [] + }, { - "$id": "295", - "StatusCodes": [ - 204 + "$id": "309", + "Name": "put", + "ResourceName": "ExtendsUnknownDerived", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "310", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "311", + "kind": "constant", + "valueType": { + "$id": "312", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "313", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "263" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "314", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordUnknownDerived", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordUnknown", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "296" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "297", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "298", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "299", - "Type": { - "$id": "300", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown" - }, - { - "$id": "301", - "Name": "ExtendsUnknownDerived", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "302", - "Name": "get", - "ResourceName": "ExtendsUnknownDerived", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "315", + "kind": "client", + "name": "ExtendsUnknownDiscriminated", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "303", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "316", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "304", - "kind": "constant", - "valueType": { - "$id": "305", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "317", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "318", + "Type": { + "$id": "319", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "320", + "Name": "get", + "ResourceName": "ExtendsUnknownDiscriminated", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "321", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "322", + "kind": "constant", + "valueType": { + "$id": "323", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "324", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "238" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsUnknownDiscriminated", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get", + "Decorators": [] + }, { - "$id": "306", - "StatusCodes": [ - 200 + "$id": "325", + "Name": "put", + "ResourceName": "ExtendsUnknownDiscriminated", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "326", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "327", + "kind": "constant", + "valueType": { + "$id": "328", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "329", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "238" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "263" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "330", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsUnknownDiscriminated", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordUnknownDerived", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated", + "parent": { + "$ref": "278" + } }, { - "$id": "307", - "Name": "put", - "ResourceName": "ExtendsUnknownDerived", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "331", + "kind": "client", + "name": "IsUnknown", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "308", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "332", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "309", - "kind": "constant", - "valueType": { - "$id": "310", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "333", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "334", + "Type": { + "$id": "335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "336", + "Name": "get", + "ResourceName": "IsUnknown", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "337", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "338", + "kind": "constant", + "valueType": { + "$id": "339", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "340", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "224" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordUnknown", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get", + "Decorators": [] }, { - "$id": "311", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "341", + "Name": "put", + "ResourceName": "IsUnknown", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "342", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "343", + "kind": "constant", + "valueType": { + "$id": "344", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "345", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "224" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "346", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordUnknown", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown", + "parent": { + "$ref": "278" + } + }, + { + "$id": "347", + "kind": "client", + "name": "IsUnknownDerived", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ + { + "$id": "348", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "263" + "$id": "349", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "350", + "Type": { + "$id": "351", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "312", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordUnknownDerived", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "313" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "314", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "315", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "316", - "Type": { - "$id": "317", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived" - }, - { - "$id": "318", - "Name": "ExtendsUnknownDiscriminated", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "319", - "Name": "get", - "ResourceName": "ExtendsUnknownDiscriminated", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "320", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "321", - "kind": "constant", - "valueType": { - "$id": "322", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "323", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "238" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsUnknownDiscriminated", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get", - "Decorators": [] - }, - { - "$id": "324", - "Name": "put", - "ResourceName": "ExtendsUnknownDiscriminated", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "325", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "326", - "kind": "constant", - "valueType": { - "$id": "327", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "328", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "238" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "329", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsUnknownDiscriminated", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "330" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "331", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "332", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "333", - "Type": { - "$id": "334", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated" - }, - { - "$id": "335", - "Name": "IsUnknown", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "336", - "Name": "get", - "ResourceName": "IsUnknown", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "337", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "338", - "kind": "constant", - "valueType": { - "$id": "339", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "340", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "224" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordUnknown", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get", - "Decorators": [] - }, - { - "$id": "341", - "Name": "put", - "ResourceName": "IsUnknown", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "342", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "343", - "kind": "constant", - "valueType": { - "$id": "344", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "345", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "224" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "346", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordUnknown", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "347" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "348", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "349", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "350", - "Type": { - "$id": "351", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown" - }, - { - "$id": "352", - "Name": "IsUnknownDerived", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "353", - "Name": "get", - "ResourceName": "IsUnknownDerived", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "354", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "355", - "kind": "constant", - "valueType": { - "$id": "356", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "357", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "223" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordUnknownDerived", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get", - "Decorators": [] - }, - { - "$id": "358", - "Name": "put", - "ResourceName": "IsUnknownDerived", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "359", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "360", - "kind": "constant", - "valueType": { - "$id": "361", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "362", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "223" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "363", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordUnknownDerived", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "364" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "365", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "366", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "367", - "Type": { - "$id": "368", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived" - }, - { - "$id": "369", - "Name": "IsUnknownDiscriminated", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "370", - "Name": "get", - "ResourceName": "IsUnknownDiscriminated", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "371", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "372", - "kind": "constant", - "valueType": { - "$id": "373", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "374", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "198" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isUnknownDiscriminated", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get", - "Decorators": [] - }, - { - "$id": "375", - "Name": "put", - "ResourceName": "IsUnknownDiscriminated", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "376", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "377", - "kind": "constant", - "valueType": { - "$id": "378", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "379", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "198" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "380", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isUnknownDiscriminated", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "381" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "382", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "383", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "384", - "Type": { - "$id": "385", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated" - }, - { - "$id": "386", - "Name": "ExtendsString", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "387", - "Name": "get", - "ResourceName": "ExtendsString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "388", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "389", - "kind": "constant", - "valueType": { - "$id": "390", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "391", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "192" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordString", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get", - "Decorators": [] - }, - { - "$id": "392", - "Name": "put", - "ResourceName": "ExtendsString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "393", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "394", - "kind": "constant", - "valueType": { - "$id": "395", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "396", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "192" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "397", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordString", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "398" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "399", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "400", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "401", - "Type": { - "$id": "402", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString" - }, - { - "$id": "403", - "Name": "IsString", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "404", - "Name": "get", - "ResourceName": "IsString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "405", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "406", - "kind": "constant", - "valueType": { - "$id": "407", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "408", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "186" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordstring", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get", - "Decorators": [] - }, - { - "$id": "409", - "Name": "put", - "ResourceName": "IsString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "410", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "411", - "kind": "constant", - "valueType": { - "$id": "412", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "413", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "186" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "414", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordstring", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "415" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "416", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "417", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "418", - "Type": { - "$id": "419", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString" - }, - { - "$id": "420", - "Name": "SpreadString", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "421", - "Name": "get", - "ResourceName": "SpreadString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "422", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "423", - "kind": "constant", - "valueType": { - "$id": "424", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "425", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "180" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordString", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get", - "Decorators": [] - }, - { - "$id": "426", - "Name": "put", - "ResourceName": "SpreadString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "427", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "428", - "kind": "constant", - "valueType": { - "$id": "429", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "430", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "180" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "431", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordString", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "432" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "433", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "434", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "435", - "Type": { - "$id": "436", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString" - }, - { - "$id": "437", - "Name": "ExtendsFloat", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "438", - "Name": "get", - "ResourceName": "ExtendsFloat", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "439", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "440", - "kind": "constant", - "valueType": { - "$id": "441", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "442", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "174" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordFloat", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get", - "Decorators": [] - }, - { - "$id": "443", - "Name": "put", - "ResourceName": "ExtendsFloat", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "444", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "445", - "kind": "constant", - "valueType": { - "$id": "446", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "447", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "174" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "448", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordFloat", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "449" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "450", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "451", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "452", - "Type": { - "$id": "453", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat" - }, - { - "$id": "454", - "Name": "IsFloat", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "455", - "Name": "get", - "ResourceName": "IsFloat", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "456", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "457", - "kind": "constant", - "valueType": { - "$id": "458", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "459", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "168" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordFloat", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get", - "Decorators": [] - }, - { - "$id": "460", - "Name": "put", - "ResourceName": "IsFloat", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "461", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "462", - "kind": "constant", - "valueType": { - "$id": "463", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "464", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "168" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "465", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordFloat", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "466" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "467", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "468", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "469", - "Type": { - "$id": "470", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat" - }, - { - "$id": "471", - "Name": "SpreadFloat", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "472", - "Name": "get", - "ResourceName": "SpreadFloat", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "473", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "474", - "kind": "constant", - "valueType": { - "$id": "475", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "476", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "162" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordFloat", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get", - "Decorators": [] - }, - { - "$id": "477", - "Name": "put", - "ResourceName": "SpreadFloat", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "478", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "479", - "kind": "constant", - "valueType": { - "$id": "480", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "481", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "162" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "482", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordFloat", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "483" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "484", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "485", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "486", - "Type": { - "$id": "487", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat" - }, - { - "$id": "488", - "Name": "ExtendsModel", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "489", - "Name": "get", - "ResourceName": "ExtendsModel", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "490", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "491", - "kind": "constant", - "valueType": { - "$id": "492", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "493", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "158" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get", - "Decorators": [] - }, - { - "$id": "494", - "Name": "put", - "ResourceName": "ExtendsModel", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "495", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "496", - "kind": "constant", - "valueType": { - "$id": "497", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "498", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "158" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "499", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordModel", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "500" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "501", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "502", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "503", - "Type": { - "$id": "504", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel" - }, - { - "$id": "505", - "Name": "IsModel", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "506", - "Name": "get", - "ResourceName": "IsModel", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "507", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "508", - "kind": "constant", - "valueType": { - "$id": "509", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "510", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "154" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get", - "Decorators": [] - }, - { - "$id": "511", - "Name": "put", - "ResourceName": "IsModel", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "512", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "513", - "kind": "constant", - "valueType": { - "$id": "514", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "515", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "154" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "516", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordModel", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "517" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "518", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "519", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "520", - "Type": { - "$id": "521", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel" - }, - { - "$id": "522", - "Name": "SpreadModel", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "523", - "Name": "get", - "ResourceName": "SpreadModel", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "524", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "525", - "kind": "constant", - "valueType": { - "$id": "526", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "527", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "150" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get", - "Decorators": [] - }, - { - "$id": "528", - "Name": "put", - "ResourceName": "SpreadModel", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "529", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "530", - "kind": "constant", - "valueType": { - "$id": "531", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "532", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "150" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "533", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordModel", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "534" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "535", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "536", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "537", - "Type": { - "$id": "538", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel" - }, - { - "$id": "539", - "Name": "ExtendsModelArray", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "540", - "Name": "get", - "ResourceName": "ExtendsModelArray", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "541", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "542", - "kind": "constant", - "valueType": { - "$id": "543", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "544", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "144" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordModelArray", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get", - "Decorators": [] - }, - { - "$id": "545", - "Name": "put", - "ResourceName": "ExtendsModelArray", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "546", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "547", - "kind": "constant", - "valueType": { - "$id": "548", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "549", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "144" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "550", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsRecordModelArray", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "551" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "552", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "553", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "554", - "Type": { - "$id": "555", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray" - }, - { - "$id": "556", - "Name": "IsModelArray", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "557", - "Name": "get", - "ResourceName": "IsModelArray", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "558", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "559", - "kind": "constant", - "valueType": { - "$id": "560", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "561", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "138" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordModelArray", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get", - "Decorators": [] - }, - { - "$id": "562", - "Name": "put", - "ResourceName": "IsModelArray", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "563", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "564", - "kind": "constant", - "valueType": { - "$id": "565", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "566", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "138" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "567", - "StatusCodes": [ - 204 + "$id": "352", + "Name": "get", + "ResourceName": "IsUnknownDerived", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "353", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "354", + "kind": "constant", + "valueType": { + "$id": "355", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/isRecordModelArray", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "568" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "569", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "570", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "571", - "Type": { - "$id": "572", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "356", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "223" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordUnknownDerived", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray" - }, - { - "$id": "573", - "Name": "SpreadModelArray", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "574", - "Name": "get", - "ResourceName": "SpreadModelArray", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ { - "$id": "575", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "576", - "kind": "constant", - "valueType": { - "$id": "577", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "357", + "Name": "put", + "ResourceName": "IsUnknownDerived", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "358", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "359", + "kind": "constant", + "valueType": { + "$id": "360", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "578", - "StatusCodes": [ - 200 + { + "$id": "361", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "223" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "132" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "362", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordUnknownDerived", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordModelArray", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get", - "Decorators": [] - }, - { - "$id": "579", - "Name": "put", - "ResourceName": "SpreadModelArray", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "580", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "581", - "kind": "constant", - "valueType": { - "$id": "582", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "583", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "132" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "584", - "StatusCodes": [ - 204 ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordModelArray", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "585" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "586", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "587", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "588", - "Type": { - "$id": "589", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray" - }, - { - "$id": "590", - "Name": "SpreadDifferentString", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "591", - "Name": "get", - "ResourceName": "SpreadDifferentString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "363", + "kind": "client", + "name": "IsUnknownDiscriminated", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "592", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "364", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "593", - "kind": "constant", - "valueType": { - "$id": "594", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "365", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "595", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "122" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordString", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get", - "Decorators": [] - }, - { - "$id": "596", - "Name": "put", - "ResourceName": "SpreadDifferentString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "597", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "598", - "kind": "constant", - "valueType": { - "$id": "599", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "366", + "Type": { + "$id": "367", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "600", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "122" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "601", - "StatusCodes": [ - 204 + "$id": "368", + "Name": "get", + "ResourceName": "IsUnknownDiscriminated", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "369", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "370", + "kind": "constant", + "valueType": { + "$id": "371", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordString", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "602" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "603", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "604", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "605", - "Type": { - "$id": "606", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString" - }, - { - "$id": "607", - "Name": "SpreadDifferentFloat", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ - { - "$id": "608", - "Name": "get", - "ResourceName": "SpreadDifferentFloat", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "609", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "610", - "kind": "constant", - "valueType": { - "$id": "611", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "Responses": [ + { + "$id": "372", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "198" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isUnknownDiscriminated", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get", + "Decorators": [] + }, { - "$id": "612", - "StatusCodes": [ - 200 + "$id": "373", + "Name": "put", + "ResourceName": "IsUnknownDiscriminated", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "374", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "375", + "kind": "constant", + "valueType": { + "$id": "376", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "377", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "198" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "111" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "378", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isUnknownDiscriminated", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordFloat", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated", + "parent": { + "$ref": "278" + } }, { - "$id": "613", - "Name": "put", - "ResourceName": "SpreadDifferentFloat", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "614", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "615", - "kind": "constant", - "valueType": { - "$id": "616", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "379", + "kind": "client", + "name": "ExtendsString", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "617", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "380", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "111" + "$id": "381", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "382", + "Type": { + "$id": "383", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "384", + "Name": "get", + "ResourceName": "ExtendsString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "385", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "386", + "kind": "constant", + "valueType": { + "$id": "387", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "388", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "192" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordString", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get", + "Decorators": [] + }, { - "$id": "618", - "StatusCodes": [ - 204 + "$id": "389", + "Name": "put", + "ResourceName": "ExtendsString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "390", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "391", + "kind": "constant", + "valueType": { + "$id": "392", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "393", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "192" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "394", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordString", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordFloat", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "619" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "620", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "621", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "622", - "Type": { - "$id": "623", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat" - }, - { - "$id": "624", - "Name": "SpreadDifferentModel", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "625", - "Name": "get", - "ResourceName": "SpreadDifferentModel", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "395", + "kind": "client", + "name": "IsString", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "626", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "396", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "627", - "kind": "constant", - "valueType": { - "$id": "628", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "397", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "398", + "Type": { + "$id": "399", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "629", - "StatusCodes": [ - 200 + "$id": "400", + "Name": "get", + "ResourceName": "IsString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "401", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "402", + "kind": "constant", + "valueType": { + "$id": "403", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "102" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "404", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "186" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordstring", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get", + "Decorators": [] + }, + { + "$id": "405", + "Name": "put", + "ResourceName": "IsString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "406", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "407", + "kind": "constant", + "valueType": { + "$id": "408", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "409", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "186" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "410", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordstring", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString", + "parent": { + "$ref": "278" + } }, { - "$id": "630", - "Name": "put", - "ResourceName": "SpreadDifferentModel", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "631", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "632", - "kind": "constant", - "valueType": { - "$id": "633", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "411", + "kind": "client", + "name": "SpreadString", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "634", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "412", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "102" + "$id": "413", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "414", + "Type": { + "$id": "415", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "416", + "Name": "get", + "ResourceName": "SpreadString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "417", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "418", + "kind": "constant", + "valueType": { + "$id": "419", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "420", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "180" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordString", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get", + "Decorators": [] + }, { - "$id": "635", - "StatusCodes": [ - 204 + "$id": "421", + "Name": "put", + "ResourceName": "SpreadString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "422", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "423", + "kind": "constant", + "valueType": { + "$id": "424", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "425", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "180" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "426", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordString", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordModel", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "636" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "637", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "638", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "639", - "Type": { - "$id": "640", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel" - }, - { - "$id": "641", - "Name": "SpreadDifferentModelArray", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "642", - "Name": "get", - "ResourceName": "SpreadDifferentModelArray", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "427", + "kind": "client", + "name": "ExtendsFloat", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "643", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "428", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "644", - "kind": "constant", - "valueType": { - "$id": "645", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "429", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "430", + "Type": { + "$id": "431", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "646", - "StatusCodes": [ - 200 + "$id": "432", + "Name": "get", + "ResourceName": "ExtendsFloat", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "433", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "434", + "kind": "constant", + "valueType": { + "$id": "435", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "86" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "436", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "174" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordFloat", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get", + "Decorators": [] + }, + { + "$id": "437", + "Name": "put", + "ResourceName": "ExtendsFloat", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "438", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "439", + "kind": "constant", + "valueType": { + "$id": "440", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "441", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "174" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "442", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordFloat", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordModelArray", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat", + "parent": { + "$ref": "278" + } }, { - "$id": "647", - "Name": "put", - "ResourceName": "SpreadDifferentModelArray", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "648", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "649", - "kind": "constant", - "valueType": { - "$id": "650", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "443", + "kind": "client", + "name": "IsFloat", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "651", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "444", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "86" + "$id": "445", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "446", + "Type": { + "$id": "447", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "652", - "StatusCodes": [ - 204 + "$id": "448", + "Name": "get", + "ResourceName": "IsFloat", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "449", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "450", + "kind": "constant", + "valueType": { + "$id": "451", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "452", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "168" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordFloat", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get", + "Decorators": [] + }, + { + "$id": "453", + "Name": "put", + "ResourceName": "IsFloat", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "454", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "455", + "kind": "constant", + "valueType": { + "$id": "456", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "457", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "168" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "458", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordFloat", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadDifferentRecordModelArray", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "653" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "654", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "655", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "656", - "Type": { - "$id": "657", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray" - }, - { - "$id": "658", - "Name": "ExtendsDifferentSpreadString", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "659", - "Name": "get", - "ResourceName": "ExtendsDifferentSpreadString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "459", + "kind": "client", + "name": "SpreadFloat", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "660", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "460", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "661", - "kind": "constant", - "valueType": { - "$id": "662", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "461", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "462", + "Type": { + "$id": "463", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "663", - "StatusCodes": [ - 200 + "$id": "464", + "Name": "get", + "ResourceName": "SpreadFloat", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "465", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "466", + "kind": "constant", + "valueType": { + "$id": "467", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "121" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "468", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "162" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordFloat", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get", + "Decorators": [] + }, + { + "$id": "469", + "Name": "put", + "ResourceName": "SpreadFloat", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "470", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "471", + "kind": "constant", + "valueType": { + "$id": "472", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "473", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "162" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "474", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordFloat", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadString", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat", + "parent": { + "$ref": "278" + } }, { - "$id": "664", - "Name": "put", - "ResourceName": "ExtendsDifferentSpreadString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "665", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "666", - "kind": "constant", - "valueType": { - "$id": "667", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "475", + "kind": "client", + "name": "ExtendsModel", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "668", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "476", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "121" + "$id": "477", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "478", + "Type": { + "$id": "479", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "669", - "StatusCodes": [ - 204 + "$id": "480", + "Name": "get", + "ResourceName": "ExtendsModel", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "481", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "482", + "kind": "constant", + "valueType": { + "$id": "483", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadString", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "670" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "671", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "672", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "673", - "Type": { - "$id": "674", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "484", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "158" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordModel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get", + "Decorators": [] }, - "Value": "http://localhost:3000" + { + "$id": "485", + "Name": "put", + "ResourceName": "ExtendsModel", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "486", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "487", + "kind": "constant", + "valueType": { + "$id": "488", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "489", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "158" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "490", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordModel", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString" - }, - { - "$id": "675", - "Name": "ExtendsDifferentSpreadFloat", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "676", - "Name": "get", - "ResourceName": "ExtendsDifferentSpreadFloat", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "491", + "kind": "client", + "name": "IsModel", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "677", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "492", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "678", - "kind": "constant", - "valueType": { - "$id": "679", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "493", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "494", + "Type": { + "$id": "495", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "496", + "Name": "get", + "ResourceName": "IsModel", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "497", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "498", + "kind": "constant", + "valueType": { + "$id": "499", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "500", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "154" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordModel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get", + "Decorators": [] + }, { - "$id": "680", - "StatusCodes": [ - 200 + "$id": "501", + "Name": "put", + "ResourceName": "IsModel", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "502", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "503", + "kind": "constant", + "valueType": { + "$id": "504", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "505", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "154" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "110" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "506", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordModel", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadFloat", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel", + "parent": { + "$ref": "278" + } }, { - "$id": "681", - "Name": "put", - "ResourceName": "ExtendsDifferentSpreadFloat", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "682", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "683", - "kind": "constant", - "valueType": { - "$id": "684", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "507", + "kind": "client", + "name": "SpreadModel", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "685", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "508", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "110" + "$id": "509", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "510", + "Type": { + "$id": "511", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "512", + "Name": "get", + "ResourceName": "SpreadModel", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "513", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "514", + "kind": "constant", + "valueType": { + "$id": "515", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "516", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "150" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordModel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get", + "Decorators": [] + }, { - "$id": "686", - "StatusCodes": [ - 204 + "$id": "517", + "Name": "put", + "ResourceName": "SpreadModel", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "518", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "519", + "kind": "constant", + "valueType": { + "$id": "520", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "521", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "150" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "522", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordModel", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadFloat", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "687" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "688", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "689", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "690", - "Type": { - "$id": "691", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat" - }, - { - "$id": "692", - "Name": "ExtendsDifferentSpreadModel", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "693", - "Name": "get", - "ResourceName": "ExtendsDifferentSpreadModel", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "523", + "kind": "client", + "name": "ExtendsModelArray", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "694", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "524", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "695", - "kind": "constant", - "valueType": { - "$id": "696", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "525", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "526", + "Type": { + "$id": "527", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "697", - "StatusCodes": [ - 200 + "$id": "528", + "Name": "get", + "ResourceName": "ExtendsModelArray", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "529", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "530", + "kind": "constant", + "valueType": { + "$id": "531", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "101" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "532", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "144" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordModelArray", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get", + "Decorators": [] + }, + { + "$id": "533", + "Name": "put", + "ResourceName": "ExtendsModelArray", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "534", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "535", + "kind": "constant", + "valueType": { + "$id": "536", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "537", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "144" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "538", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsRecordModelArray", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray", + "parent": { + "$ref": "278" + } }, { - "$id": "698", - "Name": "put", - "ResourceName": "ExtendsDifferentSpreadModel", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "539", + "kind": "client", + "name": "IsModelArray", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "699", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "540", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "700", - "kind": "constant", - "valueType": { - "$id": "701", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "541", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "542", + "Type": { + "$id": "543", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "544", + "Name": "get", + "ResourceName": "IsModelArray", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "545", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "546", + "kind": "constant", + "valueType": { + "$id": "547", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "548", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "138" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordModelArray", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get", + "Decorators": [] }, { - "$id": "702", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "549", + "Name": "put", + "ResourceName": "IsModelArray", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "550", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "551", + "kind": "constant", + "valueType": { + "$id": "552", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "553", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "138" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "554", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/isRecordModelArray", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray", + "parent": { + "$ref": "278" + } + }, + { + "$id": "555", + "kind": "client", + "name": "SpreadModelArray", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ + { + "$id": "556", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "101" + "$id": "557", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "558", + "Type": { + "$id": "559", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "560", + "Name": "get", + "ResourceName": "SpreadModelArray", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "561", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "562", + "kind": "constant", + "valueType": { + "$id": "563", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "564", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "132" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordModelArray", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get", + "Decorators": [] + }, { - "$id": "703", - "StatusCodes": [ - 204 + "$id": "565", + "Name": "put", + "ResourceName": "SpreadModelArray", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "566", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "567", + "kind": "constant", + "valueType": { + "$id": "568", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "569", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "132" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "570", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordModelArray", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadModel", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "704" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "705", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "706", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "707", - "Type": { - "$id": "708", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel" - }, - { - "$id": "709", - "Name": "ExtendsDifferentSpreadModelArray", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "710", - "Name": "get", - "ResourceName": "ExtendsDifferentSpreadModelArray", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "571", + "kind": "client", + "name": "SpreadDifferentString", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "711", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "572", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "712", - "kind": "constant", - "valueType": { - "$id": "713", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "573", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "574", + "Type": { + "$id": "575", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "714", - "StatusCodes": [ - 200 + "$id": "576", + "Name": "get", + "ResourceName": "SpreadDifferentString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "577", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "578", + "kind": "constant", + "valueType": { + "$id": "579", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "85" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "580", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "122" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordString", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get", + "Decorators": [] + }, + { + "$id": "581", + "Name": "put", + "ResourceName": "SpreadDifferentString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "582", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "583", + "kind": "constant", + "valueType": { + "$id": "584", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "585", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "122" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "586", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordString", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadModelArray", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString", + "parent": { + "$ref": "278" + } }, { - "$id": "715", - "Name": "put", - "ResourceName": "ExtendsDifferentSpreadModelArray", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "716", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "717", - "kind": "constant", - "valueType": { - "$id": "718", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "587", + "kind": "client", + "name": "SpreadDifferentFloat", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "719", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "588", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "85" + "$id": "589", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "590", + "Type": { + "$id": "591", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "720", - "StatusCodes": [ - 204 + "$id": "592", + "Name": "get", + "ResourceName": "SpreadDifferentFloat", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "593", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "594", + "kind": "constant", + "valueType": { + "$id": "595", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "596", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "111" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordFloat", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get", + "Decorators": [] + }, + { + "$id": "597", + "Name": "put", + "ResourceName": "SpreadDifferentFloat", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "598", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "599", + "kind": "constant", + "valueType": { + "$id": "600", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "601", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "111" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "602", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordFloat", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/extendsDifferentSpreadModelArray", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "721" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "722", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "723", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "724", - "Type": { - "$id": "725", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray" - }, - { - "$id": "726", - "Name": "MultipleSpread", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "727", - "Name": "get", - "ResourceName": "MultipleSpread", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "603", + "kind": "client", + "name": "SpreadDifferentModel", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "728", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "604", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "729", - "kind": "constant", - "valueType": { - "$id": "730", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "605", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "606", + "Type": { + "$id": "607", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "731", - "StatusCodes": [ - 200 + "$id": "608", + "Name": "get", + "ResourceName": "SpreadDifferentModel", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "609", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "610", + "kind": "constant", + "valueType": { + "$id": "611", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "77" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "612", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "102" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordModel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get", + "Decorators": [] + }, + { + "$id": "613", + "Name": "put", + "ResourceName": "SpreadDifferentModel", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "614", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "615", + "kind": "constant", + "valueType": { + "$id": "616", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "617", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "102" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "618", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordModel", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/multipleSpreadRecord", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel", + "parent": { + "$ref": "278" + } }, { - "$id": "732", - "Name": "put", - "ResourceName": "MultipleSpread", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "733", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "734", - "kind": "constant", - "valueType": { - "$id": "735", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "619", + "kind": "client", + "name": "SpreadDifferentModelArray", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "736", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "620", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "77" + "$id": "621", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "622", + "Type": { + "$id": "623", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "624", + "Name": "get", + "ResourceName": "SpreadDifferentModelArray", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "625", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "626", + "kind": "constant", + "valueType": { + "$id": "627", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "628", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "86" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordModelArray", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get", + "Decorators": [] + }, { - "$id": "737", - "StatusCodes": [ - 204 + "$id": "629", + "Name": "put", + "ResourceName": "SpreadDifferentModelArray", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "630", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "631", + "kind": "constant", + "valueType": { + "$id": "632", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "633", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "86" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "634", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadDifferentRecordModelArray", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/multipleSpreadRecord", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "738" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "739", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "740", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "741", - "Type": { - "$id": "742", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread" - }, - { - "$id": "743", - "Name": "SpreadRecordUnion", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "744", - "Name": "get", - "ResourceName": "SpreadRecordUnion", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "635", + "kind": "client", + "name": "ExtendsDifferentSpreadString", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "745", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "636", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "746", - "kind": "constant", - "valueType": { - "$id": "747", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "637", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "638", + "Type": { + "$id": "639", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "748", - "StatusCodes": [ - 200 + "$id": "640", + "Name": "get", + "ResourceName": "ExtendsDifferentSpreadString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "641", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "642", + "kind": "constant", + "valueType": { + "$id": "643", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "69" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "644", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "121" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadString", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get", + "Decorators": [] + }, + { + "$id": "645", + "Name": "put", + "ResourceName": "ExtendsDifferentSpreadString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "646", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "647", + "kind": "constant", + "valueType": { + "$id": "648", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "649", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "121" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "650", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadString", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordUnion", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString", + "parent": { + "$ref": "278" + } }, { - "$id": "749", - "Name": "put", - "ResourceName": "SpreadRecordUnion", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "750", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "751", - "kind": "constant", - "valueType": { - "$id": "752", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "651", + "kind": "client", + "name": "ExtendsDifferentSpreadFloat", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "753", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "652", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "69" + "$id": "653", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "654", + "Type": { + "$id": "655", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "656", + "Name": "get", + "ResourceName": "ExtendsDifferentSpreadFloat", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "657", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "658", + "kind": "constant", + "valueType": { + "$id": "659", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "660", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "110" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadFloat", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get", + "Decorators": [] + }, { - "$id": "754", - "StatusCodes": [ - 204 + "$id": "661", + "Name": "put", + "ResourceName": "ExtendsDifferentSpreadFloat", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "662", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "663", + "kind": "constant", + "valueType": { + "$id": "664", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "665", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "110" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "666", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadFloat", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordUnion", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "755" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "756", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "757", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "758", - "Type": { - "$id": "759", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion" - }, - { - "$id": "760", - "Name": "SpreadRecordDiscriminatedUnion", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "761", - "Name": "get", - "ResourceName": "SpreadRecordDiscriminatedUnion", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "667", + "kind": "client", + "name": "ExtendsDifferentSpreadModel", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "762", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "668", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "763", - "kind": "constant", - "valueType": { - "$id": "764", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "669", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "670", + "Type": { + "$id": "671", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "672", + "Name": "get", + "ResourceName": "ExtendsDifferentSpreadModel", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "673", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "674", + "kind": "constant", + "valueType": { + "$id": "675", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "676", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "101" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadModel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get", + "Decorators": [] + }, { - "$id": "765", - "StatusCodes": [ - 200 + "$id": "677", + "Name": "put", + "ResourceName": "ExtendsDifferentSpreadModel", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "678", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "679", + "kind": "constant", + "valueType": { + "$id": "680", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "681", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "101" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "63" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "682", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadModel", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordDiscriminatedUnion", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel", + "parent": { + "$ref": "278" + } }, { - "$id": "766", - "Name": "put", - "ResourceName": "SpreadRecordDiscriminatedUnion", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "767", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "768", - "kind": "constant", - "valueType": { - "$id": "769", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "683", + "kind": "client", + "name": "ExtendsDifferentSpreadModelArray", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "770", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "684", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "63" + "$id": "685", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "686", + "Type": { + "$id": "687", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "688", + "Name": "get", + "ResourceName": "ExtendsDifferentSpreadModelArray", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "689", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "690", + "kind": "constant", + "valueType": { + "$id": "691", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "692", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "85" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadModelArray", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get", + "Decorators": [] + }, { - "$id": "771", - "StatusCodes": [ - 204 + "$id": "693", + "Name": "put", + "ResourceName": "ExtendsDifferentSpreadModelArray", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "694", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "695", + "kind": "constant", + "valueType": { + "$id": "696", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "697", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "85" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "698", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/extendsDifferentSpreadModelArray", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordDiscriminatedUnion", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "772" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "773", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "774", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "775", - "Type": { - "$id": "776", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion" - }, - { - "$id": "777", - "Name": "SpreadRecordNonDiscriminatedUnion", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "778", - "Name": "get", - "ResourceName": "SpreadRecordNonDiscriminatedUnion", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "699", + "kind": "client", + "name": "MultipleSpread", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "779", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "700", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "780", - "kind": "constant", - "valueType": { - "$id": "781", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "701", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "702", + "Type": { + "$id": "703", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "704", + "Name": "get", + "ResourceName": "MultipleSpread", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "705", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "706", + "kind": "constant", + "valueType": { + "$id": "707", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "708", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "77" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/multipleSpreadRecord", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get", + "Decorators": [] + }, { - "$id": "782", - "StatusCodes": [ - 200 + "$id": "709", + "Name": "put", + "ResourceName": "MultipleSpread", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "710", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "711", + "kind": "constant", + "valueType": { + "$id": "712", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "713", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "77" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "48" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "714", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/multipleSpreadRecord", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread", + "parent": { + "$ref": "278" + } }, { - "$id": "783", - "Name": "put", - "ResourceName": "SpreadRecordNonDiscriminatedUnion", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "784", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "785", - "kind": "constant", - "valueType": { - "$id": "786", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "715", + "kind": "client", + "name": "SpreadRecordUnion", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "787", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "716", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "48" + "$id": "717", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "718", + "Type": { + "$id": "719", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "720", + "Name": "get", + "ResourceName": "SpreadRecordUnion", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "721", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "722", + "kind": "constant", + "valueType": { + "$id": "723", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "724", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "69" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordUnion", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get", + "Decorators": [] + }, { - "$id": "788", - "StatusCodes": [ - 204 + "$id": "725", + "Name": "put", + "ResourceName": "SpreadRecordUnion", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "726", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "727", + "kind": "constant", + "valueType": { + "$id": "728", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "729", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "69" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "730", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordUnion", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "789" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "790", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "791", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "792", - "Type": { - "$id": "793", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion" - }, - { - "$id": "794", - "Name": "SpreadRecordNonDiscriminatedUnion2", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "795", - "Name": "get", - "ResourceName": "SpreadRecordNonDiscriminatedUnion2", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "731", + "kind": "client", + "name": "SpreadRecordDiscriminatedUnion", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "796", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "732", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "797", - "kind": "constant", - "valueType": { - "$id": "798", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "733", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "734", + "Type": { + "$id": "735", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "799", - "StatusCodes": [ - 200 + "$id": "736", + "Name": "get", + "ResourceName": "SpreadRecordDiscriminatedUnion", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "737", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "738", + "kind": "constant", + "valueType": { + "$id": "739", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "42" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "740", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "63" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordDiscriminatedUnion", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion.get", + "Decorators": [] + }, + { + "$id": "741", + "Name": "put", + "ResourceName": "SpreadRecordDiscriminatedUnion", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "742", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "743", + "kind": "constant", + "valueType": { + "$id": "744", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "745", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "63" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "746", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordDiscriminatedUnion", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion2", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion", + "parent": { + "$ref": "278" + } }, { - "$id": "800", - "Name": "put", - "ResourceName": "SpreadRecordNonDiscriminatedUnion2", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "801", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "802", - "kind": "constant", - "valueType": { - "$id": "803", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "747", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "804", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "748", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "42" + "$id": "749", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "750", + "Type": { + "$id": "751", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "752", + "Name": "get", + "ResourceName": "SpreadRecordNonDiscriminatedUnion", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "753", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "754", + "kind": "constant", + "valueType": { + "$id": "755", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "756", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "48" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get", + "Decorators": [] + }, { - "$id": "805", - "StatusCodes": [ - 204 + "$id": "757", + "Name": "put", + "ResourceName": "SpreadRecordNonDiscriminatedUnion", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "758", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "759", + "kind": "constant", + "valueType": { + "$id": "760", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "761", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "48" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "762", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion2", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "806" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "807", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "808", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "809", - "Type": { - "$id": "810", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion", + "parent": { + "$ref": "278" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2" - }, - { - "$id": "811", - "Name": "SpreadRecordNonDiscriminatedUnion3", - "Namespace": "Type.Property.AdditionalProperties", - "Operations": [ + }, { - "$id": "812", - "Name": "get", - "ResourceName": "SpreadRecordNonDiscriminatedUnion3", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "763", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion2", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "813", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "764", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "814", - "kind": "constant", - "valueType": { - "$id": "815", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "765", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "766", + "Type": { + "$id": "767", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "816", - "StatusCodes": [ - 200 + "$id": "768", + "Name": "get", + "ResourceName": "SpreadRecordNonDiscriminatedUnion2", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "769", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "770", + "kind": "constant", + "valueType": { + "$id": "771", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "11" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "772", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "42" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion2", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get", + "Decorators": [] + }, + { + "$id": "773", + "Name": "put", + "ResourceName": "SpreadRecordNonDiscriminatedUnion2", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "774", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "775", + "kind": "constant", + "valueType": { + "$id": "776", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "777", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "42" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "778", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion2", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion3", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2", + "parent": { + "$ref": "278" + } }, { - "$id": "817", - "Name": "put", - "ResourceName": "SpreadRecordNonDiscriminatedUnion3", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "818", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "819", - "kind": "constant", - "valueType": { - "$id": "820", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "779", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion3", + "namespace": "Type.Property.AdditionalProperties", + "parameters": [ { - "$id": "821", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "780", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "11" + "$id": "781", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "782", + "Type": { + "$id": "783", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "784", + "Name": "get", + "ResourceName": "SpreadRecordNonDiscriminatedUnion3", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "785", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "786", + "kind": "constant", + "valueType": { + "$id": "787", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "788", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "11" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion3", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get", + "Decorators": [] + }, { - "$id": "822", - "StatusCodes": [ - 204 + "$id": "789", + "Name": "put", + "ResourceName": "SpreadRecordNonDiscriminatedUnion3", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "790", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "791", + "kind": "constant", + "valueType": { + "$id": "792", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "793", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "11" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "794", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion3", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion3", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "823" - }, - "Parent": "AdditionalPropertiesClient", - "Parameters": [ - { - "$id": "824", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "825", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "826", - "Type": { - "$id": "827", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3", + "parent": { + "$ref": "278" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json index 6fd7df3c2d8..ce556cf7c41 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json @@ -579,21 +579,18 @@ "Clients": [ { "$id": "81", - "Name": "NullableClient", - "Namespace": "Type.Property.Nullable", - "Doc": "Illustrates models with nullable properties.", - "Operations": [], - "Protocol": { - "$id": "82" - }, - "Parameters": [ + "kind": "client", + "name": "NullableClient", + "namespace": "Type.Property.Nullable", + "doc": "Illustrates models with nullable properties.", + "parameters": [ { - "$id": "83", + "$id": "82", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "84", + "$id": "83", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -608,9 +605,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "85", + "$id": "84", "Type": { - "$id": "86", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -619,2220 +616,2223 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable" - }, - { - "$id": "87", - "Name": "String", - "Namespace": "Type.Property.Nullable", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable", + "children": [ { - "$id": "88", - "Name": "getNonNull", - "ResourceName": "String", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "89", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "86", + "kind": "client", + "name": "String", + "namespace": "Type.Property.Nullable", + "parameters": [ + { + "$id": "87", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "90", - "kind": "constant", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "88", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "89", + "Type": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "91", + "Name": "getNonNull", + "ResourceName": "String", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "92", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "93", + "kind": "constant", + "valueType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "95", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "71" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/string/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull", + "Decorators": [] + }, { - "$id": "92", - "StatusCodes": [ - 200 + "$id": "96", + "Name": "getNull", + "ResourceName": "String", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "97", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "98", + "kind": "constant", + "valueType": { + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "71" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] + "Responses": [ + { + "$id": "100", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "71" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/string/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.String.getNull", + "Decorators": [] + }, + { + "$id": "101", + "Name": "patchNonNull", + "ResourceName": "String", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "102", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "103", + "kind": "constant", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "105", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "71" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "106", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/string/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull", + "Decorators": [] + }, + { + "$id": "107", + "Name": "patchNull", + "ResourceName": "String", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "108", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "109", + "kind": "constant", + "valueType": { + "$id": "110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "111", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "71" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "112", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/string/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/string/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.String", + "parent": { + "$ref": "81" + } }, { - "$id": "93", - "Name": "getNull", - "ResourceName": "String", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ + "$id": "113", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.Nullable", + "parameters": [ { - "$id": "94", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "114", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "95", - "kind": "constant", - "valueType": { - "$id": "96", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "115", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "116", + "Type": { + "$id": "117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "97", - "StatusCodes": [ - 200 + "$id": "118", + "Name": "getNonNull", + "ResourceName": "Bytes", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "119", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "120", + "kind": "constant", + "valueType": { + "$id": "121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "71" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/string/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.String.getNull", - "Decorators": [] - }, - { - "$id": "98", - "Name": "patchNonNull", - "ResourceName": "String", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "122", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "61" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/bytes/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull", + "Decorators": [] + }, { - "$id": "99", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "100", - "kind": "constant", - "valueType": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "123", + "Name": "getNull", + "ResourceName": "Bytes", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "124", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "125", + "kind": "constant", + "valueType": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "127", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "61" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/bytes/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull", + "Decorators": [] }, { - "$id": "102", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "71" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "128", + "Name": "patchNonNull", + "ResourceName": "Bytes", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "129", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "130", + "kind": "constant", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "132", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "61" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "133", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/bytes/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull", + "Decorators": [] + }, { - "$id": "103", - "StatusCodes": [ - 204 + "$id": "134", + "Name": "patchNull", + "ResourceName": "Bytes", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "135", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "136", + "kind": "constant", + "valueType": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "138", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "61" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "139", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/bytes/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull", + "Decorators": [] } ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/string/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes", + "parent": { + "$ref": "81" + } }, { - "$id": "104", - "Name": "patchNull", - "ResourceName": "String", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "105", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "106", - "kind": "constant", - "valueType": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "108", - "Name": "body", - "NameInRequest": "body", + "$id": "140", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.Nullable", + "parameters": [ + { + "$id": "141", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "71" + "$id": "142", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "143", + "Type": { + "$id": "144", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "109", - "StatusCodes": [ - 204 + "$id": "145", + "Name": "getNonNull", + "ResourceName": "Datetime", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "146", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "147", + "kind": "constant", + "valueType": { + "$id": "148", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/string/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "110" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "111", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "112", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "113", - "Type": { - "$id": "114", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "149", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "50" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/datetime/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.String" - }, - { - "$id": "115", - "Name": "Bytes", - "Namespace": "Type.Property.Nullable", - "Operations": [ - { - "$id": "116", - "Name": "getNonNull", - "ResourceName": "Bytes", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ { - "$id": "117", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "118", - "kind": "constant", - "valueType": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "150", + "Name": "getNull", + "ResourceName": "Datetime", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "151", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "152", + "kind": "constant", + "valueType": { + "$id": "153", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "154", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "50" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/datetime/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull", + "Decorators": [] + }, + { + "$id": "155", + "Name": "patchNonNull", + "ResourceName": "Datetime", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "156", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "157", + "kind": "constant", + "valueType": { + "$id": "158", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + { + "$id": "159", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "50" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "160", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/datetime/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull", + "Decorators": [] + }, { - "$id": "120", - "StatusCodes": [ - 200 + "$id": "161", + "Name": "patchNull", + "ResourceName": "Datetime", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "162", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "163", + "kind": "constant", + "valueType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "165", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "50" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "61" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] + "Responses": [ + { + "$id": "166", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/datetime/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/bytes/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime", + "parent": { + "$ref": "81" + } }, { - "$id": "121", - "Name": "getNull", - "ResourceName": "Bytes", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "122", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "167", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.Nullable", + "parameters": [ + { + "$id": "168", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "123", - "kind": "constant", - "valueType": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "169", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "125", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "61" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/bytes/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull", - "Decorators": [] - }, - { - "$id": "126", - "Name": "patchNonNull", - "ResourceName": "Bytes", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "127", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "128", - "kind": "constant", - "valueType": { - "$id": "129", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "170", + "Type": { + "$id": "171", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "130", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "61" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "131", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/bytes/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull", - "Decorators": [] - }, - { - "$id": "132", - "Name": "patchNull", - "ResourceName": "Bytes", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "133", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "134", - "kind": "constant", - "valueType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "136", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "61" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "137", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/bytes/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "138" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "139", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "140", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "141", - "Type": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.Bytes" - }, - { - "$id": "143", - "Name": "Datetime", - "Namespace": "Type.Property.Nullable", - "Operations": [ - { - "$id": "144", - "Name": "getNonNull", - "ResourceName": "Datetime", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "145", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "146", - "kind": "constant", - "valueType": { - "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "148", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "50" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/datetime/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull", - "Decorators": [] - }, - { - "$id": "149", - "Name": "getNull", - "ResourceName": "Datetime", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "150", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "151", - "kind": "constant", - "valueType": { - "$id": "152", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "153", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "50" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/datetime/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull", - "Decorators": [] - }, - { - "$id": "154", - "Name": "patchNonNull", - "ResourceName": "Datetime", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "155", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "156", - "kind": "constant", - "valueType": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "158", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "50" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "159", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/datetime/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull", - "Decorators": [] - }, - { - "$id": "160", - "Name": "patchNull", - "ResourceName": "Datetime", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "161", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "162", - "kind": "constant", - "valueType": { - "$id": "163", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "164", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "50" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "165", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/datetime/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "166" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "167", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "168", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "169", - "Type": { - "$id": "170", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.Datetime" - }, - { - "$id": "171", - "Name": "Duration", - "Namespace": "Type.Property.Nullable", - "Operations": [ - { - "$id": "172", - "Name": "getNonNull", - "ResourceName": "Duration", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "173", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "174", - "kind": "constant", - "valueType": { - "$id": "175", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "176", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "39" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/duration/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull", - "Decorators": [] - }, - { - "$id": "177", - "Name": "getNull", - "ResourceName": "Duration", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "178", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "179", - "kind": "constant", - "valueType": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "181", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "39" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/duration/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull", - "Decorators": [] - }, - { - "$id": "182", - "Name": "patchNonNull", - "ResourceName": "Duration", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "183", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "184", - "kind": "constant", - "valueType": { - "$id": "185", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "186", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "39" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "187", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/duration/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull", - "Decorators": [] - }, - { - "$id": "188", - "Name": "patchNull", - "ResourceName": "Duration", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "189", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "190", - "kind": "constant", - "valueType": { - "$id": "191", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "192", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "39" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "193", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/duration/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "194" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "195", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "196", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "197", - "Type": { - "$id": "198", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration" - }, - { - "$id": "199", - "Name": "CollectionsByte", - "Namespace": "Type.Property.Nullable", - "Operations": [ - { - "$id": "200", - "Name": "getNonNull", - "ResourceName": "CollectionsByte", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "201", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "202", - "kind": "constant", - "valueType": { - "$id": "203", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "204", - "StatusCodes": [ - 200 + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "172", + "Name": "getNonNull", + "ResourceName": "Duration", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "173", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "174", + "kind": "constant", + "valueType": { + "$id": "175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "28" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/bytes/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull", - "Decorators": [] - }, - { - "$id": "205", - "Name": "getNull", - "ResourceName": "CollectionsByte", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "206", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "207", - "kind": "constant", - "valueType": { - "$id": "208", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "209", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "176", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "39" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyType": { - "$ref": "28" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/bytes/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull", - "Decorators": [] - }, - { - "$id": "210", - "Name": "patchNonNull", - "ResourceName": "CollectionsByte", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "211", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "212", - "kind": "constant", - "valueType": { - "$id": "213", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/duration/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull", + "Decorators": [] }, { - "$id": "214", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "28" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "215", - "StatusCodes": [ - 204 + "$id": "177", + "Name": "getNull", + "ResourceName": "Duration", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "178", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "179", + "kind": "constant", + "valueType": { + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/bytes/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull", - "Decorators": [] - }, - { - "$id": "216", - "Name": "patchNull", - "ResourceName": "CollectionsByte", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "217", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "218", - "kind": "constant", - "valueType": { - "$id": "219", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "220", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "28" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "221", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "181", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "39" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/bytes/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "222" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "223", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "224", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "225", - "Type": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/duration/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte" - }, - { - "$id": "227", - "Name": "CollectionsModel", - "Namespace": "Type.Property.Nullable", - "Operations": [ - { - "$id": "228", - "Name": "getNonNull", - "ResourceName": "CollectionsModel", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ { - "$id": "229", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "230", - "kind": "constant", - "valueType": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "182", + "Name": "patchNonNull", + "ResourceName": "Duration", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "183", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "184", + "kind": "constant", + "valueType": { + "$id": "185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "232", - "StatusCodes": [ - 200 + { + "$id": "186", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "39" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "13" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/model/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull", - "Decorators": [] - }, - { - "$id": "233", - "Name": "getNull", - "ResourceName": "CollectionsModel", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "234", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "235", - "kind": "constant", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "237", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "187", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "BodyType": { - "$ref": "13" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/model/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull", - "Decorators": [] - }, - { - "$id": "238", - "Name": "patchNonNull", - "ResourceName": "CollectionsModel", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "239", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "242", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "13" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "243", - "StatusCodes": [ - 204 + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/duration/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/model/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull", - "Decorators": [] - }, - { - "$id": "244", - "Name": "patchNull", - "ResourceName": "CollectionsModel", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "245", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "246", - "kind": "constant", - "valueType": { - "$id": "247", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull", + "Decorators": [] }, { - "$id": "248", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "13" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "249", - "StatusCodes": [ - 204 + "$id": "188", + "Name": "patchNull", + "ResourceName": "Duration", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "189", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "190", + "kind": "constant", + "valueType": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "192", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "39" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "193", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/duration/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull", + "Decorators": [] } ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/model/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "250" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "251", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "252", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "253", - "Type": { - "$id": "254", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration", + "parent": { + "$ref": "81" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel" - }, - { - "$id": "255", - "Name": "CollectionsString", - "Namespace": "Type.Property.Nullable", - "Operations": [ + }, { - "$id": "256", - "Name": "getNonNull", - "ResourceName": "CollectionsString", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "257", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "194", + "kind": "client", + "name": "CollectionsByte", + "namespace": "Type.Property.Nullable", + "parameters": [ + { + "$id": "195", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "258", - "kind": "constant", - "valueType": { - "$id": "259", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "196", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "197", + "Type": { + "$id": "198", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "199", + "Name": "getNonNull", + "ResourceName": "CollectionsByte", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "200", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "201", + "kind": "constant", + "valueType": { + "$id": "202", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "203", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "28" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/bytes/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull", + "Decorators": [] + }, { - "$id": "260", - "StatusCodes": [ - 200 + "$id": "204", + "Name": "getNull", + "ResourceName": "CollectionsByte", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "205", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "206", + "kind": "constant", + "valueType": { + "$id": "207", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "2" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] + "Responses": [ + { + "$id": "208", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "28" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/bytes/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull", + "Decorators": [] + }, + { + "$id": "209", + "Name": "patchNonNull", + "ResourceName": "CollectionsByte", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "210", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "211", + "kind": "constant", + "valueType": { + "$id": "212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "213", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "28" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "214", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/bytes/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull", + "Decorators": [] + }, + { + "$id": "215", + "Name": "patchNull", + "ResourceName": "CollectionsByte", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "216", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "217", + "kind": "constant", + "valueType": { + "$id": "218", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "219", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "28" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "220", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/bytes/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/string/non-null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte", + "parent": { + "$ref": "81" + } }, { - "$id": "261", - "Name": "getNull", - "ResourceName": "CollectionsString", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "262", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "221", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.Nullable", + "parameters": [ + { + "$id": "222", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "263", - "kind": "constant", - "valueType": { - "$id": "264", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "223", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "224", + "Type": { + "$id": "225", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "265", - "StatusCodes": [ - 200 + "$id": "226", + "Name": "getNonNull", + "ResourceName": "CollectionsModel", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "227", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "228", + "kind": "constant", + "valueType": { + "$id": "229", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "2" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/string/null", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull", - "Decorators": [] - }, - { - "$id": "266", - "Name": "patchNonNull", - "ResourceName": "CollectionsString", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "230", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "13" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/model/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull", + "Decorators": [] + }, { - "$id": "267", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", - "Type": { - "$id": "268", - "kind": "constant", - "valueType": { - "$id": "269", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "231", + "Name": "getNull", + "ResourceName": "CollectionsModel", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "232", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "233", + "kind": "constant", + "valueType": { + "$id": "234", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "235", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "13" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/model/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull", + "Decorators": [] }, { - "$id": "270", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "236", + "Name": "patchNonNull", + "ResourceName": "CollectionsModel", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "237", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "238", + "kind": "constant", + "valueType": { + "$id": "239", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "240", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "13" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "241", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/model/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull", + "Decorators": [] + }, { - "$id": "271", - "StatusCodes": [ - 204 + "$id": "242", + "Name": "patchNull", + "ResourceName": "CollectionsModel", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "243", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "244", + "kind": "constant", + "valueType": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "246", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "13" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "247", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/model/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull", + "Decorators": [] } ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/string/non-null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel", + "parent": { + "$ref": "81" + } }, { - "$id": "272", - "Name": "patchNull", - "ResourceName": "CollectionsString", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ + "$id": "248", + "kind": "client", + "name": "CollectionsString", + "namespace": "Type.Property.Nullable", + "parameters": [ { - "$id": "273", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "content-type is application/merge-patch+json", + "$id": "249", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "274", - "kind": "constant", - "valueType": { - "$id": "275", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] + "$id": "250", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "251", + "Type": { + "$id": "252", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "253", + "Name": "getNonNull", + "ResourceName": "CollectionsString", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "254", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "255", + "kind": "constant", + "valueType": { + "$id": "256", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "257", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/string/non-null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull", + "Decorators": [] }, { - "$id": "276", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "258", + "Name": "getNull", + "ResourceName": "CollectionsString", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "259", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "260", + "kind": "constant", + "valueType": { + "$id": "261", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "262", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/string/null", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull", + "Decorators": [] + }, + { + "$id": "263", + "Name": "patchNonNull", + "ResourceName": "CollectionsString", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "264", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "265", + "kind": "constant", + "valueType": { + "$id": "266", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "267", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "268", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/string/non-null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull", + "Decorators": [] + }, { - "$id": "277", - "StatusCodes": [ - 204 + "$id": "269", + "Name": "patchNull", + "ResourceName": "CollectionsString", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "270", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "content-type is application/merge-patch+json", + "Type": { + "$id": "271", + "kind": "constant", + "valueType": { + "$id": "272", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "273", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "2" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "274", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/type/property/nullable/collections/string/null", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull", + "Decorators": [] } ], - "HttpMethod": "PATCH", - "Uri": "{endpoint}", - "Path": "/type/property/nullable/collections/string/null", - "RequestMediaTypes": [ - "application/merge-patch+json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": false, - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull", - "Decorators": [] - } - ], - "Protocol": { - "$id": "278" - }, - "Parent": "NullableClient", - "Parameters": [ - { - "$id": "279", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "280", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "281", - "Type": { - "$id": "282", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString", + "parent": { + "$ref": "81" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json index 45c8739f538..d0a45645312 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json @@ -952,21 +952,18 @@ "Clients": [ { "$id": "114", - "Name": "OptionalClient", - "Namespace": "Type.Property.Optional", - "Doc": "Illustrates models with optional properties.", - "Operations": [], - "Protocol": { - "$id": "115" - }, - "Parameters": [ + "kind": "client", + "name": "OptionalClient", + "namespace": "Type.Property.Optional", + "doc": "Illustrates models with optional properties.", + "parameters": [ { - "$id": "116", + "$id": "115", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "117", + "$id": "116", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -981,9 +978,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "118", + "$id": "117", "Type": { - "$id": "119", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -992,5065 +989,5068 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional" - }, - { - "$id": "120", - "Name": "String", - "Namespace": "Type.Property.Optional", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional", + "children": [ { - "$id": "121", - "Name": "getAll", - "ResourceName": "String", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "122", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "119", + "kind": "client", + "name": "String", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "120", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "123", - "kind": "constant", - "valueType": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "121", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "125", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "74" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.String.getAll", - "Decorators": [] - }, - { - "$id": "126", - "Name": "getDefault", - "ResourceName": "String", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "127", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "128", - "kind": "constant", - "valueType": { - "$id": "129", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "122", + "Type": { + "$id": "123", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "130", - "StatusCodes": [ - 200 + "$id": "124", + "Name": "getAll", + "ResourceName": "String", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "125", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "126", + "kind": "constant", + "valueType": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "74" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.String.getDefault", - "Decorators": [] - }, - { - "$id": "131", - "Name": "putAll", - "ResourceName": "String", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "132", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "133", - "kind": "constant", - "valueType": { - "$id": "134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "Responses": [ + { + "$id": "128", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "74" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.String.getAll", + "Decorators": [] }, { - "$id": "135", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "74" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "136", - "StatusCodes": [ - 204 + "$id": "129", + "Name": "getDefault", + "ResourceName": "String", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "130", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "131", + "kind": "constant", + "valueType": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.String.putAll", - "Decorators": [] - }, - { - "$id": "137", - "Name": "putDefault", - "ResourceName": "String", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "133", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "74" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.String.getDefault", + "Decorators": [] + }, { - "$id": "138", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "139", - "kind": "constant", - "valueType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "134", + "Name": "putAll", + "ResourceName": "String", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "135", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "136", + "kind": "constant", + "valueType": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "138", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "74" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "139", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.String.putAll", + "Decorators": [] }, { - "$id": "141", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "74" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "142", - "StatusCodes": [ - 204 + "$id": "140", + "Name": "putDefault", + "ResourceName": "String", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "141", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "142", + "kind": "constant", + "valueType": { + "$id": "143", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "144", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "74" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "145", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.String.putDefault", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.String.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "143" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "144", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "145", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "146", - "Type": { - "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.String", + "parent": { + "$ref": "114" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.String" - }, - { - "$id": "148", - "Name": "Bytes", - "Namespace": "Type.Property.Optional", - "Operations": [ + }, { - "$id": "149", - "Name": "getAll", - "ResourceName": "Bytes", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ + "$id": "146", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.Optional", + "parameters": [ { - "$id": "150", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "147", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "151", - "kind": "constant", - "valueType": { - "$id": "152", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "148", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "149", + "Type": { + "$id": "150", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "153", - "StatusCodes": [ - 200 + "$id": "151", + "Name": "getAll", + "ResourceName": "Bytes", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "152", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "153", + "kind": "constant", + "valueType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "109" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/bytes/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll", - "Decorators": [] - }, - { - "$id": "154", - "Name": "getDefault", - "ResourceName": "Bytes", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "155", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "109" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/bytes/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll", + "Decorators": [] + }, { - "$id": "155", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "156", - "kind": "constant", - "valueType": { + "$id": "156", + "Name": "getDefault", + "ResourceName": "Bytes", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "158", + "kind": "constant", + "valueType": { + "$id": "159", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "160", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "109" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/bytes/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault", + "Decorators": [] + }, + { + "$id": "161", + "Name": "putAll", + "ResourceName": "Bytes", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "162", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "163", + "kind": "constant", + "valueType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + { + "$id": "165", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "109" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "166", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/bytes/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll", + "Decorators": [] + }, { - "$id": "158", - "StatusCodes": [ - 200 + "$id": "167", + "Name": "putDefault", + "ResourceName": "Bytes", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "168", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "169", + "kind": "constant", + "valueType": { + "$id": "170", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "171", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "109" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "109" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "172", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/bytes/default", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/bytes/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes", + "parent": { + "$ref": "114" + } }, { - "$id": "159", - "Name": "putAll", - "ResourceName": "Bytes", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "160", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "161", - "kind": "constant", - "valueType": { - "$id": "162", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "163", - "Name": "body", - "NameInRequest": "body", + "$id": "173", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "174", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "109" + "$id": "175", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "176", + "Type": { + "$id": "177", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "164", - "StatusCodes": [ - 204 + "$id": "178", + "Name": "getAll", + "ResourceName": "Datetime", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "179", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "180", + "kind": "constant", + "valueType": { + "$id": "181", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/bytes/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll", - "Decorators": [] - }, - { - "$id": "165", - "Name": "putDefault", - "ResourceName": "Bytes", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "182", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "103" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/datetime/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll", + "Decorators": [] + }, { - "$id": "166", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "167", - "kind": "constant", - "valueType": { - "$id": "168", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "183", + "Name": "getDefault", + "ResourceName": "Datetime", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "184", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "185", + "kind": "constant", + "valueType": { + "$id": "186", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "187", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "103" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/datetime/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault", + "Decorators": [] }, { - "$id": "169", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "109" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "188", + "Name": "putAll", + "ResourceName": "Datetime", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "189", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "190", + "kind": "constant", + "valueType": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "192", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "103" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "193", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/datetime/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll", + "Decorators": [] + }, { - "$id": "170", - "StatusCodes": [ - 204 + "$id": "194", + "Name": "putDefault", + "ResourceName": "Datetime", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "195", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "196", + "kind": "constant", + "valueType": { + "$id": "197", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "198", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "103" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "199", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/datetime/default", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/bytes/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "171" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "172", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "173", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "174", - "Type": { - "$id": "175", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime", + "parent": { + "$ref": "114" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.Bytes" - }, - { - "$id": "176", - "Name": "Datetime", - "Namespace": "Type.Property.Optional", - "Operations": [ + }, { - "$id": "177", - "Name": "getAll", - "ResourceName": "Datetime", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "178", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "200", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "201", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "179", - "kind": "constant", - "valueType": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "202", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "203", + "Type": { + "$id": "204", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "181", - "StatusCodes": [ - 200 + "$id": "205", + "Name": "getAll", + "ResourceName": "Duration", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "206", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "207", + "kind": "constant", + "valueType": { + "$id": "208", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "103" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "209", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "97" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/duration/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll", + "Decorators": [] + }, + { + "$id": "210", + "Name": "getDefault", + "ResourceName": "Duration", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "211", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "212", + "kind": "constant", + "valueType": { + "$id": "213", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "214", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "97" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/duration/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault", + "Decorators": [] + }, + { + "$id": "215", + "Name": "putAll", + "ResourceName": "Duration", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "216", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "217", + "kind": "constant", + "valueType": { + "$id": "218", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "219", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "97" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "220", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/duration/all", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll", + "Decorators": [] + }, + { + "$id": "221", + "Name": "putDefault", + "ResourceName": "Duration", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "222", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "223", + "kind": "constant", + "valueType": { + "$id": "224", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "225", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "97" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "226", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/duration/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/datetime/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Duration", + "parent": { + "$ref": "114" + } }, { - "$id": "182", - "Name": "getDefault", - "ResourceName": "Datetime", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "183", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "227", + "kind": "client", + "name": "PlainDate", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "228", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "184", - "kind": "constant", - "valueType": { - "$id": "185", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "229", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "230", + "Type": { + "$id": "231", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "186", - "StatusCodes": [ - 200 + "$id": "232", + "Name": "getAll", + "ResourceName": "PlainDate", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "233", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "234", + "kind": "constant", + "valueType": { + "$id": "235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "103" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "236", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "92" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainDate/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll", + "Decorators": [] + }, + { + "$id": "237", + "Name": "getDefault", + "ResourceName": "PlainDate", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "238", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "239", + "kind": "constant", + "valueType": { + "$id": "240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "241", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "92" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainDate/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault", + "Decorators": [] + }, + { + "$id": "242", + "Name": "putAll", + "ResourceName": "PlainDate", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "243", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "244", + "kind": "constant", + "valueType": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "246", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "92" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "247", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainDate/all", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll", + "Decorators": [] + }, + { + "$id": "248", + "Name": "putDefault", + "ResourceName": "PlainDate", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "249", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "250", + "kind": "constant", + "valueType": { + "$id": "251", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "252", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "92" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "253", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainDate/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/datetime/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate", + "parent": { + "$ref": "114" + } }, { - "$id": "187", - "Name": "putAll", - "ResourceName": "Datetime", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "188", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "189", - "kind": "constant", - "valueType": { - "$id": "190", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "191", - "Name": "body", - "NameInRequest": "body", + "$id": "254", + "kind": "client", + "name": "PlainTime", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "255", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "103" + "$id": "256", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "257", + "Type": { + "$id": "258", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "192", - "StatusCodes": [ - 204 + "$id": "259", + "Name": "getAll", + "ResourceName": "PlainTime", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "260", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "261", + "kind": "constant", + "valueType": { + "$id": "262", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/datetime/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll", - "Decorators": [] - }, - { - "$id": "193", - "Name": "putDefault", - "ResourceName": "Datetime", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "263", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "87" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainTime/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll", + "Decorators": [] + }, { - "$id": "194", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "195", - "kind": "constant", - "valueType": { - "$id": "196", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "264", + "Name": "getDefault", + "ResourceName": "PlainTime", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "265", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "266", + "kind": "constant", + "valueType": { + "$id": "267", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "268", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "87" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainTime/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault", + "Decorators": [] }, { - "$id": "197", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "103" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "269", + "Name": "putAll", + "ResourceName": "PlainTime", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "270", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "271", + "kind": "constant", + "valueType": { + "$id": "272", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "273", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "87" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "274", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainTime/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll", + "Decorators": [] + }, { - "$id": "198", - "StatusCodes": [ - 204 + "$id": "275", + "Name": "putDefault", + "ResourceName": "PlainTime", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "276", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "277", + "kind": "constant", + "valueType": { + "$id": "278", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "279", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "87" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "280", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/plainTime/default", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/datetime/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "199" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "200", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "201", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "202", - "Type": { - "$id": "203", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime", + "parent": { + "$ref": "114" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.Datetime" - }, - { - "$id": "204", - "Name": "Duration", - "Namespace": "Type.Property.Optional", - "Operations": [ + }, { - "$id": "205", - "Name": "getAll", - "ResourceName": "Duration", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ + "$id": "281", + "kind": "client", + "name": "CollectionsByte", + "namespace": "Type.Property.Optional", + "parameters": [ { - "$id": "206", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "282", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "207", - "kind": "constant", - "valueType": { - "$id": "208", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "283", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "284", + "Type": { + "$id": "285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "209", - "StatusCodes": [ - 200 + "$id": "286", + "Name": "getAll", + "ResourceName": "CollectionsByte", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "287", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "288", + "kind": "constant", + "valueType": { + "$id": "289", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "97" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "290", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "81" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/bytes/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll", + "Decorators": [] + }, + { + "$id": "291", + "Name": "getDefault", + "ResourceName": "CollectionsByte", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "292", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "293", + "kind": "constant", + "valueType": { + "$id": "294", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "295", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "81" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/bytes/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault", + "Decorators": [] + }, + { + "$id": "296", + "Name": "putAll", + "ResourceName": "CollectionsByte", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "297", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "298", + "kind": "constant", + "valueType": { + "$id": "299", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "300", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "81" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "301", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/bytes/all", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll", + "Decorators": [] + }, + { + "$id": "302", + "Name": "putDefault", + "ResourceName": "CollectionsByte", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "303", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "304", + "kind": "constant", + "valueType": { + "$id": "305", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "306", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "81" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "307", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/bytes/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/duration/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte", + "parent": { + "$ref": "114" + } }, { - "$id": "210", - "Name": "getDefault", - "ResourceName": "Duration", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ + "$id": "308", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.Optional", + "parameters": [ { - "$id": "211", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "309", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "212", - "kind": "constant", - "valueType": { - "$id": "213", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "310", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "311", + "Type": { + "$id": "312", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "214", - "StatusCodes": [ - 200 + "$id": "313", + "Name": "getAll", + "ResourceName": "CollectionsModel", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "314", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "315", + "kind": "constant", + "valueType": { + "$id": "316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "97" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/duration/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault", - "Decorators": [] - }, - { - "$id": "215", - "Name": "putAll", - "ResourceName": "Duration", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "317", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "71" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/model/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll", + "Decorators": [] + }, { - "$id": "216", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "217", - "kind": "constant", - "valueType": { - "$id": "218", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "318", + "Name": "getDefault", + "ResourceName": "CollectionsModel", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "319", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "320", + "kind": "constant", + "valueType": { + "$id": "321", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "322", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "71" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/model/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault", + "Decorators": [] }, { - "$id": "219", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "97" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "323", + "Name": "putAll", + "ResourceName": "CollectionsModel", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "324", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "325", + "kind": "constant", + "valueType": { + "$id": "326", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "327", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "71" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "328", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/model/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll", + "Decorators": [] + }, { - "$id": "220", - "StatusCodes": [ - 204 + "$id": "329", + "Name": "putDefault", + "ResourceName": "CollectionsModel", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "330", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "331", + "kind": "constant", + "valueType": { + "$id": "332", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "333", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "71" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "334", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/collections/model/default", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/duration/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel", + "parent": { + "$ref": "114" + } }, { - "$id": "221", - "Name": "putDefault", - "ResourceName": "Duration", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "222", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "223", - "kind": "constant", - "valueType": { - "$id": "224", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "225", - "Name": "body", - "NameInRequest": "body", + "$id": "335", + "kind": "client", + "name": "StringLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "336", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "97" + "$id": "337", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "338", + "Type": { + "$id": "339", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "226", - "StatusCodes": [ - 204 + "$id": "340", + "Name": "getAll", + "ResourceName": "StringLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "341", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "342", + "kind": "constant", + "valueType": { + "$id": "343", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/duration/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "227" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "228", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "229", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "230", - "Type": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "344", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "66" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.Duration" - }, - { - "$id": "232", - "Name": "PlainDate", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "233", - "Name": "getAll", - "ResourceName": "PlainDate", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ { - "$id": "234", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "235", - "kind": "constant", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "345", + "Name": "getDefault", + "ResourceName": "StringLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "346", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "347", + "kind": "constant", + "valueType": { + "$id": "348", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "349", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "66" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault", + "Decorators": [] + }, + { + "$id": "350", + "Name": "putAll", + "ResourceName": "StringLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "351", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "352", + "kind": "constant", + "valueType": { + "$id": "353", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + { + "$id": "354", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "66" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "355", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/literal/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll", + "Decorators": [] + }, { - "$id": "237", - "StatusCodes": [ - 200 + "$id": "356", + "Name": "putDefault", + "ResourceName": "StringLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "357", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "358", + "kind": "constant", + "valueType": { + "$id": "359", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "360", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "66" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "92" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "361", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/string/literal/default", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainDate/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral", + "parent": { + "$ref": "114" + } }, { - "$id": "238", - "Name": "getDefault", - "ResourceName": "PlainDate", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "239", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "362", + "kind": "client", + "name": "IntLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "363", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "364", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "365", + "Type": { + "$id": "366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "242", - "StatusCodes": [ - 200 + "$id": "367", + "Name": "getAll", + "ResourceName": "IntLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "368", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "369", + "kind": "constant", + "valueType": { + "$id": "370", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "92" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "371", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "61" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/int/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll", + "Decorators": [] + }, + { + "$id": "372", + "Name": "getDefault", + "ResourceName": "IntLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "373", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "374", + "kind": "constant", + "valueType": { + "$id": "375", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "376", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "61" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/int/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault", + "Decorators": [] + }, + { + "$id": "377", + "Name": "putAll", + "ResourceName": "IntLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "378", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "379", + "kind": "constant", + "valueType": { + "$id": "380", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "381", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "61" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "382", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/int/literal/all", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll", + "Decorators": [] + }, + { + "$id": "383", + "Name": "putDefault", + "ResourceName": "IntLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "384", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "385", + "kind": "constant", + "valueType": { + "$id": "386", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "387", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "61" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "388", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/int/literal/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainDate/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral", + "parent": { + "$ref": "114" + } }, { - "$id": "243", - "Name": "putAll", - "ResourceName": "PlainDate", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "244", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "245", - "kind": "constant", - "valueType": { - "$id": "246", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "389", + "kind": "client", + "name": "FloatLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ { - "$id": "247", - "Name": "body", - "NameInRequest": "body", + "$id": "390", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "92" + "$id": "391", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "392", + "Type": { + "$id": "393", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "248", - "StatusCodes": [ - 204 + "$id": "394", + "Name": "getAll", + "ResourceName": "FloatLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "395", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "396", + "kind": "constant", + "valueType": { + "$id": "397", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainDate/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll", - "Decorators": [] - }, - { - "$id": "249", - "Name": "putDefault", - "ResourceName": "PlainDate", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "398", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "56" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/float/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll", + "Decorators": [] + }, { - "$id": "250", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "251", - "kind": "constant", - "valueType": { - "$id": "252", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "399", + "Name": "getDefault", + "ResourceName": "FloatLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "400", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "401", + "kind": "constant", + "valueType": { + "$id": "402", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "403", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "56" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/float/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault", + "Decorators": [] + }, + { + "$id": "404", + "Name": "putAll", + "ResourceName": "FloatLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "405", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "406", + "kind": "constant", + "valueType": { + "$id": "407", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + { + "$id": "408", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "56" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "409", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/float/literal/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll", + "Decorators": [] }, { - "$id": "253", - "Name": "body", - "NameInRequest": "body", + "$id": "410", + "Name": "putDefault", + "ResourceName": "FloatLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "411", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "412", + "kind": "constant", + "valueType": { + "$id": "413", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "414", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "56" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "415", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/float/literal/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral", + "parent": { + "$ref": "114" + } + }, + { + "$id": "416", + "kind": "client", + "name": "BooleanLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "417", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "92" + "$id": "418", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "419", + "Type": { + "$id": "420", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "254", - "StatusCodes": [ - 204 + "$id": "421", + "Name": "getAll", + "ResourceName": "BooleanLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "422", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "423", + "kind": "constant", + "valueType": { + "$id": "424", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainDate/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "255" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "256", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "257", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "258", - "Type": { - "$id": "259", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "425", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "50" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/boolean/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainDate" - }, - { - "$id": "260", - "Name": "PlainTime", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "261", - "Name": "getAll", - "ResourceName": "PlainTime", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ { - "$id": "262", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "263", - "kind": "constant", - "valueType": { - "$id": "264", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "426", + "Name": "getDefault", + "ResourceName": "BooleanLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "427", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "428", + "kind": "constant", + "valueType": { + "$id": "429", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "430", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "50" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/boolean/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault", + "Decorators": [] + }, { - "$id": "265", - "StatusCodes": [ - 200 + "$id": "431", + "Name": "putAll", + "ResourceName": "BooleanLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "432", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "433", + "kind": "constant", + "valueType": { + "$id": "434", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "435", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "50" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "87" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "436", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/boolean/literal/all", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainTime/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll", - "Decorators": [] - }, - { - "$id": "266", - "Name": "getDefault", - "ResourceName": "PlainTime", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll", + "Decorators": [] + }, { - "$id": "267", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "268", - "kind": "constant", - "valueType": { - "$id": "269", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "437", + "Name": "putDefault", + "ResourceName": "BooleanLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "438", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "439", + "kind": "constant", + "valueType": { + "$id": "440", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "270", - "StatusCodes": [ - 200 + { + "$id": "441", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "50" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "87" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "442", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/boolean/literal/default", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainTime/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral", + "parent": { + "$ref": "114" + } }, { - "$id": "271", - "Name": "putAll", - "ResourceName": "PlainTime", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "272", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "273", - "kind": "constant", - "valueType": { - "$id": "274", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "443", + "kind": "client", + "name": "UnionStringLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ { - "$id": "275", - "Name": "body", - "NameInRequest": "body", + "$id": "444", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "87" + "$id": "445", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "276", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainTime/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll", - "Decorators": [] - }, - { - "$id": "277", - "Name": "putDefault", - "ResourceName": "PlainTime", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "278", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "279", - "kind": "constant", - "valueType": { - "$id": "280", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "446", + "Type": { + "$id": "447", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "281", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "87" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "282", - "StatusCodes": [ - 204 + "$id": "448", + "Name": "getAll", + "ResourceName": "UnionStringLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "449", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "450", + "kind": "constant", + "valueType": { + "$id": "451", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/plainTime/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "283" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "284", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "285", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "286", - "Type": { - "$id": "287", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "452", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "46" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/string/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.PlainTime" - }, - { - "$id": "288", - "Name": "CollectionsByte", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "289", - "Name": "getAll", - "ResourceName": "CollectionsByte", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "290", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "291", - "kind": "constant", - "valueType": { - "$id": "292", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ { - "$id": "293", - "StatusCodes": [ - 200 + "$id": "453", + "Name": "getDefault", + "ResourceName": "UnionStringLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "454", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "455", + "kind": "constant", + "valueType": { + "$id": "456", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "81" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/bytes/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll", - "Decorators": [] - }, - { - "$id": "294", - "Name": "getDefault", - "ResourceName": "CollectionsByte", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "457", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "46" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/string/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault", + "Decorators": [] + }, { - "$id": "295", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "296", - "kind": "constant", - "valueType": { - "$id": "297", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "458", + "Name": "putAll", + "ResourceName": "UnionStringLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "459", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "460", + "kind": "constant", + "valueType": { + "$id": "461", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "298", - "StatusCodes": [ - 200 + { + "$id": "462", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "46" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "81" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "463", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/string/literal/all", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/bytes/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault", - "Decorators": [] - }, - { - "$id": "299", - "Name": "putAll", - "ResourceName": "CollectionsByte", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "300", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "301", - "kind": "constant", - "valueType": { - "$id": "302", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll", + "Decorators": [] }, { - "$id": "303", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "81" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "304", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/bytes/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll", - "Decorators": [] - }, - { - "$id": "305", - "Name": "putDefault", - "ResourceName": "CollectionsByte", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "306", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "307", - "kind": "constant", - "valueType": { - "$id": "308", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "309", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "81" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "310", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/bytes/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "311" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "312", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "313", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "314", - "Type": { - "$id": "315", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte" - }, - { - "$id": "316", - "Name": "CollectionsModel", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "317", - "Name": "getAll", - "ResourceName": "CollectionsModel", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "318", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "319", - "kind": "constant", - "valueType": { - "$id": "320", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "321", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "71" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/model/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll", - "Decorators": [] - }, - { - "$id": "322", - "Name": "getDefault", - "ResourceName": "CollectionsModel", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "323", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "324", - "kind": "constant", - "valueType": { - "$id": "325", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "326", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "71" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/model/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault", - "Decorators": [] - }, - { - "$id": "327", - "Name": "putAll", - "ResourceName": "CollectionsModel", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "328", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "329", - "kind": "constant", - "valueType": { - "$id": "330", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "331", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "71" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "332", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/model/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll", - "Decorators": [] - }, - { - "$id": "333", - "Name": "putDefault", - "ResourceName": "CollectionsModel", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "334", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "335", - "kind": "constant", - "valueType": { - "$id": "336", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "337", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "71" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "338", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/collections/model/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "339" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "340", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "341", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "342", - "Type": { - "$id": "343", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel" - }, - { - "$id": "344", - "Name": "StringLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "345", - "Name": "getAll", - "ResourceName": "StringLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "346", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "347", - "kind": "constant", - "valueType": { - "$id": "348", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "349", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "66" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll", - "Decorators": [] - }, - { - "$id": "350", - "Name": "getDefault", - "ResourceName": "StringLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "351", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "352", - "kind": "constant", - "valueType": { - "$id": "353", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "354", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "66" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "355", - "Name": "putAll", - "ResourceName": "StringLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "356", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "357", - "kind": "constant", - "valueType": { - "$id": "358", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "359", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "66" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "360", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll", - "Decorators": [] - }, - { - "$id": "361", - "Name": "putDefault", - "ResourceName": "StringLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "362", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "363", - "kind": "constant", - "valueType": { - "$id": "364", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "365", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "66" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "366", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/string/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "367" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "368", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "369", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "370", - "Type": { - "$id": "371", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.StringLiteral" - }, - { - "$id": "372", - "Name": "IntLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "373", - "Name": "getAll", - "ResourceName": "IntLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "374", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "375", - "kind": "constant", - "valueType": { - "$id": "376", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "377", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "61" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/int/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll", - "Decorators": [] - }, - { - "$id": "378", - "Name": "getDefault", - "ResourceName": "IntLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "379", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "380", - "kind": "constant", - "valueType": { - "$id": "381", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "382", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "61" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/int/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "383", - "Name": "putAll", - "ResourceName": "IntLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "384", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "385", - "kind": "constant", - "valueType": { - "$id": "386", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "387", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "61" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "388", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/int/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll", - "Decorators": [] - }, - { - "$id": "389", - "Name": "putDefault", - "ResourceName": "IntLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "390", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "391", - "kind": "constant", - "valueType": { - "$id": "392", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "393", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "61" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "394", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/int/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "395" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "396", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "397", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "398", - "Type": { - "$id": "399", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.IntLiteral" - }, - { - "$id": "400", - "Name": "FloatLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "401", - "Name": "getAll", - "ResourceName": "FloatLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "402", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "403", - "kind": "constant", - "valueType": { - "$id": "404", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "405", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "56" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/float/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll", - "Decorators": [] - }, - { - "$id": "406", - "Name": "getDefault", - "ResourceName": "FloatLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "407", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "408", - "kind": "constant", - "valueType": { - "$id": "409", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "410", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "56" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/float/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "411", - "Name": "putAll", - "ResourceName": "FloatLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "412", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "413", - "kind": "constant", - "valueType": { - "$id": "414", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "415", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "56" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "416", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/float/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll", - "Decorators": [] - }, - { - "$id": "417", - "Name": "putDefault", - "ResourceName": "FloatLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "418", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "419", - "kind": "constant", - "valueType": { - "$id": "420", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "421", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "56" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "422", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/float/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "423" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "424", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "425", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "426", - "Type": { - "$id": "427", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral" - }, - { - "$id": "428", - "Name": "BooleanLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "429", - "Name": "getAll", - "ResourceName": "BooleanLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "430", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "431", - "kind": "constant", - "valueType": { - "$id": "432", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "433", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "50" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/boolean/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll", - "Decorators": [] - }, - { - "$id": "434", - "Name": "getDefault", - "ResourceName": "BooleanLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "435", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "436", - "kind": "constant", - "valueType": { - "$id": "437", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "438", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "50" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/boolean/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "439", - "Name": "putAll", - "ResourceName": "BooleanLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "440", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "441", - "kind": "constant", - "valueType": { - "$id": "442", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "443", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "50" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "444", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/boolean/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll", - "Decorators": [] - }, - { - "$id": "445", - "Name": "putDefault", - "ResourceName": "BooleanLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "446", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "447", - "kind": "constant", - "valueType": { - "$id": "448", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "449", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "50" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "450", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/boolean/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "451" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "452", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "453", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "454", - "Type": { - "$id": "455", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral" - }, - { - "$id": "456", - "Name": "UnionStringLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "457", - "Name": "getAll", - "ResourceName": "UnionStringLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "458", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "459", - "kind": "constant", - "valueType": { - "$id": "460", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "461", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "46" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/string/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll", - "Decorators": [] - }, - { - "$id": "462", - "Name": "getDefault", - "ResourceName": "UnionStringLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "463", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "464", - "kind": "constant", - "valueType": { - "$id": "465", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "466", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "46" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/string/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "467", - "Name": "putAll", - "ResourceName": "UnionStringLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "468", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "469", - "kind": "constant", - "valueType": { - "$id": "470", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "471", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "46" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "472", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/string/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll", - "Decorators": [] - }, - { - "$id": "473", - "Name": "putDefault", - "ResourceName": "UnionStringLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "474", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "475", - "kind": "constant", - "valueType": { - "$id": "476", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "477", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "46" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "478", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/string/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "479" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "480", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "481", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "482", - "Type": { - "$id": "483", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral" - }, - { - "$id": "484", - "Name": "UnionIntLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "485", - "Name": "getAll", - "ResourceName": "UnionIntLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "486", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "487", - "kind": "constant", - "valueType": { - "$id": "488", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "489", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "42" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/int/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll", - "Decorators": [] - }, - { - "$id": "490", - "Name": "getDefault", - "ResourceName": "UnionIntLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "491", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "492", - "kind": "constant", - "valueType": { - "$id": "493", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "494", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "42" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/int/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "495", - "Name": "putAll", - "ResourceName": "UnionIntLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "496", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "497", - "kind": "constant", - "valueType": { - "$id": "498", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "499", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "42" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "500", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/int/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll", - "Decorators": [] - }, - { - "$id": "501", - "Name": "putDefault", - "ResourceName": "UnionIntLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "502", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "503", - "kind": "constant", - "valueType": { - "$id": "504", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "505", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "42" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "506", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/int/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "507" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "508", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "509", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "510", - "Type": { - "$id": "511", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral" - }, - { - "$id": "512", - "Name": "UnionFloatLiteral", - "Namespace": "Type.Property.Optional", - "Operations": [ - { - "$id": "513", - "Name": "getAll", - "ResourceName": "UnionFloatLiteral", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ - { - "$id": "514", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "515", - "kind": "constant", - "valueType": { - "$id": "516", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "517", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "38" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/float/literal/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll", - "Decorators": [] - }, - { - "$id": "518", - "Name": "getDefault", - "ResourceName": "UnionFloatLiteral", - "Doc": "Get models that will return the default object", - "Accessibility": "public", - "Parameters": [ - { - "$id": "519", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "520", - "kind": "constant", - "valueType": { - "$id": "521", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "522", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "38" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/float/literal/default", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault", - "Decorators": [] - }, - { - "$id": "523", - "Name": "putAll", - "ResourceName": "UnionFloatLiteral", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "524", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "525", - "kind": "constant", - "valueType": { - "$id": "526", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "527", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "38" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "528", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/float/literal/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll", - "Decorators": [] - }, - { - "$id": "529", - "Name": "putDefault", - "ResourceName": "UnionFloatLiteral", - "Doc": "Put a body with default properties.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "530", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "531", - "kind": "constant", - "valueType": { - "$id": "532", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "464", + "Name": "putDefault", + "ResourceName": "UnionStringLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "465", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "466", + "kind": "constant", + "valueType": { + "$id": "467", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "533", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "38" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "534", - "StatusCodes": [ - 204 + { + "$id": "468", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "46" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/union/float/literal/default", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault", - "Decorators": [] - } - ], - "Protocol": { - "$id": "535" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "536", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "537", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "538", - "Type": { - "$id": "539", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "Responses": [ + { + "$id": "469", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/string/literal/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral", + "parent": { + "$ref": "114" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral" - }, - { - "$id": "540", - "Name": "RequiredAndOptional", - "Namespace": "Type.Property.Optional", - "Doc": "Test optional and required properties", - "Operations": [ + }, { - "$id": "541", - "Name": "getAll", - "ResourceName": "RequiredAndOptional", - "Doc": "Get models that will return all properties in the model", - "Accessibility": "public", - "Parameters": [ + "$id": "470", + "kind": "client", + "name": "UnionIntLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ { - "$id": "542", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "471", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "543", - "kind": "constant", - "valueType": { - "$id": "544", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "472", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "473", + "Type": { + "$id": "474", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "545", - "StatusCodes": [ - 200 + "$id": "475", + "Name": "getAll", + "ResourceName": "UnionIntLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "476", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "477", + "kind": "constant", + "valueType": { + "$id": "478", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "29" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "479", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "42" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/int/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll", + "Decorators": [] + }, + { + "$id": "480", + "Name": "getDefault", + "ResourceName": "UnionIntLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "481", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "482", + "kind": "constant", + "valueType": { + "$id": "483", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "484", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "42" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/int/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault", + "Decorators": [] + }, + { + "$id": "485", + "Name": "putAll", + "ResourceName": "UnionIntLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "486", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "487", + "kind": "constant", + "valueType": { + "$id": "488", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "489", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "42" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "490", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/int/literal/all", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll", + "Decorators": [] + }, + { + "$id": "491", + "Name": "putDefault", + "ResourceName": "UnionIntLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "492", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "493", + "kind": "constant", + "valueType": { + "$id": "494", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "495", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "42" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "496", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/int/literal/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/requiredAndOptional/all", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral", + "parent": { + "$ref": "114" + } }, { - "$id": "546", - "Name": "getRequiredOnly", - "ResourceName": "RequiredAndOptional", - "Doc": "Get models that will return only the required properties", - "Accessibility": "public", - "Parameters": [ - { - "$id": "547", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "497", + "kind": "client", + "name": "UnionFloatLiteral", + "namespace": "Type.Property.Optional", + "parameters": [ + { + "$id": "498", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "548", - "kind": "constant", - "valueType": { - "$id": "549", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "499", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "500", + "Type": { + "$id": "501", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "550", - "StatusCodes": [ - 200 + "$id": "502", + "Name": "getAll", + "ResourceName": "UnionFloatLiteral", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "503", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "504", + "kind": "constant", + "valueType": { + "$id": "505", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "29" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "506", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "38" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/float/literal/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll", + "Decorators": [] + }, + { + "$id": "507", + "Name": "getDefault", + "ResourceName": "UnionFloatLiteral", + "Doc": "Get models that will return the default object", + "Accessibility": "public", + "Parameters": [ + { + "$id": "508", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "509", + "kind": "constant", + "valueType": { + "$id": "510", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "511", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "38" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/float/literal/default", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault", + "Decorators": [] + }, + { + "$id": "512", + "Name": "putAll", + "ResourceName": "UnionFloatLiteral", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "513", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "514", + "kind": "constant", + "valueType": { + "$id": "515", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "516", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "38" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "517", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/float/literal/all", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll", + "Decorators": [] + }, + { + "$id": "518", + "Name": "putDefault", + "ResourceName": "UnionFloatLiteral", + "Doc": "Put a body with default properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "519", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "520", + "kind": "constant", + "valueType": { + "$id": "521", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "522", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "38" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "523", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/union/float/literal/default", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/optional/requiredAndOptional/requiredOnly", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral", + "parent": { + "$ref": "114" + } }, { - "$id": "551", - "Name": "putAll", - "ResourceName": "RequiredAndOptional", - "Doc": "Put a body with all properties present.", - "Accessibility": "public", - "Parameters": [ - { - "$id": "552", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "553", - "kind": "constant", - "valueType": { - "$id": "554", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "555", - "Name": "body", - "NameInRequest": "body", + "$id": "524", + "kind": "client", + "name": "RequiredAndOptional", + "namespace": "Type.Property.Optional", + "doc": "Test optional and required properties", + "parameters": [ + { + "$id": "525", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "29" + "$id": "526", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "527", + "Type": { + "$id": "528", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "556", - "StatusCodes": [ - 204 + "$id": "529", + "Name": "getAll", + "ResourceName": "RequiredAndOptional", + "Doc": "Get models that will return all properties in the model", + "Accessibility": "public", + "Parameters": [ + { + "$id": "530", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "531", + "kind": "constant", + "valueType": { + "$id": "532", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/requiredAndOptional/all", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll", - "Decorators": [] - }, - { - "$id": "557", - "Name": "putRequiredOnly", - "ResourceName": "RequiredAndOptional", - "Doc": "Put a body with only required properties.", - "Accessibility": "public", - "Parameters": [ + "Responses": [ + { + "$id": "533", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "29" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/requiredAndOptional/all", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll", + "Decorators": [] + }, { - "$id": "558", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "559", - "kind": "constant", - "valueType": { - "$id": "560", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "$id": "534", + "Name": "getRequiredOnly", + "ResourceName": "RequiredAndOptional", + "Doc": "Get models that will return only the required properties", + "Accessibility": "public", + "Parameters": [ + { + "$id": "535", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "536", + "kind": "constant", + "valueType": { + "$id": "537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "538", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "29" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/optional/requiredAndOptional/requiredOnly", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly", + "Decorators": [] }, { - "$id": "561", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$ref": "29" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ + "$id": "539", + "Name": "putAll", + "ResourceName": "RequiredAndOptional", + "Doc": "Put a body with all properties present.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "540", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "541", + "kind": "constant", + "valueType": { + "$id": "542", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "543", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "29" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "544", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/requiredAndOptional/all", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll", + "Decorators": [] + }, { - "$id": "562", - "StatusCodes": [ - 204 + "$id": "545", + "Name": "putRequiredOnly", + "ResourceName": "RequiredAndOptional", + "Doc": "Put a body with only required properties.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "546", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "547", + "kind": "constant", + "valueType": { + "$id": "548", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "549", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "29" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "550", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/optional/requiredAndOptional/requiredOnly", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/optional/requiredAndOptional/requiredOnly", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly", - "Decorators": [] - } - ], - "Protocol": { - "$id": "563" - }, - "Parent": "OptionalClient", - "Parameters": [ - { - "$id": "564", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "565", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "566", - "Type": { - "$id": "567", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional", + "parent": { + "$ref": "114" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional" + ] } ] } 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 0e3df4c57a7..a3acd41244e 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 @@ -1602,21 +1602,18 @@ "Clients": [ { "$id": "192", - "Name": "ValueTypesClient", - "Namespace": "Type.Property.ValueTypes", - "Doc": "Illustrates various property types for models", - "Operations": [], - "Protocol": { - "$id": "193" - }, - "Parameters": [ + "kind": "client", + "name": "ValueTypesClient", + "namespace": "Type.Property.ValueTypes", + "doc": "Illustrates various property types for models", + "parameters": [ { - "$id": "194", + "$id": "193", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "195", + "$id": "194", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1631,9 +1628,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "196", + "$id": "195", "Type": { - "$id": "197", + "$id": "196", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1642,5286 +1639,5289 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes" - }, - { - "$id": "198", - "Name": "Boolean", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "199", - "Name": "get", - "ResourceName": "Boolean", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "200", - "Name": "accept", - "NameInRequest": "Accept", + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes", + "children": [ + { + "$id": "197", + "kind": "client", + "name": "Boolean", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "198", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "201", - "kind": "constant", - "valueType": { - "$id": "202", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "199", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "200", + "Type": { + "$id": "201", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "203", - "StatusCodes": [ - 200 + "$id": "202", + "Name": "get", + "ResourceName": "Boolean", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "203", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "204", + "kind": "constant", + "valueType": { + "$id": "205", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "187" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "206", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "187" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/boolean", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get", + "Decorators": [] + }, + { + "$id": "207", + "Name": "put", + "ResourceName": "Boolean", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "208", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "209", + "kind": "constant", + "valueType": { + "$id": "210", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "211", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "187" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "212", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/boolean", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/boolean", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean", + "parent": { + "$ref": "192" + } }, { - "$id": "204", - "Name": "put", - "ResourceName": "Boolean", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "205", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "206", - "kind": "constant", - "valueType": { - "$id": "207", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "213", + "kind": "client", + "name": "String", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "208", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "214", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "187" + "$id": "215", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "216", + "Type": { + "$id": "217", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "209", - "StatusCodes": [ - 204 + "$id": "218", + "Name": "get", + "ResourceName": "String", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "219", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "220", + "kind": "constant", + "valueType": { + "$id": "221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/boolean", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "210" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "211", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "212", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "213", - "Type": { - "$id": "214", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "222", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "182" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.String.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean" - }, - { - "$id": "215", - "Name": "String", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "216", - "Name": "get", - "ResourceName": "String", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ { - "$id": "217", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "218", - "kind": "constant", - "valueType": { - "$id": "219", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "223", + "Name": "put", + "ResourceName": "String", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "224", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "225", + "kind": "constant", + "valueType": { + "$id": "226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "220", - "StatusCodes": [ - 200 + { + "$id": "227", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "182" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "182" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "228", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/string", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.String.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.String.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String", + "parent": { + "$ref": "192" + } }, { - "$id": "221", - "Name": "put", - "ResourceName": "String", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "222", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "223", - "kind": "constant", - "valueType": { - "$id": "224", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "229", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "225", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "230", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "182" + "$id": "231", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "232", + "Type": { + "$id": "233", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "234", + "Name": "get", + "ResourceName": "Bytes", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "235", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "236", + "kind": "constant", + "valueType": { + "$id": "237", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "238", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "177" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/bytes", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get", + "Decorators": [] + }, { - "$id": "226", - "StatusCodes": [ - 204 + "$id": "239", + "Name": "put", + "ResourceName": "Bytes", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "240", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "241", + "kind": "constant", + "valueType": { + "$id": "242", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "243", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "177" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "244", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/bytes", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.String.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "227" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "228", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "229", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "230", - "Type": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.String" - }, - { - "$id": "232", - "Name": "Bytes", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "233", - "Name": "get", - "ResourceName": "Bytes", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "234", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "245", + "kind": "client", + "name": "Int", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "246", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "235", - "kind": "constant", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "247", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "248", + "Type": { + "$id": "249", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "237", - "StatusCodes": [ - 200 + "$id": "250", + "Name": "get", + "ResourceName": "Int", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "251", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "252", + "kind": "constant", + "valueType": { + "$id": "253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "177" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "254", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "172" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/int", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get", + "Decorators": [] + }, + { + "$id": "255", + "Name": "put", + "ResourceName": "Int", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "256", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "257", + "kind": "constant", + "valueType": { + "$id": "258", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "259", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "172" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "260", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/int", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/bytes", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int", + "parent": { + "$ref": "192" + } }, { - "$id": "238", - "Name": "put", - "ResourceName": "Bytes", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "261", + "kind": "client", + "name": "Float", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "239", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "242", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "262", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "177" + "$id": "263", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "264", + "Type": { + "$id": "265", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "243", - "StatusCodes": [ - 204 + "$id": "266", + "Name": "get", + "ResourceName": "Float", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "267", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "268", + "kind": "constant", + "valueType": { + "$id": "269", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "270", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "167" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/float", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get", + "Decorators": [] + }, + { + "$id": "271", + "Name": "put", + "ResourceName": "Float", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "272", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "273", + "kind": "constant", + "valueType": { + "$id": "274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "275", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "167" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "276", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/float", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/bytes", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "244" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "245", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "246", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "247", - "Type": { - "$id": "248", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes" - }, - { - "$id": "249", - "Name": "Int", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "250", - "Name": "get", - "ResourceName": "Int", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "277", + "kind": "client", + "name": "Decimal", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "251", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "278", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "252", - "kind": "constant", - "valueType": { - "$id": "253", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "279", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "280", + "Type": { + "$id": "281", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "254", - "StatusCodes": [ - 200 + "$id": "282", + "Name": "get", + "ResourceName": "Decimal", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "283", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "284", + "kind": "constant", + "valueType": { + "$id": "285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "172" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "286", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "162" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/decimal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get", + "Decorators": [] + }, + { + "$id": "287", + "Name": "put", + "ResourceName": "Decimal", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "288", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "289", + "kind": "constant", + "valueType": { + "$id": "290", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "291", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "162" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "292", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/decimal", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/int", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal", + "parent": { + "$ref": "192" + } }, { - "$id": "255", - "Name": "put", - "ResourceName": "Int", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "293", + "kind": "client", + "name": "Decimal128", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "256", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "257", - "kind": "constant", - "valueType": { - "$id": "258", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "259", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "294", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "172" + "$id": "295", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "296", + "Type": { + "$id": "297", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "260", - "StatusCodes": [ - 204 + "$id": "298", + "Name": "get", + "ResourceName": "Decimal128", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "299", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "300", + "kind": "constant", + "valueType": { + "$id": "301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "302", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "157" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/decimal128", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get", + "Decorators": [] + }, + { + "$id": "303", + "Name": "put", + "ResourceName": "Decimal128", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "304", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "305", + "kind": "constant", + "valueType": { + "$id": "306", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "307", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "157" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "308", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/decimal128", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/int", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "261" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "262", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "263", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "264", - "Type": { - "$id": "265", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Int" - }, - { - "$id": "266", - "Name": "Float", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "267", - "Name": "get", - "ResourceName": "Float", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "309", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "268", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "310", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "269", - "kind": "constant", - "valueType": { - "$id": "270", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "311", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "312", + "Type": { + "$id": "313", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "271", - "StatusCodes": [ - 200 + "$id": "314", + "Name": "get", + "ResourceName": "Datetime", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "315", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "316", + "kind": "constant", + "valueType": { + "$id": "317", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "167" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "318", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "151" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/datetime", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get", + "Decorators": [] + }, + { + "$id": "319", + "Name": "put", + "ResourceName": "Datetime", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "320", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "321", + "kind": "constant", + "valueType": { + "$id": "322", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "323", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "151" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "324", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/datetime", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/float", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime", + "parent": { + "$ref": "192" + } }, { - "$id": "272", - "Name": "put", - "ResourceName": "Float", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "325", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "273", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "326", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "274", - "kind": "constant", - "valueType": { - "$id": "275", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "327", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "328", + "Type": { + "$id": "329", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "330", + "Name": "get", + "ResourceName": "Duration", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "331", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "332", + "kind": "constant", + "valueType": { + "$id": "333", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "334", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "145" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/duration", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get", + "Decorators": [] }, { - "$id": "276", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "335", + "Name": "put", + "ResourceName": "Duration", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "336", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "337", + "kind": "constant", + "valueType": { + "$id": "338", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "339", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "145" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "340", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/duration", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration", + "parent": { + "$ref": "192" + } + }, + { + "$id": "341", + "kind": "client", + "name": "Enum", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "342", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "167" + "$id": "343", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "344", + "Type": { + "$id": "345", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "277", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/float", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "278" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "279", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "280", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "281", - "Type": { - "$id": "282", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Float" - }, - { - "$id": "283", - "Name": "Decimal", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "284", - "Name": "get", - "ResourceName": "Decimal", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "285", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "286", - "kind": "constant", - "valueType": { - "$id": "287", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "288", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "162" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/decimal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get", - "Decorators": [] - }, - { - "$id": "289", - "Name": "put", - "ResourceName": "Decimal", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "290", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "291", - "kind": "constant", - "valueType": { - "$id": "292", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "293", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "162" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "294", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/decimal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "295" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "296", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "297", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "298", - "Type": { - "$id": "299", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal" - }, - { - "$id": "300", - "Name": "Decimal128", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "301", - "Name": "get", - "ResourceName": "Decimal128", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "302", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "303", - "kind": "constant", - "valueType": { - "$id": "304", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "305", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "157" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/decimal128", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get", - "Decorators": [] - }, - { - "$id": "306", - "Name": "put", - "ResourceName": "Decimal128", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "307", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "308", - "kind": "constant", - "valueType": { - "$id": "309", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "310", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "157" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "311", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/decimal128", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "312" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "313", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "314", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "315", - "Type": { - "$id": "316", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128" - }, - { - "$id": "317", - "Name": "Datetime", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "318", - "Name": "get", - "ResourceName": "Datetime", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "319", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "320", - "kind": "constant", - "valueType": { - "$id": "321", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "322", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "151" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/datetime", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get", - "Decorators": [] - }, - { - "$id": "323", - "Name": "put", - "ResourceName": "Datetime", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "324", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "325", - "kind": "constant", - "valueType": { - "$id": "326", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "327", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "151" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "328", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/datetime", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "329" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "330", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "331", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "332", - "Type": { - "$id": "333", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime" - }, - { - "$id": "334", - "Name": "Duration", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "335", - "Name": "get", - "ResourceName": "Duration", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "336", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "337", - "kind": "constant", - "valueType": { - "$id": "338", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "339", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "145" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/duration", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get", - "Decorators": [] - }, - { - "$id": "340", - "Name": "put", - "ResourceName": "Duration", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "341", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "342", - "kind": "constant", - "valueType": { - "$id": "343", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "344", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "145" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "345", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/duration", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "346" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "347", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "348", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "349", - "Type": { - "$id": "350", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Duration" - }, - { - "$id": "351", - "Name": "Enum", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "352", - "Name": "get", - "ResourceName": "Enum", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "353", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "354", - "kind": "constant", - "valueType": { - "$id": "355", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "356", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "141" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/enum", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get", - "Decorators": [] - }, - { - "$id": "357", - "Name": "put", - "ResourceName": "Enum", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "358", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "359", - "kind": "constant", - "valueType": { - "$id": "360", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "361", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "141" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "362", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/enum", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "363" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "364", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "365", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "366", - "Type": { - "$id": "367", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Enum" - }, - { - "$id": "368", - "Name": "ExtensibleEnum", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "369", - "Name": "get", - "ResourceName": "ExtensibleEnum", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "370", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "371", - "kind": "constant", - "valueType": { - "$id": "372", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "373", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "137" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/extensible-enum", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get", - "Decorators": [] - }, - { - "$id": "374", - "Name": "put", - "ResourceName": "ExtensibleEnum", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "375", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "376", - "kind": "constant", - "valueType": { - "$id": "377", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "378", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "137" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "379", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/extensible-enum", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "380" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "381", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "382", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "383", - "Type": { - "$id": "384", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum" - }, - { - "$id": "385", - "Name": "Model", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "386", - "Name": "get", - "ResourceName": "Model", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "387", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "388", - "kind": "constant", - "valueType": { - "$id": "389", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "390", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "133" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/model", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get", - "Decorators": [] - }, - { - "$id": "391", - "Name": "put", - "ResourceName": "Model", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "392", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "393", - "kind": "constant", - "valueType": { - "$id": "394", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "395", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "133" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "396", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/model", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "397" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "398", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "399", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "400", - "Type": { - "$id": "401", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Model" - }, - { - "$id": "402", - "Name": "CollectionsString", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "403", - "Name": "get", - "ResourceName": "CollectionsString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "404", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "405", - "kind": "constant", - "valueType": { - "$id": "406", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "407", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "127" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/collections/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get", - "Decorators": [] - }, - { - "$id": "408", - "Name": "put", - "ResourceName": "CollectionsString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "409", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "410", - "kind": "constant", - "valueType": { - "$id": "411", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "412", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "127" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "413", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/collections/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "414" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "415", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "416", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "417", - "Type": { - "$id": "418", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString" - }, - { - "$id": "419", - "Name": "CollectionsInt", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "420", - "Name": "get", - "ResourceName": "CollectionsInt", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "421", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "422", - "kind": "constant", - "valueType": { - "$id": "423", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "424", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "121" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/collections/int", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get", - "Decorators": [] - }, - { - "$id": "425", - "Name": "put", - "ResourceName": "CollectionsInt", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "426", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "427", - "kind": "constant", - "valueType": { - "$id": "428", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "429", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "121" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "430", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/collections/int", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "431" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "432", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "433", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "434", - "Type": { - "$id": "435", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt" - }, - { - "$id": "436", - "Name": "CollectionsModel", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "437", - "Name": "get", - "ResourceName": "CollectionsModel", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "438", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "439", - "kind": "constant", - "valueType": { - "$id": "440", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "441", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "111" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/collections/model", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get", - "Decorators": [] - }, - { - "$id": "442", - "Name": "put", - "ResourceName": "CollectionsModel", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "443", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "444", - "kind": "constant", - "valueType": { - "$id": "445", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "446", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "111" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "447", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/collections/model", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "448" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "449", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "450", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "451", - "Type": { - "$id": "452", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel" - }, - { - "$id": "453", - "Name": "DictionaryString", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "454", - "Name": "get", - "ResourceName": "DictionaryString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "455", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "456", - "kind": "constant", - "valueType": { - "$id": "457", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "458", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "104" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/dictionary/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get", - "Decorators": [] - }, - { - "$id": "459", - "Name": "put", - "ResourceName": "DictionaryString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "460", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "461", - "kind": "constant", - "valueType": { - "$id": "462", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "463", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "104" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "464", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/dictionary/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "465" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "466", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "467", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "468", - "Type": { - "$id": "469", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString" - }, - { - "$id": "470", - "Name": "Never", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "471", - "Name": "get", - "ResourceName": "Never", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "472", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "473", - "kind": "constant", - "valueType": { - "$id": "474", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "475", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "103" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/never", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get", - "Decorators": [] - }, - { - "$id": "476", - "Name": "put", - "ResourceName": "Never", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "477", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "478", - "kind": "constant", - "valueType": { - "$id": "479", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "480", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "103" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "481", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/never", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "482" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "483", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "484", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "485", - "Type": { - "$id": "486", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Never" - }, - { - "$id": "487", - "Name": "UnknownString", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "488", - "Name": "get", - "ResourceName": "UnknownString", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "489", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "490", - "kind": "constant", - "valueType": { - "$id": "491", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "492", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "98" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get", - "Decorators": [] - }, - { - "$id": "493", - "Name": "put", - "ResourceName": "UnknownString", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "494", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "495", - "kind": "constant", - "valueType": { - "$id": "496", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "497", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "98" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "498", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "499" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "500", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "501", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "502", - "Type": { - "$id": "503", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString" - }, - { - "$id": "504", - "Name": "UnknownInt", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "505", - "Name": "get", - "ResourceName": "UnknownInt", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "506", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "507", - "kind": "constant", - "valueType": { - "$id": "508", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "509", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "93" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/int", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get", - "Decorators": [] - }, - { - "$id": "510", - "Name": "put", - "ResourceName": "UnknownInt", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "511", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "512", - "kind": "constant", - "valueType": { - "$id": "513", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "514", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "93" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "515", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/int", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "516" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "517", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "518", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "519", - "Type": { - "$id": "520", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt" - }, - { - "$id": "521", - "Name": "UnknownDict", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "522", - "Name": "get", - "ResourceName": "UnknownDict", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "523", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "524", - "kind": "constant", - "valueType": { - "$id": "525", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "526", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "88" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/dict", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get", - "Decorators": [] - }, - { - "$id": "527", - "Name": "put", - "ResourceName": "UnknownDict", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "528", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "529", - "kind": "constant", - "valueType": { - "$id": "530", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "531", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "88" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "532", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/dict", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "533" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "534", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "535", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "536", - "Type": { - "$id": "537", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict" - }, - { - "$id": "538", - "Name": "UnknownArray", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ - { - "$id": "539", - "Name": "get", - "ResourceName": "UnknownArray", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ - { - "$id": "540", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "541", - "kind": "constant", - "valueType": { - "$id": "542", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "543", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "83" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get", - "Decorators": [] - }, - { - "$id": "544", - "Name": "put", - "ResourceName": "UnknownArray", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "545", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "546", - "kind": "constant", - "valueType": { - "$id": "547", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "548", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", - "Type": { - "$ref": "83" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "549", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/unknown/array", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "550" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "551", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "552", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "553", - "Type": { - "$id": "554", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "346", + "Name": "get", + "ResourceName": "Enum", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "347", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "348", + "kind": "constant", + "valueType": { + "$id": "349", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "350", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "141" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/enum", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get", + "Decorators": [] }, - "Value": "http://localhost:3000" + { + "$id": "351", + "Name": "put", + "ResourceName": "Enum", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "352", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "353", + "kind": "constant", + "valueType": { + "$id": "354", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "355", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "141" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "356", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/enum", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray" - }, - { - "$id": "555", - "Name": "StringLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "556", - "Name": "get", - "ResourceName": "StringLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "357", + "kind": "client", + "name": "ExtensibleEnum", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "557", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "358", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "558", - "kind": "constant", - "valueType": { - "$id": "559", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "359", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "360", + "Type": { + "$id": "361", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "560", - "StatusCodes": [ - 200 + "$id": "362", + "Name": "get", + "ResourceName": "ExtensibleEnum", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "363", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "364", + "kind": "constant", + "valueType": { + "$id": "365", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "78" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "366", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "137" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/extensible-enum", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get", + "Decorators": [] + }, + { + "$id": "367", + "Name": "put", + "ResourceName": "ExtensibleEnum", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "368", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "369", + "kind": "constant", + "valueType": { + "$id": "370", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "371", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "137" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "372", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/extensible-enum", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/string/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum", + "parent": { + "$ref": "192" + } }, { - "$id": "561", - "Name": "put", - "ResourceName": "StringLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "562", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "563", - "kind": "constant", - "valueType": { - "$id": "564", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "373", + "kind": "client", + "name": "Model", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "565", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "374", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "78" + "$id": "375", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "376", + "Type": { + "$id": "377", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "566", - "StatusCodes": [ - 204 + "$id": "378", + "Name": "get", + "ResourceName": "Model", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "379", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "380", + "kind": "constant", + "valueType": { + "$id": "381", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "382", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "133" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/model", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get", + "Decorators": [] + }, + { + "$id": "383", + "Name": "put", + "ResourceName": "Model", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "384", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "385", + "kind": "constant", + "valueType": { + "$id": "386", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "387", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "133" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "388", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/model", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/string/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "567" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "568", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "569", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "570", - "Type": { - "$id": "571", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral" - }, - { - "$id": "572", - "Name": "IntLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "573", - "Name": "get", - "ResourceName": "IntLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "389", + "kind": "client", + "name": "CollectionsString", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "574", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "390", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "575", - "kind": "constant", - "valueType": { - "$id": "576", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "391", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "392", + "Type": { + "$id": "393", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "394", + "Name": "get", + "ResourceName": "CollectionsString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "395", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "396", + "kind": "constant", + "valueType": { + "$id": "397", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "398", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "127" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/collections/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get", + "Decorators": [] + }, { - "$id": "577", - "StatusCodes": [ - 200 + "$id": "399", + "Name": "put", + "ResourceName": "CollectionsString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "400", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "401", + "kind": "constant", + "valueType": { + "$id": "402", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "403", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "127" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "73" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "404", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/collections/string", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/int/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString", + "parent": { + "$ref": "192" + } }, { - "$id": "578", - "Name": "put", - "ResourceName": "IntLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "579", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "580", - "kind": "constant", - "valueType": { - "$id": "581", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "405", + "kind": "client", + "name": "CollectionsInt", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "582", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "406", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "73" + "$id": "407", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "408", + "Type": { + "$id": "409", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "410", + "Name": "get", + "ResourceName": "CollectionsInt", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "411", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "412", + "kind": "constant", + "valueType": { + "$id": "413", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "414", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "121" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/collections/int", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get", + "Decorators": [] + }, { - "$id": "583", - "StatusCodes": [ - 204 + "$id": "415", + "Name": "put", + "ResourceName": "CollectionsInt", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "416", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "417", + "kind": "constant", + "valueType": { + "$id": "418", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "419", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "121" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "420", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/collections/int", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/int/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "584" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "585", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "586", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "587", - "Type": { - "$id": "588", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral" - }, - { - "$id": "589", - "Name": "FloatLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt", + "parent": { + "$ref": "192" + } + }, { - "$id": "590", - "Name": "get", - "ResourceName": "FloatLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "421", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "591", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "422", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "592", - "kind": "constant", - "valueType": { - "$id": "593", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "423", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "424", + "Type": { + "$id": "425", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "426", + "Name": "get", + "ResourceName": "CollectionsModel", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "427", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "428", + "kind": "constant", + "valueType": { + "$id": "429", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "430", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "111" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/collections/model", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get", + "Decorators": [] + }, { - "$id": "594", - "StatusCodes": [ - 200 + "$id": "431", + "Name": "put", + "ResourceName": "CollectionsModel", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "432", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "433", + "kind": "constant", + "valueType": { + "$id": "434", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "435", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "111" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "68" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "436", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/collections/model", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/float/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel", + "parent": { + "$ref": "192" + } }, { - "$id": "595", - "Name": "put", - "ResourceName": "FloatLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "596", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "597", - "kind": "constant", - "valueType": { - "$id": "598", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "437", + "kind": "client", + "name": "DictionaryString", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "599", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "438", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "68" + "$id": "439", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "440", + "Type": { + "$id": "441", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "442", + "Name": "get", + "ResourceName": "DictionaryString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "443", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "444", + "kind": "constant", + "valueType": { + "$id": "445", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "446", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "104" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/dictionary/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get", + "Decorators": [] + }, { - "$id": "600", - "StatusCodes": [ - 204 + "$id": "447", + "Name": "put", + "ResourceName": "DictionaryString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "448", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "449", + "kind": "constant", + "valueType": { + "$id": "450", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "451", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "104" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "452", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/dictionary/string", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/float/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "601" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "602", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "603", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "604", - "Type": { - "$id": "605", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral" - }, - { - "$id": "606", - "Name": "BooleanLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "607", - "Name": "get", - "ResourceName": "BooleanLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "453", + "kind": "client", + "name": "Never", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "608", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "454", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "609", - "kind": "constant", - "valueType": { - "$id": "610", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "455", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "456", + "Type": { + "$id": "457", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "458", + "Name": "get", + "ResourceName": "Never", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "459", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "460", + "kind": "constant", + "valueType": { + "$id": "461", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "462", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "103" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/never", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get", + "Decorators": [] + }, { - "$id": "611", - "StatusCodes": [ - 200 + "$id": "463", + "Name": "put", + "ResourceName": "Never", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "464", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "465", + "kind": "constant", + "valueType": { + "$id": "466", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "467", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "103" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "62" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "468", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/never", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/boolean/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never", + "parent": { + "$ref": "192" + } }, { - "$id": "612", - "Name": "put", - "ResourceName": "BooleanLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "469", + "kind": "client", + "name": "UnknownString", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "613", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "470", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "614", - "kind": "constant", - "valueType": { - "$id": "615", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "471", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "472", + "Type": { + "$id": "473", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "474", + "Name": "get", + "ResourceName": "UnknownString", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "475", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "476", + "kind": "constant", + "valueType": { + "$id": "477", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "478", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "98" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get", + "Decorators": [] }, { - "$id": "616", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "479", + "Name": "put", + "ResourceName": "UnknownString", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "480", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "481", + "kind": "constant", + "valueType": { + "$id": "482", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "483", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "98" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "484", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/string", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString", + "parent": { + "$ref": "192" + } + }, + { + "$id": "485", + "kind": "client", + "name": "UnknownInt", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "486", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "62" + "$id": "487", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "488", + "Type": { + "$id": "489", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "490", + "Name": "get", + "ResourceName": "UnknownInt", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "491", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "492", + "kind": "constant", + "valueType": { + "$id": "493", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "494", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "93" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/int", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get", + "Decorators": [] + }, { - "$id": "617", - "StatusCodes": [ - 204 + "$id": "495", + "Name": "put", + "ResourceName": "UnknownInt", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "496", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "497", + "kind": "constant", + "valueType": { + "$id": "498", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "499", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "93" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "500", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/int", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/boolean/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "618" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "619", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "620", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "621", - "Type": { - "$id": "622", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral" - }, - { - "$id": "623", - "Name": "UnionStringLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "624", - "Name": "get", - "ResourceName": "UnionStringLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "501", + "kind": "client", + "name": "UnknownDict", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "625", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "502", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "626", - "kind": "constant", - "valueType": { - "$id": "627", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "503", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "504", + "Type": { + "$id": "505", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "628", - "StatusCodes": [ - 200 + "$id": "506", + "Name": "get", + "ResourceName": "UnknownDict", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "507", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "508", + "kind": "constant", + "valueType": { + "$id": "509", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "58" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "510", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "88" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/dict", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get", + "Decorators": [] + }, + { + "$id": "511", + "Name": "put", + "ResourceName": "UnknownDict", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "512", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "513", + "kind": "constant", + "valueType": { + "$id": "514", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "515", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "88" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "516", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/dict", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union/string/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict", + "parent": { + "$ref": "192" + } }, { - "$id": "629", - "Name": "put", - "ResourceName": "UnionStringLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "630", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "631", - "kind": "constant", - "valueType": { - "$id": "632", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "633", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "517", + "kind": "client", + "name": "UnknownArray", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "518", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "58" + "$id": "519", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "520", + "Type": { + "$id": "521", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "634", - "StatusCodes": [ - 204 + "$id": "522", + "Name": "get", + "ResourceName": "UnknownArray", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "523", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "524", + "kind": "constant", + "valueType": { + "$id": "525", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "526", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "83" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get", + "Decorators": [] + }, + { + "$id": "527", + "Name": "put", + "ResourceName": "UnknownArray", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "528", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "529", + "kind": "constant", + "valueType": { + "$id": "530", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "531", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "83" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "532", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/unknown/array", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union/string/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "635" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "636", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "637", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "638", - "Type": { - "$id": "639", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral" - }, - { - "$id": "640", - "Name": "UnionIntLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "641", - "Name": "get", - "ResourceName": "UnionIntLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "533", + "kind": "client", + "name": "StringLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "642", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "534", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "643", - "kind": "constant", - "valueType": { - "$id": "644", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "535", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "536", + "Type": { + "$id": "537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "538", + "Name": "get", + "ResourceName": "StringLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "539", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "540", + "kind": "constant", + "valueType": { + "$id": "541", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "542", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "78" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/string/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get", + "Decorators": [] + }, { - "$id": "645", - "StatusCodes": [ - 200 + "$id": "543", + "Name": "put", + "ResourceName": "StringLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "544", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "545", + "kind": "constant", + "valueType": { + "$id": "546", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "547", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "78" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "54" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "548", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/string/literal", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union/int/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral", + "parent": { + "$ref": "192" + } }, { - "$id": "646", - "Name": "put", - "ResourceName": "UnionIntLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "549", + "kind": "client", + "name": "IntLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "647", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "550", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "648", - "kind": "constant", - "valueType": { - "$id": "649", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "551", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "552", + "Type": { + "$id": "553", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "554", + "Name": "get", + "ResourceName": "IntLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "555", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "556", + "kind": "constant", + "valueType": { + "$id": "557", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "558", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "73" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/int/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get", + "Decorators": [] }, { - "$id": "650", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "559", + "Name": "put", + "ResourceName": "IntLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "560", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "561", + "kind": "constant", + "valueType": { + "$id": "562", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "563", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "73" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "564", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/int/literal", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral", + "parent": { + "$ref": "192" + } + }, + { + "$id": "565", + "kind": "client", + "name": "FloatLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "566", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "54" + "$id": "567", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "568", + "Type": { + "$id": "569", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "651", - "StatusCodes": [ - 204 + "$id": "570", + "Name": "get", + "ResourceName": "FloatLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "571", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "572", + "kind": "constant", + "valueType": { + "$id": "573", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union/int/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "652" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "653", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "654", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "655", - "Type": { - "$id": "656", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "574", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "68" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/float/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get", + "Decorators": [] }, - "Value": "http://localhost:3000" + { + "$id": "575", + "Name": "put", + "ResourceName": "FloatLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "576", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "577", + "kind": "constant", + "valueType": { + "$id": "578", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "579", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "68" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "580", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/float/literal", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral" - }, - { - "$id": "657", - "Name": "UnionFloatLiteral", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "658", - "Name": "get", - "ResourceName": "UnionFloatLiteral", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "581", + "kind": "client", + "name": "BooleanLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "659", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "582", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "660", - "kind": "constant", - "valueType": { - "$id": "661", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "583", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "584", + "Type": { + "$id": "585", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "662", - "StatusCodes": [ - 200 + "$id": "586", + "Name": "get", + "ResourceName": "BooleanLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "587", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "588", + "kind": "constant", + "valueType": { + "$id": "589", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "50" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "590", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "62" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/boolean/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get", + "Decorators": [] + }, + { + "$id": "591", + "Name": "put", + "ResourceName": "BooleanLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "592", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "593", + "kind": "constant", + "valueType": { + "$id": "594", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "595", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "62" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "596", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/boolean/literal", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union/float/literal", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral", + "parent": { + "$ref": "192" + } }, { - "$id": "663", - "Name": "put", - "ResourceName": "UnionFloatLiteral", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ - { - "$id": "664", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "665", - "kind": "constant", - "valueType": { - "$id": "666", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "597", + "kind": "client", + "name": "UnionStringLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "667", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "598", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "50" + "$id": "599", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "600", + "Type": { + "$id": "601", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "602", + "Name": "get", + "ResourceName": "UnionStringLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "603", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "604", + "kind": "constant", + "valueType": { + "$id": "605", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "606", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "58" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union/string/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get", + "Decorators": [] + }, { - "$id": "668", - "StatusCodes": [ - 204 + "$id": "607", + "Name": "put", + "ResourceName": "UnionStringLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "608", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "609", + "kind": "constant", + "valueType": { + "$id": "610", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "611", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "58" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "612", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union/string/literal", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union/float/literal", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "669" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "670", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "671", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "672", - "Type": { - "$id": "673", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral", + "parent": { + "$ref": "192" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral" - }, - { - "$id": "674", - "Name": "UnionEnumValue", - "Namespace": "Type.Property.ValueTypes", - "Operations": [ + }, { - "$id": "675", - "Name": "get", - "ResourceName": "UnionEnumValue", - "Doc": "Get call", - "Accessibility": "public", - "Parameters": [ + "$id": "613", + "kind": "client", + "name": "UnionIntLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "676", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "614", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "677", - "kind": "constant", - "valueType": { - "$id": "678", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "615", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "616", + "Type": { + "$id": "617", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "679", - "StatusCodes": [ - 200 + "$id": "618", + "Name": "get", + "ResourceName": "UnionIntLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "619", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "620", + "kind": "constant", + "valueType": { + "$id": "621", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "45" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "622", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "54" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union/int/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get", + "Decorators": [] + }, + { + "$id": "623", + "Name": "put", + "ResourceName": "UnionIntLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "624", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "625", + "kind": "constant", + "valueType": { + "$id": "626", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "627", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "54" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "628", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union/int/literal", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union-enum-value", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral", + "parent": { + "$ref": "192" + } }, { - "$id": "680", - "Name": "put", - "ResourceName": "UnionEnumValue", - "Doc": "Put operation", - "Accessibility": "public", - "Parameters": [ + "$id": "629", + "kind": "client", + "name": "UnionFloatLiteral", + "namespace": "Type.Property.ValueTypes", + "parameters": [ { - "$id": "681", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", + "$id": "630", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "682", - "kind": "constant", - "valueType": { - "$id": "683", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "631", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, + "IsResourceParameter": false, + "IsContentType": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "632", + "Type": { + "$id": "633", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } + } + ], + "operations": [ + { + "$id": "634", + "Name": "get", + "ResourceName": "UnionFloatLiteral", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "635", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "636", + "kind": "constant", + "valueType": { + "$id": "637", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "638", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "50" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union/float/literal", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get", + "Decorators": [] }, { - "$id": "684", - "Name": "body", - "NameInRequest": "body", - "Doc": "body", + "$id": "639", + "Name": "put", + "ResourceName": "UnionFloatLiteral", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "640", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "641", + "kind": "constant", + "valueType": { + "$id": "642", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "643", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "50" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "644", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union/float/literal", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral", + "parent": { + "$ref": "192" + } + }, + { + "$id": "645", + "kind": "client", + "name": "UnionEnumValue", + "namespace": "Type.Property.ValueTypes", + "parameters": [ + { + "$id": "646", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "45" + "$id": "647", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "648", + "Type": { + "$id": "649", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "650", + "Name": "get", + "ResourceName": "UnionEnumValue", + "Doc": "Get call", + "Accessibility": "public", + "Parameters": [ + { + "$id": "651", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "652", + "kind": "constant", + "valueType": { + "$id": "653", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "654", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "45" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union-enum-value", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get", + "Decorators": [] + }, { - "$id": "685", - "StatusCodes": [ - 204 + "$id": "655", + "Name": "put", + "ResourceName": "UnionEnumValue", + "Doc": "Put operation", + "Accessibility": "public", + "Parameters": [ + { + "$id": "656", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "657", + "kind": "constant", + "valueType": { + "$id": "658", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "659", + "Name": "body", + "NameInRequest": "body", + "Doc": "body", + "Type": { + "$ref": "45" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "660", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/property/value-types/union-enum-value", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/property/value-types/union-enum-value", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "686" - }, - "Parent": "ValueTypesClient", - "Parameters": [ - { - "$id": "687", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "688", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "689", - "Type": { - "$id": "690", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue", + "parent": { + "$ref": "192" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json index 7b58ba40a80..6deeae5a7c4 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json @@ -7,20 +7,17 @@ "Clients": [ { "$id": "2", - "Name": "ScalarClient", - "Namespace": "Type.Scalar", - "Operations": [], - "Protocol": { - "$id": "3" - }, - "Parameters": [ + "kind": "client", + "name": "ScalarClient", + "namespace": "Type.Scalar", + "parameters": [ { - "$id": "4", + "$id": "3", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "5", + "$id": "4", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -35,9 +32,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "6", + "$id": "5", "Type": { - "$id": "7", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -46,1438 +43,1441 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar" - }, - { - "$id": "8", - "Name": "String", - "Namespace": "Type.Scalar", - "Operations": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar", + "children": [ { - "$id": "9", - "Name": "get", - "ResourceName": "String", - "Doc": "get string value", - "Accessibility": "public", - "Parameters": [ + "$id": "7", + "kind": "client", + "name": "String", + "namespace": "Type.Scalar", + "parameters": [ { - "$id": "10", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "8", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "11", - "kind": "constant", - "valueType": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "9", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "10", + "Type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "13", - "StatusCodes": [ - 200 + "$id": "12", + "Name": "get", + "ResourceName": "String", + "Doc": "get string value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "13", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "14", + "kind": "constant", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "16", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/scalar/string", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.String.get", + "Decorators": [] + }, + { + "$id": "18", + "Name": "put", + "ResourceName": "String", + "Doc": "put string value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "19", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "20", + "kind": "constant", + "valueType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "22", + "Name": "body", + "NameInRequest": "body", + "Doc": "_", + "Type": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "24", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/scalar/string", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.String.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/scalar/string", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.String.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.String", + "parent": { + "$ref": "2" + } }, { - "$id": "15", - "Name": "put", - "ResourceName": "String", - "Doc": "put string value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "16", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "17", - "kind": "constant", - "valueType": { - "$id": "18", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "25", + "kind": "client", + "name": "Boolean", + "namespace": "Type.Scalar", + "parameters": [ { - "$id": "19", - "Name": "body", - "NameInRequest": "body", - "Doc": "_", + "$id": "26", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "20", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "27", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "28", + "Type": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "30", + "Name": "get", + "ResourceName": "Boolean", + "Doc": "get boolean value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "31", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "32", + "kind": "constant", + "valueType": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "34", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "35", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/scalar/boolean", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Boolean.get", + "Decorators": [] + }, { - "$id": "21", - "StatusCodes": [ - 204 + "$id": "36", + "Name": "put", + "ResourceName": "Boolean", + "Doc": "put boolean value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "37", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "38", + "kind": "constant", + "valueType": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "40", + "Name": "body", + "NameInRequest": "body", + "Doc": "_", + "Type": { + "$id": "41", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "42", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/scalar/boolean", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Boolean.put", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/scalar/string", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.String.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "22" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "23", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "24", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "25", - "Type": { - "$id": "26", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.Boolean", + "parent": { + "$ref": "2" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.String" - }, - { - "$id": "27", - "Name": "Boolean", - "Namespace": "Type.Scalar", - "Operations": [ + }, { - "$id": "28", - "Name": "get", - "ResourceName": "Boolean", - "Doc": "get boolean value", - "Accessibility": "public", - "Parameters": [ + "$id": "43", + "kind": "client", + "name": "Unknown", + "namespace": "Type.Scalar", + "parameters": [ { - "$id": "29", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "44", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "30", - "kind": "constant", - "valueType": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "45", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "46", + "Type": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "32", - "StatusCodes": [ - 200 + "$id": "48", + "Name": "get", + "ResourceName": "Unknown", + "Doc": "get unknown value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "49", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "50", + "kind": "constant", + "valueType": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "33", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "52", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "53", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/scalar/unknown", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Unknown.get", + "Decorators": [] + }, + { + "$id": "54", + "Name": "put", + "ResourceName": "Unknown", + "Doc": "put unknown value", + "Accessibility": "public", + "Parameters": [ + { + "$id": "55", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "56", + "kind": "constant", + "valueType": { + "$id": "57", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "58", + "Name": "body", + "NameInRequest": "body", + "Doc": "_", + "Type": { + "$id": "59", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "60", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/scalar/unknown", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Unknown.put", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/scalar/boolean", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Boolean.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.Unknown", + "parent": { + "$ref": "2" + } }, { - "$id": "34", - "Name": "put", - "ResourceName": "Boolean", - "Doc": "put boolean value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "35", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "36", - "kind": "constant", - "valueType": { - "$id": "37", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "61", + "kind": "client", + "name": "DecimalType", + "namespace": "Type.Scalar", + "doc": "Decimal type", + "parameters": [ { - "$id": "38", - "Name": "body", - "NameInRequest": "body", - "Doc": "_", + "$id": "62", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "39", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] + "$id": "63", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "64", + "Type": { + "$id": "65", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "66", + "Name": "responseBody", + "ResourceName": "DecimalType", + "Accessibility": "public", + "Parameters": [ + { + "$id": "67", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "68", + "kind": "constant", + "valueType": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "70", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "71", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal/response_body", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody", + "Decorators": [] + }, { - "$id": "40", - "StatusCodes": [ - 204 + "$id": "72", + "Name": "requestBody", + "ResourceName": "DecimalType", + "Accessibility": "public", + "Parameters": [ + { + "$id": "73", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "74", + "kind": "constant", + "valueType": { + "$id": "75", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "76", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "77", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "78", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal/resquest_body", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody", + "Decorators": [] + }, + { + "$id": "79", + "Name": "requestParameter", + "ResourceName": "DecimalType", + "Accessibility": "public", + "Parameters": [ + { + "$id": "80", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "81", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "82", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "Headers": [], - "IsErrorResponse": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal/request_parameter", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.DecimalType.requestParameter", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/scalar/boolean", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Boolean.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "41" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "42", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "43", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "44", - "Type": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.DecimalType", + "parent": { + "$ref": "2" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.Boolean" - }, - { - "$id": "46", - "Name": "Unknown", - "Namespace": "Type.Scalar", - "Operations": [ + }, { - "$id": "47", - "Name": "get", - "ResourceName": "Unknown", - "Doc": "get unknown value", - "Accessibility": "public", - "Parameters": [ + "$id": "83", + "kind": "client", + "name": "Decimal128Type", + "namespace": "Type.Scalar", + "doc": "Decimal128 type", + "parameters": [ { - "$id": "48", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "84", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "49", - "kind": "constant", - "valueType": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "85", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "86", + "Type": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "51", - "StatusCodes": [ - 200 + "$id": "88", + "Name": "responseBody", + "ResourceName": "Decimal128Type", + "Accessibility": "public", + "Parameters": [ + { + "$id": "89", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "90", + "kind": "constant", + "valueType": { + "$id": "91", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "52", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "92", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "93", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal128/response_body", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody", + "Decorators": [] + }, + { + "$id": "94", + "Name": "requestBody", + "ResourceName": "Decimal128Type", + "Accessibility": "public", + "Parameters": [ + { + "$id": "95", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "96", + "kind": "constant", + "valueType": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "98", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "99", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "100", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal128/resquest_body", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody", + "Decorators": [] + }, + { + "$id": "101", + "Name": "requestParameter", + "ResourceName": "Decimal128Type", + "Accessibility": "public", + "Parameters": [ + { + "$id": "102", + "Name": "value", + "NameInRequest": "value", + "Type": { + "$id": "103", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "104", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal128/request_parameter", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestParameter", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/scalar/unknown", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Unknown.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type", + "parent": { + "$ref": "2" + } }, { - "$id": "53", - "Name": "put", - "ResourceName": "Unknown", - "Doc": "put unknown value", - "Accessibility": "public", - "Parameters": [ - { - "$id": "54", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "55", - "kind": "constant", - "valueType": { - "$id": "56", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "105", + "kind": "client", + "name": "DecimalVerify", + "namespace": "Type.Scalar", + "doc": "Decimal type verification", + "parameters": [ { - "$id": "57", - "Name": "body", - "NameInRequest": "body", - "Doc": "_", + "$id": "106", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "58", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] + "$id": "107", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "108", + "Type": { + "$id": "109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "110", + "Name": "prepareVerify", + "ResourceName": "DecimalVerify", + "Accessibility": "public", + "Parameters": [ + { + "$id": "111", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "112", + "kind": "constant", + "valueType": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "114", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "115", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "116", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal/prepare_verify", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify", + "Decorators": [] + }, { - "$id": "59", - "StatusCodes": [ - 204 + "$id": "117", + "Name": "verify", + "ResourceName": "DecimalVerify", + "Accessibility": "public", + "Parameters": [ + { + "$id": "118", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "119", + "kind": "constant", + "valueType": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "121", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "122", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false + "Responses": [ + { + "$id": "123", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal/verify", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify", + "Decorators": [] } ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/scalar/unknown", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Unknown.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "60" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "61", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "62", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "63", - "Type": { - "$id": "64", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify", + "parent": { + "$ref": "2" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.Unknown" - }, - { - "$id": "65", - "Name": "DecimalType", - "Namespace": "Type.Scalar", - "Doc": "Decimal type", - "Operations": [ + }, { - "$id": "66", - "Name": "responseBody", - "ResourceName": "DecimalType", - "Accessibility": "public", - "Parameters": [ + "$id": "124", + "kind": "client", + "name": "Decimal128Verify", + "namespace": "Type.Scalar", + "doc": "Decimal128 type verification", + "parameters": [ { - "$id": "67", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "125", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "68", - "kind": "constant", - "valueType": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "126", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "127", + "Type": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "70", - "StatusCodes": [ - 200 + "$id": "129", + "Name": "prepareVerify", + "ResourceName": "Decimal128Verify", + "Accessibility": "public", + "Parameters": [ + { + "$id": "130", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "131", + "kind": "constant", + "valueType": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "71", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal/response_body", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody", - "Decorators": [] - }, - { - "$id": "72", - "Name": "requestBody", - "ResourceName": "DecimalType", - "Accessibility": "public", - "Parameters": [ - { - "$id": "73", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "74", - "kind": "constant", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "76", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "77", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "78", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal/resquest_body", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody", - "Decorators": [] - }, - { - "$id": "79", - "Name": "requestParameter", - "ResourceName": "DecimalType", - "Accessibility": "public", - "Parameters": [ - { - "$id": "80", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "81", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "82", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal/request_parameter", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.DecimalType.requestParameter", - "Decorators": [] - } - ], - "Protocol": { - "$id": "83" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "84", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "85", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "86", - "Type": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.DecimalType" - }, - { - "$id": "88", - "Name": "Decimal128Type", - "Namespace": "Type.Scalar", - "Doc": "Decimal128 type", - "Operations": [ - { - "$id": "89", - "Name": "responseBody", - "ResourceName": "Decimal128Type", - "Accessibility": "public", - "Parameters": [ - { - "$id": "90", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "91", - "kind": "constant", - "valueType": { - "$id": "92", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "93", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "133", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "134", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "135", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "BodyType": { - "$id": "94", - "kind": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal128/response_body", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody", - "Decorators": [] - }, - { - "$id": "95", - "Name": "requestBody", - "ResourceName": "Decimal128Type", - "Accessibility": "public", - "Parameters": [ - { - "$id": "96", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "97", - "kind": "constant", - "valueType": { - "$id": "98", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal128/prepare_verify", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify", + "Decorators": [] }, { - "$id": "99", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "100", - "kind": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "101", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal128/resquest_body", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody", - "Decorators": [] - }, - { - "$id": "102", - "Name": "requestParameter", - "ResourceName": "Decimal128Type", - "Accessibility": "public", - "Parameters": [ - { - "$id": "103", - "Name": "value", - "NameInRequest": "value", - "Type": { - "$id": "104", - "kind": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", - "decorators": [] - }, - "Location": "Query", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "105", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal128/request_parameter", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestParameter", - "Decorators": [] - } - ], - "Protocol": { - "$id": "106" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "107", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "108", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "109", - "Type": { - "$id": "110", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Type" - }, - { - "$id": "111", - "Name": "DecimalVerify", - "Namespace": "Type.Scalar", - "Doc": "Decimal type verification", - "Operations": [ - { - "$id": "112", - "Name": "prepareVerify", - "ResourceName": "DecimalVerify", - "Accessibility": "public", - "Parameters": [ - { - "$id": "113", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "114", - "kind": "constant", - "valueType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "136", + "Name": "verify", + "ResourceName": "Decimal128Verify", + "Accessibility": "public", + "Parameters": [ + { + "$id": "137", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "138", + "kind": "constant", + "valueType": { + "$id": "139", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "116", - "StatusCodes": [ - 200 + { + "$id": "140", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$id": "141", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$id": "117", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "118", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal/prepare_verify", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify", - "Decorators": [] - }, - { - "$id": "119", - "Name": "verify", - "ResourceName": "DecimalVerify", - "Accessibility": "public", - "Parameters": [ - { - "$id": "120", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "121", - "kind": "constant", - "valueType": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "123", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "124", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "125", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal/verify", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify", - "Decorators": [] - } - ], - "Protocol": { - "$id": "126" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "127", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "128", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "129", - "Type": { - "$id": "130", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.DecimalVerify" - }, - { - "$id": "131", - "Name": "Decimal128Verify", - "Namespace": "Type.Scalar", - "Doc": "Decimal128 type verification", - "Operations": [ - { - "$id": "132", - "Name": "prepareVerify", - "ResourceName": "Decimal128Verify", - "Accessibility": "public", - "Parameters": [ - { - "$id": "133", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "134", - "kind": "constant", - "valueType": { - "$id": "135", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "136", - "StatusCodes": [ - 200 + "Responses": [ + { + "$id": "142", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } ], - "BodyType": { - "$id": "137", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "138", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/type/scalar/decimal128/verify", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal128/prepare_verify", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify", - "Decorators": [] - }, - { - "$id": "139", - "Name": "verify", - "ResourceName": "Decimal128Verify", - "Accessibility": "public", - "Parameters": [ - { - "$id": "140", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "141", - "kind": "constant", - "valueType": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "143", - "Name": "body", - "NameInRequest": "body", - "Type": { - "$id": "144", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "145", - "StatusCodes": [ - 204 ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/type/scalar/decimal128/verify", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify", - "Decorators": [] - } - ], - "Protocol": { - "$id": "146" - }, - "Parent": "ScalarClient", - "Parameters": [ - { - "$id": "147", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "148", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "149", - "Type": { - "$id": "150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify", + "parent": { + "$ref": "2" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Scalar.Decimal128Verify" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json index 7133186f338..d63b72c67cd 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json @@ -1716,21 +1716,18 @@ "Clients": [ { "$id": "211", - "Name": "UnionClient", - "Namespace": "Type.Union", - "Doc": "Describe scenarios for various combinations of unions.", - "Operations": [], - "Protocol": { - "$id": "212" - }, - "Parameters": [ + "kind": "client", + "name": "UnionClient", + "namespace": "Type.Union", + "doc": "Describe scenarios for various combinations of unions.", + "parameters": [ { - "$id": "213", + "$id": "212", "Name": "endpoint", "NameInRequest": "endpoint", "Doc": "Service host", "Type": { - "$id": "214", + "$id": "213", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1745,9 +1742,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "215", + "$id": "214", "Type": { - "$id": "216", + "$id": "215", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1756,1808 +1753,1811 @@ } } ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union" - }, - { - "$id": "217", - "Name": "StringsOnly", - "Namespace": "Type.Union", - "Doc": "Describe union of string \"a\" | \"b\" | \"c\"", - "Operations": [ - { - "$id": "218", - "Name": "get", - "ResourceName": "StringsOnly", - "Accessibility": "public", - "Parameters": [ + "operations": [], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union", + "children": [ + { + "$id": "216", + "kind": "client", + "name": "StringsOnly", + "namespace": "Type.Union", + "doc": "Describe union of string \"a\" | \"b\" | \"c\"", + "parameters": [ { - "$id": "219", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "217", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "220", - "kind": "constant", - "valueType": { - "$id": "221", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "218", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "219", + "Type": { + "$id": "220", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "222", - "StatusCodes": [ - 200 + "$id": "221", + "Name": "get", + "ResourceName": "StringsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "222", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "223", + "kind": "constant", + "valueType": { + "$id": "224", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "203" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "225", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "203" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/union/strings-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringsOnly.get", + "Decorators": [] + }, + { + "$id": "226", + "Name": "send", + "ResourceName": "StringsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "227", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "228", + "kind": "constant", + "valueType": { + "$id": "229", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "230", + "Name": "sendRequest9", + "NameInRequest": "sendRequest9", + "Type": { + "$ref": "207" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "231", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/type/union/strings-only", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringsOnly.send", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/union/strings-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringsOnly.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.StringsOnly", + "parent": { + "$ref": "211" + } }, { - "$id": "223", - "Name": "send", - "ResourceName": "StringsOnly", - "Accessibility": "public", - "Parameters": [ - { - "$id": "224", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "225", - "kind": "constant", - "valueType": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "232", + "kind": "client", + "name": "StringExtensible", + "namespace": "Type.Union", + "doc": "Describe union of string string | \"b\" | \"c\"", + "parameters": [ { - "$id": "227", - "Name": "sendRequest9", - "NameInRequest": "sendRequest9", + "$id": "233", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "207" + "$id": "234", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "235", + "Type": { + "$id": "236", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "228", - "StatusCodes": [ - 204 + "$id": "237", + "Name": "get", + "ResourceName": "StringExtensible", + "Accessibility": "public", + "Parameters": [ + { + "$id": "238", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "239", + "kind": "constant", + "valueType": { + "$id": "240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/type/union/strings-only", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringsOnly.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "229" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "230", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "231", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "232", - "Type": { - "$id": "233", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "241", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "195" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/union/string-extensible", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringExtensible.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.StringsOnly" - }, - { - "$id": "234", - "Name": "StringExtensible", - "Namespace": "Type.Union", - "Doc": "Describe union of string string | \"b\" | \"c\"", - "Operations": [ - { - "$id": "235", - "Name": "get", - "ResourceName": "StringExtensible", - "Accessibility": "public", - "Parameters": [ { - "$id": "236", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "237", - "kind": "constant", - "valueType": { - "$id": "238", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "242", + "Name": "send", + "ResourceName": "StringExtensible", + "Accessibility": "public", + "Parameters": [ + { + "$id": "243", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "244", + "kind": "constant", + "valueType": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "239", - "StatusCodes": [ - 200 + { + "$id": "246", + "Name": "sendRequest8", + "NameInRequest": "sendRequest8", + "Type": { + "$ref": "199" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "195" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "247", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/type/union/string-extensible", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringExtensible.send", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/union/string-extensible", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringExtensible.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.StringExtensible", + "parent": { + "$ref": "211" + } }, { - "$id": "240", - "Name": "send", - "ResourceName": "StringExtensible", - "Accessibility": "public", - "Parameters": [ - { - "$id": "241", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "242", - "kind": "constant", - "valueType": { - "$id": "243", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "248", + "kind": "client", + "name": "StringExtensibleNamed", + "namespace": "Type.Union", + "doc": "Describe union of string string | \"b\" | \"c\" but where the union is named and some of the variants are named", + "parameters": [ { - "$id": "244", - "Name": "sendRequest8", - "NameInRequest": "sendRequest8", + "$id": "249", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "199" + "$id": "250", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "251", + "Type": { + "$id": "252", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "245", - "StatusCodes": [ - 204 + "$id": "253", + "Name": "get", + "ResourceName": "StringExtensibleNamed", + "Accessibility": "public", + "Parameters": [ + { + "$id": "254", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "255", + "kind": "constant", + "valueType": { + "$id": "256", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/type/union/string-extensible", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringExtensible.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "246" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "247", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "248", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "249", - "Type": { - "$id": "250", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "257", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "187" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/union/string-extensible-named", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.StringExtensible" - }, - { - "$id": "251", - "Name": "StringExtensibleNamed", - "Namespace": "Type.Union", - "Doc": "Describe union of string string | \"b\" | \"c\" but where the union is named and some of the variants are named", - "Operations": [ - { - "$id": "252", - "Name": "get", - "ResourceName": "StringExtensibleNamed", - "Accessibility": "public", - "Parameters": [ { - "$id": "253", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "254", - "kind": "constant", - "valueType": { - "$id": "255", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "258", + "Name": "send", + "ResourceName": "StringExtensibleNamed", + "Accessibility": "public", + "Parameters": [ + { + "$id": "259", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "260", + "kind": "constant", + "valueType": { + "$id": "261", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "256", - "StatusCodes": [ - 200 + { + "$id": "262", + "Name": "sendRequest7", + "NameInRequest": "sendRequest7", + "Type": { + "$ref": "191" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "187" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "263", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/type/union/string-extensible-named", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/union/string-extensible-named", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed", + "parent": { + "$ref": "211" + } }, { - "$id": "257", - "Name": "send", - "ResourceName": "StringExtensibleNamed", - "Accessibility": "public", - "Parameters": [ - { - "$id": "258", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "259", - "kind": "constant", - "valueType": { - "$id": "260", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "264", + "kind": "client", + "name": "IntsOnly", + "namespace": "Type.Union", + "doc": "Describe union of integer 1 | 2 | 3", + "parameters": [ { - "$id": "261", - "Name": "sendRequest7", - "NameInRequest": "sendRequest7", + "$id": "265", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "191" + "$id": "266", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "267", + "Type": { + "$id": "268", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "262", - "StatusCodes": [ - 204 - ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/type/union/string-extensible-named", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "263" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "264", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "265", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "266", - "Type": { - "$id": "267", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.StringExtensibleNamed" - }, - { - "$id": "268", - "Name": "IntsOnly", - "Namespace": "Type.Union", - "Doc": "Describe union of integer 1 | 2 | 3", - "Operations": [ - { - "$id": "269", - "Name": "get", - "ResourceName": "IntsOnly", - "Accessibility": "public", - "Parameters": [ - { - "$id": "270", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "271", - "kind": "constant", - "valueType": { - "$id": "272", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "273", - "StatusCodes": [ - 200 + "$id": "269", + "Name": "get", + "ResourceName": "IntsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "270", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "271", + "kind": "constant", + "valueType": { + "$id": "272", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "179" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/union/ints-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.IntsOnly.get", - "Decorators": [] - }, - { - "$id": "274", - "Name": "send", - "ResourceName": "IntsOnly", - "Accessibility": "public", - "Parameters": [ - { - "$id": "275", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "276", - "kind": "constant", - "valueType": { - "$id": "277", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "278", - "Name": "sendRequest6", - "NameInRequest": "sendRequest6", - "Type": { - "$ref": "183" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "279", - "StatusCodes": [ - 204 + "Responses": [ + { + "$id": "273", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "179" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/type/union/ints-only", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.IntsOnly.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "280" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "281", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "282", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "283", - "Type": { - "$id": "284", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/union/ints-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.IntsOnly.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.IntsOnly" - }, - { - "$id": "285", - "Name": "FloatsOnly", - "Namespace": "Type.Union", - "Doc": "Describe union of floats 1.1 | 2.2 | 3.3", - "Operations": [ - { - "$id": "286", - "Name": "get", - "ResourceName": "FloatsOnly", - "Accessibility": "public", - "Parameters": [ { - "$id": "287", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "288", - "kind": "constant", - "valueType": { - "$id": "289", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "274", + "Name": "send", + "ResourceName": "IntsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "275", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "276", + "kind": "constant", + "valueType": { + "$id": "277", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "290", - "StatusCodes": [ - 200 + { + "$id": "278", + "Name": "sendRequest6", + "NameInRequest": "sendRequest6", + "Type": { + "$ref": "183" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "171" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "279", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/type/union/ints-only", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/union/floats-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.FloatsOnly.get", - "Decorators": [] - }, - { - "$id": "291", - "Name": "send", - "ResourceName": "FloatsOnly", - "Accessibility": "public", - "Parameters": [ - { - "$id": "292", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "293", - "kind": "constant", - "valueType": { - "$id": "294", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "295", - "Name": "sendRequest5", - "NameInRequest": "sendRequest5", - "Type": { - "$ref": "175" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "296", - "StatusCodes": [ - 204 ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.IntsOnly.send", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/type/union/floats-only", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.FloatsOnly.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "297" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "298", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "299", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "300", - "Type": { - "$id": "301", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.IntsOnly", + "parent": { + "$ref": "211" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.FloatsOnly" - }, - { - "$id": "302", - "Name": "ModelsOnly", - "Namespace": "Type.Union", - "Doc": "Describe union of models", - "Operations": [ + }, { - "$id": "303", - "Name": "get", - "ResourceName": "ModelsOnly", - "Accessibility": "public", - "Parameters": [ + "$id": "280", + "kind": "client", + "name": "FloatsOnly", + "namespace": "Type.Union", + "doc": "Describe union of floats 1.1 | 2.2 | 3.3", + "parameters": [ { - "$id": "304", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "281", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "305", - "kind": "constant", - "valueType": { - "$id": "306", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "282", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "307", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "157" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/union/models-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.ModelsOnly.get", - "Decorators": [] - }, - { - "$id": "308", - "Name": "send", - "ResourceName": "ModelsOnly", - "Accessibility": "public", - "Parameters": [ - { - "$id": "309", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "310", - "kind": "constant", - "valueType": { - "$id": "311", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "283", + "Type": { + "$id": "284", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "312", - "Name": "sendRequest4", - "NameInRequest": "sendRequest4", - "Type": { - "$ref": "167" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "313", - "StatusCodes": [ - 204 + "$id": "285", + "Name": "get", + "ResourceName": "FloatsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "286", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "287", + "kind": "constant", + "valueType": { + "$id": "288", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/type/union/models-only", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.ModelsOnly.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "314" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "315", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "316", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "317", - "Type": { - "$id": "318", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "289", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "171" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/union/floats-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.FloatsOnly.get", + "Decorators": [] }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.ModelsOnly" - }, - { - "$id": "319", - "Name": "EnumsOnly", - "Namespace": "Type.Union", - "Doc": "Describe union of 2 different enums", - "Operations": [ - { - "$id": "320", - "Name": "get", - "ResourceName": "EnumsOnly", - "Accessibility": "public", - "Parameters": [ { - "$id": "321", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "322", - "kind": "constant", - "valueType": { - "$id": "323", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "290", + "Name": "send", + "ResourceName": "FloatsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "291", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "292", + "kind": "constant", + "valueType": { + "$id": "293", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "324", - "StatusCodes": [ - 200 + { + "$id": "294", + "Name": "sendRequest5", + "NameInRequest": "sendRequest5", + "Type": { + "$ref": "175" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "142" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "295", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/type/union/floats-only", + "RequestMediaTypes": [ "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/union/enums-only", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.EnumsOnly.get", - "Decorators": [] - }, - { - "$id": "325", - "Name": "send", - "ResourceName": "EnumsOnly", - "Accessibility": "public", - "Parameters": [ - { - "$id": "326", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "327", - "kind": "constant", - "valueType": { - "$id": "328", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "329", - "Name": "sendRequest3", - "NameInRequest": "sendRequest3", - "Type": { - "$ref": "153" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "330", - "StatusCodes": [ - 204 ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.FloatsOnly.send", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/type/union/enums-only", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.EnumsOnly.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "331" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "332", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "333", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "334", - "Type": { - "$id": "335", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.FloatsOnly", + "parent": { + "$ref": "211" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.EnumsOnly" - }, - { - "$id": "336", - "Name": "StringAndArray", - "Namespace": "Type.Union", - "Doc": "Describe union of a string and an array of strings", - "Operations": [ + }, { - "$id": "337", - "Name": "get", - "ResourceName": "StringAndArray", - "Accessibility": "public", - "Parameters": [ + "$id": "296", + "kind": "client", + "name": "ModelsOnly", + "namespace": "Type.Union", + "doc": "Describe union of models", + "parameters": [ { - "$id": "338", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "297", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "339", - "kind": "constant", - "valueType": { - "$id": "340", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "298", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "341", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "119" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ - "application/json" - ] - } - ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/union/string-and-array", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringAndArray.get", - "Decorators": [] - }, - { - "$id": "342", - "Name": "send", - "ResourceName": "StringAndArray", - "Accessibility": "public", - "Parameters": [ - { - "$id": "343", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "344", - "kind": "constant", - "valueType": { - "$id": "345", + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "299", + "Type": { + "$id": "300", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "346", - "Name": "sendRequest2", - "NameInRequest": "sendRequest2", - "Type": { - "$ref": "138" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "347", - "StatusCodes": [ - 204 + "$id": "301", + "Name": "get", + "ResourceName": "ModelsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "302", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "303", + "kind": "constant", + "valueType": { + "$id": "304", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/type/union/string-and-array", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.StringAndArray.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "348" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "349", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "350", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "351", - "Type": { - "$id": "352", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "Responses": [ + { + "$id": "305", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "157" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/union/models-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.ModelsOnly.get", + "Decorators": [] }, - "Value": "http://localhost:3000" + { + "$id": "306", + "Name": "send", + "ResourceName": "ModelsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "307", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "308", + "kind": "constant", + "valueType": { + "$id": "309", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "310", + "Name": "sendRequest4", + "NameInRequest": "sendRequest4", + "Type": { + "$ref": "167" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "311", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/type/union/models-only", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.ModelsOnly.send", + "Decorators": [] + } + ], + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.ModelsOnly", + "parent": { + "$ref": "211" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.StringAndArray" - }, - { - "$id": "353", - "Name": "MixedLiterals", - "Namespace": "Type.Union", - "Doc": "Describe union of floats \"a\" | 2 | 3.3", - "Operations": [ + }, { - "$id": "354", - "Name": "get", - "ResourceName": "MixedLiterals", - "Accessibility": "public", - "Parameters": [ + "$id": "312", + "kind": "client", + "name": "EnumsOnly", + "namespace": "Type.Union", + "doc": "Describe union of 2 different enums", + "parameters": [ { - "$id": "355", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "313", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "356", - "kind": "constant", - "valueType": { - "$id": "357", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "314", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "315", + "Type": { + "$id": "316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "317", + "Name": "get", + "ResourceName": "EnumsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "318", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "319", + "kind": "constant", + "valueType": { + "$id": "320", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "321", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "142" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/union/enums-only", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.EnumsOnly.get", + "Decorators": [] + }, { - "$id": "358", - "StatusCodes": [ - 200 + "$id": "322", + "Name": "send", + "ResourceName": "EnumsOnly", + "Accessibility": "public", + "Parameters": [ + { + "$id": "323", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "324", + "kind": "constant", + "valueType": { + "$id": "325", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "326", + "Name": "sendRequest3", + "NameInRequest": "sendRequest3", + "Type": { + "$ref": "153" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "89" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "327", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/type/union/enums-only", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.EnumsOnly.send", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/union/mixed-literals", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.MixedLiterals.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.EnumsOnly", + "parent": { + "$ref": "211" + } }, { - "$id": "359", - "Name": "send", - "ResourceName": "MixedLiterals", - "Accessibility": "public", - "Parameters": [ - { - "$id": "360", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "361", - "kind": "constant", - "valueType": { - "$id": "362", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "328", + "kind": "client", + "name": "StringAndArray", + "namespace": "Type.Union", + "doc": "Describe union of a string and an array of strings", + "parameters": [ { - "$id": "363", - "Name": "sendRequest1", - "NameInRequest": "sendRequest1", + "$id": "329", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "115" + "$id": "330", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "331", + "Type": { + "$id": "332", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "333", + "Name": "get", + "ResourceName": "StringAndArray", + "Accessibility": "public", + "Parameters": [ + { + "$id": "334", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "335", + "kind": "constant", + "valueType": { + "$id": "336", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "337", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "119" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/union/string-and-array", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringAndArray.get", + "Decorators": [] + }, { - "$id": "364", - "StatusCodes": [ - 204 + "$id": "338", + "Name": "send", + "ResourceName": "StringAndArray", + "Accessibility": "public", + "Parameters": [ + { + "$id": "339", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "340", + "kind": "constant", + "valueType": { + "$id": "341", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "342", + "Name": "sendRequest2", + "NameInRequest": "sendRequest2", + "Type": { + "$ref": "138" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "343", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/type/union/string-and-array", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.StringAndArray.send", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/type/union/mixed-literals", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.MixedLiterals.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "365" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "366", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "367", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "368", - "Type": { - "$id": "369", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.StringAndArray", + "parent": { + "$ref": "211" } - } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.MixedLiterals" - }, - { - "$id": "370", - "Name": "MixedTypes", - "Namespace": "Type.Union", - "Doc": "Describe union of floats \"a\" | 2 | 3.3", - "Operations": [ + }, { - "$id": "371", - "Name": "get", - "ResourceName": "MixedTypes", - "Accessibility": "public", - "Parameters": [ + "$id": "344", + "kind": "client", + "name": "MixedLiterals", + "namespace": "Type.Union", + "doc": "Describe union of floats \"a\" | 2 | 3.3", + "parameters": [ { - "$id": "372", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "345", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$id": "373", - "kind": "constant", - "valueType": { - "$id": "374", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "346", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "347", + "Type": { + "$id": "348", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ { - "$id": "375", - "StatusCodes": [ - 200 + "$id": "349", + "Name": "get", + "ResourceName": "MixedLiterals", + "Accessibility": "public", + "Parameters": [ + { + "$id": "350", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "351", + "kind": "constant", + "valueType": { + "$id": "352", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "54" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "353", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "89" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/union/mixed-literals", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.MixedLiterals.get", + "Decorators": [] + }, + { + "$id": "354", + "Name": "send", + "ResourceName": "MixedLiterals", + "Accessibility": "public", + "Parameters": [ + { + "$id": "355", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "356", + "kind": "constant", + "valueType": { + "$id": "357", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "358", + "Name": "sendRequest1", + "NameInRequest": "sendRequest1", + "Type": { + "$ref": "115" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "359", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/type/union/mixed-literals", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.MixedLiterals.send", + "Decorators": [] } ], - "HttpMethod": "GET", - "Uri": "{endpoint}", - "Path": "/type/union/mixed-types", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.MixedTypes.get", - "Decorators": [] + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.MixedLiterals", + "parent": { + "$ref": "211" + } }, { - "$id": "376", - "Name": "send", - "ResourceName": "MixedTypes", - "Accessibility": "public", - "Parameters": [ - { - "$id": "377", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "378", - "kind": "constant", - "valueType": { - "$id": "379", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "360", + "kind": "client", + "name": "MixedTypes", + "namespace": "Type.Union", + "doc": "Describe union of floats \"a\" | 2 | 3.3", + "parameters": [ { - "$id": "380", - "Name": "sendRequest", - "NameInRequest": "sendRequest", + "$id": "361", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", "Type": { - "$ref": "85" + "$id": "362", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Spread", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "363", + "Type": { + "$id": "364", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "http://localhost:3000" + } } ], - "Responses": [ + "operations": [ + { + "$id": "365", + "Name": "get", + "ResourceName": "MixedTypes", + "Accessibility": "public", + "Parameters": [ + { + "$id": "366", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "367", + "kind": "constant", + "valueType": { + "$id": "368", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "369", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "54" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/type/union/mixed-types", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.MixedTypes.get", + "Decorators": [] + }, { - "$id": "381", - "StatusCodes": [ - 204 + "$id": "370", + "Name": "send", + "ResourceName": "MixedTypes", + "Accessibility": "public", + "Parameters": [ + { + "$id": "371", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "372", + "kind": "constant", + "valueType": { + "$id": "373", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "374", + "Name": "sendRequest", + "NameInRequest": "sendRequest", + "Type": { + "$ref": "85" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "375", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/type/union/mixed-types", + "RequestMediaTypes": [ + "application/json" ], - "Headers": [], - "IsErrorResponse": false + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Type.Union.MixedTypes.send", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}", - "Path": "/type/union/mixed-types", - "RequestMediaTypes": [ - "application/json" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Type.Union.MixedTypes.send", - "Decorators": [] - } - ], - "Protocol": { - "$id": "382" - }, - "Parent": "UnionClient", - "Parameters": [ - { - "$id": "383", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Service host", - "Type": { - "$id": "384", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "385", - "Type": { - "$id": "386", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" + "apiVersions": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypes", + "parent": { + "$ref": "211" } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Type.Union.MixedTypes" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json index 9ff09aba6a6..ec88afb57f4 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json @@ -369,22 +369,64 @@ "Clients": [ { "$id": "47", - "Name": "AddedClient", - "Namespace": "Versioning.Added", - "Doc": "Test for the `@added` decorator.", - "Operations": [ + "kind": "client", + "name": "AddedClient", + "namespace": "Versioning.Added", + "doc": "Test for the `@added` decorator.", + "parameters": [ { "$id": "48", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "49", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "50", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "12" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "51", "Name": "v1", "ResourceName": "Added", "Accessibility": "public", "Parameters": [ { - "$id": "49", + "$id": "52", "Name": "headerV2", "NameInRequest": "header-v2", "Type": { - "$id": "50", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -401,15 +443,15 @@ "SkipUrlEncoding": false }, { - "$id": "51", + "$id": "54", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "52", + "$id": "55", "kind": "constant", "valueType": { - "$id": "53", + "$id": "56", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -429,14 +471,14 @@ "SkipUrlEncoding": false }, { - "$id": "54", + "$id": "57", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "55", + "$id": "58", "kind": "constant", "valueType": { - "$id": "56", + "$id": "59", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -456,7 +498,7 @@ "SkipUrlEncoding": false }, { - "$id": "57", + "$id": "60", "Name": "body", "NameInRequest": "body", "Type": { @@ -475,7 +517,7 @@ ], "Responses": [ { - "$id": "58", + "$id": "61", "StatusCodes": [ 200 ], @@ -502,21 +544,21 @@ "Decorators": [] }, { - "$id": "59", + "$id": "62", "Name": "v2", "ResourceName": "Added", "Accessibility": "public", "Parameters": [ { - "$id": "60", + "$id": "63", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "61", + "$id": "64", "kind": "constant", "valueType": { - "$id": "62", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -536,14 +578,14 @@ "SkipUrlEncoding": false }, { - "$id": "63", + "$id": "66", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "64", + "$id": "67", "kind": "constant", "valueType": { - "$id": "65", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -563,7 +605,7 @@ "SkipUrlEncoding": false }, { - "$id": "66", + "$id": "69", "Name": "body", "NameInRequest": "body", "Type": { @@ -582,7 +624,7 @@ ], "Responses": [ { - "$id": "67", + "$id": "70", "StatusCodes": [ 200 ], @@ -609,213 +651,176 @@ "Decorators": [] } ], - "Protocol": { - "$id": "68" - }, - "Parameters": [ - { - "$id": "69", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "70", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "71", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "12" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1", + "v2" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Added" - }, - { - "$id": "72", - "Name": "InterfaceV2", - "Namespace": "Versioning.Added", - "Operations": [ + "crossLanguageDefinitionId": "Versioning.Added", + "children": [ { - "$id": "73", - "Name": "v2InInterface", - "ResourceName": "InterfaceV2", - "Accessibility": "public", - "Parameters": [ - { - "$id": "74", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "75", - "kind": "constant", - "valueType": { - "$id": "76", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "71", + "kind": "client", + "name": "InterfaceV2", + "namespace": "Versioning.Added", + "parameters": [ { - "$id": "77", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "72", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "78", - "kind": "constant", - "valueType": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "73", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" }, { - "$id": "80", - "Name": "body", - "NameInRequest": "body", + "$id": "74", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", "Type": { - "$ref": "33" + "$ref": "12" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, + "IsRequired": true, "IsEndpoint": false, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Kind": "Client" } ], - "Responses": [ + "operations": [ { - "$id": "81", - "StatusCodes": [ - 200 + "$id": "75", + "Name": "v2InInterface", + "ResourceName": "InterfaceV2", + "Accessibility": "public", + "Parameters": [ + { + "$id": "76", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "77", + "kind": "constant", + "valueType": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "79", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "80", + "kind": "constant", + "valueType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "82", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "33" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "33" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "83", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "33" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/versioning/added/api-version:{version}", + "Path": "/interface-v2/v2", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/versioning/added/api-version:{version}", - "Path": "/interface-v2/v2", - "RequestMediaTypes": [ - "application/json" + "apiVersions": [ + "v2" ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface", - "Decorators": [] - } - ], - "Protocol": { - "$id": "82" - }, - "Parent": "AddedClient", - "Parameters": [ - { - "$id": "83", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "84", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "85", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "12" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2", + "parent": { + "$ref": "47" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Added.InterfaceV2" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json index 14ee17c0d49..bce76bcf29e 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json @@ -496,27 +496,69 @@ "Clients": [ { "$id": "64", - "Name": "RemovedClient", - "Namespace": "Versioning.Removed", - "Doc": "Test for the `@removed` decorator.", - "Operations": [ + "kind": "client", + "name": "RemovedClient", + "namespace": "Versioning.Removed", + "doc": "Test for the `@removed` decorator.", + "parameters": [ { "$id": "65", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "66", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "67", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "Type": { + "$ref": "18" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "68", "Name": "v1", "ResourceName": "Removed", "Doc": "This operation should not be generated with latest version's signature.", "Accessibility": "public", "Parameters": [ { - "$id": "66", + "$id": "69", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "67", + "$id": "70", "kind": "constant", "valueType": { - "$id": "68", + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -536,14 +578,14 @@ "SkipUrlEncoding": false }, { - "$id": "69", + "$id": "72", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "70", + "$id": "73", "kind": "constant", "valueType": { - "$id": "71", + "$id": "74", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -563,7 +605,7 @@ "SkipUrlEncoding": false }, { - "$id": "72", + "$id": "75", "Name": "body", "NameInRequest": "body", "Type": { @@ -582,7 +624,7 @@ ], "Responses": [ { - "$id": "73", + "$id": "76", "StatusCodes": [ 200 ], @@ -609,17 +651,17 @@ "Decorators": [] }, { - "$id": "74", + "$id": "77", "Name": "v2", "ResourceName": "Removed", "Accessibility": "public", "Parameters": [ { - "$id": "75", + "$id": "78", "Name": "param", "NameInRequest": "param", "Type": { - "$id": "76", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -636,15 +678,15 @@ "SkipUrlEncoding": false }, { - "$id": "77", + "$id": "80", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "78", + "$id": "81", "kind": "constant", "valueType": { - "$id": "79", + "$id": "82", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -664,14 +706,14 @@ "SkipUrlEncoding": false }, { - "$id": "80", + "$id": "83", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "81", + "$id": "84", "kind": "constant", "valueType": { - "$id": "82", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -691,7 +733,7 @@ "SkipUrlEncoding": false }, { - "$id": "83", + "$id": "86", "Name": "body", "NameInRequest": "body", "Type": { @@ -710,7 +752,7 @@ ], "Responses": [ { - "$id": "84", + "$id": "87", "StatusCodes": [ 200 ], @@ -737,22 +779,22 @@ "Decorators": [] }, { - "$id": "85", + "$id": "88", "Name": "modelV3", "ResourceName": "Removed", "Doc": "This operation will pass different paths and different request bodies based on different versions.", "Accessibility": "public", "Parameters": [ { - "$id": "86", + "$id": "89", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "87", + "$id": "90", "kind": "constant", "valueType": { - "$id": "88", + "$id": "91", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -772,14 +814,14 @@ "SkipUrlEncoding": false }, { - "$id": "89", + "$id": "92", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "90", + "$id": "93", "kind": "constant", "valueType": { - "$id": "91", + "$id": "94", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -799,7 +841,7 @@ "SkipUrlEncoding": false }, { - "$id": "92", + "$id": "95", "Name": "body", "NameInRequest": "body", "Type": { @@ -818,7 +860,7 @@ ], "Responses": [ { - "$id": "93", + "$id": "96", "StatusCodes": [ 200 ], @@ -845,214 +887,176 @@ "Decorators": [] } ], - "Protocol": { - "$id": "94" - }, - "Parameters": [ - { - "$id": "95", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "96", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "97", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "Type": { - "$ref": "18" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Removed" - }, - { - "$id": "98", - "Name": "InterfaceV1", - "Namespace": "Versioning.Removed", - "Doc": "This operation group should not be generated with latest version.", - "Operations": [ + "crossLanguageDefinitionId": "Versioning.Removed", + "children": [ { - "$id": "99", - "Name": "v1InInterface", - "ResourceName": "InterfaceV1", - "Accessibility": "public", - "Parameters": [ - { - "$id": "100", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "101", - "kind": "constant", - "valueType": { - "$id": "102", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "97", + "kind": "client", + "name": "InterfaceV1", + "namespace": "Versioning.Removed", + "doc": "This operation group should not be generated with latest version.", + "parameters": [ { - "$id": "103", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "98", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "104", - "kind": "constant", - "valueType": { - "$id": "105", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "99", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" }, { - "$id": "106", - "Name": "body", - "NameInRequest": "body", + "$id": "100", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "Type": { - "$ref": "22" + "$ref": "18" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, + "IsRequired": true, "IsEndpoint": false, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Kind": "Client" } ], - "Responses": [ + "operations": [ { - "$id": "107", - "StatusCodes": [ - 200 + "$id": "101", + "Name": "v1InInterface", + "ResourceName": "InterfaceV1", + "Accessibility": "public", + "Parameters": [ + { + "$id": "102", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "103", + "kind": "constant", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "105", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "106", + "kind": "constant", + "valueType": { + "$id": "107", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "108", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "22" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "22" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "109", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "22" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/versioning/removed/api-version:{version}", + "Path": "/interface-v1/v1", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/versioning/removed/api-version:{version}", - "Path": "/interface-v1/v1", - "RequestMediaTypes": [ - "application/json" + "apiVersions": [ + "v1" ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface", - "Decorators": [] - } - ], - "Protocol": { - "$id": "108" - }, - "Parent": "RemovedClient", - "Parameters": [ - { - "$id": "109", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "110", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "111", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "Type": { - "$ref": "18" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", + "parent": { + "$ref": "64" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Removed.InterfaceV1" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json index 812b55959f0..fbd9b3cf091 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json @@ -439,27 +439,69 @@ "Clients": [ { "$id": "57", - "Name": "RemovedClient", - "Namespace": "Versioning.Removed", - "Doc": "Test for the `@removed` decorator.", - "Operations": [ + "kind": "client", + "name": "RemovedClient", + "namespace": "Versioning.Removed", + "doc": "Test for the `@removed` decorator.", + "parameters": [ { "$id": "58", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "59", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "60", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "Type": { + "$ref": "12" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "61", "Name": "v1", "ResourceName": "Removed", "Doc": "This operation should not be generated with latest version's signature.", "Accessibility": "public", "Parameters": [ { - "$id": "59", + "$id": "62", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "60", + "$id": "63", "kind": "constant", "valueType": { - "$id": "61", + "$id": "64", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -479,14 +521,14 @@ "SkipUrlEncoding": false }, { - "$id": "62", + "$id": "65", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "63", + "$id": "66", "kind": "constant", "valueType": { - "$id": "64", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -506,7 +548,7 @@ "SkipUrlEncoding": false }, { - "$id": "65", + "$id": "68", "Name": "body", "NameInRequest": "body", "Type": { @@ -525,7 +567,7 @@ ], "Responses": [ { - "$id": "66", + "$id": "69", "StatusCodes": [ 200 ], @@ -552,17 +594,17 @@ "Decorators": [] }, { - "$id": "67", + "$id": "70", "Name": "v2", "ResourceName": "Removed", "Accessibility": "public", "Parameters": [ { - "$id": "68", + "$id": "71", "Name": "param", "NameInRequest": "param", "Type": { - "$id": "69", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -579,15 +621,15 @@ "SkipUrlEncoding": false }, { - "$id": "70", + "$id": "73", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "71", + "$id": "74", "kind": "constant", "valueType": { - "$id": "72", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -607,14 +649,14 @@ "SkipUrlEncoding": false }, { - "$id": "73", + "$id": "76", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "74", + "$id": "77", "kind": "constant", "valueType": { - "$id": "75", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -634,7 +676,7 @@ "SkipUrlEncoding": false }, { - "$id": "76", + "$id": "79", "Name": "body", "NameInRequest": "body", "Type": { @@ -653,7 +695,7 @@ ], "Responses": [ { - "$id": "77", + "$id": "80", "StatusCodes": [ 200 ], @@ -680,22 +722,22 @@ "Decorators": [] }, { - "$id": "78", + "$id": "81", "Name": "modelV3", "ResourceName": "Removed", "Doc": "This operation will pass different paths and different request bodies based on different versions.", "Accessibility": "public", "Parameters": [ { - "$id": "79", + "$id": "82", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "80", + "$id": "83", "kind": "constant", "valueType": { - "$id": "81", + "$id": "84", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -715,14 +757,14 @@ "SkipUrlEncoding": false }, { - "$id": "82", + "$id": "85", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "83", + "$id": "86", "kind": "constant", "valueType": { - "$id": "84", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -742,7 +784,7 @@ "SkipUrlEncoding": false }, { - "$id": "85", + "$id": "88", "Name": "body", "NameInRequest": "body", "Type": { @@ -761,7 +803,7 @@ ], "Responses": [ { - "$id": "86", + "$id": "89", "StatusCodes": [ 200 ], @@ -788,214 +830,178 @@ "Decorators": [] } ], - "Protocol": { - "$id": "87" - }, - "Parameters": [ - { - "$id": "88", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "89", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "90", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "Type": { - "$ref": "12" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1", + "v2preview" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Removed" - }, - { - "$id": "91", - "Name": "InterfaceV1", - "Namespace": "Versioning.Removed", - "Doc": "This operation group should not be generated with latest version.", - "Operations": [ + "crossLanguageDefinitionId": "Versioning.Removed", + "children": [ { - "$id": "92", - "Name": "v1InInterface", - "ResourceName": "InterfaceV1", - "Accessibility": "public", - "Parameters": [ - { - "$id": "93", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "94", - "kind": "constant", - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "90", + "kind": "client", + "name": "InterfaceV1", + "namespace": "Versioning.Removed", + "doc": "This operation group should not be generated with latest version.", + "parameters": [ { - "$id": "96", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "91", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "97", - "kind": "constant", - "valueType": { - "$id": "98", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "92", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" }, { - "$id": "99", - "Name": "body", - "NameInRequest": "body", + "$id": "93", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "Type": { - "$ref": "18" + "$ref": "12" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, + "IsRequired": true, "IsEndpoint": false, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Kind": "Client" } ], - "Responses": [ + "operations": [ { - "$id": "100", - "StatusCodes": [ - 200 + "$id": "94", + "Name": "v1InInterface", + "ResourceName": "InterfaceV1", + "Accessibility": "public", + "Parameters": [ + { + "$id": "95", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "96", + "kind": "constant", + "valueType": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "98", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "99", + "kind": "constant", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "101", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "18" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "18" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "102", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "18" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/versioning/removed/api-version:{version}", + "Path": "/interface-v1/v1", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/versioning/removed/api-version:{version}", - "Path": "/interface-v1/v1", - "RequestMediaTypes": [ - "application/json" + "apiVersions": [ + "v1", + "v2preview" ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface", - "Decorators": [] - } - ], - "Protocol": { - "$id": "101" - }, - "Parent": "RemovedClient", - "Parameters": [ - { - "$id": "102", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "103", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "104", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "Type": { - "$ref": "12" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", + "parent": { + "$ref": "57" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.Removed.InterfaceV1" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json index f2be90a2b5e..74eeed6510f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json @@ -195,22 +195,64 @@ "Clients": [ { "$id": "25", - "Name": "RenamedFromClient", - "Namespace": "Versioning.RenamedFrom", - "Doc": "Test for the `@renamedFrom` decorator.", - "Operations": [ + "kind": "client", + "name": "RenamedFromClient", + "namespace": "Versioning.RenamedFrom", + "doc": "Test for the `@renamedFrom` decorator.", + "parameters": [ { "$id": "26", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "27", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "28", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "6" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "29", "Name": "oldOp", "ResourceName": "RenamedFrom", "Accessibility": "public", "Parameters": [ { - "$id": "27", + "$id": "30", "Name": "oldQuery", "NameInRequest": "newQuery", "Type": { - "$id": "28", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -227,15 +269,15 @@ "SkipUrlEncoding": false }, { - "$id": "29", + "$id": "32", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "30", + "$id": "33", "kind": "constant", "valueType": { - "$id": "31", + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -255,14 +297,14 @@ "SkipUrlEncoding": false }, { - "$id": "32", + "$id": "35", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "33", + "$id": "36", "kind": "constant", "valueType": { - "$id": "34", + "$id": "37", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -282,7 +324,7 @@ "SkipUrlEncoding": false }, { - "$id": "35", + "$id": "38", "Name": "body", "NameInRequest": "body", "Type": { @@ -301,7 +343,7 @@ ], "Responses": [ { - "$id": "36", + "$id": "39", "StatusCodes": [ 200 ], @@ -328,213 +370,175 @@ "Decorators": [] } ], - "Protocol": { - "$id": "37" - }, - "Parameters": [ - { - "$id": "38", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "39", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "40", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "6" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.RenamedFrom" - }, - { - "$id": "41", - "Name": "OldInterface", - "Namespace": "Versioning.RenamedFrom", - "Operations": [ + "crossLanguageDefinitionId": "Versioning.RenamedFrom", + "children": [ { - "$id": "42", - "Name": "newOpInNewInterface", - "ResourceName": "OldInterface", - "Accessibility": "public", - "Parameters": [ - { - "$id": "43", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "44", - "kind": "constant", - "valueType": { - "$id": "45", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "40", + "kind": "client", + "name": "OldInterface", + "namespace": "Versioning.RenamedFrom", + "parameters": [ { - "$id": "46", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "41", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "47", - "kind": "constant", - "valueType": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "42", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" }, { - "$id": "49", - "Name": "body", - "NameInRequest": "body", + "$id": "43", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", "Type": { - "$ref": "10" + "$ref": "6" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, + "IsRequired": true, "IsEndpoint": false, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Kind": "Client" } ], - "Responses": [ + "operations": [ { - "$id": "50", - "StatusCodes": [ - 200 + "$id": "44", + "Name": "newOpInNewInterface", + "ResourceName": "OldInterface", + "Accessibility": "public", + "Parameters": [ + { + "$id": "45", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "46", + "kind": "constant", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "48", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "49", + "kind": "constant", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "51", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "10" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "10" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "52", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "10" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/versioning/renamed-from/api-version:{version}", + "Path": "/interface/test", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/versioning/renamed-from/api-version:{version}", - "Path": "/interface/test", - "RequestMediaTypes": [ - "application/json" + "apiVersions": [ + "v1" ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface", - "Decorators": [] - } - ], - "Protocol": { - "$id": "51" - }, - "Parent": "RenamedFromClient", - "Parameters": [ - { - "$id": "52", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "53", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "54", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "6" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface", + "parent": { + "$ref": "25" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json index 1ec551782d0..8f184ae8beb 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json @@ -214,22 +214,64 @@ "Clients": [ { "$id": "27", - "Name": "RenamedFromClient", - "Namespace": "Versioning.RenamedFrom", - "Doc": "Test for the `@renamedFrom` decorator.", - "Operations": [ + "kind": "client", + "name": "RenamedFromClient", + "namespace": "Versioning.RenamedFrom", + "doc": "Test for the `@renamedFrom` decorator.", + "parameters": [ { "$id": "28", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", + "Type": { + "$id": "29", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "30", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", + "Type": { + "$ref": "6" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "operations": [ + { + "$id": "31", "Name": "newOp", "ResourceName": "RenamedFrom", "Accessibility": "public", "Parameters": [ { - "$id": "29", + "$id": "32", "Name": "newQuery", "NameInRequest": "newQuery", "Type": { - "$id": "30", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -246,15 +288,15 @@ "SkipUrlEncoding": false }, { - "$id": "31", + "$id": "34", "Name": "contentType", "NameInRequest": "Content-Type", "Doc": "Body parameter's content type. Known values are application/json", "Type": { - "$id": "32", + "$id": "35", "kind": "constant", "valueType": { - "$id": "33", + "$id": "36", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -274,14 +316,14 @@ "SkipUrlEncoding": false }, { - "$id": "34", + "$id": "37", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "35", + "$id": "38", "kind": "constant", "valueType": { - "$id": "36", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -301,7 +343,7 @@ "SkipUrlEncoding": false }, { - "$id": "37", + "$id": "40", "Name": "body", "NameInRequest": "body", "Type": { @@ -320,7 +362,7 @@ ], "Responses": [ { - "$id": "38", + "$id": "41", "StatusCodes": [ 200 ], @@ -347,213 +389,177 @@ "Decorators": [] } ], - "Protocol": { - "$id": "39" - }, - "Parameters": [ - { - "$id": "40", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "41", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "42", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "6" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - } + "apiVersions": [ + "v1", + "v2" ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.RenamedFrom" - }, - { - "$id": "43", - "Name": "NewInterface", - "Namespace": "Versioning.RenamedFrom", - "Operations": [ + "crossLanguageDefinitionId": "Versioning.RenamedFrom", + "children": [ { - "$id": "44", - "Name": "newOpInNewInterface", - "ResourceName": "NewInterface", - "Accessibility": "public", - "Parameters": [ - { - "$id": "45", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Doc": "Body parameter's content type. Known values are application/json", - "Type": { - "$id": "46", - "kind": "constant", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, + "$id": "42", + "kind": "client", + "name": "NewInterface", + "namespace": "Versioning.RenamedFrom", + "parameters": [ { - "$id": "48", - "Name": "accept", - "NameInRequest": "Accept", + "$id": "43", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Need to be set as 'http://localhost:3000' in client.", "Type": { - "$id": "49", - "kind": "constant", - "valueType": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "44", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "Location": "Header", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, - "IsEndpoint": false, - "Explode": false, "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" }, { - "$id": "51", - "Name": "body", - "NameInRequest": "body", + "$id": "45", + "Name": "version", + "NameInRequest": "version", + "Doc": "Need to be set as 'v1' or 'v2' in client.", "Type": { - "$ref": "12" + "$ref": "6" }, - "Location": "Body", + "Location": "Uri", "IsApiVersion": false, + "IsResourceParameter": false, "IsContentType": false, + "IsRequired": true, "IsEndpoint": false, + "SkipUrlEncoding": false, "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false + "Kind": "Client" } ], - "Responses": [ + "operations": [ { - "$id": "52", - "StatusCodes": [ - 200 + "$id": "46", + "Name": "newOpInNewInterface", + "ResourceName": "NewInterface", + "Accessibility": "public", + "Parameters": [ + { + "$id": "47", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "48", + "kind": "constant", + "valueType": { + "$id": "49", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "50", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "51", + "kind": "constant", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "53", + "Name": "body", + "NameInRequest": "body", + "Type": { + "$ref": "12" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } ], - "BodyType": { - "$ref": "12" - }, - "Headers": [], - "IsErrorResponse": false, - "ContentTypes": [ + "Responses": [ + { + "$id": "54", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "12" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}/versioning/renamed-from/api-version:{version}", + "Path": "/interface/test", + "RequestMediaTypes": [ "application/json" - ] + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface", + "Decorators": [] } ], - "HttpMethod": "POST", - "Uri": "{endpoint}/versioning/renamed-from/api-version:{version}", - "Path": "/interface/test", - "RequestMediaTypes": [ - "application/json" + "apiVersions": [ + "v1", + "v2" ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface", - "Decorators": [] - } - ], - "Protocol": { - "$id": "53" - }, - "Parent": "RenamedFromClient", - "Parameters": [ - { - "$id": "54", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Doc": "Need to be set as 'http://localhost:3000' in client.", - "Type": { - "$id": "55", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" - }, - { - "$id": "56", - "Name": "version", - "NameInRequest": "version", - "Doc": "Need to be set as 'v1' or 'v2' in client.", - "Type": { - "$ref": "6" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": false, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface", + "parent": { + "$ref": "27" + } } - ], - "Decorators": [], - "CrossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface" + ] } ] } From 75f1385ac042874f7a8c007cd5db2813658d558b Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 10 Mar 2025 15:26:35 +0800 Subject: [PATCH 09/20] fix spell check --- .../src/InputTypes/Serialization/TypeSpecSerialization.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs index cbace731bae..93f8a1ec357 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs @@ -89,7 +89,7 @@ private static string BuildClientName(string name, List parentNames) { if (parentNames.Count <= 1) { - // toplevel client, and first level sub-client will keep its orignal name. + // toplevel client, and first level sub-client will keep its original name. return name; } From 2f24d1541f336ce730533062423974da1f95872a Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 10 Mar 2025 16:02:10 +0800 Subject: [PATCH 10/20] fix test case issues --- .../emitter/src/lib/client-converter.ts | 1 + .../emitter/test/Unit/decorator-list.test.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/lib/client-converter.ts b/packages/http-client-csharp/emitter/src/lib/client-converter.ts index 47a65fc7f6e..a53c01ab0ff 100644 --- a/packages/http-client-csharp/emitter/src/lib/client-converter.ts +++ b/packages/http-client-csharp/emitter/src/lib/client-converter.ts @@ -59,6 +59,7 @@ function fromSdkClient( .map((m) => fromSdkServiceMethod(sdkContext, m, uri, rootApiVersions)), apiVersions: client.apiVersions, crossLanguageDefinitionId: client.crossLanguageDefinitionId, + decorators: client.decorators, parent: undefined, children: undefined, }; diff --git a/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts b/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts index c6a75ca27b9..b7eb7e49069 100644 --- a/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts +++ b/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts @@ -8,6 +8,7 @@ import { createEmitterTestHost, typeSpecCompile, } from "./utils/test-util.js"; +import { ok } from "assert/strict"; describe("Test emitting decorator list", () => { let runner: TestHost; @@ -33,8 +34,11 @@ describe("Test emitting decorator list", () => { }); const root = createModel(sdkContext); const clients = root.Clients; - strictEqual(clients.length, 2); - deepStrictEqual(clients[1].decorators, [ + strictEqual(clients.length, 1); + ok(clients[0].children); + strictEqual(clients[0].children.length, 1); + const childClient = clients[0].children[0]; + deepStrictEqual(childClient.decorators, [ { name: "Azure.ClientGenerator.Core.@clientName", arguments: { From 67614d8452f510caca24f8ed311e08ca188a2b85 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 10 Mar 2025 16:18:26 +0800 Subject: [PATCH 11/20] format --- .../http-client-csharp/emitter/test/Unit/decorator-list.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts b/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts index b7eb7e49069..4d83a5822b4 100644 --- a/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts +++ b/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts @@ -1,5 +1,6 @@ import { TestHost } from "@typespec/compiler/testing"; import { deepStrictEqual, strictEqual } from "assert"; +import { ok } from "assert/strict"; import { beforeEach, describe, it } from "vitest"; import { createModel } from "../../src/lib/client-model-builder.js"; import { @@ -8,7 +9,6 @@ import { createEmitterTestHost, typeSpecCompile, } from "./utils/test-util.js"; -import { ok } from "assert/strict"; describe("Test emitting decorator list", () => { let runner: TestHost; From c3c015454e978ed1125f3afa2ef26763234e7b14 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 10 Mar 2025 16:34:47 +0800 Subject: [PATCH 12/20] fix test cases --- .../ClientProviderSubClientTests.cs | 8 ++++---- .../ClientProviders/ClientProviderTests.cs | 4 ++-- .../SubClientWithMultipleSubClients.cs | 18 +++++++++--------- .../SubClientWithSingleSubClient.cs | 8 ++++---- .../test/TestHelpers/MockHelpers.cs | 3 +-- .../LoadsTypeSpecPagingInput/tspCodeModel.json | 17 +++++++---------- 6 files changed, 27 insertions(+), 31 deletions(-) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderSubClientTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderSubClientTests.cs index 817af1e6f50..4b6a51c4506 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderSubClientTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderSubClientTests.cs @@ -43,7 +43,7 @@ public void ServiceClientWithSubClient() [Test] public void SubClientWithSingleSubClient() { - string[] expectedSubClientFactoryMethodNames = [$"Get{_animalClient.Name.ToCleanName()}{_dogClient.Name.ToCleanName()}{_huskyClient.Name.ToCleanName()}Client"]; + string[] expectedSubClientFactoryMethodNames = [$"Get{_huskyClient.Name.ToCleanName()}Client"]; var clientProvider = new MockClientProvider(_dogClient, expectedSubClientFactoryMethodNames); var writer = new TypeProviderWriter(clientProvider); var file = writer.Write(); @@ -56,9 +56,9 @@ public void SubClientWithMultipleSubClients() { string[] expectedSubClientFactoryMethodNames = [ - $"Get{_animalClient.Name.ToCleanName()}{_dogClient.Name.ToCleanName()}Client", - $"Get{_animalClient.Name.ToCleanName()}{_catClient.Name.ToCleanName()}Client", - $"Get{_animalClient.Name.ToCleanName()}{_hawkClient.Name.ToCleanName()}" + $"Get{_dogClient.Name.ToCleanName()}Client", + $"Get{_catClient.Name.ToCleanName()}Client", + $"Get{_hawkClient.Name.ToCleanName()}" ]; var clientProvider = new MockClientProvider(_animalClient, expectedSubClientFactoryMethodNames); var writer = new TypeProviderWriter(clientProvider); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs index 83d7ca8e4f7..7540212acba 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs @@ -1026,12 +1026,12 @@ public static IEnumerable SubClientFieldsTestCases yield return new TestCaseData(_animalClient, new List { new(FieldModifiers.Private | FieldModifiers.ReadOnly, new CSharpType(typeof(Uri)), "_endpoint"), - new(FieldModifiers.Private, new ExpectedCSharpType("AnimalDog", "Sample", false), "_cachedAnimalDog"), + new(FieldModifiers.Private, new ExpectedCSharpType("Dog", "Sample", false), "_cachedDog"), }); yield return new TestCaseData(_dogClient, new List { new(FieldModifiers.Private | FieldModifiers.ReadOnly, new CSharpType(typeof(Uri)), "_endpoint"), - new(FieldModifiers.Private, new ExpectedCSharpType("AnimalDogHusky", "Sample", false), "_cachedAnimalDogHusky"), + new(FieldModifiers.Private, new ExpectedCSharpType("Husky", "Sample", false), "_cachedHusky"), }); yield return new TestCaseData(_huskyClient, new List { diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithMultipleSubClients.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithMultipleSubClients.cs index 10ee61b1293..fb66a1786d9 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithMultipleSubClients.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithMultipleSubClients.cs @@ -9,22 +9,22 @@ namespace Sample /// AnimalClient description. public partial class Animal { - /// Initializes a new instance of AnimalDog. - public virtual global::Sample.AnimalDog GetAnimalDogClient() + /// Initializes a new instance of Dog. + public virtual global::Sample.Dog GetDogClient() { - return (global::System.Threading.Volatile.Read(ref _cachedAnimalDog) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedAnimalDog, new global::Sample.AnimalDog(), null) ?? _cachedAnimalDog)); + return (global::System.Threading.Volatile.Read(ref _cachedDog) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedDog, new global::Sample.Dog(), null) ?? _cachedDog)); } - /// Initializes a new instance of AnimalCat. - public virtual global::Sample.AnimalCat GetAnimalCatClient() + /// Initializes a new instance of Cat. + public virtual global::Sample.Cat GetCatClient() { - return (global::System.Threading.Volatile.Read(ref _cachedAnimalCat) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedAnimalCat, new global::Sample.AnimalCat(), null) ?? _cachedAnimalCat)); + return (global::System.Threading.Volatile.Read(ref _cachedCat) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedCat, new global::Sample.Cat(), null) ?? _cachedCat)); } - /// Initializes a new instance of AnimalHawkClient. - public virtual global::Sample.AnimalHawkClient GetAnimalHawkClient() + /// Initializes a new instance of HawkClient. + public virtual global::Sample.HawkClient GetHawkClient() { - return (global::System.Threading.Volatile.Read(ref _cachedAnimalHawkClient) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedAnimalHawkClient, new global::Sample.AnimalHawkClient(), null) ?? _cachedAnimalHawkClient)); + return (global::System.Threading.Volatile.Read(ref _cachedHawkClient) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedHawkClient, new global::Sample.HawkClient(), null) ?? _cachedHawkClient)); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithSingleSubClient.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithSingleSubClient.cs index c4e30d39618..273c195bac9 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithSingleSubClient.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/TestData/ClientProviderSubClientTests/SubClientWithSingleSubClient.cs @@ -7,12 +7,12 @@ namespace Sample { /// DogClient description. - public partial class AnimalDog + public partial class Dog { - /// Initializes a new instance of AnimalDogHusky. - public virtual global::Sample.AnimalDogHusky GetAnimalDogHuskyClient() + /// Initializes a new instance of Husky. + public virtual global::Sample.Husky GetHuskyClient() { - return (global::System.Threading.Volatile.Read(ref _cachedAnimalDogHusky) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedAnimalDogHusky, new global::Sample.AnimalDogHusky(), null) ?? _cachedAnimalDogHusky)); + return (global::System.Threading.Volatile.Read(ref _cachedHusky) ?? (global::System.Threading.Interlocked.CompareExchange(ref _cachedHusky, new global::Sample.Husky(), null) ?? _cachedHusky)); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/TestHelpers/MockHelpers.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/TestHelpers/MockHelpers.cs index b4796ab9054..674bfbb3b60 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/TestHelpers/MockHelpers.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/TestHelpers/MockHelpers.cs @@ -73,8 +73,7 @@ public static Mock LoadMockPlugin( inputNsEnums, inputNsModels, inputNsClients, - inputAuth!, - Array.Empty()); + inputAuth!); var mockInputLibrary = new Mock(_configFilePath); mockInputLibrary.Setup(p => p.InputNamespace).Returns(mockInputNs.Object); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsTypeSpecPagingInput/tspCodeModel.json b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsTypeSpecPagingInput/tspCodeModel.json index e847832a394..847e566021a 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsTypeSpecPagingInput/tspCodeModel.json +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/test/TestData/TypeSpecInputConverterTests/LoadsTypeSpecPagingInput/tspCodeModel.json @@ -2365,10 +2365,10 @@ "Clients": [ { "$id": "303", - "Name": "UnbrandedTypeSpecClient", - "Namespace": "UnbrandedTypeSpec", - "Doc": "This is a sample typespec project.", - "Operations": [ + "name": "UnbrandedTypeSpecClient", + "namespace": "UnbrandedTypeSpec", + "doc": "This is a sample typespec project.", + "operations": [ { "$id": "457", "Name": "ListWithNextLink", @@ -2538,10 +2538,7 @@ "Decorators": [] } ], - "Protocol": { - "$id": "474" - }, - "Parameters": [ + "parameters": [ { "$id": "475", "Name": "unbrandedTypeSpecUrl", @@ -2563,8 +2560,8 @@ "Kind": "Client" } ], - "Decorators": [], - "CrossLanguageDefinitionId": "UnbrandedTypeSpec" + "decorators": [], + "crossLanguageDefinitionId": "UnbrandedTypeSpec" } ], "Auth": { From 6bd35ce31d9c001fe386c6b0057607f1711b4d15 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 10 Mar 2025 17:39:31 +0800 Subject: [PATCH 13/20] regen --- .../Unbranded-TypeSpec/tspCodeModel.json | 3 +- .../authentication/api-key/tspCodeModel.json | 3 +- .../http/custom/tspCodeModel.json | 3 +- .../authentication/oauth2/tspCodeModel.json | 3 +- .../authentication/union/tspCodeModel.json | 3 +- .../client-operation-group/tspCodeModel.json | 5 +++ .../structure/default/tspCodeModel.json | 7 ++++ .../structure/multi-client/tspCodeModel.json | 6 ++-- .../renamed-operation/tspCodeModel.json | 2 ++ .../two-operation-group/tspCodeModel.json | 3 ++ .../http/encode/bytes/tspCodeModel.json | 6 ++++ .../http/encode/datetime/tspCodeModel.json | 5 +++ .../http/encode/duration/tspCodeModel.json | 4 +++ .../http/encode/numeric/tspCodeModel.json | 2 ++ .../http/parameters/basic/tspCodeModel.json | 3 ++ .../body-optionality/tspCodeModel.json | 2 ++ .../collection-format/tspCodeModel.json | 3 ++ .../http/parameters/spread/tspCodeModel.json | 3 ++ .../content-negotiation/tspCodeModel.json | 3 ++ .../json-merge-patch/tspCodeModel.json | 3 +- .../http/payload/media-type/tspCodeModel.json | 2 ++ .../http/payload/multipart/tspCodeModel.json | 5 +++ .../srv-driven/v1/tspCodeModel.json | 3 +- .../srv-driven/v2/tspCodeModel.json | 3 +- .../status-code-range/tspCodeModel.json | 3 +- .../Spector/http/routes/tspCodeModel.json | 23 +++++++++++++ .../encoded-name/json/tspCodeModel.json | 2 ++ .../endpoint/not-defined/tspCodeModel.json | 3 +- .../server/path/multiple/tspCodeModel.json | 3 +- .../http/server/path/single/tspCodeModel.json | 3 +- .../versions/not-versioned/tspCodeModel.json | 3 +- .../versions/versioned/tspCodeModel.json | 3 +- .../conditional-request/tspCodeModel.json | 3 +- .../repeatability/tspCodeModel.json | 3 +- .../http/special-words/tspCodeModel.json | 5 +++ .../Spector/http/type/array/tspCodeModel.json | 15 +++++++++ .../http/type/dictionary/tspCodeModel.json | 12 +++++++ .../type/enum/extensible/tspCodeModel.json | 2 ++ .../http/type/enum/fixed/tspCodeModel.json | 2 ++ .../http/type/model/empty/tspCodeModel.json | 3 +- .../enum-discriminator/tspCodeModel.json | 3 +- .../nested-discriminator/tspCodeModel.json | 3 +- .../not-discriminated/tspCodeModel.json | 3 +- .../inheritance/recursive/tspCodeModel.json | 3 +- .../single-discriminator/tspCodeModel.json | 3 +- .../http/type/model/usage/tspCodeModel.json | 3 +- .../type/model/visibility/tspCodeModel.json | 3 +- .../additional-properties/tspCodeModel.json | 33 +++++++++++++++++++ .../type/property/nullable/tspCodeModel.json | 8 +++++ .../property/optionality/tspCodeModel.json | 17 ++++++++++ .../property/value-types/tspCodeModel.json | 30 +++++++++++++++++ .../http/type/scalar/tspCodeModel.json | 8 +++++ .../Spector/http/type/union/tspCodeModel.json | 11 +++++++ .../versioning/added/v1/tspCodeModel.json | 3 +- .../versioning/added/v2/tspCodeModel.json | 2 ++ .../madeOptional/v1/tspCodeModel.json | 3 +- .../madeOptional/v2/tspCodeModel.json | 3 +- .../versioning/removed/v1/tspCodeModel.json | 2 ++ .../versioning/removed/v2/tspCodeModel.json | 3 +- .../removed/v2Preview/tspCodeModel.json | 2 ++ .../renamedFrom/v1/tspCodeModel.json | 2 ++ .../renamedFrom/v2/tspCodeModel.json | 2 ++ .../v1/tspCodeModel.json | 3 +- .../v2/tspCodeModel.json | 3 +- .../typeChangedFrom/v1/tspCodeModel.json | 3 +- .../typeChangedFrom/v2/tspCodeModel.json | 3 +- 66 files changed, 301 insertions(+), 34 deletions(-) diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json index 20a15c8ef8b..de323c921fb 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json @@ -4343,7 +4343,8 @@ "2024-07-16-preview", "2024-08-16-preview" ], - "crossLanguageDefinitionId": "UnbrandedTypeSpec" + "crossLanguageDefinitionId": "UnbrandedTypeSpec", + "decorators": [] } ], "Auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json index f8d14106e0d..7939676d2c7 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json @@ -165,7 +165,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Authentication.ApiKey" + "crossLanguageDefinitionId": "Authentication.ApiKey", + "decorators": [] } ], "Auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json index 57d7a7d94b3..a14fec66492 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json @@ -165,7 +165,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Authentication.Http.Custom" + "crossLanguageDefinitionId": "Authentication.Http.Custom", + "decorators": [] } ], "Auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json index 28d1bd4c662..d66100c03c5 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json @@ -165,7 +165,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Authentication.OAuth2" + "crossLanguageDefinitionId": "Authentication.OAuth2", + "decorators": [] } ], "Auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json index 75facdb7120..395d5bade76 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json @@ -99,7 +99,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Authentication.Union" + "crossLanguageDefinitionId": "Authentication.Union", + "decorators": [] } ], "Auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json index 33a81c8179e..4a27f6607e3 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json @@ -186,6 +186,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup", + "decorators": [], "children": [ { "$id": "20", @@ -287,6 +288,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3", + "decorators": [], "parent": { "$ref": "14" } @@ -366,6 +368,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4", + "decorators": [], "parent": { "$ref": "14" } @@ -447,6 +450,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup", + "decorators": [], "children": [ { "$id": "40", @@ -523,6 +527,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5", + "decorators": [], "parent": { "$ref": "34" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json index c2210ba9b48..0e06edc49a0 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json @@ -212,6 +212,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.Service", + "decorators": [], "children": [ { "$id": "22", @@ -262,6 +263,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.Service.Baz", + "decorators": [], "parent": { "$ref": "14" }, @@ -340,6 +342,7 @@ } ], "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo", + "decorators": [], "parent": { "$ref": "22" } @@ -421,6 +424,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.Service.Qux", + "decorators": [], "parent": { "$ref": "14" }, @@ -499,6 +503,7 @@ } ], "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar", + "decorators": [], "parent": { "$ref": "32" } @@ -605,6 +610,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.Service.Foo", + "decorators": [], "parent": { "$ref": "14" } @@ -709,6 +715,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.Service.Bar", + "decorators": [], "parent": { "$ref": "14" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json index da6cc0d2d61..9b82dd1f703 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json @@ -235,7 +235,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA" + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA", + "decorators": [] }, { "$id": "24", @@ -361,7 +362,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB" + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json index 8b83787a3c1..bfdfd17dd33 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json @@ -236,6 +236,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.RenamedOperation", + "decorators": [], "children": [ { "$id": "24", @@ -362,6 +363,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group", + "decorators": [], "parent": { "$ref": "14" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json index 005c3b6c564..a84793e8922 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json @@ -160,6 +160,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup", + "decorators": [], "children": [ { "$id": "18", @@ -286,6 +287,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1", + "decorators": [], "parent": { "$ref": "14" } @@ -415,6 +417,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2", + "decorators": [], "parent": { "$ref": "14" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json index aed60422dbb..30b9d637e39 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json @@ -215,6 +215,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Bytes", + "decorators": [], "children": [ { "$id": "29", @@ -466,6 +467,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Bytes.Query", + "decorators": [], "parent": { "$ref": "24" } @@ -940,6 +942,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Bytes.Property", + "decorators": [], "parent": { "$ref": "24" } @@ -1194,6 +1197,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Bytes.Header", + "decorators": [], "parent": { "$ref": "24" } @@ -1631,6 +1635,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Bytes.RequestBody", + "decorators": [], "parent": { "$ref": "24" } @@ -2041,6 +2046,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody", + "decorators": [], "parent": { "$ref": "24" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json index 3c4c452d886..8427ca925b2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json @@ -295,6 +295,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Datetime", + "decorators": [], "children": [ { "$id": "40", @@ -636,6 +637,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Datetime.Query", + "decorators": [], "parent": { "$ref": "35" } @@ -1217,6 +1219,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Datetime.Property", + "decorators": [], "parent": { "$ref": "35" } @@ -1561,6 +1564,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Datetime.Header", + "decorators": [], "parent": { "$ref": "35" } @@ -1791,6 +1795,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader", + "decorators": [], "parent": { "$ref": "35" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json index 38c36454bd9..818a50b811e 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json @@ -340,6 +340,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Duration", + "decorators": [], "children": [ { "$id": "46", @@ -736,6 +737,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Duration.Query", + "decorators": [], "parent": { "$ref": "41" } @@ -1424,6 +1426,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Duration.Property", + "decorators": [], "parent": { "$ref": "41" } @@ -1823,6 +1826,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Duration.Header", + "decorators": [], "parent": { "$ref": "41" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json index 87012aff90d..517836799ca 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json @@ -162,6 +162,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Numeric", + "decorators": [], "children": [ { "$id": "22", @@ -526,6 +527,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Encode.Numeric.Property", + "decorators": [], "parent": { "$ref": "17" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json index a2b1d6e70d7..02d33ccd7f2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json @@ -123,6 +123,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Parameters.Basic", + "decorators": [], "children": [ { "$id": "17", @@ -240,6 +241,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody", + "decorators": [], "parent": { "$ref": "12" } @@ -360,6 +362,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody", + "decorators": [], "parent": { "$ref": "12" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json index 7a9d19e9419..02a1af59ddb 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json @@ -234,6 +234,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Parameters.BodyOptionality", + "decorators": [], "children": [ { "$id": "24", @@ -425,6 +426,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit", + "decorators": [], "parent": { "$ref": "7" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json index 8ff75baa561..2a6cb25dabd 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json @@ -47,6 +47,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Parameters.CollectionFormat", + "decorators": [], "children": [ { "$id": "7", @@ -369,6 +370,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query", + "decorators": [], "parent": { "$ref": "2" } @@ -471,6 +473,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header", + "decorators": [], "parent": { "$ref": "2" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json index 96693acb385..fdd57b3b074 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json @@ -432,6 +432,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Parameters.Spread", + "decorators": [], "children": [ { "$id": "60", @@ -923,6 +924,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Parameters.Spread.Model", + "decorators": [], "parent": { "$ref": "55" } @@ -1508,6 +1510,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Parameters.Spread.Alias", + "decorators": [], "parent": { "$ref": "55" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json index 48c4dea3db6..74307fdb5c6 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json @@ -86,6 +86,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Payload.ContentNegotiation", + "decorators": [], "children": [ { "$id": "12", @@ -293,6 +294,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody", + "decorators": [], "parent": { "$ref": "7" } @@ -499,6 +501,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody", + "decorators": [], "parent": { "$ref": "7" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json index 78cca66f94b..b2792994e5a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json @@ -876,7 +876,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch" + "crossLanguageDefinitionId": "Payload.JsonMergePatch", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json index 101561a6d9f..f95221f6d53 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json @@ -47,6 +47,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Payload.MediaType", + "decorators": [], "children": [ { "$id": "7", @@ -408,6 +409,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Payload.MediaType.StringBody", + "decorators": [], "parent": { "$ref": "2" } 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 c90da2c0a08..70383a558d2 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 @@ -1400,6 +1400,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Payload.MultiPart", + "decorators": [], "children": [ { "$id": "5783", @@ -1961,6 +1962,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Payload.MultiPart.FormData", + "decorators": [], "parent": { "$ref": "5778" }, @@ -2080,6 +2082,7 @@ } ], "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts", + "decorators": [], "parent": { "$ref": "5783" }, @@ -2347,6 +2350,7 @@ } ], "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType", + "decorators": [], "parent": { "$ref": "5830" } @@ -2466,6 +2470,7 @@ } ], "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString", + "decorators": [], "parent": { "$ref": "5830" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json index efff6d53fed..bc71067479b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json @@ -259,7 +259,8 @@ "apiVersions": [ "v1" ], - "crossLanguageDefinitionId": "Resiliency.ServiceDriven" + "crossLanguageDefinitionId": "Resiliency.ServiceDriven", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json index 34e3cf44e38..76aa122cfdc 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json @@ -372,7 +372,8 @@ "v1", "v2" ], - "crossLanguageDefinitionId": "Resiliency.ServiceDriven" + "crossLanguageDefinitionId": "Resiliency.ServiceDriven", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json index 847e522a2d6..f7a14d17a52 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json @@ -386,7 +386,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Response.StatusCodeRange" + "crossLanguageDefinitionId": "Response.StatusCodeRange", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json index 1c6f0856f58..dc36e6087c0 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json @@ -73,6 +73,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Routes", + "decorators": [], "children": [ { "$id": "9", @@ -257,6 +258,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Routes.PathParameters", + "decorators": [], "parent": { "$ref": "2" }, @@ -396,6 +398,7 @@ } ], "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion", + "decorators": [], "parent": { "$ref": "9" } @@ -440,6 +443,7 @@ ], "operations": [], "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion", + "decorators": [], "parent": { "$ref": "9" }, @@ -645,6 +649,7 @@ } ], "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard", + "decorators": [], "parent": { "$ref": "39" } @@ -850,6 +855,7 @@ } ], "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode", + "decorators": [], "parent": { "$ref": "39" } @@ -896,6 +902,7 @@ ], "operations": [], "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion", + "decorators": [], "parent": { "$ref": "9" }, @@ -1101,6 +1108,7 @@ } ], "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard", + "decorators": [], "parent": { "$ref": "84" } @@ -1306,6 +1314,7 @@ } ], "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode", + "decorators": [], "parent": { "$ref": "84" } @@ -1352,6 +1361,7 @@ ], "operations": [], "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion", + "decorators": [], "parent": { "$ref": "9" }, @@ -1557,6 +1567,7 @@ } ], "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard", + "decorators": [], "parent": { "$ref": "129" } @@ -1762,6 +1773,7 @@ } ], "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode", + "decorators": [], "parent": { "$ref": "129" } @@ -1808,6 +1820,7 @@ ], "operations": [], "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion", + "decorators": [], "parent": { "$ref": "9" }, @@ -2013,6 +2026,7 @@ } ], "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard", + "decorators": [], "parent": { "$ref": "174" } @@ -2218,6 +2232,7 @@ } ], "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode", + "decorators": [], "parent": { "$ref": "174" } @@ -2409,6 +2424,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Routes.QueryParameters", + "decorators": [], "parent": { "$ref": "2" }, @@ -2453,6 +2469,7 @@ ], "operations": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion", + "decorators": [], "parent": { "$ref": "219" }, @@ -2658,6 +2675,7 @@ } ], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard", + "decorators": [], "parent": { "$ref": "236" } @@ -2863,6 +2881,7 @@ } ], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode", + "decorators": [], "parent": { "$ref": "236" } @@ -2909,6 +2928,7 @@ ], "operations": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation", + "decorators": [], "parent": { "$ref": "219" }, @@ -3114,6 +3134,7 @@ } ], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard", + "decorators": [], "parent": { "$ref": "281" } @@ -3319,6 +3340,7 @@ } ], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode", + "decorators": [], "parent": { "$ref": "281" } @@ -3394,6 +3416,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Routes.InInterface", + "decorators": [], "parent": { "$ref": "2" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json index cb9d07e51e5..a51f8419fb8 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json @@ -86,6 +86,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Serialization.EncodedName.Json", + "decorators": [], "children": [ { "$id": "12", @@ -262,6 +263,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property", + "decorators": [], "parent": { "$ref": "7" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json index 999961ea7c6..a87b55d408b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json @@ -62,7 +62,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Server.Endpoint.NotDefined" + "crossLanguageDefinitionId": "Server.Endpoint.NotDefined", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json index d6557d93e14..fab5cd263f1 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json @@ -180,7 +180,8 @@ "apiVersions": [ "v1.0" ], - "crossLanguageDefinitionId": "Server.Path.Multiple" + "crossLanguageDefinitionId": "Server.Path.Multiple", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json index c93d352e659..67a0daeec32 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json @@ -62,7 +62,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Server.Path.Single" + "crossLanguageDefinitionId": "Server.Path.Single", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json index d1bd94513b7..bdac44b8107 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json @@ -156,7 +156,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Server.Versions.NotVersioned" + "crossLanguageDefinitionId": "Server.Versions.NotVersioned", + "decorators": [] } ] } 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 0af319dc2d0..ec5300e68f0 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 @@ -297,7 +297,8 @@ "2021-01-01-preview", "2022-12-01-preview" ], - "crossLanguageDefinitionId": "Server.Versions.Versioned" + "crossLanguageDefinitionId": "Server.Versions.Versioned", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json index 4dd9400acef..e80c4015e9d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json @@ -259,7 +259,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest" + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json index 0ccef09ccf5..63f95d5fe5b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json @@ -189,7 +189,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "SpecialHeaders.Repeatability" + "crossLanguageDefinitionId": "SpecialHeaders.Repeatability", + "decorators": [] } ] } 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 ae4c4357600..2c521cd2b86 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 @@ -1306,6 +1306,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "SpecialWords", + "decorators": [], "children": [ { "$id": "177", @@ -3792,6 +3793,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "SpecialWords.Models", + "decorators": [], "parent": { "$ref": "172" } @@ -3913,6 +3915,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "SpecialWords.ModelProperties", + "decorators": [], "parent": { "$ref": "172" } @@ -4785,6 +4788,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "SpecialWords.Operations", + "decorators": [], "parent": { "$ref": "172" } @@ -6430,6 +6434,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "SpecialWords.Parameters", + "decorators": [], "parent": { "$ref": "172" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json index 3bf8e148685..048d09e19c2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json @@ -116,6 +116,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array", + "decorators": [], "children": [ { "$id": "16", @@ -315,6 +316,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.Int32Value", + "decorators": [], "parent": { "$ref": "11" } @@ -517,6 +519,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.Int64Value", + "decorators": [], "parent": { "$ref": "11" } @@ -719,6 +722,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.BooleanValue", + "decorators": [], "parent": { "$ref": "11" } @@ -921,6 +925,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.StringValue", + "decorators": [], "parent": { "$ref": "11" } @@ -1123,6 +1128,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.Float32Value", + "decorators": [], "parent": { "$ref": "11" } @@ -1341,6 +1347,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.DatetimeValue", + "decorators": [], "parent": { "$ref": "11" } @@ -1559,6 +1566,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.DurationValue", + "decorators": [], "parent": { "$ref": "11" } @@ -1761,6 +1769,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.UnknownValue", + "decorators": [], "parent": { "$ref": "11" } @@ -1955,6 +1964,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.ModelValue", + "decorators": [], "parent": { "$ref": "11" } @@ -2158,6 +2168,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.NullableFloatValue", + "decorators": [], "parent": { "$ref": "11" } @@ -2361,6 +2372,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.NullableInt32Value", + "decorators": [], "parent": { "$ref": "11" } @@ -2564,6 +2576,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue", + "decorators": [], "parent": { "$ref": "11" } @@ -2767,6 +2780,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.NullableStringValue", + "decorators": [], "parent": { "$ref": "11" } @@ -2966,6 +2980,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Array.NullableModelValue", + "decorators": [], "parent": { "$ref": "11" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json index 310f4cd7050..6c890a8edb5 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json @@ -121,6 +121,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Type.Dictionary", + "decorators": [], "children": [ { "$id": "17", @@ -330,6 +331,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Dictionary.Int32Value", + "decorators": [], "parent": { "$ref": "12" } @@ -542,6 +544,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Dictionary.Int64Value", + "decorators": [], "parent": { "$ref": "12" } @@ -754,6 +757,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue", + "decorators": [], "parent": { "$ref": "12" } @@ -966,6 +970,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Dictionary.StringValue", + "decorators": [], "parent": { "$ref": "12" } @@ -1178,6 +1183,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Dictionary.Float32Value", + "decorators": [], "parent": { "$ref": "12" } @@ -1406,6 +1412,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue", + "decorators": [], "parent": { "$ref": "12" } @@ -1634,6 +1641,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Dictionary.DurationValue", + "decorators": [], "parent": { "$ref": "12" } @@ -1846,6 +1854,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue", + "decorators": [], "parent": { "$ref": "12" } @@ -2050,6 +2059,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Dictionary.ModelValue", + "decorators": [], "parent": { "$ref": "12" } @@ -2254,6 +2264,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue", + "decorators": [], "parent": { "$ref": "12" } @@ -2467,6 +2478,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue", + "decorators": [], "parent": { "$ref": "12" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json index 6099b54e23d..3b2ca7cf50c 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json @@ -194,6 +194,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Type.Enum.Extensible", + "decorators": [], "children": [ { "$id": "23", @@ -503,6 +504,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Enum.Extensible.String", + "decorators": [], "parent": { "$ref": "18" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json index affdf0968ac..b4d82742ef2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json @@ -194,6 +194,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Type.Enum.Fixed", + "decorators": [], "children": [ { "$id": "23", @@ -449,6 +450,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Enum.Fixed.String", + "decorators": [], "parent": { "$ref": "18" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json index 922005836f0..0442cb8432b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json @@ -321,7 +321,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Type.Model.Empty" + "crossLanguageDefinitionId": "Type.Model.Empty", + "decorators": [] } ] } 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 a30b8b5f7da..8ace24a8051 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 @@ -879,7 +879,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json index 218c602ba05..26ccbde2d79 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json @@ -824,7 +824,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json index bed6abd6c04..6f2140da374 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json @@ -408,7 +408,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json index c09bad80852..793a686d29a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json @@ -263,7 +263,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive" + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json index 46300506cdd..9d3c10c5315 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json @@ -972,7 +972,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json index 4aa3e5901f4..382dc346451 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json @@ -402,7 +402,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Type.Model.Usage" + "crossLanguageDefinitionId": "Type.Model.Usage", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json index 86ad246ae33..c74477a0fa2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json @@ -883,7 +883,8 @@ } ], "apiVersions": [], - "crossLanguageDefinitionId": "Type.Model.Visibility" + "crossLanguageDefinitionId": "Type.Model.Visibility", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json index 7d7ae4dc367..92de1bfe68e 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json @@ -2259,6 +2259,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties", + "decorators": [], "children": [ { "$id": "283", @@ -2438,6 +2439,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown", + "decorators": [], "parent": { "$ref": "278" } @@ -2620,6 +2622,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived", + "decorators": [], "parent": { "$ref": "278" } @@ -2802,6 +2805,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated", + "decorators": [], "parent": { "$ref": "278" } @@ -2984,6 +2988,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown", + "decorators": [], "parent": { "$ref": "278" } @@ -3166,6 +3171,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived", + "decorators": [], "parent": { "$ref": "278" } @@ -3348,6 +3354,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated", + "decorators": [], "parent": { "$ref": "278" } @@ -3530,6 +3537,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString", + "decorators": [], "parent": { "$ref": "278" } @@ -3712,6 +3720,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString", + "decorators": [], "parent": { "$ref": "278" } @@ -3894,6 +3903,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString", + "decorators": [], "parent": { "$ref": "278" } @@ -4076,6 +4086,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat", + "decorators": [], "parent": { "$ref": "278" } @@ -4258,6 +4269,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat", + "decorators": [], "parent": { "$ref": "278" } @@ -4440,6 +4452,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat", + "decorators": [], "parent": { "$ref": "278" } @@ -4622,6 +4635,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel", + "decorators": [], "parent": { "$ref": "278" } @@ -4804,6 +4818,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel", + "decorators": [], "parent": { "$ref": "278" } @@ -4986,6 +5001,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel", + "decorators": [], "parent": { "$ref": "278" } @@ -5168,6 +5184,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray", + "decorators": [], "parent": { "$ref": "278" } @@ -5350,6 +5367,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray", + "decorators": [], "parent": { "$ref": "278" } @@ -5532,6 +5550,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray", + "decorators": [], "parent": { "$ref": "278" } @@ -5714,6 +5733,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString", + "decorators": [], "parent": { "$ref": "278" } @@ -5896,6 +5916,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat", + "decorators": [], "parent": { "$ref": "278" } @@ -6078,6 +6099,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel", + "decorators": [], "parent": { "$ref": "278" } @@ -6260,6 +6282,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray", + "decorators": [], "parent": { "$ref": "278" } @@ -6442,6 +6465,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString", + "decorators": [], "parent": { "$ref": "278" } @@ -6624,6 +6648,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat", + "decorators": [], "parent": { "$ref": "278" } @@ -6806,6 +6831,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel", + "decorators": [], "parent": { "$ref": "278" } @@ -6988,6 +7014,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray", + "decorators": [], "parent": { "$ref": "278" } @@ -7170,6 +7197,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread", + "decorators": [], "parent": { "$ref": "278" } @@ -7352,6 +7380,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion", + "decorators": [], "parent": { "$ref": "278" } @@ -7534,6 +7563,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordDiscriminatedUnion", + "decorators": [], "parent": { "$ref": "278" } @@ -7716,6 +7746,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion", + "decorators": [], "parent": { "$ref": "278" } @@ -7898,6 +7929,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2", + "decorators": [], "parent": { "$ref": "278" } @@ -8080,6 +8112,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3", + "decorators": [], "parent": { "$ref": "278" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json index ce556cf7c41..9615acb08fa 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json @@ -619,6 +619,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Nullable", + "decorators": [], "children": [ { "$id": "86", @@ -932,6 +933,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Nullable.String", + "decorators": [], "parent": { "$ref": "81" } @@ -1248,6 +1250,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes", + "decorators": [], "parent": { "$ref": "81" } @@ -1564,6 +1567,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime", + "decorators": [], "parent": { "$ref": "81" } @@ -1880,6 +1884,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Nullable.Duration", + "decorators": [], "parent": { "$ref": "81" } @@ -2196,6 +2201,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte", + "decorators": [], "parent": { "$ref": "81" } @@ -2512,6 +2518,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel", + "decorators": [], "parent": { "$ref": "81" } @@ -2828,6 +2835,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString", + "decorators": [], "parent": { "$ref": "81" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json index d0a45645312..45e68f24dc7 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json @@ -992,6 +992,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional", + "decorators": [], "children": [ { "$id": "119", @@ -1305,6 +1306,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.String", + "decorators": [], "parent": { "$ref": "114" } @@ -1621,6 +1623,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.Bytes", + "decorators": [], "parent": { "$ref": "114" } @@ -1937,6 +1940,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.Datetime", + "decorators": [], "parent": { "$ref": "114" } @@ -2253,6 +2257,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.Duration", + "decorators": [], "parent": { "$ref": "114" } @@ -2569,6 +2574,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate", + "decorators": [], "parent": { "$ref": "114" } @@ -2885,6 +2891,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime", + "decorators": [], "parent": { "$ref": "114" } @@ -3201,6 +3208,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte", + "decorators": [], "parent": { "$ref": "114" } @@ -3517,6 +3525,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel", + "decorators": [], "parent": { "$ref": "114" } @@ -3833,6 +3842,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral", + "decorators": [], "parent": { "$ref": "114" } @@ -4149,6 +4159,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral", + "decorators": [], "parent": { "$ref": "114" } @@ -4465,6 +4476,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral", + "decorators": [], "parent": { "$ref": "114" } @@ -4781,6 +4793,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral", + "decorators": [], "parent": { "$ref": "114" } @@ -5097,6 +5110,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral", + "decorators": [], "parent": { "$ref": "114" } @@ -5413,6 +5427,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral", + "decorators": [], "parent": { "$ref": "114" } @@ -5729,6 +5744,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral", + "decorators": [], "parent": { "$ref": "114" } @@ -6046,6 +6062,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional", + "decorators": [], "parent": { "$ref": "114" } 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 a3acd41244e..af2127464e4 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 @@ -1642,6 +1642,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes", + "decorators": [], "children": [ { "$id": "197", @@ -1821,6 +1822,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean", + "decorators": [], "parent": { "$ref": "192" } @@ -2003,6 +2005,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.String", + "decorators": [], "parent": { "$ref": "192" } @@ -2185,6 +2188,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes", + "decorators": [], "parent": { "$ref": "192" } @@ -2367,6 +2371,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int", + "decorators": [], "parent": { "$ref": "192" } @@ -2549,6 +2554,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float", + "decorators": [], "parent": { "$ref": "192" } @@ -2731,6 +2737,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal", + "decorators": [], "parent": { "$ref": "192" } @@ -2913,6 +2920,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128", + "decorators": [], "parent": { "$ref": "192" } @@ -3095,6 +3103,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime", + "decorators": [], "parent": { "$ref": "192" } @@ -3277,6 +3286,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration", + "decorators": [], "parent": { "$ref": "192" } @@ -3459,6 +3469,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum", + "decorators": [], "parent": { "$ref": "192" } @@ -3641,6 +3652,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum", + "decorators": [], "parent": { "$ref": "192" } @@ -3823,6 +3835,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model", + "decorators": [], "parent": { "$ref": "192" } @@ -4005,6 +4018,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString", + "decorators": [], "parent": { "$ref": "192" } @@ -4187,6 +4201,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt", + "decorators": [], "parent": { "$ref": "192" } @@ -4369,6 +4384,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel", + "decorators": [], "parent": { "$ref": "192" } @@ -4551,6 +4567,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString", + "decorators": [], "parent": { "$ref": "192" } @@ -4733,6 +4750,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never", + "decorators": [], "parent": { "$ref": "192" } @@ -4915,6 +4933,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString", + "decorators": [], "parent": { "$ref": "192" } @@ -5097,6 +5116,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt", + "decorators": [], "parent": { "$ref": "192" } @@ -5279,6 +5299,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict", + "decorators": [], "parent": { "$ref": "192" } @@ -5461,6 +5482,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray", + "decorators": [], "parent": { "$ref": "192" } @@ -5643,6 +5665,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral", + "decorators": [], "parent": { "$ref": "192" } @@ -5825,6 +5848,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral", + "decorators": [], "parent": { "$ref": "192" } @@ -6007,6 +6031,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral", + "decorators": [], "parent": { "$ref": "192" } @@ -6189,6 +6214,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral", + "decorators": [], "parent": { "$ref": "192" } @@ -6371,6 +6397,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral", + "decorators": [], "parent": { "$ref": "192" } @@ -6553,6 +6580,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral", + "decorators": [], "parent": { "$ref": "192" } @@ -6735,6 +6763,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral", + "decorators": [], "parent": { "$ref": "192" } @@ -6917,6 +6946,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue", + "decorators": [], "parent": { "$ref": "192" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json index 6deeae5a7c4..c973fca134f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json @@ -46,6 +46,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Type.Scalar", + "decorators": [], "children": [ { "$id": "7", @@ -233,6 +234,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Scalar.String", + "decorators": [], "parent": { "$ref": "2" } @@ -423,6 +425,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Scalar.Boolean", + "decorators": [], "parent": { "$ref": "2" } @@ -613,6 +616,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Scalar.Unknown", + "decorators": [], "parent": { "$ref": "2" } @@ -848,6 +852,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Scalar.DecimalType", + "decorators": [], "parent": { "$ref": "2" } @@ -1083,6 +1088,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type", + "decorators": [], "parent": { "$ref": "2" } @@ -1278,6 +1284,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify", + "decorators": [], "parent": { "$ref": "2" } @@ -1473,6 +1480,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify", + "decorators": [], "parent": { "$ref": "2" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json index d63b72c67cd..4e7cf1222f0 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json @@ -1756,6 +1756,7 @@ "operations": [], "apiVersions": [], "crossLanguageDefinitionId": "Type.Union", + "decorators": [], "children": [ { "$id": "216", @@ -1933,6 +1934,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Union.StringsOnly", + "decorators": [], "parent": { "$ref": "211" } @@ -2113,6 +2115,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Union.StringExtensible", + "decorators": [], "parent": { "$ref": "211" } @@ -2293,6 +2296,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed", + "decorators": [], "parent": { "$ref": "211" } @@ -2473,6 +2477,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Union.IntsOnly", + "decorators": [], "parent": { "$ref": "211" } @@ -2653,6 +2658,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Union.FloatsOnly", + "decorators": [], "parent": { "$ref": "211" } @@ -2833,6 +2839,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Union.ModelsOnly", + "decorators": [], "parent": { "$ref": "211" } @@ -3013,6 +3020,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Union.EnumsOnly", + "decorators": [], "parent": { "$ref": "211" } @@ -3193,6 +3201,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Union.StringAndArray", + "decorators": [], "parent": { "$ref": "211" } @@ -3373,6 +3382,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Union.MixedLiterals", + "decorators": [], "parent": { "$ref": "211" } @@ -3553,6 +3563,7 @@ ], "apiVersions": [], "crossLanguageDefinitionId": "Type.Union.MixedTypes", + "decorators": [], "parent": { "$ref": "211" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json index 16968a253b9..a70d6a024e1 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json @@ -303,7 +303,8 @@ "apiVersions": [ "v1" ], - "crossLanguageDefinitionId": "Versioning.Added" + "crossLanguageDefinitionId": "Versioning.Added", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json index ec88afb57f4..139e24a7322 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json @@ -656,6 +656,7 @@ "v2" ], "crossLanguageDefinitionId": "Versioning.Added", + "decorators": [], "children": [ { "$id": "71", @@ -816,6 +817,7 @@ "v2" ], "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2", + "decorators": [], "parent": { "$ref": "47" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json index bbdf123fb72..f71639ee720 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json @@ -291,7 +291,8 @@ "apiVersions": [ "v1" ], - "crossLanguageDefinitionId": "Versioning.MadeOptional" + "crossLanguageDefinitionId": "Versioning.MadeOptional", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json index 9671736b9a6..6c97b52cec2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json @@ -311,7 +311,8 @@ "v1", "v2" ], - "crossLanguageDefinitionId": "Versioning.MadeOptional" + "crossLanguageDefinitionId": "Versioning.MadeOptional", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json index bce76bcf29e..659d9eb01c1 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json @@ -891,6 +891,7 @@ "v1" ], "crossLanguageDefinitionId": "Versioning.Removed", + "decorators": [], "children": [ { "$id": "97", @@ -1052,6 +1053,7 @@ "v1" ], "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", + "decorators": [], "parent": { "$ref": "64" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json index 9f71aace9fa..7d9bce50220 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json @@ -606,7 +606,8 @@ "v2preview", "v2" ], - "crossLanguageDefinitionId": "Versioning.Removed" + "crossLanguageDefinitionId": "Versioning.Removed", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json index fbd9b3cf091..e4d5b9d3c1f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json @@ -835,6 +835,7 @@ "v2preview" ], "crossLanguageDefinitionId": "Versioning.Removed", + "decorators": [], "children": [ { "$id": "90", @@ -997,6 +998,7 @@ "v2preview" ], "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", + "decorators": [], "parent": { "$ref": "57" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json index 74eeed6510f..7d5ca7640f7 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json @@ -374,6 +374,7 @@ "v1" ], "crossLanguageDefinitionId": "Versioning.RenamedFrom", + "decorators": [], "children": [ { "$id": "40", @@ -534,6 +535,7 @@ "v1" ], "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface", + "decorators": [], "parent": { "$ref": "25" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json index 8f184ae8beb..1b9b32329f7 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json @@ -394,6 +394,7 @@ "v2" ], "crossLanguageDefinitionId": "Versioning.RenamedFrom", + "decorators": [], "children": [ { "$id": "42", @@ -555,6 +556,7 @@ "v2" ], "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface", + "decorators": [], "parent": { "$ref": "27" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json index 2224aa058b5..ee83927dd9a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json @@ -214,7 +214,8 @@ "apiVersions": [ "v1" ], - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom" + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json index b830173006c..92b43391bfd 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json @@ -234,7 +234,8 @@ "v1", "v2" ], - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom" + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json index 8c81dc9e7d8..467d78b1087 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json @@ -291,7 +291,8 @@ "apiVersions": [ "v1" ], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom" + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom", + "decorators": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json index d6ce7cd64ee..524627c4141 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json @@ -311,7 +311,8 @@ "v1", "v2" ], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom" + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom", + "decorators": [] } ] } From 70c2d452961ede5bcfa607560877afd255f3e7b8 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Mon, 10 Mar 2025 17:41:35 +0800 Subject: [PATCH 14/20] clean up --- packages/http-client-csharp/emitter/src/lib/client-converter.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/http-client-csharp/emitter/src/lib/client-converter.ts b/packages/http-client-csharp/emitter/src/lib/client-converter.ts index a53c01ab0ff..77d13869733 100644 --- a/packages/http-client-csharp/emitter/src/lib/client-converter.ts +++ b/packages/http-client-csharp/emitter/src/lib/client-converter.ts @@ -118,7 +118,6 @@ function fromSdkClient( NameInRequest: parameter.serializedName, Summary: parameter.summary, Doc: parameter.doc, - // TODO: we should do the magic in generator Type: parameterType, Location: RequestLocation.Uri, IsApiVersion: parameter.isApiVersionParam, From 706ad0933e18cc67284eabd8d1eb0b7279aef1c5 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Tue, 11 Mar 2025 11:25:53 +0800 Subject: [PATCH 15/20] resolve comments --- packages/http-client-csharp/emitter/src/type/input-type.ts | 3 +-- .../src/InputTypes/InputClient.cs | 2 +- .../test/common/InputFactory.cs | 7 +++---- 3 files changed, 5 insertions(+), 7 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 75d6ecb4023..15cb692b111 100644 --- a/packages/http-client-csharp/emitter/src/type/input-type.ts +++ b/packages/http-client-csharp/emitter/src/type/input-type.ts @@ -18,8 +18,7 @@ export interface InputClientType extends DecoratedType { namespace: string; doc?: string; summary?: string; - // clientInitialization: TODO; - parameters?: InputParameter[]; // TODO -- this should be replaced by clientInitialization when the clientInitialization related stuffs are done. + parameters?: InputParameter[]; // TODO -- this should be replaced by clientInitialization when the clientInitialization related stuffs are done: https://github.com/microsoft/typespec/issues/4366 operations: InputOperation[]; apiVersions: string[]; crossLanguageDefinitionId: string; diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs index 264a208fcdb..83a9989b5db 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs @@ -21,7 +21,7 @@ public InputClient(string name, string @namespace, string crossLanguageDefinitio Operations = operations; Parameters = parameters; Parent = parent; - Children = children ?? []; + Children = children ?? new List(); // List is important here for our test cases to properly assign the client hierarchy. } public InputClient() : this(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, Array.Empty(), Array.Empty(), null, null) { } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs index 595e8a64c58..80ecaceb00f 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs @@ -269,10 +269,9 @@ public static InputClient Client(string name, string clientNamespace = "Sample", null); if (parent != null) { - // parent.Children is internal here we have to use reflection to set the proper value - var propertyInfo = typeof(InputClient).GetProperty("Children", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance); - List newChildren = [.. parent.Children, client]; - propertyInfo!.SetValue(parent, newChildren); + // when there is a parent here, we need to set the children list of the parent client to include this client + var children = (IList)parent.Children; + children.Add(client); } return client; } From 0561bdab263259bf0e91823bebcbb7c2a32f5d9a Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Wed, 12 Mar 2025 09:21:37 +0800 Subject: [PATCH 16/20] resolve comments --- .../emitter/src/lib/client-converter.ts | 12 ++++++------ .../http-client-csharp/emitter/src/sdk-context.ts | 4 ++-- .../emitter/src/type/code-model.ts | 4 ++-- .../emitter/src/type/input-type.ts | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/lib/client-converter.ts b/packages/http-client-csharp/emitter/src/lib/client-converter.ts index 77d13869733..9455b377ee0 100644 --- a/packages/http-client-csharp/emitter/src/lib/client-converter.ts +++ b/packages/http-client-csharp/emitter/src/lib/client-converter.ts @@ -11,7 +11,7 @@ import { NoTarget } from "@typespec/compiler"; import { CSharpEmitterContext } from "../sdk-context.js"; import { InputOperationParameterKind } from "../type/input-operation-parameter-kind.js"; import { InputParameter } from "../type/input-parameter.js"; -import { InputClientType, InputType } from "../type/input-type.js"; +import { InputClient, InputType } from "../type/input-type.js"; import { RequestLocation } from "../type/request-location.js"; import { fromSdkServiceMethod, getParameterDefaultValue } from "./operation-converter.js"; import { fromSdkType } from "./type-converter.js"; @@ -22,8 +22,8 @@ export function fromSdkClients( sdkContext: CSharpEmitterContext, clients: SdkClientType[], rootApiVersions: string[], -): InputClientType[] { - const inputClients: InputClientType[] = []; +): InputClient[] { + const inputClients: InputClient[] = []; for (const client of clients) { const inputClient = fromSdkClient(sdkContext, client, rootApiVersions); inputClients.push(inputClient); @@ -36,8 +36,8 @@ function fromSdkClient( sdkContext: CSharpEmitterContext, client: SdkClientType, rootApiVersions: string[], -): InputClientType { - let inputClient: InputClientType | undefined = sdkContext.__typeCache.clients.get(client); +): InputClient { + let inputClient: InputClient | undefined = sdkContext.__typeCache.clients.get(client); if (inputClient) { return inputClient; } @@ -142,7 +142,7 @@ function fromSdkClient( function updateSdkClientTypeReferences( sdkContext: CSharpEmitterContext, sdkClient: SdkClientType, - inputClient: InputClientType, + inputClient: InputClient, ) { sdkContext.__typeCache.clients.set(sdkClient, inputClient); sdkContext.__typeCache.crossLanguageDefinitionIds.set( diff --git a/packages/http-client-csharp/emitter/src/sdk-context.ts b/packages/http-client-csharp/emitter/src/sdk-context.ts index 38e111110fa..ac3f8c5d1fe 100644 --- a/packages/http-client-csharp/emitter/src/sdk-context.ts +++ b/packages/http-client-csharp/emitter/src/sdk-context.ts @@ -10,7 +10,7 @@ import { import { Type } from "@typespec/compiler"; import { Logger } from "./lib/logger.js"; import { CSharpEmitterOptions } from "./options.js"; -import { InputClientType, InputEnumType, InputModelType, InputType } from "./type/input-type.js"; +import { InputClient, InputEnumType, InputModelType, InputType } from "./type/input-type.js"; /** * The emitter context for the CSharp emitter. @@ -23,7 +23,7 @@ export interface CSharpEmitterContext extends SdkContext { export interface SdkTypeMap { crossLanguageDefinitionIds: Map; - clients: Map, InputClientType>; + clients: Map, InputClient>; types: Map; models: Map; enums: Map; diff --git a/packages/http-client-csharp/emitter/src/type/code-model.ts b/packages/http-client-csharp/emitter/src/type/code-model.ts index bb2e732e806..a3ff990c0e0 100644 --- a/packages/http-client-csharp/emitter/src/type/code-model.ts +++ b/packages/http-client-csharp/emitter/src/type/code-model.ts @@ -2,13 +2,13 @@ // Licensed under the MIT License. See License.txt in the project root for license information. import { InputAuth } from "./input-auth.js"; -import { InputClientType, InputEnumType, InputModelType } from "./input-type.js"; +import { InputClient, InputEnumType, InputModelType } from "./input-type.js"; export interface CodeModel { Name: string; ApiVersions: string[]; Enums: InputEnumType[]; Models: InputModelType[]; - Clients: InputClientType[]; + Clients: InputClient[]; Auth?: InputAuth; } 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 15cb692b111..e9aa8788b95 100644 --- a/packages/http-client-csharp/emitter/src/type/input-type.ts +++ b/packages/http-client-csharp/emitter/src/type/input-type.ts @@ -12,7 +12,7 @@ import { DateTimeKnownEncoding, DurationKnownEncoding } from "@typespec/compiler import { InputOperation } from "./input-operation.js"; import { InputParameter } from "./input-parameter.js"; -export interface InputClientType extends DecoratedType { +export interface InputClient extends DecoratedType { kind: "client"; name: string; namespace: string; @@ -22,8 +22,8 @@ export interface InputClientType extends DecoratedType { operations: InputOperation[]; apiVersions: string[]; crossLanguageDefinitionId: string; - parent?: InputClientType; - children?: InputClientType[]; + parent?: InputClient; + children?: InputClient[]; } interface DecoratedType { From 83b403021e3706c9f9020f341110078df9177423 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Wed, 12 Mar 2025 09:25:54 +0800 Subject: [PATCH 17/20] fix after merge --- .../src/ScmOutputLibrary.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmOutputLibrary.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmOutputLibrary.cs index 16ecfa81419..31d8872fd73 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmOutputLibrary.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmOutputLibrary.cs @@ -14,13 +14,13 @@ public class ScmOutputLibrary : OutputLibrary private static TypeProvider[] BuildClientTypes() { var inputClients = ScmCodeModelPlugin.Instance.InputLibrary.InputNamespace.Clients; - var clientTypes = new List(); + var clients = new List(); foreach (var inputClient in inputClients) { BuildClient(inputClient, clients); } - return [.. clientTypes]; + return [.. clients]; } private static void BuildClient(InputClient inputClient, IList clients) From f64083b46cd81691b5083714dbf90a54a4ae0893 Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Wed, 12 Mar 2025 09:29:16 +0800 Subject: [PATCH 18/20] fix after merge --- .../emitter/test/Unit/operation-paging.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http-client-csharp/emitter/test/Unit/operation-paging.test.ts b/packages/http-client-csharp/emitter/test/Unit/operation-paging.test.ts index 83bf6994847..1b8a97233c9 100644 --- a/packages/http-client-csharp/emitter/test/Unit/operation-paging.test.ts +++ b/packages/http-client-csharp/emitter/test/Unit/operation-paging.test.ts @@ -70,7 +70,7 @@ describe("Next link operations", () => { const context = createEmitterContext(program); const sdkContext = await createCSharpSdkContext(context); const root = createModel(sdkContext); - const paging = root.Clients[0].Operations[0].Paging; + const paging = root.Clients[0].operations[0].Paging; ok(paging); ok(paging.ItemPropertySegments); strictEqual(paging.ItemPropertySegments[0], "items"); From c2dc51ad881c2d291e93ca58ec8a0e6fc900ecca Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Thu, 20 Mar 2025 14:09:25 +0800 Subject: [PATCH 19/20] change how we do the children list --- .../src/InputTypes/InputClient.cs | 2 +- .../test/common/InputFactory.cs | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs index 83a9989b5db..264a208fcdb 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs @@ -21,7 +21,7 @@ public InputClient(string name, string @namespace, string crossLanguageDefinitio Operations = operations; Parameters = parameters; Parent = parent; - Children = children ?? new List(); // List is important here for our test cases to properly assign the client hierarchy. + Children = children ?? []; } public InputClient() : this(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, Array.Empty(), Array.Empty(), null, null) { } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs index c238ffd93a8..16ce76c3c24 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs @@ -269,9 +269,12 @@ public static InputOperationResponse OperationResponse(IEnumerable? statusC ["application/json"]); } + private static readonly Dictionary> _childClientsCache = new(); + public static InputClient Client(string name, string clientNamespace = "Sample", string? doc = null, IEnumerable? operations = null, IEnumerable? parameters = null, InputClient? parent = null, string? crossLanguageDefinitionId = null) { // when this client has parent, we add the constructed client into the `children` list of the parent + var clientChildren = new List(); var client = new InputClient( name, clientNamespace, @@ -281,11 +284,11 @@ public static InputClient Client(string name, string clientNamespace = "Sample", operations is null ? [] : [.. operations], parameters is null ? [] : [.. parameters], parent, - null); - if (parent != null) + clientChildren); + _childClientsCache[client] = clientChildren; + // when we have a parent, we need to find the children list of this parent client and update accordingly. + if (parent != null && _childClientsCache.TryGetValue(parent, out var children)) { - // when there is a parent here, we need to set the children list of the parent client to include this client - var children = (IList)parent.Children; children.Add(client); } return client; From fceb2042cc88e0dd7d0b1483765c028ee35c46ae Mon Sep 17 00:00:00 2001 From: Arcturus Zhang Date: Tue, 25 Mar 2025 16:02:05 +0800 Subject: [PATCH 20/20] regen --- .../emitter/src/lib/client-converter.ts | 6 +- .../Unbranded-TypeSpec/tspCodeModel.json | 416 ++-- .../authentication/api-key/tspCodeModel.json | 82 +- .../http/custom/tspCodeModel.json | 82 +- .../authentication/oauth2/tspCodeModel.json | 82 +- .../authentication/union/tspCodeModel.json | 76 +- .../client-operation-group/tspCodeModel.json | 316 +-- .../structure/default/tspCodeModel.json | 416 ++-- .../structure/multi-client/tspCodeModel.json | 130 +- .../renamed-operation/tspCodeModel.json | 188 +- .../two-operation-group/tspCodeModel.json | 142 +- .../http/encode/bytes/tspCodeModel.json | 502 ++--- .../http/encode/datetime/tspCodeModel.json | 412 ++-- .../http/encode/duration/tspCodeModel.json | 378 ++-- .../http/encode/numeric/tspCodeModel.json | 128 +- .../http/parameters/basic/tspCodeModel.json | 130 +- .../body-optionality/tspCodeModel.json | 184 +- .../collection-format/tspCodeModel.json | 156 +- .../http/parameters/spread/tspCodeModel.json | 274 +-- .../content-negotiation/tspCodeModel.json | 176 +- .../json-merge-patch/tspCodeModel.json | 122 +- .../http/payload/media-type/tspCodeModel.json | 138 +- .../http/payload/multipart/tspCodeModel.json | 386 ++-- .../http/payload/pageable/tspCodeModel.json | 284 +-- .../srv-driven/v1/tspCodeModel.json | 174 +- .../srv-driven/v2/tspCodeModel.json | 190 +- .../status-code-range/tspCodeModel.json | 88 +- .../Spector/http/routes/tspCodeModel.json | 1396 ++++++------- .../encoded-name/json/tspCodeModel.json | 96 +- .../endpoint/not-defined/tspCodeModel.json | 52 +- .../server/path/multiple/tspCodeModel.json | 116 +- .../http/server/path/single/tspCodeModel.json | 52 +- .../versions/not-versioned/tspCodeModel.json | 68 +- .../versions/versioned/tspCodeModel.json | 90 +- .../conditional-request/tspCodeModel.json | 104 +- .../repeatability/tspCodeModel.json | 84 +- .../http/special-words/tspCodeModel.json | 988 +++++----- .../Spector/http/type/array/tspCodeModel.json | 948 ++++----- .../http/type/dictionary/tspCodeModel.json | 790 ++++---- .../type/enum/extensible/tspCodeModel.json | 130 +- .../http/type/enum/fixed/tspCodeModel.json | 114 +- .../http/type/model/empty/tspCodeModel.json | 108 +- .../enum-discriminator/tspCodeModel.json | 152 +- .../nested-discriminator/tspCodeModel.json | 132 +- .../not-discriminated/tspCodeModel.json | 108 +- .../inheritance/recursive/tspCodeModel.json | 90 +- .../single-discriminator/tspCodeModel.json | 142 +- .../http/type/model/usage/tspCodeModel.json | 108 +- .../type/model/visibility/tspCodeModel.json | 164 +- .../additional-properties/tspCodeModel.json | 1734 ++++++++--------- .../type/property/nullable/tspCodeModel.json | 574 +++--- .../property/optionality/tspCodeModel.json | 1278 ++++++------ .../property/value-types/tspCodeModel.json | 1626 ++++++++-------- .../http/type/scalar/tspCodeModel.json | 506 ++--- .../Spector/http/type/union/tspCodeModel.json | 600 +++--- .../versioning/added/v1/tspCodeModel.json | 102 +- .../versioning/added/v2/tspCodeModel.json | 222 +-- .../madeOptional/v1/tspCodeModel.json | 106 +- .../madeOptional/v2/tspCodeModel.json | 106 +- .../versioning/removed/v1/tspCodeModel.json | 240 +-- .../versioning/removed/v2/tspCodeModel.json | 120 +- .../removed/v2Preview/tspCodeModel.json | 240 +-- .../renamedFrom/v1/tspCodeModel.json | 204 +- .../renamedFrom/v2/tspCodeModel.json | 204 +- .../v1/tspCodeModel.json | 112 +- .../v2/tspCodeModel.json | 112 +- .../typeChangedFrom/v1/tspCodeModel.json | 106 +- .../typeChangedFrom/v2/tspCodeModel.json | 106 +- 68 files changed, 9994 insertions(+), 9994 deletions(-) diff --git a/packages/http-client-csharp/emitter/src/lib/client-converter.ts b/packages/http-client-csharp/emitter/src/lib/client-converter.ts index 3ceb1f803ef..21d9c0ed042 100644 --- a/packages/http-client-csharp/emitter/src/lib/client-converter.ts +++ b/packages/http-client-csharp/emitter/src/lib/client-converter.ts @@ -53,13 +53,13 @@ function fromSdkClient( namespace: client.namespace, doc: client.doc, summary: client.summary, - parameters: clientParameters, operations: client.methods .filter((m) => m.kind !== "clientaccessor") .map((m) => fromSdkServiceMethod(sdkContext, m, uri, rootApiVersions)), - apiVersions: client.apiVersions, - crossLanguageDefinitionId: client.crossLanguageDefinitionId, + parameters: clientParameters, decorators: client.decorators, + crossLanguageDefinitionId: client.crossLanguageDefinitionId, + apiVersions: client.apiVersions, parent: undefined, children: undefined, }; diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json index 137e2598928..dd8a5c504f2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json @@ -2412,41 +2412,20 @@ "name": "UnbrandedTypeSpecClient", "namespace": "UnbrandedTypeSpec", "doc": "This is a sample typespec project.", - "parameters": [ - { - "$id": "309", - "name": "unbrandedTypeSpecUrl", - "nameInRequest": "unbrandedTypeSpecUrl", - "type": { - "$id": "310", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "311", + "$id": "309", "name": "sayHi", "resourceName": "UnbrandedTypeSpec", "doc": "Return hi", "accessibility": "public", "parameters": [ { - "$id": "312", + "$id": "310", "name": "headParameter", "nameInRequest": "head-parameter", "type": { - "$id": "313", + "$id": "311", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2463,11 +2442,11 @@ "skipUrlEncoding": false }, { - "$id": "314", + "$id": "312", "name": "queryParameter", "nameInRequest": "queryParameter", "type": { - "$id": "315", + "$id": "313", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2484,11 +2463,11 @@ "skipUrlEncoding": false }, { - "$id": "316", + "$id": "314", "name": "optionalQuery", "nameInRequest": "optionalQuery", "type": { - "$id": "317", + "$id": "315", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2505,14 +2484,14 @@ "skipUrlEncoding": false }, { - "$id": "318", + "$id": "316", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "319", + "$id": "317", "kind": "constant", "valueType": { - "$id": "320", + "$id": "318", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2534,7 +2513,7 @@ ], "responses": [ { - "$id": "321", + "$id": "319", "statusCodes": [ 200 ], @@ -2558,18 +2537,18 @@ "decorators": [] }, { - "$id": "322", + "$id": "320", "name": "helloAgain", "resourceName": "UnbrandedTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "323", + "$id": "321", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "324", + "$id": "322", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2586,14 +2565,14 @@ "skipUrlEncoding": false }, { - "$id": "325", + "$id": "323", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "326", + "$id": "324", "kind": "constant", "valueType": { - "$id": "327", + "$id": "325", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2613,11 +2592,11 @@ "skipUrlEncoding": false }, { - "$id": "328", + "$id": "326", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "329", + "$id": "327", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2634,14 +2613,14 @@ "skipUrlEncoding": false }, { - "$id": "330", + "$id": "328", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "331", + "$id": "329", "kind": "constant", "valueType": { - "$id": "332", + "$id": "330", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2661,7 +2640,7 @@ "skipUrlEncoding": false }, { - "$id": "333", + "$id": "331", "name": "action", "nameInRequest": "action", "type": { @@ -2680,7 +2659,7 @@ ], "responses": [ { - "$id": "334", + "$id": "332", "statusCodes": [ 200 ], @@ -2707,18 +2686,18 @@ "decorators": [] }, { - "$id": "335", + "$id": "333", "name": "noContentType", "resourceName": "UnbrandedTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "336", + "$id": "334", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "337", + "$id": "335", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2735,11 +2714,11 @@ "skipUrlEncoding": false }, { - "$id": "338", + "$id": "336", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "339", + "$id": "337", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2756,15 +2735,15 @@ "skipUrlEncoding": false }, { - "$id": "340", + "$id": "338", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "341", + "$id": "339", "kind": "constant", "valueType": { - "$id": "342", + "$id": "340", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2784,14 +2763,14 @@ "skipUrlEncoding": false }, { - "$id": "343", + "$id": "341", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "344", + "$id": "342", "kind": "constant", "valueType": { - "$id": "345", + "$id": "343", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2811,7 +2790,7 @@ "skipUrlEncoding": false }, { - "$id": "346", + "$id": "344", "name": "action", "nameInRequest": "action", "type": { @@ -2830,7 +2809,7 @@ ], "responses": [ { - "$id": "347", + "$id": "345", "statusCodes": [ 200 ], @@ -2857,21 +2836,21 @@ "decorators": [] }, { - "$id": "348", + "$id": "346", "name": "helloDemo2", "resourceName": "UnbrandedTypeSpec", "doc": "Return hi in demo2", "accessibility": "public", "parameters": [ { - "$id": "349", + "$id": "347", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "350", + "$id": "348", "kind": "constant", "valueType": { - "$id": "351", + "$id": "349", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2893,7 +2872,7 @@ ], "responses": [ { - "$id": "352", + "$id": "350", "statusCodes": [ 200 ], @@ -2917,22 +2896,22 @@ "decorators": [] }, { - "$id": "353", + "$id": "351", "name": "createLiteral", "resourceName": "UnbrandedTypeSpec", "doc": "Create with literal value", "accessibility": "public", "parameters": [ { - "$id": "354", + "$id": "352", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "355", + "$id": "353", "kind": "constant", "valueType": { - "$id": "356", + "$id": "354", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2952,14 +2931,14 @@ "skipUrlEncoding": false }, { - "$id": "357", + "$id": "355", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "358", + "$id": "356", "kind": "constant", "valueType": { - "$id": "359", + "$id": "357", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2979,7 +2958,7 @@ "skipUrlEncoding": false }, { - "$id": "360", + "$id": "358", "name": "body", "nameInRequest": "body", "type": { @@ -2998,7 +2977,7 @@ ], "responses": [ { - "$id": "361", + "$id": "359", "statusCodes": [ 200 ], @@ -3025,21 +3004,21 @@ "decorators": [] }, { - "$id": "362", + "$id": "360", "name": "helloLiteral", "resourceName": "UnbrandedTypeSpec", "doc": "Send literal parameters", "accessibility": "public", "parameters": [ { - "$id": "363", + "$id": "361", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "364", + "$id": "362", "kind": "constant", "valueType": { - "$id": "365", + "$id": "363", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3059,14 +3038,14 @@ "skipUrlEncoding": false }, { - "$id": "366", + "$id": "364", "name": "p2", "nameInRequest": "p2", "type": { - "$id": "367", + "$id": "365", "kind": "constant", "valueType": { - "$id": "368", + "$id": "366", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3086,14 +3065,14 @@ "skipUrlEncoding": false }, { - "$id": "369", + "$id": "367", "name": "p3", "nameInRequest": "p3", "type": { - "$id": "370", + "$id": "368", "kind": "constant", "valueType": { - "$id": "371", + "$id": "369", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3113,14 +3092,14 @@ "skipUrlEncoding": false }, { - "$id": "372", + "$id": "370", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "373", + "$id": "371", "kind": "constant", "valueType": { - "$id": "374", + "$id": "372", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3142,7 +3121,7 @@ ], "responses": [ { - "$id": "375", + "$id": "373", "statusCodes": [ 200 ], @@ -3166,23 +3145,23 @@ "decorators": [] }, { - "$id": "376", + "$id": "374", "name": "topAction", "resourceName": "UnbrandedTypeSpec", "doc": "top level method", "accessibility": "public", "parameters": [ { - "$id": "377", + "$id": "375", "name": "action", "nameInRequest": "action", "type": { - "$id": "378", + "$id": "376", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "379", + "$id": "377", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3202,14 +3181,14 @@ "skipUrlEncoding": false }, { - "$id": "380", + "$id": "378", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "381", + "$id": "379", "kind": "constant", "valueType": { - "$id": "382", + "$id": "380", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3231,7 +3210,7 @@ ], "responses": [ { - "$id": "383", + "$id": "381", "statusCodes": [ 200 ], @@ -3255,21 +3234,21 @@ "decorators": [] }, { - "$id": "384", + "$id": "382", "name": "topAction2", "resourceName": "UnbrandedTypeSpec", "doc": "top level method2", "accessibility": "public", "parameters": [ { - "$id": "385", + "$id": "383", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "386", + "$id": "384", "kind": "constant", "valueType": { - "$id": "387", + "$id": "385", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3291,7 +3270,7 @@ ], "responses": [ { - "$id": "388", + "$id": "386", "statusCodes": [ 200 ], @@ -3315,22 +3294,22 @@ "decorators": [] }, { - "$id": "389", + "$id": "387", "name": "patchAction", "resourceName": "UnbrandedTypeSpec", "doc": "top level patch", "accessibility": "public", "parameters": [ { - "$id": "390", + "$id": "388", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "391", + "$id": "389", "kind": "constant", "valueType": { - "$id": "392", + "$id": "390", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3350,14 +3329,14 @@ "skipUrlEncoding": false }, { - "$id": "393", + "$id": "391", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "394", + "$id": "392", "kind": "constant", "valueType": { - "$id": "395", + "$id": "393", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3377,7 +3356,7 @@ "skipUrlEncoding": false }, { - "$id": "396", + "$id": "394", "name": "body", "nameInRequest": "body", "type": { @@ -3396,7 +3375,7 @@ ], "responses": [ { - "$id": "397", + "$id": "395", "statusCodes": [ 200 ], @@ -3423,22 +3402,22 @@ "decorators": [] }, { - "$id": "398", + "$id": "396", "name": "anonymousBody", "resourceName": "UnbrandedTypeSpec", "doc": "body parameter without body decorator", "accessibility": "public", "parameters": [ { - "$id": "399", + "$id": "397", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "400", + "$id": "398", "kind": "constant", "valueType": { - "$id": "401", + "$id": "399", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3458,14 +3437,14 @@ "skipUrlEncoding": false }, { - "$id": "402", + "$id": "400", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "403", + "$id": "401", "kind": "constant", "valueType": { - "$id": "404", + "$id": "402", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3485,7 +3464,7 @@ "skipUrlEncoding": false }, { - "$id": "405", + "$id": "403", "name": "thing", "nameInRequest": "thing", "type": { @@ -3504,7 +3483,7 @@ ], "responses": [ { - "$id": "406", + "$id": "404", "statusCodes": [ 200 ], @@ -3531,22 +3510,22 @@ "decorators": [] }, { - "$id": "407", + "$id": "405", "name": "friendlyModel", "resourceName": "UnbrandedTypeSpec", "doc": "Model can have its friendly name", "accessibility": "public", "parameters": [ { - "$id": "408", + "$id": "406", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "409", + "$id": "407", "kind": "constant", "valueType": { - "$id": "410", + "$id": "408", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3566,14 +3545,14 @@ "skipUrlEncoding": false }, { - "$id": "411", + "$id": "409", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "412", + "$id": "410", "kind": "constant", "valueType": { - "$id": "413", + "$id": "411", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3593,7 +3572,7 @@ "skipUrlEncoding": false }, { - "$id": "414", + "$id": "412", "name": "friend", "nameInRequest": "friend", "type": { @@ -3612,7 +3591,7 @@ ], "responses": [ { - "$id": "415", + "$id": "413", "statusCodes": [ 200 ], @@ -3639,22 +3618,22 @@ "decorators": [] }, { - "$id": "416", + "$id": "414", "name": "addTimeHeader", "resourceName": "UnbrandedTypeSpec", "accessibility": "public", "parameters": [ { - "$id": "417", + "$id": "415", "name": "repeatabilityFirstSent", "nameInRequest": "Repeatability-First-Sent", "type": { - "$id": "418", + "$id": "416", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "419", + "$id": "417", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3676,7 +3655,7 @@ ], "responses": [ { - "$id": "420", + "$id": "418", "statusCodes": [ 204 ], @@ -3694,22 +3673,22 @@ "decorators": [] }, { - "$id": "421", + "$id": "419", "name": "projectedNameModel", "resourceName": "UnbrandedTypeSpec", "doc": "Model can have its projected name", "accessibility": "public", "parameters": [ { - "$id": "422", + "$id": "420", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "423", + "$id": "421", "kind": "constant", "valueType": { - "$id": "424", + "$id": "422", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3729,14 +3708,14 @@ "skipUrlEncoding": false }, { - "$id": "425", + "$id": "423", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "426", + "$id": "424", "kind": "constant", "valueType": { - "$id": "427", + "$id": "425", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3756,7 +3735,7 @@ "skipUrlEncoding": false }, { - "$id": "428", + "$id": "426", "name": "renamedModel", "nameInRequest": "renamedModel", "type": { @@ -3775,7 +3754,7 @@ ], "responses": [ { - "$id": "429", + "$id": "427", "statusCodes": [ 200 ], @@ -3802,21 +3781,21 @@ "decorators": [] }, { - "$id": "430", + "$id": "428", "name": "returnsAnonymousModel", "resourceName": "UnbrandedTypeSpec", "doc": "return anonymous model", "accessibility": "public", "parameters": [ { - "$id": "431", + "$id": "429", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "432", + "$id": "430", "kind": "constant", "valueType": { - "$id": "433", + "$id": "431", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3838,7 +3817,7 @@ ], "responses": [ { - "$id": "434", + "$id": "432", "statusCodes": [ 200 ], @@ -3862,18 +3841,18 @@ "decorators": [] }, { - "$id": "435", + "$id": "433", "name": "getUnknownValue", "resourceName": "UnbrandedTypeSpec", "doc": "get extensible enum", "accessibility": "public", "parameters": [ { - "$id": "436", + "$id": "434", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "437", + "$id": "435", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3892,15 +3871,15 @@ ], "responses": [ { - "$id": "438", + "$id": "436", "statusCodes": [ 200 ], "bodyType": { - "$id": "439", + "$id": "437", "kind": "constant", "valueType": { - "$id": "440", + "$id": "438", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3933,22 +3912,22 @@ "decorators": [] }, { - "$id": "441", + "$id": "439", "name": "internalProtocol", "resourceName": "UnbrandedTypeSpec", "doc": "When set protocol false and convenient true, then the protocol method should be internal", "accessibility": "public", "parameters": [ { - "$id": "442", + "$id": "440", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "443", + "$id": "441", "kind": "constant", "valueType": { - "$id": "444", + "$id": "442", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3968,14 +3947,14 @@ "skipUrlEncoding": false }, { - "$id": "445", + "$id": "443", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "446", + "$id": "444", "kind": "constant", "valueType": { - "$id": "447", + "$id": "445", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3995,7 +3974,7 @@ "skipUrlEncoding": false }, { - "$id": "448", + "$id": "446", "name": "body", "nameInRequest": "body", "type": { @@ -4014,7 +3993,7 @@ ], "responses": [ { - "$id": "449", + "$id": "447", "statusCodes": [ 200 ], @@ -4041,7 +4020,7 @@ "decorators": [] }, { - "$id": "450", + "$id": "448", "name": "stillConvenient", "resourceName": "UnbrandedTypeSpec", "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", @@ -4049,7 +4028,7 @@ "parameters": [], "responses": [ { - "$id": "451", + "$id": "449", "statusCodes": [ 204 ], @@ -4067,18 +4046,18 @@ "decorators": [] }, { - "$id": "452", + "$id": "450", "name": "headAsBoolean", "resourceName": "UnbrandedTypeSpec", "doc": "head as boolean.", "accessibility": "public", "parameters": [ { - "$id": "453", + "$id": "451", "name": "id", "nameInRequest": "id", "type": { - "$id": "454", + "$id": "452", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4097,7 +4076,7 @@ ], "responses": [ { - "$id": "455", + "$id": "453", "statusCodes": [ 204 ], @@ -4115,18 +4094,18 @@ "decorators": [] }, { - "$id": "456", + "$id": "454", "name": "WithApiVersion", "resourceName": "UnbrandedTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "457", + "$id": "455", "name": "p1", "nameInRequest": "p1", "type": { - "$id": "458", + "$id": "456", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4143,11 +4122,11 @@ "skipUrlEncoding": false }, { - "$id": "459", + "$id": "457", "name": "apiVersion", "nameInRequest": "apiVersion", "type": { - "$id": "460", + "$id": "458", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4161,9 +4140,9 @@ "isRequired": true, "kind": "Client", "defaultValue": { - "$id": "461", + "$id": "459", "type": { - "$id": "462", + "$id": "460", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4176,7 +4155,7 @@ ], "responses": [ { - "$id": "463", + "$id": "461", "statusCodes": [ 204 ], @@ -4194,21 +4173,21 @@ "decorators": [] }, { - "$id": "464", + "$id": "462", "name": "ListWithNextLink", "resourceName": "UnbrandedTypeSpec", "doc": "List things with nextlink", "accessibility": "public", "parameters": [ { - "$id": "465", + "$id": "463", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "466", + "$id": "464", "kind": "constant", "valueType": { - "$id": "467", + "$id": "465", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4230,7 +4209,7 @@ ], "responses": [ { - "$id": "468", + "$id": "466", "statusCodes": [ 200 ], @@ -4249,12 +4228,12 @@ "path": "/link", "bufferResponse": true, "paging": { - "$id": "469", + "$id": "467", "itemPropertySegments": [ "things" ], "nextLink": { - "$id": "470", + "$id": "468", "responseSegments": [ "next" ], @@ -4267,18 +4246,18 @@ "decorators": [] }, { - "$id": "471", + "$id": "469", "name": "ListWithContinuationToken", "resourceName": "UnbrandedTypeSpec", "doc": "List things with continuation token", "accessibility": "public", "parameters": [ { - "$id": "472", + "$id": "470", "name": "token", "nameInRequest": "token", "type": { - "$id": "473", + "$id": "471", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4295,14 +4274,14 @@ "skipUrlEncoding": false }, { - "$id": "474", + "$id": "472", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "475", + "$id": "473", "kind": "constant", "valueType": { - "$id": "476", + "$id": "474", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4324,7 +4303,7 @@ ], "responses": [ { - "$id": "477", + "$id": "475", "statusCodes": [ 200 ], @@ -4343,18 +4322,18 @@ "path": "/continuation", "bufferResponse": true, "paging": { - "$id": "478", + "$id": "476", "itemPropertySegments": [ "things" ], "continuationToken": { - "$id": "479", + "$id": "477", "parameter": { - "$id": "480", + "$id": "478", "name": "token", "nameInRequest": "token", "type": { - "$ref": "473" + "$ref": "471" }, "location": "Query", "isApiVersion": false, @@ -4378,18 +4357,18 @@ "decorators": [] }, { - "$id": "481", + "$id": "479", "name": "ListWithContinuationTokenHeaderResponse", "resourceName": "UnbrandedTypeSpec", "doc": "List things with continuation token header response", "accessibility": "public", "parameters": [ { - "$id": "482", + "$id": "480", "name": "token", "nameInRequest": "token", "type": { - "$id": "483", + "$id": "481", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4406,14 +4385,14 @@ "skipUrlEncoding": false }, { - "$id": "484", + "$id": "482", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "485", + "$id": "483", "kind": "constant", "valueType": { - "$id": "486", + "$id": "484", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4435,7 +4414,7 @@ ], "responses": [ { - "$id": "487", + "$id": "485", "statusCodes": [ 200 ], @@ -4444,11 +4423,11 @@ }, "headers": [ { - "$id": "488", + "$id": "486", "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "489", + "$id": "487", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4467,18 +4446,18 @@ "path": "/continuation/header", "bufferResponse": true, "paging": { - "$id": "490", + "$id": "488", "itemPropertySegments": [ "things" ], "continuationToken": { - "$id": "491", + "$id": "489", "parameter": { - "$id": "492", + "$id": "490", "name": "token", "nameInRequest": "token", "type": { - "$ref": "483" + "$ref": "481" }, "location": "Query", "isApiVersion": false, @@ -4502,12 +4481,33 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "491", + "name": "unbrandedTypeSpecUrl", + "nameInRequest": "unbrandedTypeSpecUrl", + "type": { + "$id": "492", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "UnbrandedTypeSpec", "apiVersions": [ "2024-07-16-preview", "2024-08-16-preview" - ], - "crossLanguageDefinitionId": "UnbrandedTypeSpec", - "decorators": [] + ] } ], "auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json index f2efe7e426d..0a2bfa2494b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json @@ -49,41 +49,9 @@ "name": "ApiKeyClient", "namespace": "Authentication.ApiKey", "doc": "Illustrates clients generated with ApiKey authentication.", - "parameters": [ - { - "$id": "8", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "9", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "10", - "type": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "12", + "$id": "8", "name": "valid", "resourceName": "ApiKey", "doc": "Check whether client is authenticated", @@ -91,7 +59,7 @@ "parameters": [], "responses": [ { - "$id": "13", + "$id": "9", "statusCodes": [ 204 ], @@ -109,21 +77,21 @@ "decorators": [] }, { - "$id": "14", + "$id": "10", "name": "invalid", "resourceName": "ApiKey", "doc": "Check whether client is authenticated.", "accessibility": "public", "parameters": [ { - "$id": "15", + "$id": "11", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "16", + "$id": "12", "kind": "constant", "valueType": { - "$id": "17", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -145,7 +113,7 @@ ], "responses": [ { - "$id": "18", + "$id": "14", "statusCodes": [ 204 ], @@ -163,9 +131,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "15", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "16", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "17", + "type": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Authentication.ApiKey", - "decorators": [] + "apiVersions": [] } ], "auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json index 3a0b053684c..f07c5b70224 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json @@ -49,41 +49,9 @@ "name": "CustomClient", "namespace": "Authentication.Http.Custom", "doc": "Illustrates clients generated with generic HTTP auth.", - "parameters": [ - { - "$id": "8", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "9", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "10", - "type": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "12", + "$id": "8", "name": "valid", "resourceName": "Custom", "doc": "Check whether client is authenticated", @@ -91,7 +59,7 @@ "parameters": [], "responses": [ { - "$id": "13", + "$id": "9", "statusCodes": [ 204 ], @@ -109,21 +77,21 @@ "decorators": [] }, { - "$id": "14", + "$id": "10", "name": "invalid", "resourceName": "Custom", "doc": "Check whether client is authenticated.", "accessibility": "public", "parameters": [ { - "$id": "15", + "$id": "11", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "16", + "$id": "12", "kind": "constant", "valueType": { - "$id": "17", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -145,7 +113,7 @@ ], "responses": [ { - "$id": "18", + "$id": "14", "statusCodes": [ 204 ], @@ -163,9 +131,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "15", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "16", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "17", + "type": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Authentication.Http.Custom", - "decorators": [] + "apiVersions": [] } ], "auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json index fd9bb466d39..6d1e451d856 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json @@ -49,41 +49,9 @@ "name": "OAuth2Client", "namespace": "Authentication.OAuth2", "doc": "Illustrates clients generated with OAuth2 authentication.", - "parameters": [ - { - "$id": "8", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "9", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "10", - "type": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "12", + "$id": "8", "name": "valid", "resourceName": "OAuth2", "doc": "Check whether client is authenticated", @@ -91,7 +59,7 @@ "parameters": [], "responses": [ { - "$id": "13", + "$id": "9", "statusCodes": [ 204 ], @@ -109,21 +77,21 @@ "decorators": [] }, { - "$id": "14", + "$id": "10", "name": "invalid", "resourceName": "OAuth2", "doc": "Check whether client is authenticated. Will return an invalid bearer error.", "accessibility": "public", "parameters": [ { - "$id": "15", + "$id": "11", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "16", + "$id": "12", "kind": "constant", "valueType": { - "$id": "17", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -145,7 +113,7 @@ ], "responses": [ { - "$id": "18", + "$id": "14", "statusCodes": [ 204 ], @@ -163,9 +131,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "15", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "16", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "17", + "type": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Authentication.OAuth2", - "decorators": [] + "apiVersions": [] } ], "auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json index ab1264888eb..3facc504d21 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json @@ -11,41 +11,9 @@ "name": "UnionClient", "namespace": "Authentication.Union", "doc": "Illustrates clients generated with ApiKey and OAuth2 authentication.", - "parameters": [ - { - "$id": "3", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "4", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "5", - "type": { - "$id": "6", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "7", + "$id": "3", "name": "validKey", "resourceName": "Union", "doc": "Check whether client is authenticated", @@ -53,7 +21,7 @@ "parameters": [], "responses": [ { - "$id": "8", + "$id": "4", "statusCodes": [ 204 ], @@ -71,7 +39,7 @@ "decorators": [] }, { - "$id": "9", + "$id": "5", "name": "validToken", "resourceName": "Union", "doc": "Check whether client is authenticated", @@ -79,7 +47,7 @@ "parameters": [], "responses": [ { - "$id": "10", + "$id": "6", "statusCodes": [ 204 ], @@ -97,9 +65,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "7", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "8", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "9", + "type": { + "$id": "10", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Authentication.Union", - "decorators": [] + "apiVersions": [] } ], "auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json index 6ed85cbef6c..60546c4887b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json @@ -116,14 +116,41 @@ "kind": "client", "name": "FirstClient", "namespace": "Client.Structure.ClientOperationGroup", - "parameters": [ + "operations": [ { "$id": "15", + "name": "one", + "resourceName": "ClientOperationGroup", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "16", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/one", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.one", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "17", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "16", + "$id": "18", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -138,7 +165,7 @@ "kind": "Client" }, { - "$id": "17", + "$id": "19", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -155,91 +182,25 @@ "kind": "Client" } ], - "operations": [ - { - "$id": "18", - "name": "one", - "resourceName": "ClientOperationGroup", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "19", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/one", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.one", - "decorators": [] - } - ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup", "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup", + "apiVersions": [], "children": [ { "$id": "20", "kind": "client", "name": "Group3", "namespace": "Client.Structure.ClientOperationGroup", - "parameters": [ - { - "$id": "21", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "22", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "23", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "24", + "$id": "21", "name": "two", "resourceName": "Group3", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "25", + "$id": "22", "statusCodes": [ 204 ], @@ -257,14 +218,14 @@ "decorators": [] }, { - "$id": "26", + "$id": "23", "name": "three", "resourceName": "Group3", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "27", + "$id": "24", "statusCodes": [ 204 ], @@ -282,26 +243,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3", - "decorators": [], - "parent": { - "$ref": "14" - } - }, - { - "$id": "28", - "kind": "client", - "name": "Group4", - "namespace": "Client.Structure.ClientOperationGroup", "parameters": [ { - "$id": "29", + "$id": "25", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "30", + "$id": "26", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -316,7 +265,7 @@ "kind": "Client" }, { - "$id": "31", + "$id": "27", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -333,16 +282,28 @@ "kind": "Client" } ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3", + "apiVersions": [], + "parent": { + "$ref": "14" + } + }, + { + "$id": "28", + "kind": "client", + "name": "Group4", + "namespace": "Client.Structure.ClientOperationGroup", "operations": [ { - "$id": "32", + "$id": "29", "name": "four", "resourceName": "Group4", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "33", + "$id": "30", "statusCodes": [ 204 ], @@ -360,9 +321,48 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4", + "parameters": [ + { + "$id": "31", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "32", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "33", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4", + "apiVersions": [], "parent": { "$ref": "14" } @@ -374,14 +374,41 @@ "kind": "client", "name": "SubNamespace.SecondClient", "namespace": "Client.Structure.AnotherClientOperationGroup", - "parameters": [ + "operations": [ { "$id": "35", + "name": "five", + "resourceName": "AnotherClientOperationGroup", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "36", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/five", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.five", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "37", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "36", + "$id": "38", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -396,7 +423,7 @@ "kind": "Client" }, { - "$id": "37", + "$id": "39", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -413,50 +440,50 @@ "kind": "Client" } ], - "operations": [ - { - "$id": "38", - "name": "five", - "resourceName": "AnotherClientOperationGroup", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "39", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/five", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.five", - "decorators": [] - } - ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup", "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup", + "apiVersions": [], "children": [ { "$id": "40", "kind": "client", "name": "Group5", "namespace": "Client.Structure.AnotherClientOperationGroup", - "parameters": [ + "operations": [ { "$id": "41", + "name": "six", + "resourceName": "Group5", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "42", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/six", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5.six", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "43", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "42", + "$id": "44", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -471,7 +498,7 @@ "kind": "Client" }, { - "$id": "43", + "$id": "45", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -488,36 +515,9 @@ "kind": "Client" } ], - "operations": [ - { - "$id": "44", - "name": "six", - "resourceName": "Group5", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "45", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/six", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5.six", - "decorators": [] - } - ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5", "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5", + "apiVersions": [], "parent": { "$ref": "34" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json index 63db7dd0f34..1140defcb42 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json @@ -117,55 +117,16 @@ "name": "ServiceClient", "namespace": "Client.Structure.Service", "doc": "Test that we can use @client and @operationGroup decorators to customize client side code structure, such as:\n1. have everything as default.\n2. to rename client or operation group\n3. one client can have more than one operations groups\n4. split one interface into two clients\n5. have two clients with operations come from different interfaces\n6. have two clients with a hierarchy relation.", - "parameters": [ - { - "$id": "15", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "16", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "17", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "18", + "$id": "15", "name": "one", "resourceName": "Service", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "19", + "$id": "16", "statusCodes": [ 204 ], @@ -183,14 +144,14 @@ "decorators": [] }, { - "$id": "20", + "$id": "17", "name": "two", "resourceName": "Service", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "21", + "$id": "18", "statusCodes": [ 204 ], @@ -208,15 +169,55 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.Service", + "parameters": [ + { + "$id": "19", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "20", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "21", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service", + "apiVersions": [], "children": [ { "$id": "22", "kind": "client", "name": "Baz", "namespace": "Client.Structure.Service.Baz", + "operations": [], "parameters": [ { "$id": "23", @@ -256,10 +257,9 @@ "kind": "Client" } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Baz", "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Baz", + "apiVersions": [], "parent": { "$ref": "14" }, @@ -269,14 +269,41 @@ "kind": "client", "name": "Foo", "namespace": "Client.Structure.Service.Baz", - "parameters": [ + "operations": [ { "$id": "27", + "name": "seven", + "resourceName": "Foo", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "28", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/seven", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo.seven", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "29", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "28", + "$id": "30", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -291,7 +318,7 @@ "kind": "Client" }, { - "$id": "29", + "$id": "31", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -308,36 +335,9 @@ "kind": "Client" } ], - "operations": [ - { - "$id": "30", - "name": "seven", - "resourceName": "Foo", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "31", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/seven", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo.seven", - "decorators": [] - } - ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo", "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo", + "apiVersions": [], "parent": { "$ref": "22" } @@ -349,14 +349,41 @@ "kind": "client", "name": "Qux", "namespace": "Client.Structure.Service.Qux", - "parameters": [ + "operations": [ { "$id": "33", + "name": "eight", + "resourceName": "Qux", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "34", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/eight", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Qux.eight", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "35", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "34", + "$id": "36", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -371,7 +398,7 @@ "kind": "Client" }, { - "$id": "35", + "$id": "37", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -388,36 +415,9 @@ "kind": "Client" } ], - "operations": [ - { - "$id": "36", - "name": "eight", - "resourceName": "Qux", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "37", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/eight", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Qux.eight", - "decorators": [] - } - ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Qux", "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Qux", + "apiVersions": [], "parent": { "$ref": "14" }, @@ -427,14 +427,41 @@ "kind": "client", "name": "Bar", "namespace": "Client.Structure.Service.Qux", - "parameters": [ + "operations": [ { "$id": "39", + "name": "nine", + "resourceName": "Bar", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "40", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/nine", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar.nine", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "41", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "40", + "$id": "42", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -449,7 +476,7 @@ "kind": "Client" }, { - "$id": "41", + "$id": "43", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -466,36 +493,9 @@ "kind": "Client" } ], - "operations": [ - { - "$id": "42", - "name": "nine", - "resourceName": "Bar", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "43", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/nine", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar.nine", - "decorators": [] - } - ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar", "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar", + "apiVersions": [], "parent": { "$ref": "32" } @@ -507,55 +507,16 @@ "kind": "client", "name": "Foo", "namespace": "Client.Structure.Service", - "parameters": [ - { - "$id": "45", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "46", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "47", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "48", + "$id": "45", "name": "three", "resourceName": "Foo", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "49", + "$id": "46", "statusCodes": [ 204 ], @@ -573,14 +534,14 @@ "decorators": [] }, { - "$id": "50", + "$id": "47", "name": "four", "resourceName": "Foo", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "51", + "$id": "48", "statusCodes": [ 204 ], @@ -598,26 +559,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Foo", - "decorators": [], - "parent": { - "$ref": "14" - } - }, - { - "$id": "52", - "kind": "client", - "name": "Bar", - "namespace": "Client.Structure.Service", "parameters": [ { - "$id": "53", + "$id": "49", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "54", + "$id": "50", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -632,7 +581,7 @@ "kind": "Client" }, { - "$id": "55", + "$id": "51", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -649,16 +598,28 @@ "kind": "Client" } ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Foo", + "apiVersions": [], + "parent": { + "$ref": "14" + } + }, + { + "$id": "52", + "kind": "client", + "name": "Bar", + "namespace": "Client.Structure.Service", "operations": [ { - "$id": "56", + "$id": "53", "name": "five", "resourceName": "Bar", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "57", + "$id": "54", "statusCodes": [ 204 ], @@ -676,14 +637,14 @@ "decorators": [] }, { - "$id": "58", + "$id": "55", "name": "six", "resourceName": "Bar", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "59", + "$id": "56", "statusCodes": [ 204 ], @@ -701,9 +662,48 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Bar", + "parameters": [ + { + "$id": "57", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "58", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "59", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Bar", + "apiVersions": [], "parent": { "$ref": "14" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json index d1ca2fc02a5..5e693e0e402 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json @@ -116,55 +116,16 @@ "kind": "client", "name": "ClientAClient", "namespace": "Client.Structure.MultiClient", - "parameters": [ - { - "$id": "15", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "16", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "17", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "18", + "$id": "15", "name": "renamedOne", "resourceName": "ClientA", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "19", + "$id": "16", "statusCodes": [ 204 ], @@ -182,14 +143,14 @@ "decorators": [] }, { - "$id": "20", + "$id": "17", "name": "renamedThree", "resourceName": "ClientA", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "21", + "$id": "18", "statusCodes": [ 204 ], @@ -207,14 +168,14 @@ "decorators": [] }, { - "$id": "22", + "$id": "19", "name": "renamedFive", "resourceName": "ClientA", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "23", + "$id": "20", "statusCodes": [ 204 ], @@ -232,23 +193,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA", - "decorators": [] - }, - { - "$id": "24", - "kind": "client", - "name": "ClientBClient", - "namespace": "Client.Structure.MultiClient", "parameters": [ { - "$id": "25", + "$id": "21", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "26", + "$id": "22", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -263,7 +215,7 @@ "kind": "Client" }, { - "$id": "27", + "$id": "23", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -280,16 +232,25 @@ "kind": "Client" } ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA", + "apiVersions": [] + }, + { + "$id": "24", + "kind": "client", + "name": "ClientBClient", + "namespace": "Client.Structure.MultiClient", "operations": [ { - "$id": "28", + "$id": "25", "name": "renamedTwo", "resourceName": "ClientB", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "29", + "$id": "26", "statusCodes": [ 204 ], @@ -307,14 +268,14 @@ "decorators": [] }, { - "$id": "30", + "$id": "27", "name": "renamedFour", "resourceName": "ClientB", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "31", + "$id": "28", "statusCodes": [ 204 ], @@ -332,14 +293,14 @@ "decorators": [] }, { - "$id": "32", + "$id": "29", "name": "renamedSix", "resourceName": "ClientB", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "33", + "$id": "30", "statusCodes": [ 204 ], @@ -357,9 +318,48 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "31", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "32", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "33", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json index 7f168fcc5f7..611136cdaf4 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json @@ -116,55 +116,16 @@ "kind": "client", "name": "RenamedOperationClient", "namespace": "Client.Structure.RenamedOperation", - "parameters": [ - { - "$id": "15", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "16", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "17", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "18", + "$id": "15", "name": "renamedOne", "resourceName": "RenamedOperation", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "19", + "$id": "16", "statusCodes": [ 204 ], @@ -182,14 +143,14 @@ "decorators": [] }, { - "$id": "20", + "$id": "17", "name": "renamedThree", "resourceName": "RenamedOperation", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "21", + "$id": "18", "statusCodes": [ 204 ], @@ -207,14 +168,14 @@ "decorators": [] }, { - "$id": "22", + "$id": "19", "name": "renamedFive", "resourceName": "RenamedOperation", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "23", + "$id": "20", "statusCodes": [ 204 ], @@ -232,64 +193,64 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation", + "parameters": [ + { + "$id": "21", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "22", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "23", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation", + "apiVersions": [], "children": [ { "$id": "24", "kind": "client", "name": "Group", "namespace": "Client.Structure.RenamedOperation", - "parameters": [ - { - "$id": "25", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "26", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "27", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "28", + "$id": "25", "name": "renamedTwo", "resourceName": "Group", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "29", + "$id": "26", "statusCodes": [ 204 ], @@ -307,14 +268,14 @@ "decorators": [] }, { - "$id": "30", + "$id": "27", "name": "renamedFour", "resourceName": "Group", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "31", + "$id": "28", "statusCodes": [ 204 ], @@ -332,14 +293,14 @@ "decorators": [] }, { - "$id": "32", + "$id": "29", "name": "renamedSix", "resourceName": "Group", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "33", + "$id": "30", "statusCodes": [ 204 ], @@ -357,9 +318,48 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group", + "parameters": [ + { + "$id": "31", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "32", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "33", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group", + "apiVersions": [], "parent": { "$ref": "14" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json index 26aa244ce6d..e2e65e12889 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json @@ -116,6 +116,7 @@ "kind": "client", "name": "TwoOperationGroupClient", "namespace": "Client.Structure.TwoOperationGroup", + "operations": [], "parameters": [ { "$id": "15", @@ -155,65 +156,25 @@ "kind": "Client" } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup", "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup", + "apiVersions": [], "children": [ { "$id": "18", "kind": "client", "name": "Group1", "namespace": "Client.Structure.TwoOperationGroup", - "parameters": [ - { - "$id": "19", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "20", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "21", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "22", + "$id": "19", "name": "one", "resourceName": "Group1", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "23", + "$id": "20", "statusCodes": [ 204 ], @@ -231,14 +192,14 @@ "decorators": [] }, { - "$id": "24", + "$id": "21", "name": "three", "resourceName": "Group1", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "25", + "$id": "22", "statusCodes": [ 204 ], @@ -256,14 +217,14 @@ "decorators": [] }, { - "$id": "26", + "$id": "23", "name": "four", "resourceName": "Group1", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "27", + "$id": "24", "statusCodes": [ 204 ], @@ -281,26 +242,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1", - "decorators": [], - "parent": { - "$ref": "14" - } - }, - { - "$id": "28", - "kind": "client", - "name": "Group2", - "namespace": "Client.Structure.TwoOperationGroup", "parameters": [ { - "$id": "29", + "$id": "25", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "30", + "$id": "26", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -315,7 +264,7 @@ "kind": "Client" }, { - "$id": "31", + "$id": "27", "name": "client", "nameInRequest": "client", "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", @@ -332,16 +281,28 @@ "kind": "Client" } ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1", + "apiVersions": [], + "parent": { + "$ref": "14" + } + }, + { + "$id": "28", + "kind": "client", + "name": "Group2", + "namespace": "Client.Structure.TwoOperationGroup", "operations": [ { - "$id": "32", + "$id": "29", "name": "two", "resourceName": "Group2", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "33", + "$id": "30", "statusCodes": [ 204 ], @@ -359,14 +320,14 @@ "decorators": [] }, { - "$id": "34", + "$id": "31", "name": "five", "resourceName": "Group2", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "35", + "$id": "32", "statusCodes": [ 204 ], @@ -384,14 +345,14 @@ "decorators": [] }, { - "$id": "36", + "$id": "33", "name": "six", "resourceName": "Group2", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "37", + "$id": "34", "statusCodes": [ 204 ], @@ -409,9 +370,48 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2", + "parameters": [ + { + "$id": "35", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "36", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "37", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2", + "apiVersions": [], "parent": { "$ref": "14" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json index 5c1c2662e4c..8b9c14ae015 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json @@ -179,6 +179,7 @@ "name": "BytesClient", "namespace": "Encode.Bytes", "doc": "Test for encode decorator on bytes.", + "operations": [], "parameters": [ { "$id": "25", @@ -211,61 +212,28 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Bytes", "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes", + "apiVersions": [], "children": [ { "$id": "29", "kind": "client", "name": "Query", "namespace": "Encode.Bytes.Query", - "parameters": [ - { - "$id": "30", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "31", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "32", - "type": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "34", + "$id": "30", "name": "default", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "35", + "$id": "31", "name": "value", "nameInRequest": "value", "type": { - "$id": "36", + "$id": "32", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -285,7 +253,7 @@ ], "responses": [ { - "$id": "37", + "$id": "33", "statusCodes": [ 204 ], @@ -303,17 +271,17 @@ "decorators": [] }, { - "$id": "38", + "$id": "34", "name": "base64", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "39", + "$id": "35", "name": "value", "nameInRequest": "value", "type": { - "$id": "40", + "$id": "36", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -333,7 +301,7 @@ ], "responses": [ { - "$id": "41", + "$id": "37", "statusCodes": [ 204 ], @@ -351,17 +319,17 @@ "decorators": [] }, { - "$id": "42", + "$id": "38", "name": "base64url", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "43", + "$id": "39", "name": "value", "nameInRequest": "value", "type": { - "$id": "44", + "$id": "40", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -381,7 +349,7 @@ ], "responses": [ { - "$id": "45", + "$id": "41", "statusCodes": [ 204 ], @@ -399,27 +367,27 @@ "decorators": [] }, { - "$id": "46", + "$id": "42", "name": "base64urlArray", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "47", + "$id": "43", "name": "value", "nameInRequest": "value", "type": { - "$id": "48", + "$id": "44", "kind": "array", "name": "Array", "valueType": { - "$id": "49", + "$id": "45", "kind": "bytes", "name": "base64urlBytes", "encode": "base64url", "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", "baseType": { - "$id": "50", + "$id": "46", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -445,7 +413,7 @@ ], "responses": [ { - "$id": "51", + "$id": "47", "statusCodes": [ 204 ], @@ -463,26 +431,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Bytes.Query", - "decorators": [], - "parent": { - "$ref": "24" - } - }, - { - "$id": "52", - "kind": "client", - "name": "Property", - "namespace": "Encode.Bytes.Property", "parameters": [ { - "$id": "53", + "$id": "48", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "54", + "$id": "49", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -496,9 +452,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "55", + "$id": "50", "type": { - "$id": "56", + "$id": "51", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -507,23 +463,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.Query", + "apiVersions": [], + "parent": { + "$ref": "24" + } + }, + { + "$id": "52", + "kind": "client", + "name": "Property", + "namespace": "Encode.Bytes.Property", "operations": [ { - "$id": "57", + "$id": "53", "name": "default", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "58", + "$id": "54", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "59", + "$id": "55", "kind": "constant", "valueType": { - "$id": "60", + "$id": "56", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -543,14 +511,14 @@ "skipUrlEncoding": false }, { - "$id": "61", + "$id": "57", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "62", + "$id": "58", "kind": "constant", "valueType": { - "$id": "63", + "$id": "59", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -570,7 +538,7 @@ "skipUrlEncoding": false }, { - "$id": "64", + "$id": "60", "name": "body", "nameInRequest": "body", "type": { @@ -589,7 +557,7 @@ ], "responses": [ { - "$id": "65", + "$id": "61", "statusCodes": [ 200 ], @@ -616,21 +584,21 @@ "decorators": [] }, { - "$id": "66", + "$id": "62", "name": "base64", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "67", + "$id": "63", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "68", + "$id": "64", "kind": "constant", "valueType": { - "$id": "69", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -650,14 +618,14 @@ "skipUrlEncoding": false }, { - "$id": "70", + "$id": "66", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "71", + "$id": "67", "kind": "constant", "valueType": { - "$id": "72", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -677,7 +645,7 @@ "skipUrlEncoding": false }, { - "$id": "73", + "$id": "69", "name": "body", "nameInRequest": "body", "type": { @@ -696,7 +664,7 @@ ], "responses": [ { - "$id": "74", + "$id": "70", "statusCodes": [ 200 ], @@ -723,21 +691,21 @@ "decorators": [] }, { - "$id": "75", + "$id": "71", "name": "base64url", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "76", + "$id": "72", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "77", + "$id": "73", "kind": "constant", "valueType": { - "$id": "78", + "$id": "74", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -757,14 +725,14 @@ "skipUrlEncoding": false }, { - "$id": "79", + "$id": "75", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "80", + "$id": "76", "kind": "constant", "valueType": { - "$id": "81", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -784,7 +752,7 @@ "skipUrlEncoding": false }, { - "$id": "82", + "$id": "78", "name": "body", "nameInRequest": "body", "type": { @@ -803,7 +771,7 @@ ], "responses": [ { - "$id": "83", + "$id": "79", "statusCodes": [ 200 ], @@ -830,21 +798,21 @@ "decorators": [] }, { - "$id": "84", + "$id": "80", "name": "base64urlArray", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "85", + "$id": "81", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "86", + "$id": "82", "kind": "constant", "valueType": { - "$id": "87", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -864,14 +832,14 @@ "skipUrlEncoding": false }, { - "$id": "88", + "$id": "84", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "89", + "$id": "85", "kind": "constant", "valueType": { - "$id": "90", + "$id": "86", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -891,7 +859,7 @@ "skipUrlEncoding": false }, { - "$id": "91", + "$id": "87", "name": "body", "nameInRequest": "body", "type": { @@ -910,7 +878,7 @@ ], "responses": [ { - "$id": "92", + "$id": "88", "statusCodes": [ 200 ], @@ -937,26 +905,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Bytes.Property", - "decorators": [], - "parent": { - "$ref": "24" - } - }, - { - "$id": "93", - "kind": "client", - "name": "Header", - "namespace": "Encode.Bytes.Header", "parameters": [ { - "$id": "94", + "$id": "89", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "95", + "$id": "90", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -970,9 +926,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "96", + "$id": "91", "type": { - "$id": "97", + "$id": "92", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -981,19 +937,31 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.Property", + "apiVersions": [], + "parent": { + "$ref": "24" + } + }, + { + "$id": "93", + "kind": "client", + "name": "Header", + "namespace": "Encode.Bytes.Header", "operations": [ { - "$id": "98", + "$id": "94", "name": "default", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "99", + "$id": "95", "name": "value", "nameInRequest": "value", "type": { - "$id": "100", + "$id": "96", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1013,7 +981,7 @@ ], "responses": [ { - "$id": "101", + "$id": "97", "statusCodes": [ 204 ], @@ -1031,17 +999,17 @@ "decorators": [] }, { - "$id": "102", + "$id": "98", "name": "base64", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "103", + "$id": "99", "name": "value", "nameInRequest": "value", "type": { - "$id": "104", + "$id": "100", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1061,7 +1029,7 @@ ], "responses": [ { - "$id": "105", + "$id": "101", "statusCodes": [ 204 ], @@ -1079,17 +1047,17 @@ "decorators": [] }, { - "$id": "106", + "$id": "102", "name": "base64url", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "107", + "$id": "103", "name": "value", "nameInRequest": "value", "type": { - "$id": "108", + "$id": "104", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -1109,7 +1077,7 @@ ], "responses": [ { - "$id": "109", + "$id": "105", "statusCodes": [ 204 ], @@ -1127,27 +1095,27 @@ "decorators": [] }, { - "$id": "110", + "$id": "106", "name": "base64urlArray", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "111", + "$id": "107", "name": "value", "nameInRequest": "value", "type": { - "$id": "112", + "$id": "108", "kind": "array", "name": "Array", "valueType": { - "$id": "113", + "$id": "109", "kind": "bytes", "name": "base64urlBytes", "encode": "base64url", "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", "baseType": { - "$id": "114", + "$id": "110", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1173,7 +1141,7 @@ ], "responses": [ { - "$id": "115", + "$id": "111", "statusCodes": [ 204 ], @@ -1191,26 +1159,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Bytes.Header", - "decorators": [], - "parent": { - "$ref": "24" - } - }, - { - "$id": "116", - "kind": "client", - "name": "RequestBody", - "namespace": "Encode.Bytes.RequestBody", "parameters": [ { - "$id": "117", + "$id": "112", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "118", + "$id": "113", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1224,9 +1180,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "119", + "$id": "114", "type": { - "$id": "120", + "$id": "115", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1235,23 +1191,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.Header", + "apiVersions": [], + "parent": { + "$ref": "24" + } + }, + { + "$id": "116", + "kind": "client", + "name": "RequestBody", + "namespace": "Encode.Bytes.RequestBody", "operations": [ { - "$id": "121", + "$id": "117", "name": "default", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "122", + "$id": "118", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/octet-stream", "type": { - "$id": "123", + "$id": "119", "kind": "constant", "valueType": { - "$id": "124", + "$id": "120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1271,11 +1239,11 @@ "skipUrlEncoding": false }, { - "$id": "125", + "$id": "121", "name": "value", "nameInRequest": "value", "type": { - "$id": "126", + "$id": "122", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -1294,7 +1262,7 @@ ], "responses": [ { - "$id": "127", + "$id": "123", "statusCodes": [ 204 ], @@ -1315,20 +1283,20 @@ "decorators": [] }, { - "$id": "128", + "$id": "124", "name": "octetStream", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "129", + "$id": "125", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "130", + "$id": "126", "kind": "constant", "valueType": { - "$id": "131", + "$id": "127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1348,11 +1316,11 @@ "skipUrlEncoding": false }, { - "$id": "132", + "$id": "128", "name": "value", "nameInRequest": "value", "type": { - "$id": "133", + "$id": "129", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -1371,7 +1339,7 @@ ], "responses": [ { - "$id": "134", + "$id": "130", "statusCodes": [ 204 ], @@ -1392,20 +1360,20 @@ "decorators": [] }, { - "$id": "135", + "$id": "131", "name": "customContentType", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "136", + "$id": "132", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "137", + "$id": "133", "kind": "constant", "valueType": { - "$id": "138", + "$id": "134", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1425,11 +1393,11 @@ "skipUrlEncoding": false }, { - "$id": "139", + "$id": "135", "name": "value", "nameInRequest": "value", "type": { - "$id": "140", + "$id": "136", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -1448,7 +1416,7 @@ ], "responses": [ { - "$id": "141", + "$id": "137", "statusCodes": [ 204 ], @@ -1469,20 +1437,20 @@ "decorators": [] }, { - "$id": "142", + "$id": "138", "name": "base64", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "143", + "$id": "139", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "144", + "$id": "140", "kind": "constant", "valueType": { - "$id": "145", + "$id": "141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1502,11 +1470,11 @@ "skipUrlEncoding": false }, { - "$id": "146", + "$id": "142", "name": "value", "nameInRequest": "value", "type": { - "$id": "147", + "$id": "143", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1526,7 +1494,7 @@ ], "responses": [ { - "$id": "148", + "$id": "144", "statusCodes": [ 204 ], @@ -1547,20 +1515,20 @@ "decorators": [] }, { - "$id": "149", + "$id": "145", "name": "base64url", "resourceName": "RequestBody", "accessibility": "public", "parameters": [ { - "$id": "150", + "$id": "146", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "151", + "$id": "147", "kind": "constant", "valueType": { - "$id": "152", + "$id": "148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1580,11 +1548,11 @@ "skipUrlEncoding": false }, { - "$id": "153", + "$id": "149", "name": "value", "nameInRequest": "value", "type": { - "$id": "154", + "$id": "150", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -1604,7 +1572,7 @@ ], "responses": [ { - "$id": "155", + "$id": "151", "statusCodes": [ 204 ], @@ -1625,26 +1593,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody", - "decorators": [], - "parent": { - "$ref": "24" - } - }, - { - "$id": "156", - "kind": "client", - "name": "ResponseBody", - "namespace": "Encode.Bytes.ResponseBody", "parameters": [ { - "$id": "157", + "$id": "152", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "158", + "$id": "153", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1658,9 +1614,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "159", + "$id": "154", "type": { - "$id": "160", + "$id": "155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1669,22 +1625,34 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody", + "apiVersions": [], + "parent": { + "$ref": "24" + } + }, + { + "$id": "156", + "kind": "client", + "name": "ResponseBody", + "namespace": "Encode.Bytes.ResponseBody", "operations": [ { - "$id": "161", + "$id": "157", "name": "default", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "162", + "$id": "158", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "163", + "$id": "159", "kind": "constant", "valueType": { - "$id": "164", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1706,12 +1674,12 @@ ], "responses": [ { - "$id": "165", + "$id": "161", "statusCodes": [ 200 ], "bodyType": { - "$id": "166", + "$id": "162", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -1734,20 +1702,20 @@ "decorators": [] }, { - "$id": "167", + "$id": "163", "name": "octetStream", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "168", + "$id": "164", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "169", + "$id": "165", "kind": "constant", "valueType": { - "$id": "170", + "$id": "166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1769,12 +1737,12 @@ ], "responses": [ { - "$id": "171", + "$id": "167", "statusCodes": [ 200 ], "bodyType": { - "$id": "172", + "$id": "168", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -1782,14 +1750,14 @@ }, "headers": [ { - "$id": "173", + "$id": "169", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "174", + "$id": "170", "kind": "constant", "valueType": { - "$id": "175", + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1816,20 +1784,20 @@ "decorators": [] }, { - "$id": "176", + "$id": "172", "name": "customContentType", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "177", + "$id": "173", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "178", + "$id": "174", "kind": "constant", "valueType": { - "$id": "179", + "$id": "175", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1851,12 +1819,12 @@ ], "responses": [ { - "$id": "180", + "$id": "176", "statusCodes": [ 200 ], "bodyType": { - "$id": "181", + "$id": "177", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -1864,14 +1832,14 @@ }, "headers": [ { - "$id": "182", + "$id": "178", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "183", + "$id": "179", "kind": "constant", "valueType": { - "$id": "184", + "$id": "180", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1898,20 +1866,20 @@ "decorators": [] }, { - "$id": "185", + "$id": "181", "name": "base64", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "186", + "$id": "182", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "187", + "$id": "183", "kind": "constant", "valueType": { - "$id": "188", + "$id": "184", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1933,12 +1901,12 @@ ], "responses": [ { - "$id": "189", + "$id": "185", "statusCodes": [ 200 ], "bodyType": { - "$id": "190", + "$id": "186", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1947,14 +1915,14 @@ }, "headers": [ { - "$id": "191", + "$id": "187", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "192", + "$id": "188", "kind": "constant", "valueType": { - "$id": "193", + "$id": "189", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1981,20 +1949,20 @@ "decorators": [] }, { - "$id": "194", + "$id": "190", "name": "base64url", "resourceName": "ResponseBody", "accessibility": "public", "parameters": [ { - "$id": "195", + "$id": "191", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "196", + "$id": "192", "kind": "constant", "valueType": { - "$id": "197", + "$id": "193", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2016,18 +1984,18 @@ ], "responses": [ { - "$id": "198", + "$id": "194", "statusCodes": [ 200 ], "bodyType": { - "$id": "199", + "$id": "195", "kind": "bytes", "name": "base64urlBytes", "encode": "base64", "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", "baseType": { - "$id": "200", + "$id": "196", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -2038,14 +2006,14 @@ }, "headers": [ { - "$id": "201", + "$id": "197", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "202", + "$id": "198", "kind": "constant", "valueType": { - "$id": "203", + "$id": "199", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2072,9 +2040,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody", + "parameters": [ + { + "$id": "200", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "201", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "202", + "type": { + "$id": "203", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody", + "apiVersions": [], "parent": { "$ref": "24" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json index 071cdf70e8d..17610694318 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json @@ -259,6 +259,7 @@ "name": "DatetimeClient", "namespace": "Encode.Datetime", "doc": "Test for encode decorator on datetime.", + "operations": [], "parameters": [ { "$id": "36", @@ -291,66 +292,33 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Datetime", "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime", + "apiVersions": [], "children": [ { "$id": "40", "kind": "client", "name": "Query", "namespace": "Encode.Datetime.Query", - "parameters": [ - { - "$id": "41", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "42", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "43", - "type": { - "$id": "44", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "45", + "$id": "41", "name": "default", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "46", + "$id": "42", "name": "value", "nameInRequest": "value", "type": { - "$id": "47", + "$id": "43", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "48", + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -372,7 +340,7 @@ ], "responses": [ { - "$id": "49", + "$id": "45", "statusCodes": [ 204 ], @@ -390,22 +358,22 @@ "decorators": [] }, { - "$id": "50", + "$id": "46", "name": "rfc3339", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "51", + "$id": "47", "name": "value", "nameInRequest": "value", "type": { - "$id": "52", + "$id": "48", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "53", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -427,7 +395,7 @@ ], "responses": [ { - "$id": "54", + "$id": "50", "statusCodes": [ 204 ], @@ -445,22 +413,22 @@ "decorators": [] }, { - "$id": "55", + "$id": "51", "name": "rfc7231", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "56", + "$id": "52", "name": "value", "nameInRequest": "value", "type": { - "$id": "57", + "$id": "53", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "58", + "$id": "54", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -482,7 +450,7 @@ ], "responses": [ { - "$id": "59", + "$id": "55", "statusCodes": [ 204 ], @@ -500,22 +468,22 @@ "decorators": [] }, { - "$id": "60", + "$id": "56", "name": "unixTimestamp", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "61", + "$id": "57", "name": "value", "nameInRequest": "value", "type": { - "$id": "62", + "$id": "58", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "63", + "$id": "59", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -537,7 +505,7 @@ ], "responses": [ { - "$id": "64", + "$id": "60", "statusCodes": [ 204 ], @@ -555,26 +523,26 @@ "decorators": [] }, { - "$id": "65", + "$id": "61", "name": "unixTimestampArray", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "66", + "$id": "62", "name": "value", "nameInRequest": "value", "type": { - "$id": "67", + "$id": "63", "kind": "array", "name": "Array", "valueType": { - "$id": "68", + "$id": "64", "kind": "utcDateTime", "name": "unixTimestampDatetime", "encode": "unixTimestamp", "wireType": { - "$id": "69", + "$id": "65", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -582,12 +550,12 @@ }, "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", "baseType": { - "$id": "70", + "$id": "66", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "71", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -615,7 +583,7 @@ ], "responses": [ { - "$id": "72", + "$id": "68", "statusCodes": [ 204 ], @@ -633,26 +601,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Datetime.Query", - "decorators": [], - "parent": { - "$ref": "35" - } - }, - { - "$id": "73", - "kind": "client", - "name": "Property", - "namespace": "Encode.Datetime.Property", "parameters": [ { - "$id": "74", + "$id": "69", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "75", + "$id": "70", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -666,9 +622,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "76", + "$id": "71", "type": { - "$id": "77", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -677,23 +633,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Query", + "apiVersions": [], + "parent": { + "$ref": "35" + } + }, + { + "$id": "73", + "kind": "client", + "name": "Property", + "namespace": "Encode.Datetime.Property", "operations": [ { - "$id": "78", + "$id": "74", "name": "default", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "79", + "$id": "75", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "80", + "$id": "76", "kind": "constant", "valueType": { - "$id": "81", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -713,14 +681,14 @@ "skipUrlEncoding": false }, { - "$id": "82", + "$id": "78", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "83", + "$id": "79", "kind": "constant", "valueType": { - "$id": "84", + "$id": "80", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -740,7 +708,7 @@ "skipUrlEncoding": false }, { - "$id": "85", + "$id": "81", "name": "body", "nameInRequest": "body", "type": { @@ -759,7 +727,7 @@ ], "responses": [ { - "$id": "86", + "$id": "82", "statusCodes": [ 200 ], @@ -786,21 +754,21 @@ "decorators": [] }, { - "$id": "87", + "$id": "83", "name": "rfc3339", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "88", + "$id": "84", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "89", + "$id": "85", "kind": "constant", "valueType": { - "$id": "90", + "$id": "86", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -820,14 +788,14 @@ "skipUrlEncoding": false }, { - "$id": "91", + "$id": "87", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "92", + "$id": "88", "kind": "constant", "valueType": { - "$id": "93", + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -847,7 +815,7 @@ "skipUrlEncoding": false }, { - "$id": "94", + "$id": "90", "name": "body", "nameInRequest": "body", "type": { @@ -866,7 +834,7 @@ ], "responses": [ { - "$id": "95", + "$id": "91", "statusCodes": [ 200 ], @@ -893,21 +861,21 @@ "decorators": [] }, { - "$id": "96", + "$id": "92", "name": "rfc7231", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "97", + "$id": "93", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "98", + "$id": "94", "kind": "constant", "valueType": { - "$id": "99", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -927,14 +895,14 @@ "skipUrlEncoding": false }, { - "$id": "100", + "$id": "96", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "101", + "$id": "97", "kind": "constant", "valueType": { - "$id": "102", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -954,7 +922,7 @@ "skipUrlEncoding": false }, { - "$id": "103", + "$id": "99", "name": "body", "nameInRequest": "body", "type": { @@ -973,7 +941,7 @@ ], "responses": [ { - "$id": "104", + "$id": "100", "statusCodes": [ 200 ], @@ -1000,21 +968,21 @@ "decorators": [] }, { - "$id": "105", + "$id": "101", "name": "unixTimestamp", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "106", + "$id": "102", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "107", + "$id": "103", "kind": "constant", "valueType": { - "$id": "108", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1034,14 +1002,14 @@ "skipUrlEncoding": false }, { - "$id": "109", + "$id": "105", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "110", + "$id": "106", "kind": "constant", "valueType": { - "$id": "111", + "$id": "107", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1061,7 +1029,7 @@ "skipUrlEncoding": false }, { - "$id": "112", + "$id": "108", "name": "body", "nameInRequest": "body", "type": { @@ -1080,7 +1048,7 @@ ], "responses": [ { - "$id": "113", + "$id": "109", "statusCodes": [ 200 ], @@ -1107,21 +1075,21 @@ "decorators": [] }, { - "$id": "114", + "$id": "110", "name": "unixTimestampArray", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "115", + "$id": "111", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "116", + "$id": "112", "kind": "constant", "valueType": { - "$id": "117", + "$id": "113", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1141,14 +1109,14 @@ "skipUrlEncoding": false }, { - "$id": "118", + "$id": "114", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "119", + "$id": "115", "kind": "constant", "valueType": { - "$id": "120", + "$id": "116", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1168,7 +1136,7 @@ "skipUrlEncoding": false }, { - "$id": "121", + "$id": "117", "name": "body", "nameInRequest": "body", "type": { @@ -1187,7 +1155,7 @@ ], "responses": [ { - "$id": "122", + "$id": "118", "statusCodes": [ 200 ], @@ -1214,26 +1182,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property", - "decorators": [], - "parent": { - "$ref": "35" - } - }, - { - "$id": "123", - "kind": "client", - "name": "Header", - "namespace": "Encode.Datetime.Header", "parameters": [ { - "$id": "124", + "$id": "119", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "125", + "$id": "120", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1247,9 +1203,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "126", + "$id": "121", "type": { - "$id": "127", + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1258,24 +1214,36 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Property", + "apiVersions": [], + "parent": { + "$ref": "35" + } + }, + { + "$id": "123", + "kind": "client", + "name": "Header", + "namespace": "Encode.Datetime.Header", "operations": [ { - "$id": "128", + "$id": "124", "name": "default", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "129", + "$id": "125", "name": "value", "nameInRequest": "value", "type": { - "$id": "130", + "$id": "126", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "131", + "$id": "127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1297,7 +1265,7 @@ ], "responses": [ { - "$id": "132", + "$id": "128", "statusCodes": [ 204 ], @@ -1315,22 +1283,22 @@ "decorators": [] }, { - "$id": "133", + "$id": "129", "name": "rfc3339", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "134", + "$id": "130", "name": "value", "nameInRequest": "value", "type": { - "$id": "135", + "$id": "131", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "136", + "$id": "132", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1352,7 +1320,7 @@ ], "responses": [ { - "$id": "137", + "$id": "133", "statusCodes": [ 204 ], @@ -1370,22 +1338,22 @@ "decorators": [] }, { - "$id": "138", + "$id": "134", "name": "rfc7231", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "139", + "$id": "135", "name": "value", "nameInRequest": "value", "type": { - "$id": "140", + "$id": "136", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "141", + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1407,7 +1375,7 @@ ], "responses": [ { - "$id": "142", + "$id": "138", "statusCodes": [ 204 ], @@ -1425,22 +1393,22 @@ "decorators": [] }, { - "$id": "143", + "$id": "139", "name": "unixTimestamp", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "144", + "$id": "140", "name": "value", "nameInRequest": "value", "type": { - "$id": "145", + "$id": "141", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "146", + "$id": "142", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -1462,7 +1430,7 @@ ], "responses": [ { - "$id": "147", + "$id": "143", "statusCodes": [ 204 ], @@ -1480,26 +1448,26 @@ "decorators": [] }, { - "$id": "148", + "$id": "144", "name": "unixTimestampArray", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "149", + "$id": "145", "name": "value", "nameInRequest": "value", "type": { - "$id": "150", + "$id": "146", "kind": "array", "name": "Array", "valueType": { - "$id": "151", + "$id": "147", "kind": "utcDateTime", "name": "unixTimestampDatetime", "encode": "unixTimestamp", "wireType": { - "$id": "152", + "$id": "148", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -1507,12 +1475,12 @@ }, "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", "baseType": { - "$id": "153", + "$id": "149", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "154", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1540,7 +1508,7 @@ ], "responses": [ { - "$id": "155", + "$id": "151", "statusCodes": [ 204 ], @@ -1558,26 +1526,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Datetime.Header", - "decorators": [], - "parent": { - "$ref": "35" - } - }, - { - "$id": "156", - "kind": "client", - "name": "ResponseHeader", - "namespace": "Encode.Datetime.ResponseHeader", "parameters": [ { - "$id": "157", + "$id": "152", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "158", + "$id": "153", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1591,9 +1547,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "159", + "$id": "154", "type": { - "$id": "160", + "$id": "155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1602,31 +1558,43 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Header", + "apiVersions": [], + "parent": { + "$ref": "35" + } + }, + { + "$id": "156", + "kind": "client", + "name": "ResponseHeader", + "namespace": "Encode.Datetime.ResponseHeader", "operations": [ { - "$id": "161", + "$id": "157", "name": "default", "resourceName": "ResponseHeader", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "162", + "$id": "158", "statusCodes": [ 204 ], "headers": [ { - "$id": "163", + "$id": "159", "name": "value", "nameInResponse": "value", "type": { - "$id": "164", + "$id": "160", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "165", + "$id": "161", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1650,29 +1618,29 @@ "decorators": [] }, { - "$id": "166", + "$id": "162", "name": "rfc3339", "resourceName": "ResponseHeader", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "167", + "$id": "163", "statusCodes": [ 204 ], "headers": [ { - "$id": "168", + "$id": "164", "name": "value", "nameInResponse": "value", "type": { - "$id": "169", + "$id": "165", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "170", + "$id": "166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1696,29 +1664,29 @@ "decorators": [] }, { - "$id": "171", + "$id": "167", "name": "rfc7231", "resourceName": "ResponseHeader", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "172", + "$id": "168", "statusCodes": [ 204 ], "headers": [ { - "$id": "173", + "$id": "169", "name": "value", "nameInResponse": "value", "type": { - "$id": "174", + "$id": "170", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "175", + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1742,29 +1710,29 @@ "decorators": [] }, { - "$id": "176", + "$id": "172", "name": "unixTimestamp", "resourceName": "ResponseHeader", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "177", + "$id": "173", "statusCodes": [ 204 ], "headers": [ { - "$id": "178", + "$id": "174", "name": "value", "nameInResponse": "value", "type": { - "$id": "179", + "$id": "175", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "180", + "$id": "176", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -1788,9 +1756,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader", + "parameters": [ + { + "$id": "177", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "178", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "179", + "type": { + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader", + "apiVersions": [], "parent": { "$ref": "35" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json index 77a67237276..60356fdae6c 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json @@ -304,6 +304,7 @@ "name": "DurationClient", "namespace": "Encode.Duration", "doc": "Test for encode decorator on duration.", + "operations": [], "parameters": [ { "$id": "42", @@ -336,66 +337,33 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Duration", "decorators": [], + "crossLanguageDefinitionId": "Encode.Duration", + "apiVersions": [], "children": [ { "$id": "46", "kind": "client", "name": "Query", "namespace": "Encode.Duration.Query", - "parameters": [ - { - "$id": "47", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "48", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "49", - "type": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "51", + "$id": "47", "name": "default", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "52", + "$id": "48", "name": "input", "nameInRequest": "input", "type": { - "$id": "53", + "$id": "49", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "54", + "$id": "50", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -417,7 +385,7 @@ ], "responses": [ { - "$id": "55", + "$id": "51", "statusCodes": [ 204 ], @@ -435,22 +403,22 @@ "decorators": [] }, { - "$id": "56", + "$id": "52", "name": "iso8601", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "57", + "$id": "53", "name": "input", "nameInRequest": "input", "type": { - "$id": "58", + "$id": "54", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "59", + "$id": "55", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -472,7 +440,7 @@ ], "responses": [ { - "$id": "60", + "$id": "56", "statusCodes": [ 204 ], @@ -490,22 +458,22 @@ "decorators": [] }, { - "$id": "61", + "$id": "57", "name": "int32Seconds", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "62", + "$id": "58", "name": "input", "nameInRequest": "input", "type": { - "$id": "63", + "$id": "59", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "64", + "$id": "60", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -527,7 +495,7 @@ ], "responses": [ { - "$id": "65", + "$id": "61", "statusCodes": [ 204 ], @@ -545,22 +513,22 @@ "decorators": [] }, { - "$id": "66", + "$id": "62", "name": "floatSeconds", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "67", + "$id": "63", "name": "input", "nameInRequest": "input", "type": { - "$id": "68", + "$id": "64", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "69", + "$id": "65", "kind": "float", "name": "float", "crossLanguageDefinitionId": "TypeSpec.float", @@ -582,7 +550,7 @@ ], "responses": [ { - "$id": "70", + "$id": "66", "statusCodes": [ 204 ], @@ -600,22 +568,22 @@ "decorators": [] }, { - "$id": "71", + "$id": "67", "name": "float64Seconds", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "72", + "$id": "68", "name": "input", "nameInRequest": "input", "type": { - "$id": "73", + "$id": "69", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "74", + "$id": "70", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -637,7 +605,7 @@ ], "responses": [ { - "$id": "75", + "$id": "71", "statusCodes": [ 204 ], @@ -655,26 +623,26 @@ "decorators": [] }, { - "$id": "76", + "$id": "72", "name": "int32SecondsArray", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "77", + "$id": "73", "name": "input", "nameInRequest": "input", "type": { - "$id": "78", + "$id": "74", "kind": "array", "name": "Array", "valueType": { - "$id": "79", + "$id": "75", "kind": "duration", "name": "Int32Duration", "encode": "seconds", "wireType": { - "$id": "80", + "$id": "76", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -682,12 +650,12 @@ }, "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", "baseType": { - "$id": "81", + "$id": "77", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "82", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -715,7 +683,7 @@ ], "responses": [ { - "$id": "83", + "$id": "79", "statusCodes": [ 204 ], @@ -733,26 +701,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Duration.Query", - "decorators": [], - "parent": { - "$ref": "41" - } - }, - { - "$id": "84", - "kind": "client", - "name": "Property", - "namespace": "Encode.Duration.Property", "parameters": [ { - "$id": "85", + "$id": "80", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "86", + "$id": "81", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -766,9 +722,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "87", + "$id": "82", "type": { - "$id": "88", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -777,23 +733,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Duration.Query", + "apiVersions": [], + "parent": { + "$ref": "41" + } + }, + { + "$id": "84", + "kind": "client", + "name": "Property", + "namespace": "Encode.Duration.Property", "operations": [ { - "$id": "89", + "$id": "85", "name": "default", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "90", + "$id": "86", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "91", + "$id": "87", "kind": "constant", "valueType": { - "$id": "92", + "$id": "88", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -813,14 +781,14 @@ "skipUrlEncoding": false }, { - "$id": "93", + "$id": "89", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "94", + "$id": "90", "kind": "constant", "valueType": { - "$id": "95", + "$id": "91", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -840,7 +808,7 @@ "skipUrlEncoding": false }, { - "$id": "96", + "$id": "92", "name": "body", "nameInRequest": "body", "type": { @@ -859,7 +827,7 @@ ], "responses": [ { - "$id": "97", + "$id": "93", "statusCodes": [ 200 ], @@ -886,21 +854,21 @@ "decorators": [] }, { - "$id": "98", + "$id": "94", "name": "iso8601", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "99", + "$id": "95", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "100", + "$id": "96", "kind": "constant", "valueType": { - "$id": "101", + "$id": "97", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -920,14 +888,14 @@ "skipUrlEncoding": false }, { - "$id": "102", + "$id": "98", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "103", + "$id": "99", "kind": "constant", "valueType": { - "$id": "104", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -947,7 +915,7 @@ "skipUrlEncoding": false }, { - "$id": "105", + "$id": "101", "name": "body", "nameInRequest": "body", "type": { @@ -966,7 +934,7 @@ ], "responses": [ { - "$id": "106", + "$id": "102", "statusCodes": [ 200 ], @@ -993,21 +961,21 @@ "decorators": [] }, { - "$id": "107", + "$id": "103", "name": "int32Seconds", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "108", + "$id": "104", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "109", + "$id": "105", "kind": "constant", "valueType": { - "$id": "110", + "$id": "106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1027,14 +995,14 @@ "skipUrlEncoding": false }, { - "$id": "111", + "$id": "107", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "112", + "$id": "108", "kind": "constant", "valueType": { - "$id": "113", + "$id": "109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1054,7 +1022,7 @@ "skipUrlEncoding": false }, { - "$id": "114", + "$id": "110", "name": "body", "nameInRequest": "body", "type": { @@ -1073,7 +1041,7 @@ ], "responses": [ { - "$id": "115", + "$id": "111", "statusCodes": [ 200 ], @@ -1100,21 +1068,21 @@ "decorators": [] }, { - "$id": "116", + "$id": "112", "name": "floatSeconds", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "117", + "$id": "113", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "118", + "$id": "114", "kind": "constant", "valueType": { - "$id": "119", + "$id": "115", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1134,14 +1102,14 @@ "skipUrlEncoding": false }, { - "$id": "120", + "$id": "116", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "121", + "$id": "117", "kind": "constant", "valueType": { - "$id": "122", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1161,7 +1129,7 @@ "skipUrlEncoding": false }, { - "$id": "123", + "$id": "119", "name": "body", "nameInRequest": "body", "type": { @@ -1180,7 +1148,7 @@ ], "responses": [ { - "$id": "124", + "$id": "120", "statusCodes": [ 200 ], @@ -1207,21 +1175,21 @@ "decorators": [] }, { - "$id": "125", + "$id": "121", "name": "float64Seconds", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "126", + "$id": "122", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "127", + "$id": "123", "kind": "constant", "valueType": { - "$id": "128", + "$id": "124", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1241,14 +1209,14 @@ "skipUrlEncoding": false }, { - "$id": "129", + "$id": "125", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "130", + "$id": "126", "kind": "constant", "valueType": { - "$id": "131", + "$id": "127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1268,7 +1236,7 @@ "skipUrlEncoding": false }, { - "$id": "132", + "$id": "128", "name": "body", "nameInRequest": "body", "type": { @@ -1287,7 +1255,7 @@ ], "responses": [ { - "$id": "133", + "$id": "129", "statusCodes": [ 200 ], @@ -1314,21 +1282,21 @@ "decorators": [] }, { - "$id": "134", + "$id": "130", "name": "floatSecondsArray", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "135", + "$id": "131", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "136", + "$id": "132", "kind": "constant", "valueType": { - "$id": "137", + "$id": "133", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1348,14 +1316,14 @@ "skipUrlEncoding": false }, { - "$id": "138", + "$id": "134", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "139", + "$id": "135", "kind": "constant", "valueType": { - "$id": "140", + "$id": "136", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1375,7 +1343,7 @@ "skipUrlEncoding": false }, { - "$id": "141", + "$id": "137", "name": "body", "nameInRequest": "body", "type": { @@ -1394,7 +1362,7 @@ ], "responses": [ { - "$id": "142", + "$id": "138", "statusCodes": [ 200 ], @@ -1421,26 +1389,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Duration.Property", - "decorators": [], - "parent": { - "$ref": "41" - } - }, - { - "$id": "143", - "kind": "client", - "name": "Header", - "namespace": "Encode.Duration.Header", "parameters": [ { - "$id": "144", + "$id": "139", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "145", + "$id": "140", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1454,9 +1410,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "146", + "$id": "141", "type": { - "$id": "147", + "$id": "142", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1465,24 +1421,36 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Duration.Property", + "apiVersions": [], + "parent": { + "$ref": "41" + } + }, + { + "$id": "143", + "kind": "client", + "name": "Header", + "namespace": "Encode.Duration.Header", "operations": [ { - "$id": "148", + "$id": "144", "name": "default", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "149", + "$id": "145", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "150", + "$id": "146", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "151", + "$id": "147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1504,7 +1472,7 @@ ], "responses": [ { - "$id": "152", + "$id": "148", "statusCodes": [ 204 ], @@ -1522,22 +1490,22 @@ "decorators": [] }, { - "$id": "153", + "$id": "149", "name": "iso8601", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "154", + "$id": "150", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "155", + "$id": "151", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "156", + "$id": "152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1559,7 +1527,7 @@ ], "responses": [ { - "$id": "157", + "$id": "153", "statusCodes": [ 204 ], @@ -1577,26 +1545,26 @@ "decorators": [] }, { - "$id": "158", + "$id": "154", "name": "iso8601Array", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "159", + "$id": "155", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "160", + "$id": "156", "kind": "array", "name": "Array", "valueType": { - "$id": "161", + "$id": "157", "kind": "duration", "name": "Iso8601Duration", "encode": "ISO8601", "wireType": { - "$id": "162", + "$id": "158", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1604,12 +1572,12 @@ }, "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", "baseType": { - "$id": "163", + "$id": "159", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "164", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1637,7 +1605,7 @@ ], "responses": [ { - "$id": "165", + "$id": "161", "statusCodes": [ 204 ], @@ -1655,22 +1623,22 @@ "decorators": [] }, { - "$id": "166", + "$id": "162", "name": "int32Seconds", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "167", + "$id": "163", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "168", + "$id": "164", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "169", + "$id": "165", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1692,7 +1660,7 @@ ], "responses": [ { - "$id": "170", + "$id": "166", "statusCodes": [ 204 ], @@ -1710,22 +1678,22 @@ "decorators": [] }, { - "$id": "171", + "$id": "167", "name": "floatSeconds", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "172", + "$id": "168", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "173", + "$id": "169", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "174", + "$id": "170", "kind": "float", "name": "float", "crossLanguageDefinitionId": "TypeSpec.float", @@ -1747,7 +1715,7 @@ ], "responses": [ { - "$id": "175", + "$id": "171", "statusCodes": [ 204 ], @@ -1765,22 +1733,22 @@ "decorators": [] }, { - "$id": "176", + "$id": "172", "name": "float64Seconds", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "177", + "$id": "173", "name": "duration", "nameInRequest": "duration", "type": { - "$id": "178", + "$id": "174", "kind": "duration", "name": "duration", "encode": "seconds", "wireType": { - "$id": "179", + "$id": "175", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -1802,7 +1770,7 @@ ], "responses": [ { - "$id": "180", + "$id": "176", "statusCodes": [ 204 ], @@ -1820,9 +1788,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Duration.Header", + "parameters": [ + { + "$id": "177", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "178", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "179", + "type": { + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Encode.Duration.Header", + "apiVersions": [], "parent": { "$ref": "41" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json index 329512e3e27..1b9a0f4e584 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json @@ -126,6 +126,7 @@ "name": "NumericClient", "namespace": "Encode.Numeric", "doc": "Test for encode decorator on integer.", + "operations": [], "parameters": [ { "$id": "18", @@ -158,65 +159,32 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Numeric", "decorators": [], + "crossLanguageDefinitionId": "Encode.Numeric", + "apiVersions": [], "children": [ { "$id": "22", "kind": "client", "name": "Property", "namespace": "Encode.Numeric.Property", - "parameters": [ - { - "$id": "23", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "24", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "25", - "type": { - "$id": "26", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "27", + "$id": "23", "name": "safeintAsString", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "28", + "$id": "24", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "29", + "$id": "25", "kind": "constant", "valueType": { - "$id": "30", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -236,14 +204,14 @@ "skipUrlEncoding": false }, { - "$id": "31", + "$id": "27", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "32", + "$id": "28", "kind": "constant", "valueType": { - "$id": "33", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -263,7 +231,7 @@ "skipUrlEncoding": false }, { - "$id": "34", + "$id": "30", "name": "value", "nameInRequest": "value", "type": { @@ -282,7 +250,7 @@ ], "responses": [ { - "$id": "35", + "$id": "31", "statusCodes": [ 200 ], @@ -309,21 +277,21 @@ "decorators": [] }, { - "$id": "36", + "$id": "32", "name": "uint32AsStringOptional", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "37", + "$id": "33", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "38", + "$id": "34", "kind": "constant", "valueType": { - "$id": "39", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -343,14 +311,14 @@ "skipUrlEncoding": false }, { - "$id": "40", + "$id": "36", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "41", + "$id": "37", "kind": "constant", "valueType": { - "$id": "42", + "$id": "38", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -370,7 +338,7 @@ "skipUrlEncoding": false }, { - "$id": "43", + "$id": "39", "name": "value", "nameInRequest": "value", "type": { @@ -389,7 +357,7 @@ ], "responses": [ { - "$id": "44", + "$id": "40", "statusCodes": [ 200 ], @@ -416,21 +384,21 @@ "decorators": [] }, { - "$id": "45", + "$id": "41", "name": "uint8AsString", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "46", + "$id": "42", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "47", + "$id": "43", "kind": "constant", "valueType": { - "$id": "48", + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -450,14 +418,14 @@ "skipUrlEncoding": false }, { - "$id": "49", + "$id": "45", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "50", + "$id": "46", "kind": "constant", "valueType": { - "$id": "51", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -477,7 +445,7 @@ "skipUrlEncoding": false }, { - "$id": "52", + "$id": "48", "name": "value", "nameInRequest": "value", "type": { @@ -496,7 +464,7 @@ ], "responses": [ { - "$id": "53", + "$id": "49", "statusCodes": [ 200 ], @@ -523,9 +491,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Encode.Numeric.Property", + "parameters": [ + { + "$id": "50", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "51", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "52", + "type": { + "$id": "53", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Encode.Numeric.Property", + "apiVersions": [], "parent": { "$ref": "17" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json index 71f267137b7..d1142b5eb94 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json @@ -87,6 +87,7 @@ "name": "BasicClient", "namespace": "Parameters.Basic", "doc": "Test for basic parameters cases.", + "operations": [], "parameters": [ { "$id": "13", @@ -119,65 +120,32 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Parameters.Basic", "decorators": [], + "crossLanguageDefinitionId": "Parameters.Basic", + "apiVersions": [], "children": [ { "$id": "17", "kind": "client", "name": "ExplicitBody", "namespace": "Parameters.Basic.ExplicitBody", - "parameters": [ - { - "$id": "18", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "19", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "20", - "type": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "22", + "$id": "18", "name": "simple", "resourceName": "ExplicitBody", "accessibility": "public", "parameters": [ { - "$id": "23", + "$id": "19", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "24", + "$id": "20", "kind": "constant", "valueType": { - "$id": "25", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -197,7 +165,7 @@ "skipUrlEncoding": false }, { - "$id": "26", + "$id": "22", "name": "body", "nameInRequest": "body", "type": { @@ -216,7 +184,7 @@ ], "responses": [ { - "$id": "27", + "$id": "23", "statusCodes": [ 204 ], @@ -237,26 +205,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody", - "decorators": [], - "parent": { - "$ref": "12" - } - }, - { - "$id": "28", - "kind": "client", - "name": "ImplicitBody", - "namespace": "Parameters.Basic.ImplicitBody", "parameters": [ { - "$id": "29", + "$id": "24", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "30", + "$id": "25", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -270,9 +226,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "31", + "$id": "26", "type": { - "$id": "32", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -281,23 +237,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "28", + "kind": "client", + "name": "ImplicitBody", + "namespace": "Parameters.Basic.ImplicitBody", "operations": [ { - "$id": "33", + "$id": "29", "name": "simple", "resourceName": "ImplicitBody", "accessibility": "public", "parameters": [ { - "$id": "34", + "$id": "30", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "35", + "$id": "31", "kind": "constant", "valueType": { - "$id": "36", + "$id": "32", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -317,7 +285,7 @@ "skipUrlEncoding": false }, { - "$id": "37", + "$id": "33", "name": "simpleRequest", "nameInRequest": "simpleRequest", "type": { @@ -336,7 +304,7 @@ ], "responses": [ { - "$id": "38", + "$id": "34", "statusCodes": [ 204 ], @@ -357,9 +325,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody", + "parameters": [ + { + "$id": "35", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "36", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "37", + "type": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody", + "apiVersions": [], "parent": { "$ref": "12" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json index 3c1d1a0e975..ac21c7b79ef 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json @@ -49,55 +49,23 @@ "name": "BodyOptionalityClient", "namespace": "Parameters.BodyOptionality", "doc": "Test describing optionality of the request body.", - "parameters": [ - { - "$id": "8", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "9", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "10", - "type": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "12", + "$id": "8", "name": "requiredExplicit", "resourceName": "BodyOptionality", "accessibility": "public", "parameters": [ { - "$id": "13", + "$id": "9", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "14", + "$id": "10", "kind": "constant", "valueType": { - "$id": "15", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -117,7 +85,7 @@ "skipUrlEncoding": false }, { - "$id": "16", + "$id": "12", "name": "body", "nameInRequest": "body", "type": { @@ -136,7 +104,7 @@ ], "responses": [ { - "$id": "17", + "$id": "13", "statusCodes": [ 204 ], @@ -157,21 +125,21 @@ "decorators": [] }, { - "$id": "18", + "$id": "14", "name": "requiredImplicit", "resourceName": "BodyOptionality", "accessibility": "public", "parameters": [ { - "$id": "19", + "$id": "15", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "20", + "$id": "16", "kind": "constant", "valueType": { - "$id": "21", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -191,7 +159,7 @@ "skipUrlEncoding": false }, { - "$id": "22", + "$id": "18", "name": "bodyModel", "nameInRequest": "bodyModel", "type": { @@ -210,7 +178,7 @@ ], "responses": [ { - "$id": "23", + "$id": "19", "statusCodes": [ 204 ], @@ -231,64 +199,64 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Parameters.BodyOptionality", + "parameters": [ + { + "$id": "20", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "21", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "22", + "type": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Parameters.BodyOptionality", + "apiVersions": [], "children": [ { "$id": "24", "kind": "client", "name": "OptionalExplicit", "namespace": "Parameters.BodyOptionality.OptionalExplicit", - "parameters": [ - { - "$id": "25", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "26", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "27", - "type": { - "$id": "28", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "29", + "$id": "25", "name": "set", "resourceName": "OptionalExplicit", "accessibility": "public", "parameters": [ { - "$id": "30", + "$id": "26", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "31", + "$id": "27", "kind": "constant", "valueType": { - "$id": "32", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -308,7 +276,7 @@ "skipUrlEncoding": false }, { - "$id": "33", + "$id": "29", "name": "body", "nameInRequest": "body", "type": { @@ -327,7 +295,7 @@ ], "responses": [ { - "$id": "34", + "$id": "30", "statusCodes": [ 204 ], @@ -348,21 +316,21 @@ "decorators": [] }, { - "$id": "35", + "$id": "31", "name": "omit", "resourceName": "OptionalExplicit", "accessibility": "public", "parameters": [ { - "$id": "36", + "$id": "32", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "37", + "$id": "33", "kind": "constant", "valueType": { - "$id": "38", + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -382,7 +350,7 @@ "skipUrlEncoding": false }, { - "$id": "39", + "$id": "35", "name": "body", "nameInRequest": "body", "type": { @@ -401,7 +369,7 @@ ], "responses": [ { - "$id": "40", + "$id": "36", "statusCodes": [ 204 ], @@ -422,9 +390,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit", + "parameters": [ + { + "$id": "37", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "38", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "39", + "type": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit", + "apiVersions": [], "parent": { "$ref": "7" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json index 5af45d1b1fb..a9be609fa49 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json @@ -11,6 +11,7 @@ "name": "CollectionFormatClient", "namespace": "Parameters.CollectionFormat", "doc": "Test for collectionFormat.", + "operations": [], "parameters": [ { "$id": "3", @@ -43,66 +44,33 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Parameters.CollectionFormat", "decorators": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat", + "apiVersions": [], "children": [ { "$id": "7", "kind": "client", "name": "Query", "namespace": "Parameters.CollectionFormat.Query", - "parameters": [ - { - "$id": "8", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "9", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "10", - "type": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "12", + "$id": "8", "name": "multi", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "13", + "$id": "9", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "14", + "$id": "10", "kind": "array", "name": "Array", "valueType": { - "$id": "15", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -124,7 +92,7 @@ ], "responses": [ { - "$id": "16", + "$id": "12", "statusCodes": [ 204 ], @@ -142,22 +110,22 @@ "decorators": [] }, { - "$id": "17", + "$id": "13", "name": "ssv", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "18", + "$id": "14", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "19", + "$id": "15", "kind": "array", "name": "Array", "valueType": { - "$id": "20", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -180,7 +148,7 @@ ], "responses": [ { - "$id": "21", + "$id": "17", "statusCodes": [ 204 ], @@ -198,22 +166,22 @@ "decorators": [] }, { - "$id": "22", + "$id": "18", "name": "pipes", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "23", + "$id": "19", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "24", + "$id": "20", "kind": "array", "name": "Array", "valueType": { - "$id": "25", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -236,7 +204,7 @@ ], "responses": [ { - "$id": "26", + "$id": "22", "statusCodes": [ 204 ], @@ -254,22 +222,22 @@ "decorators": [] }, { - "$id": "27", + "$id": "23", "name": "csv", "resourceName": "Query", "accessibility": "public", "parameters": [ { - "$id": "28", + "$id": "24", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "29", + "$id": "25", "kind": "array", "name": "Array", "valueType": { - "$id": "30", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -292,7 +260,7 @@ ], "responses": [ { - "$id": "31", + "$id": "27", "statusCodes": [ 204 ], @@ -310,26 +278,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query", - "decorators": [], - "parent": { - "$ref": "2" - } - }, - { - "$id": "32", - "kind": "client", - "name": "Header", - "namespace": "Parameters.CollectionFormat.Header", "parameters": [ { - "$id": "33", + "$id": "28", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "34", + "$id": "29", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -343,9 +299,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "35", + "$id": "30", "type": { - "$id": "36", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -354,24 +310,36 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "32", + "kind": "client", + "name": "Header", + "namespace": "Parameters.CollectionFormat.Header", "operations": [ { - "$id": "37", + "$id": "33", "name": "csv", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "38", + "$id": "34", "name": "colors", "nameInRequest": "colors", "doc": "Possible values for colors are [blue,red,green]", "type": { - "$id": "39", + "$id": "35", "kind": "array", "name": "Array", "valueType": { - "$id": "40", + "$id": "36", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -394,7 +362,7 @@ ], "responses": [ { - "$id": "41", + "$id": "37", "statusCodes": [ 204 ], @@ -412,9 +380,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header", + "parameters": [ + { + "$id": "38", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "39", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "40", + "type": { + "$id": "41", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header", + "apiVersions": [], "parent": { "$ref": "2" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json index d9c584c6337..f6e2919edc1 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json @@ -396,6 +396,7 @@ "name": "SpreadClient", "namespace": "Parameters.Spread", "doc": "Test for the spread operator.", + "operations": [], "parameters": [ { "$id": "56", @@ -428,65 +429,32 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Parameters.Spread", "decorators": [], + "crossLanguageDefinitionId": "Parameters.Spread", + "apiVersions": [], "children": [ { "$id": "60", "kind": "client", "name": "Model", "namespace": "Parameters.Spread.Model", - "parameters": [ - { - "$id": "61", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "62", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "63", - "type": { - "$id": "64", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "65", + "$id": "61", "name": "spreadAsRequestBody", "resourceName": "Model", "accessibility": "public", "parameters": [ { - "$id": "66", + "$id": "62", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "67", + "$id": "63", "kind": "constant", "valueType": { - "$id": "68", + "$id": "64", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -506,7 +474,7 @@ "skipUrlEncoding": false }, { - "$id": "69", + "$id": "65", "name": "bodyParameter", "nameInRequest": "bodyParameter", "type": { @@ -525,7 +493,7 @@ ], "responses": [ { - "$id": "70", + "$id": "66", "statusCodes": [ 204 ], @@ -546,21 +514,21 @@ "decorators": [] }, { - "$id": "71", + "$id": "67", "name": "spreadCompositeRequestOnlyWithBody", "resourceName": "Model", "accessibility": "public", "parameters": [ { - "$id": "72", + "$id": "68", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "73", + "$id": "69", "kind": "constant", "valueType": { - "$id": "74", + "$id": "70", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -580,7 +548,7 @@ "skipUrlEncoding": false }, { - "$id": "75", + "$id": "71", "name": "body", "nameInRequest": "body", "type": { @@ -599,7 +567,7 @@ ], "responses": [ { - "$id": "76", + "$id": "72", "statusCodes": [ 204 ], @@ -620,17 +588,17 @@ "decorators": [] }, { - "$id": "77", + "$id": "73", "name": "spreadCompositeRequestWithoutBody", "resourceName": "Model", "accessibility": "public", "parameters": [ { - "$id": "78", + "$id": "74", "name": "name", "nameInRequest": "name", "type": { - "$id": "79", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -647,11 +615,11 @@ "skipUrlEncoding": false }, { - "$id": "80", + "$id": "76", "name": "testHeader", "nameInRequest": "test-header", "type": { - "$id": "81", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -670,7 +638,7 @@ ], "responses": [ { - "$id": "82", + "$id": "78", "statusCodes": [ 204 ], @@ -688,17 +656,17 @@ "decorators": [] }, { - "$id": "83", + "$id": "79", "name": "spreadCompositeRequest", "resourceName": "Model", "accessibility": "public", "parameters": [ { - "$id": "84", + "$id": "80", "name": "name", "nameInRequest": "name", "type": { - "$id": "85", + "$id": "81", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -715,11 +683,11 @@ "skipUrlEncoding": false }, { - "$id": "86", + "$id": "82", "name": "testHeader", "nameInRequest": "test-header", "type": { - "$id": "87", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -736,15 +704,15 @@ "skipUrlEncoding": false }, { - "$id": "88", + "$id": "84", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "89", + "$id": "85", "kind": "constant", "valueType": { - "$id": "90", + "$id": "86", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -764,7 +732,7 @@ "skipUrlEncoding": false }, { - "$id": "91", + "$id": "87", "name": "body", "nameInRequest": "body", "type": { @@ -783,7 +751,7 @@ ], "responses": [ { - "$id": "92", + "$id": "88", "statusCodes": [ 204 ], @@ -804,17 +772,17 @@ "decorators": [] }, { - "$id": "93", + "$id": "89", "name": "spreadCompositeRequestMix", "resourceName": "Model", "accessibility": "public", "parameters": [ { - "$id": "94", + "$id": "90", "name": "name", "nameInRequest": "name", "type": { - "$id": "95", + "$id": "91", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -831,11 +799,11 @@ "skipUrlEncoding": false }, { - "$id": "96", + "$id": "92", "name": "testHeader", "nameInRequest": "test-header", "type": { - "$id": "97", + "$id": "93", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -852,15 +820,15 @@ "skipUrlEncoding": false }, { - "$id": "98", + "$id": "94", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "99", + "$id": "95", "kind": "constant", "valueType": { - "$id": "100", + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -880,7 +848,7 @@ "skipUrlEncoding": false }, { - "$id": "101", + "$id": "97", "name": "spreadCompositeRequestMixRequest", "nameInRequest": "spreadCompositeRequestMixRequest", "type": { @@ -899,7 +867,7 @@ ], "responses": [ { - "$id": "102", + "$id": "98", "statusCodes": [ 204 ], @@ -920,26 +888,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Parameters.Spread.Model", - "decorators": [], - "parent": { - "$ref": "55" - } - }, - { - "$id": "103", - "kind": "client", - "name": "Alias", - "namespace": "Parameters.Spread.Alias", "parameters": [ { - "$id": "104", + "$id": "99", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "105", + "$id": "100", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -953,9 +909,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "106", + "$id": "101", "type": { - "$id": "107", + "$id": "102", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -964,23 +920,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Spread.Model", + "apiVersions": [], + "parent": { + "$ref": "55" + } + }, + { + "$id": "103", + "kind": "client", + "name": "Alias", + "namespace": "Parameters.Spread.Alias", "operations": [ { - "$id": "108", + "$id": "104", "name": "spreadAsRequestBody", "resourceName": "Alias", "accessibility": "public", "parameters": [ { - "$id": "109", + "$id": "105", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "110", + "$id": "106", "kind": "constant", "valueType": { - "$id": "111", + "$id": "107", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1000,7 +968,7 @@ "skipUrlEncoding": false }, { - "$id": "112", + "$id": "108", "name": "spreadAsRequestBodyRequest", "nameInRequest": "spreadAsRequestBodyRequest", "type": { @@ -1019,7 +987,7 @@ ], "responses": [ { - "$id": "113", + "$id": "109", "statusCodes": [ 204 ], @@ -1040,17 +1008,17 @@ "decorators": [] }, { - "$id": "114", + "$id": "110", "name": "spreadParameterWithInnerModel", "resourceName": "Alias", "accessibility": "public", "parameters": [ { - "$id": "115", + "$id": "111", "name": "id", "nameInRequest": "id", "type": { - "$id": "116", + "$id": "112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1067,11 +1035,11 @@ "skipUrlEncoding": false }, { - "$id": "117", + "$id": "113", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "118", + "$id": "114", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1088,15 +1056,15 @@ "skipUrlEncoding": false }, { - "$id": "119", + "$id": "115", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "120", + "$id": "116", "kind": "constant", "valueType": { - "$id": "121", + "$id": "117", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1116,7 +1084,7 @@ "skipUrlEncoding": false }, { - "$id": "122", + "$id": "118", "name": "spreadParameterWithInnerModelRequest", "nameInRequest": "spreadParameterWithInnerModelRequest", "type": { @@ -1135,7 +1103,7 @@ ], "responses": [ { - "$id": "123", + "$id": "119", "statusCodes": [ 204 ], @@ -1156,17 +1124,17 @@ "decorators": [] }, { - "$id": "124", + "$id": "120", "name": "spreadAsRequestParameter", "resourceName": "Alias", "accessibility": "public", "parameters": [ { - "$id": "125", + "$id": "121", "name": "id", "nameInRequest": "id", "type": { - "$id": "126", + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1183,11 +1151,11 @@ "skipUrlEncoding": false }, { - "$id": "127", + "$id": "123", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "128", + "$id": "124", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1204,15 +1172,15 @@ "skipUrlEncoding": false }, { - "$id": "129", + "$id": "125", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "130", + "$id": "126", "kind": "constant", "valueType": { - "$id": "131", + "$id": "127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1232,7 +1200,7 @@ "skipUrlEncoding": false }, { - "$id": "132", + "$id": "128", "name": "spreadAsRequestParameterRequest", "nameInRequest": "spreadAsRequestParameterRequest", "type": { @@ -1251,7 +1219,7 @@ ], "responses": [ { - "$id": "133", + "$id": "129", "statusCodes": [ 204 ], @@ -1272,17 +1240,17 @@ "decorators": [] }, { - "$id": "134", + "$id": "130", "name": "spreadWithMultipleParameters", "resourceName": "Alias", "accessibility": "public", "parameters": [ { - "$id": "135", + "$id": "131", "name": "id", "nameInRequest": "id", "type": { - "$id": "136", + "$id": "132", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1299,11 +1267,11 @@ "skipUrlEncoding": false }, { - "$id": "137", + "$id": "133", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "138", + "$id": "134", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1320,15 +1288,15 @@ "skipUrlEncoding": false }, { - "$id": "139", + "$id": "135", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "140", + "$id": "136", "kind": "constant", "valueType": { - "$id": "141", + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1348,7 +1316,7 @@ "skipUrlEncoding": false }, { - "$id": "142", + "$id": "138", "name": "spreadWithMultipleParametersRequest", "nameInRequest": "spreadWithMultipleParametersRequest", "type": { @@ -1367,7 +1335,7 @@ ], "responses": [ { - "$id": "143", + "$id": "139", "statusCodes": [ 204 ], @@ -1388,18 +1356,18 @@ "decorators": [] }, { - "$id": "144", + "$id": "140", "name": "spreadParameterWithInnerAlias", "resourceName": "Alias", "doc": "spread an alias with contains another alias property as body.", "accessibility": "public", "parameters": [ { - "$id": "145", + "$id": "141", "name": "id", "nameInRequest": "id", "type": { - "$id": "146", + "$id": "142", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1416,11 +1384,11 @@ "skipUrlEncoding": false }, { - "$id": "147", + "$id": "143", "name": "x-ms-test-header", "nameInRequest": "x-ms-test-header", "type": { - "$id": "148", + "$id": "144", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1437,15 +1405,15 @@ "skipUrlEncoding": false }, { - "$id": "149", + "$id": "145", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "150", + "$id": "146", "kind": "constant", "valueType": { - "$id": "151", + "$id": "147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1465,7 +1433,7 @@ "skipUrlEncoding": false }, { - "$id": "152", + "$id": "148", "name": "spreadParameterWithInnerAliasRequest", "nameInRequest": "spreadParameterWithInnerAliasRequest", "type": { @@ -1484,7 +1452,7 @@ ], "responses": [ { - "$id": "153", + "$id": "149", "statusCodes": [ 204 ], @@ -1505,9 +1473,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Parameters.Spread.Alias", + "parameters": [ + { + "$id": "150", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "151", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "152", + "type": { + "$id": "153", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Parameters.Spread.Alias", + "apiVersions": [], "parent": { "$ref": "55" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json index 613632f7941..d2e93857289 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json @@ -50,6 +50,7 @@ "name": "ContentNegotiationClient", "namespace": "Payload.ContentNegotiation", "doc": "Test describing optionality of the request body.", + "operations": [], "parameters": [ { "$id": "8", @@ -82,64 +83,31 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation", "decorators": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation", + "apiVersions": [], "children": [ { "$id": "12", "kind": "client", "name": "SameBody", "namespace": "Payload.ContentNegotiation.SameBody", - "parameters": [ - { - "$id": "13", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "14", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "15", - "type": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "17", + "$id": "13", "name": "getAvatarAsPng", "resourceName": "SameBody", "accessibility": "public", "parameters": [ { - "$id": "18", + "$id": "14", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "19", + "$id": "15", "kind": "constant", "valueType": { - "$id": "20", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -161,12 +129,12 @@ ], "responses": [ { - "$id": "21", + "$id": "17", "statusCodes": [ 200 ], "bodyType": { - "$id": "22", + "$id": "18", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -174,14 +142,14 @@ }, "headers": [ { - "$id": "23", + "$id": "19", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "24", + "$id": "20", "kind": "constant", "valueType": { - "$id": "25", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -208,20 +176,20 @@ "decorators": [] }, { - "$id": "26", + "$id": "22", "name": "getAvatarAsJpeg", "resourceName": "SameBody", "accessibility": "public", "parameters": [ { - "$id": "27", + "$id": "23", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "28", + "$id": "24", "kind": "constant", "valueType": { - "$id": "29", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -243,12 +211,12 @@ ], "responses": [ { - "$id": "30", + "$id": "26", "statusCodes": [ 200 ], "bodyType": { - "$id": "31", + "$id": "27", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -256,14 +224,14 @@ }, "headers": [ { - "$id": "32", + "$id": "28", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "33", + "$id": "29", "kind": "constant", "valueType": { - "$id": "34", + "$id": "30", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -290,26 +258,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody", - "decorators": [], - "parent": { - "$ref": "7" - } - }, - { - "$id": "35", - "kind": "client", - "name": "DifferentBody", - "namespace": "Payload.ContentNegotiation.DifferentBody", "parameters": [ { - "$id": "36", + "$id": "31", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "37", + "$id": "32", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -323,9 +279,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "38", + "$id": "33", "type": { - "$id": "39", + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -334,22 +290,34 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody", + "apiVersions": [], + "parent": { + "$ref": "7" + } + }, + { + "$id": "35", + "kind": "client", + "name": "DifferentBody", + "namespace": "Payload.ContentNegotiation.DifferentBody", "operations": [ { - "$id": "40", + "$id": "36", "name": "getAvatarAsPng", "resourceName": "DifferentBody", "accessibility": "public", "parameters": [ { - "$id": "41", + "$id": "37", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "42", + "$id": "38", "kind": "constant", "valueType": { - "$id": "43", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -371,12 +339,12 @@ ], "responses": [ { - "$id": "44", + "$id": "40", "statusCodes": [ 200 ], "bodyType": { - "$id": "45", + "$id": "41", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -384,14 +352,14 @@ }, "headers": [ { - "$id": "46", + "$id": "42", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "47", + "$id": "43", "kind": "constant", "valueType": { - "$id": "48", + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -418,20 +386,20 @@ "decorators": [] }, { - "$id": "49", + "$id": "45", "name": "getAvatarAsJson", "resourceName": "DifferentBody", "accessibility": "public", "parameters": [ { - "$id": "50", + "$id": "46", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "51", + "$id": "47", "kind": "constant", "valueType": { - "$id": "52", + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -453,7 +421,7 @@ ], "responses": [ { - "$id": "53", + "$id": "49", "statusCodes": [ 200 ], @@ -462,14 +430,14 @@ }, "headers": [ { - "$id": "54", + "$id": "50", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "55", + "$id": "51", "kind": "constant", "valueType": { - "$id": "56", + "$id": "52", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -496,9 +464,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody", + "parameters": [ + { + "$id": "53", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "54", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "55", + "type": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody", + "apiVersions": [], "parent": { "$ref": "7" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json index 323a23785fb..0a1afaa8dab 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json @@ -518,56 +518,24 @@ "name": "JsonMergePatchClient", "namespace": "Payload.JsonMergePatch", "doc": "Test for merge-patch+json content-type", - "parameters": [ - { - "$id": "76", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "77", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "78", - "type": { - "$id": "79", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "80", + "$id": "76", "name": "createResource", "resourceName": "JsonMergePatch", "doc": "Test content-type: application/merge-patch+json with required body", "accessibility": "public", "parameters": [ { - "$id": "81", + "$id": "77", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "82", + "$id": "78", "kind": "constant", "valueType": { - "$id": "83", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -587,14 +555,14 @@ "skipUrlEncoding": false }, { - "$id": "84", + "$id": "80", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "85", + "$id": "81", "kind": "constant", "valueType": { - "$id": "86", + "$id": "82", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -614,7 +582,7 @@ "skipUrlEncoding": false }, { - "$id": "87", + "$id": "83", "name": "body", "nameInRequest": "body", "type": { @@ -633,7 +601,7 @@ ], "responses": [ { - "$id": "88", + "$id": "84", "statusCodes": [ 200 ], @@ -660,21 +628,21 @@ "decorators": [] }, { - "$id": "89", + "$id": "85", "name": "updateResource", "resourceName": "JsonMergePatch", "doc": "Test content-type: application/merge-patch+json with required body", "accessibility": "public", "parameters": [ { - "$id": "90", + "$id": "86", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "91", + "$id": "87", "kind": "constant", "valueType": { - "$id": "92", + "$id": "88", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -694,14 +662,14 @@ "skipUrlEncoding": false }, { - "$id": "93", + "$id": "89", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "94", + "$id": "90", "kind": "constant", "valueType": { - "$id": "95", + "$id": "91", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -721,7 +689,7 @@ "skipUrlEncoding": false }, { - "$id": "96", + "$id": "92", "name": "body", "nameInRequest": "body", "type": { @@ -740,7 +708,7 @@ ], "responses": [ { - "$id": "97", + "$id": "93", "statusCodes": [ 200 ], @@ -767,21 +735,21 @@ "decorators": [] }, { - "$id": "98", + "$id": "94", "name": "updateOptionalResource", "resourceName": "JsonMergePatch", "doc": "Test content-type: application/merge-patch+json with optional body", "accessibility": "public", "parameters": [ { - "$id": "99", + "$id": "95", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "100", + "$id": "96", "kind": "constant", "valueType": { - "$id": "101", + "$id": "97", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -801,14 +769,14 @@ "skipUrlEncoding": false }, { - "$id": "102", + "$id": "98", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "103", + "$id": "99", "kind": "constant", "valueType": { - "$id": "104", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -828,7 +796,7 @@ "skipUrlEncoding": false }, { - "$id": "105", + "$id": "101", "name": "body", "nameInRequest": "body", "type": { @@ -847,7 +815,7 @@ ], "responses": [ { - "$id": "106", + "$id": "102", "statusCodes": [ 200 ], @@ -874,9 +842,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "103", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "104", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "105", + "type": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Payload.JsonMergePatch", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json index fb2a7db2cd5..3f896f9ae48 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json @@ -11,6 +11,7 @@ "name": "MediaTypeClient", "namespace": "Payload.MediaType", "doc": "Test the payload with different media types and different types of the payload itself.", + "operations": [], "parameters": [ { "$id": "3", @@ -43,64 +44,31 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.MediaType", "decorators": [], + "crossLanguageDefinitionId": "Payload.MediaType", + "apiVersions": [], "children": [ { "$id": "7", "kind": "client", "name": "StringBody", "namespace": "Payload.MediaType.StringBody", - "parameters": [ - { - "$id": "8", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "9", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "10", - "type": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "12", + "$id": "8", "name": "sendAsText", "resourceName": "StringBody", "accessibility": "public", "parameters": [ { - "$id": "13", + "$id": "9", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "14", + "$id": "10", "kind": "constant", "valueType": { - "$id": "15", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -120,11 +88,11 @@ "skipUrlEncoding": false }, { - "$id": "16", + "$id": "12", "name": "text", "nameInRequest": "text", "type": { - "$id": "17", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -143,7 +111,7 @@ ], "responses": [ { - "$id": "18", + "$id": "14", "statusCodes": [ 200 ], @@ -164,20 +132,20 @@ "decorators": [] }, { - "$id": "19", + "$id": "15", "name": "getAsText", "resourceName": "StringBody", "accessibility": "public", "parameters": [ { - "$id": "20", + "$id": "16", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "21", + "$id": "17", "kind": "constant", "valueType": { - "$id": "22", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -199,12 +167,12 @@ ], "responses": [ { - "$id": "23", + "$id": "19", "statusCodes": [ 200 ], "bodyType": { - "$id": "24", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -212,14 +180,14 @@ }, "headers": [ { - "$id": "25", + "$id": "21", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "26", + "$id": "22", "kind": "constant", "valueType": { - "$id": "27", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -246,20 +214,20 @@ "decorators": [] }, { - "$id": "28", + "$id": "24", "name": "sendAsJson", "resourceName": "StringBody", "accessibility": "public", "parameters": [ { - "$id": "29", + "$id": "25", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "30", + "$id": "26", "kind": "constant", "valueType": { - "$id": "31", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -279,11 +247,11 @@ "skipUrlEncoding": false }, { - "$id": "32", + "$id": "28", "name": "text", "nameInRequest": "text", "type": { - "$id": "33", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -302,7 +270,7 @@ ], "responses": [ { - "$id": "34", + "$id": "30", "statusCodes": [ 200 ], @@ -323,20 +291,20 @@ "decorators": [] }, { - "$id": "35", + "$id": "31", "name": "getAsJson", "resourceName": "StringBody", "accessibility": "public", "parameters": [ { - "$id": "36", + "$id": "32", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "37", + "$id": "33", "kind": "constant", "valueType": { - "$id": "38", + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -358,12 +326,12 @@ ], "responses": [ { - "$id": "39", + "$id": "35", "statusCodes": [ 200 ], "bodyType": { - "$id": "40", + "$id": "36", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -371,14 +339,14 @@ }, "headers": [ { - "$id": "41", + "$id": "37", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "42", + "$id": "38", "kind": "constant", "valueType": { - "$id": "43", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -405,9 +373,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.MediaType.StringBody", + "parameters": [ + { + "$id": "40", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "41", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "42", + "type": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Payload.MediaType.StringBody", + "apiVersions": [], "parent": { "$ref": "2" } 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 5d968606162..8e4d452af69 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 @@ -1371,6 +1371,7 @@ "name": "MultiPartClient", "namespace": "Payload.MultiPart", "doc": "Test for multipart", + "operations": [], "parameters": [ { "$id": "5653", @@ -1403,65 +1404,32 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.MultiPart", "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart", + "apiVersions": [], "children": [ { "$id": "5657", "kind": "client", "name": "FormData", "namespace": "Payload.MultiPart.FormData", - "parameters": [ - { - "$id": "5658", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "5659", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "5660", - "type": { - "$id": "5661", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "5662", + "$id": "5658", "name": "basic", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "5663", + "$id": "5659", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "5664", + "$id": "5660", "kind": "constant", "valueType": { - "$id": "5665", + "$id": "5661", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1481,7 +1449,7 @@ "skipUrlEncoding": false }, { - "$id": "5666", + "$id": "5662", "name": "body", "nameInRequest": "body", "type": { @@ -1500,7 +1468,7 @@ ], "responses": [ { - "$id": "5667", + "$id": "5663", "statusCodes": [ 204 ], @@ -1521,21 +1489,21 @@ "decorators": [] }, { - "$id": "5668", + "$id": "5664", "name": "fileArrayAndBasic", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data for mixed scenarios", "accessibility": "public", "parameters": [ { - "$id": "5669", + "$id": "5665", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "5670", + "$id": "5666", "kind": "constant", "valueType": { - "$id": "5671", + "$id": "5667", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1555,7 +1523,7 @@ "skipUrlEncoding": false }, { - "$id": "5672", + "$id": "5668", "name": "body", "nameInRequest": "body", "type": { @@ -1574,7 +1542,7 @@ ], "responses": [ { - "$id": "5673", + "$id": "5669", "statusCodes": [ 204 ], @@ -1595,21 +1563,21 @@ "decorators": [] }, { - "$id": "5674", + "$id": "5670", "name": "jsonPart", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", "accessibility": "public", "parameters": [ { - "$id": "5675", + "$id": "5671", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "5676", + "$id": "5672", "kind": "constant", "valueType": { - "$id": "5677", + "$id": "5673", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1629,7 +1597,7 @@ "skipUrlEncoding": false }, { - "$id": "5678", + "$id": "5674", "name": "body", "nameInRequest": "body", "type": { @@ -1648,7 +1616,7 @@ ], "responses": [ { - "$id": "5679", + "$id": "5675", "statusCodes": [ 204 ], @@ -1669,21 +1637,21 @@ "decorators": [] }, { - "$id": "5680", + "$id": "5676", "name": "binaryArrayParts", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", "accessibility": "public", "parameters": [ { - "$id": "5681", + "$id": "5677", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "5682", + "$id": "5678", "kind": "constant", "valueType": { - "$id": "5683", + "$id": "5679", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1703,7 +1671,7 @@ "skipUrlEncoding": false }, { - "$id": "5684", + "$id": "5680", "name": "body", "nameInRequest": "body", "type": { @@ -1722,7 +1690,7 @@ ], "responses": [ { - "$id": "5685", + "$id": "5681", "statusCodes": [ 204 ], @@ -1743,21 +1711,21 @@ "decorators": [] }, { - "$id": "5686", + "$id": "5682", "name": "multiBinaryParts", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", "accessibility": "public", "parameters": [ { - "$id": "5687", + "$id": "5683", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "5688", + "$id": "5684", "kind": "constant", "valueType": { - "$id": "5689", + "$id": "5685", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1777,7 +1745,7 @@ "skipUrlEncoding": false }, { - "$id": "5690", + "$id": "5686", "name": "body", "nameInRequest": "body", "type": { @@ -1796,7 +1764,7 @@ ], "responses": [ { - "$id": "5691", + "$id": "5687", "statusCodes": [ 204 ], @@ -1817,21 +1785,21 @@ "decorators": [] }, { - "$id": "5692", + "$id": "5688", "name": "checkFileNameAndContentType", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "5693", + "$id": "5689", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "5694", + "$id": "5690", "kind": "constant", "valueType": { - "$id": "5695", + "$id": "5691", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1851,7 +1819,7 @@ "skipUrlEncoding": false }, { - "$id": "5696", + "$id": "5692", "name": "body", "nameInRequest": "body", "type": { @@ -1870,7 +1838,7 @@ ], "responses": [ { - "$id": "5697", + "$id": "5693", "statusCodes": [ 204 ], @@ -1891,21 +1859,21 @@ "decorators": [] }, { - "$id": "5698", + "$id": "5694", "name": "anonymousModel", "resourceName": "FormData", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "5699", + "$id": "5695", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "5700", + "$id": "5696", "kind": "constant", "valueType": { - "$id": "5701", + "$id": "5697", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1925,7 +1893,7 @@ "skipUrlEncoding": false }, { - "$id": "5702", + "$id": "5698", "name": "anonymousModelRequest", "nameInRequest": "anonymousModelRequest", "type": { @@ -1944,7 +1912,7 @@ ], "responses": [ { - "$id": "5703", + "$id": "5699", "statusCodes": [ 204 ], @@ -1965,9 +1933,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData", + "parameters": [ + { + "$id": "5700", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "5701", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "5702", + "type": { + "$id": "5703", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData", + "apiVersions": [], "parent": { "$ref": "5652" }, @@ -1977,55 +1977,23 @@ "kind": "client", "name": "HttpParts", "namespace": "Payload.MultiPart.FormData.HttpParts", - "parameters": [ - { - "$id": "5705", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "5706", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "5707", - "type": { - "$id": "5708", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "5709", + "$id": "5705", "name": "jsonArrayAndFileArray", "resourceName": "HttpParts", "doc": "Test content-type: multipart/form-data for mixed scenarios", "accessibility": "public", "parameters": [ { - "$id": "5710", + "$id": "5706", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "5711", + "$id": "5707", "kind": "constant", "valueType": { - "$id": "5712", + "$id": "5708", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2045,7 +2013,7 @@ "skipUrlEncoding": false }, { - "$id": "5713", + "$id": "5709", "name": "body", "nameInRequest": "body", "type": { @@ -2064,7 +2032,7 @@ ], "responses": [ { - "$id": "5714", + "$id": "5710", "statusCodes": [ 204 ], @@ -2085,9 +2053,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts", + "parameters": [ + { + "$id": "5711", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "5712", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "5713", + "type": { + "$id": "5714", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts", + "apiVersions": [], "parent": { "$ref": "5657" }, @@ -2097,55 +2097,23 @@ "kind": "client", "name": "ContentType", "namespace": "Payload.MultiPart.FormData.HttpParts.ContentType", - "parameters": [ - { - "$id": "5716", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "5717", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "5718", - "type": { - "$id": "5719", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "5720", + "$id": "5716", "name": "imageJpegContentType", "resourceName": "ContentType", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "5721", + "$id": "5717", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "5722", + "$id": "5718", "kind": "constant", "valueType": { - "$id": "5723", + "$id": "5719", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2165,7 +2133,7 @@ "skipUrlEncoding": false }, { - "$id": "5724", + "$id": "5720", "name": "body", "nameInRequest": "body", "type": { @@ -2184,7 +2152,7 @@ ], "responses": [ { - "$id": "5725", + "$id": "5721", "statusCodes": [ 204 ], @@ -2205,21 +2173,21 @@ "decorators": [] }, { - "$id": "5726", + "$id": "5722", "name": "requiredContentType", "resourceName": "ContentType", "doc": "Test content-type: multipart/form-data", "accessibility": "public", "parameters": [ { - "$id": "5727", + "$id": "5723", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "5728", + "$id": "5724", "kind": "constant", "valueType": { - "$id": "5729", + "$id": "5725", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2239,7 +2207,7 @@ "skipUrlEncoding": false }, { - "$id": "5730", + "$id": "5726", "name": "body", "nameInRequest": "body", "type": { @@ -2258,7 +2226,7 @@ ], "responses": [ { - "$id": "5731", + "$id": "5727", "statusCodes": [ 204 ], @@ -2279,21 +2247,21 @@ "decorators": [] }, { - "$id": "5732", + "$id": "5728", "name": "optionalContentType", "resourceName": "ContentType", "doc": "Test content-type: multipart/form-data for optional content type", "accessibility": "public", "parameters": [ { - "$id": "5733", + "$id": "5729", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "5734", + "$id": "5730", "kind": "constant", "valueType": { - "$id": "5735", + "$id": "5731", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2313,7 +2281,7 @@ "skipUrlEncoding": false }, { - "$id": "5736", + "$id": "5732", "name": "body", "nameInRequest": "body", "type": { @@ -2332,7 +2300,7 @@ ], "responses": [ { - "$id": "5737", + "$id": "5733", "statusCodes": [ 204 ], @@ -2353,26 +2321,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType", - "decorators": [], - "parent": { - "$ref": "5704" - } - }, - { - "$id": "5738", - "kind": "client", - "name": "NonString", - "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", "parameters": [ { - "$id": "5739", + "$id": "5734", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "5740", + "$id": "5735", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2386,9 +2342,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "5741", + "$id": "5736", "type": { - "$id": "5742", + "$id": "5737", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2397,23 +2353,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType", + "apiVersions": [], + "parent": { + "$ref": "5704" + } + }, + { + "$id": "5738", + "kind": "client", + "name": "NonString", + "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", "operations": [ { - "$id": "5743", + "$id": "5739", "name": "float", "resourceName": "NonString", "doc": "Test content-type: multipart/form-data for non string", "accessibility": "public", "parameters": [ { - "$id": "5744", + "$id": "5740", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "5745", + "$id": "5741", "kind": "constant", "valueType": { - "$id": "5746", + "$id": "5742", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2433,7 +2401,7 @@ "skipUrlEncoding": false }, { - "$id": "5747", + "$id": "5743", "name": "body", "nameInRequest": "body", "type": { @@ -2452,7 +2420,7 @@ ], "responses": [ { - "$id": "5748", + "$id": "5744", "statusCodes": [ 204 ], @@ -2473,9 +2441,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString", + "parameters": [ + { + "$id": "5745", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "5746", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "5747", + "type": { + "$id": "5748", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString", + "apiVersions": [], "parent": { "$ref": "5704" } 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 986360891a6..997ca12b211 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 @@ -353,6 +353,7 @@ "name": "PageableClient", "namespace": "Payload.Pageable", "doc": "Test for pageable payload.", + "operations": [], "parameters": [ { "$id": "49", @@ -385,64 +386,31 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.Pageable", "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable", + "apiVersions": [], "children": [ { "$id": "53", "kind": "client", "name": "ServerDrivenPagination", "namespace": "Payload.Pageable.ServerDrivenPagination", - "parameters": [ - { - "$id": "54", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "55", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "56", - "type": { - "$id": "57", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "58", + "$id": "54", "name": "link", "resourceName": "ServerDrivenPagination", "accessibility": "public", "parameters": [ { - "$id": "59", + "$id": "55", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "60", + "$id": "56", "kind": "constant", "valueType": { - "$id": "61", + "$id": "57", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -464,7 +432,7 @@ ], "responses": [ { - "$id": "62", + "$id": "58", "statusCodes": [ 200 ], @@ -483,12 +451,12 @@ "path": "/payload/pageable/server-driven-pagination/link", "bufferResponse": true, "paging": { - "$id": "63", + "$id": "59", "itemPropertySegments": [ "pets" ], "nextLink": { - "$id": "64", + "$id": "60", "responseSegments": [ "next" ], @@ -501,9 +469,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination", + "parameters": [ + { + "$id": "61", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "62", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "63", + "type": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination", + "apiVersions": [], "parent": { "$ref": "48" }, @@ -513,51 +513,19 @@ "kind": "client", "name": "ContinuationToken", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", - "parameters": [ - { - "$id": "66", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "67", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "68", - "type": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "70", + "$id": "66", "name": "requestQueryResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "71", + "$id": "67", "name": "token", "nameInRequest": "token", "type": { - "$id": "72", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -574,11 +542,11 @@ "skipUrlEncoding": false }, { - "$id": "73", + "$id": "69", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "74", + "$id": "70", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -595,11 +563,11 @@ "skipUrlEncoding": false }, { - "$id": "75", + "$id": "71", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "76", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -616,14 +584,14 @@ "skipUrlEncoding": false }, { - "$id": "77", + "$id": "73", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "78", + "$id": "74", "kind": "constant", "valueType": { - "$id": "79", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -645,7 +613,7 @@ ], "responses": [ { - "$id": "80", + "$id": "76", "statusCodes": [ 200 ], @@ -664,18 +632,18 @@ "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-query-response-body", "bufferResponse": true, "paging": { - "$id": "81", + "$id": "77", "itemPropertySegments": [ "pets" ], "continuationToken": { - "$id": "82", + "$id": "78", "parameter": { - "$id": "83", + "$id": "79", "name": "token", "nameInRequest": "token", "type": { - "$ref": "72" + "$ref": "68" }, "location": "Query", "isApiVersion": false, @@ -699,17 +667,17 @@ "decorators": [] }, { - "$id": "84", + "$id": "80", "name": "requestHeaderResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "85", + "$id": "81", "name": "token", "nameInRequest": "token", "type": { - "$id": "86", + "$id": "82", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -726,11 +694,11 @@ "skipUrlEncoding": false }, { - "$id": "87", + "$id": "83", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "88", + "$id": "84", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -747,11 +715,11 @@ "skipUrlEncoding": false }, { - "$id": "89", + "$id": "85", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "90", + "$id": "86", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -768,14 +736,14 @@ "skipUrlEncoding": false }, { - "$id": "91", + "$id": "87", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "92", + "$id": "88", "kind": "constant", "valueType": { - "$id": "93", + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -797,7 +765,7 @@ ], "responses": [ { - "$id": "94", + "$id": "90", "statusCodes": [ 200 ], @@ -816,18 +784,18 @@ "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-header-response-body", "bufferResponse": true, "paging": { - "$id": "95", + "$id": "91", "itemPropertySegments": [ "pets" ], "continuationToken": { - "$id": "96", + "$id": "92", "parameter": { - "$id": "97", + "$id": "93", "name": "token", "nameInRequest": "token", "type": { - "$ref": "86" + "$ref": "82" }, "location": "Header", "isApiVersion": false, @@ -851,17 +819,17 @@ "decorators": [] }, { - "$id": "98", + "$id": "94", "name": "requestQueryResponseHeader", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "99", + "$id": "95", "name": "token", "nameInRequest": "token", "type": { - "$id": "100", + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -878,11 +846,11 @@ "skipUrlEncoding": false }, { - "$id": "101", + "$id": "97", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "102", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -899,11 +867,11 @@ "skipUrlEncoding": false }, { - "$id": "103", + "$id": "99", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "104", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -920,14 +888,14 @@ "skipUrlEncoding": false }, { - "$id": "105", + "$id": "101", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "106", + "$id": "102", "kind": "constant", "valueType": { - "$id": "107", + "$id": "103", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -949,7 +917,7 @@ ], "responses": [ { - "$id": "108", + "$id": "104", "statusCodes": [ 200 ], @@ -958,11 +926,11 @@ }, "headers": [ { - "$id": "109", + "$id": "105", "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "110", + "$id": "106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -981,18 +949,18 @@ "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-query-response-header", "bufferResponse": true, "paging": { - "$id": "111", + "$id": "107", "itemPropertySegments": [ "pets" ], "continuationToken": { - "$id": "112", + "$id": "108", "parameter": { - "$id": "113", + "$id": "109", "name": "token", "nameInRequest": "token", "type": { - "$ref": "100" + "$ref": "96" }, "location": "Query", "isApiVersion": false, @@ -1016,17 +984,17 @@ "decorators": [] }, { - "$id": "114", + "$id": "110", "name": "requestHeaderResponseHeader", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "115", + "$id": "111", "name": "token", "nameInRequest": "token", "type": { - "$id": "116", + "$id": "112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1043,11 +1011,11 @@ "skipUrlEncoding": false }, { - "$id": "117", + "$id": "113", "name": "foo", "nameInRequest": "foo", "type": { - "$id": "118", + "$id": "114", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1064,11 +1032,11 @@ "skipUrlEncoding": false }, { - "$id": "119", + "$id": "115", "name": "bar", "nameInRequest": "bar", "type": { - "$id": "120", + "$id": "116", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1085,14 +1053,14 @@ "skipUrlEncoding": false }, { - "$id": "121", + "$id": "117", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "122", + "$id": "118", "kind": "constant", "valueType": { - "$id": "123", + "$id": "119", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1114,7 +1082,7 @@ ], "responses": [ { - "$id": "124", + "$id": "120", "statusCodes": [ 200 ], @@ -1123,11 +1091,11 @@ }, "headers": [ { - "$id": "125", + "$id": "121", "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "126", + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1146,18 +1114,18 @@ "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-header-response-header", "bufferResponse": true, "paging": { - "$id": "127", + "$id": "123", "itemPropertySegments": [ "pets" ], "continuationToken": { - "$id": "128", + "$id": "124", "parameter": { - "$id": "129", + "$id": "125", "name": "token", "nameInRequest": "token", "type": { - "$ref": "116" + "$ref": "112" }, "location": "Header", "isApiVersion": false, @@ -1181,9 +1149,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", + "parameters": [ + { + "$id": "126", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "127", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "128", + "type": { + "$id": "129", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", + "apiVersions": [], "parent": { "$ref": "53" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json index 2fc2b62b555..5c47625b00a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json @@ -53,83 +53,9 @@ "name": "ResiliencyServiceDrivenClient", "namespace": "Resiliency.ServiceDriven", "doc": "Test that we can grow up a service spec and service deployment into a multi-versioned service with full client support.", - "parameters": [ - { - "$id": "7", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "8", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "9", - "name": "serviceDeploymentVersion", - "nameInRequest": "serviceDeploymentVersion", - "doc": "Pass in either 'v1' or 'v2'. This represents a version of the service deployment in history. 'v1' is for the deployment when the service had only one api version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'.", - "type": { - "$id": "10", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "11", - "name": "apiVersion", - "nameInRequest": "apiVersion", - "doc": "Pass in 'v1'. This represents the API version of the service. Will grow up in the next deployment to be both 'v1' and 'v2'", - "type": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Uri", - "isApiVersion": true, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "13", - "type": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "v1" - } - } - ], "operations": [ { - "$id": "15", + "$id": "7", "name": "fromNone", "resourceName": "AddOptionalParam", "doc": "Test that currently accepts no parameters, will be updated in next spec to accept a new optional parameter as well", @@ -137,7 +63,7 @@ "parameters": [], "responses": [ { - "$id": "16", + "$id": "8", "statusCodes": [ 204 ], @@ -155,19 +81,19 @@ "decorators": [] }, { - "$id": "17", + "$id": "9", "name": "fromOneRequired", "resourceName": "AddOptionalParam", "doc": "Test that currently accepts one required parameter, will be updated in next spec to accept a new optional parameter as well", "accessibility": "public", "parameters": [ { - "$id": "18", + "$id": "10", "name": "parameter", "nameInRequest": "parameter", "doc": "I am a required parameter", "type": { - "$id": "19", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -186,7 +112,7 @@ ], "responses": [ { - "$id": "20", + "$id": "12", "statusCodes": [ 204 ], @@ -204,19 +130,19 @@ "decorators": [] }, { - "$id": "21", + "$id": "13", "name": "fromOneOptional", "resourceName": "AddOptionalParam", "doc": "Test that currently accepts one optional parameter, will be updated in next spec to accept a new optional parameter as well", "accessibility": "public", "parameters": [ { - "$id": "22", + "$id": "14", "name": "parameter", "nameInRequest": "parameter", "doc": "I am an optional parameter", "type": { - "$id": "23", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -235,7 +161,7 @@ ], "responses": [ { - "$id": "24", + "$id": "16", "statusCodes": [ 204 ], @@ -253,11 +179,85 @@ "decorators": [] } ], - "apiVersions": [ - "v1" + "parameters": [ + { + "$id": "17", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "18", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "19", + "name": "serviceDeploymentVersion", + "nameInRequest": "serviceDeploymentVersion", + "doc": "Pass in either 'v1' or 'v2'. This represents a version of the service deployment in history. 'v1' is for the deployment when the service had only one api version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'.", + "type": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "21", + "name": "apiVersion", + "nameInRequest": "apiVersion", + "doc": "Pass in 'v1'. This represents the API version of the service. Will grow up in the next deployment to be both 'v1' and 'v2'", + "type": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Uri", + "isApiVersion": true, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "23", + "type": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "v1" + } + } ], + "decorators": [], "crossLanguageDefinitionId": "Resiliency.ServiceDriven", - "decorators": [] + "apiVersions": [ + "v1" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json index 7784be2e215..cc75f1d8d45 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json @@ -72,83 +72,9 @@ "name": "ResiliencyServiceDrivenClient", "namespace": "Resiliency.ServiceDriven", "doc": "Test that we can grow up a service spec and service deployment into a multi-versioned service with full client support.\n\nThere are three concepts that should be clarified:\n1. Client spec version: refers to the spec that the client is generated from. 'v1' is a client generated from old.tsp and 'v2' is a client generated from main.tsp.\n2. Service deployment version: refers to a deployment version of the service. 'v1' represents the initial deployment of the service with a single api version. 'v2' represents the new deployment of a service with multiple api versions\n3. Api version: The initial deployment of the service only supports api version 'v1'. The new deployment of the service supports api versions 'v1' and 'v2'.\n\nWe test the following configurations from this service spec:\n- A client generated from the second service spec can call the second deployment of a service with api version v1\n- A client generated from the second service spec can call the second deployment of a service with api version v2", - "parameters": [ - { - "$id": "9", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "10", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "11", - "name": "serviceDeploymentVersion", - "nameInRequest": "serviceDeploymentVersion", - "doc": "Pass in either 'v1' or 'v2'. This represents a version of the service deployment in history. 'v1' is for the deployment when the service had only one api version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'.", - "type": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "13", - "name": "apiVersion", - "nameInRequest": "apiVersion", - "doc": "Pass in either 'v1' or 'v2'. This represents the API version of a service.", - "type": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Uri", - "isApiVersion": true, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "15", - "type": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "v2" - } - } - ], "operations": [ { - "$id": "17", + "$id": "9", "name": "addOperation", "resourceName": "ServiceDriven", "doc": "Added operation", @@ -156,7 +82,7 @@ "parameters": [], "responses": [ { - "$id": "18", + "$id": "10", "statusCodes": [ 204 ], @@ -174,19 +100,19 @@ "decorators": [] }, { - "$id": "19", + "$id": "11", "name": "fromNone", "resourceName": "AddOptionalParam", "doc": "Test that grew up from accepting no parameters to an optional input parameter", "accessibility": "public", "parameters": [ { - "$id": "20", + "$id": "12", "name": "new-parameter", "nameInRequest": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "21", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -205,7 +131,7 @@ ], "responses": [ { - "$id": "22", + "$id": "14", "statusCodes": [ 204 ], @@ -223,19 +149,19 @@ "decorators": [] }, { - "$id": "23", + "$id": "15", "name": "fromOneRequired", "resourceName": "AddOptionalParam", "doc": "Operation that grew up from accepting one required parameter to accepting a required parameter and an optional parameter.", "accessibility": "public", "parameters": [ { - "$id": "24", + "$id": "16", "name": "parameter", "nameInRequest": "parameter", "doc": "I am a required parameter", "type": { - "$id": "25", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -252,12 +178,12 @@ "skipUrlEncoding": false }, { - "$id": "26", + "$id": "18", "name": "new-parameter", "nameInRequest": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "27", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -276,7 +202,7 @@ ], "responses": [ { - "$id": "28", + "$id": "20", "statusCodes": [ 204 ], @@ -294,19 +220,19 @@ "decorators": [] }, { - "$id": "29", + "$id": "21", "name": "fromOneOptional", "resourceName": "AddOptionalParam", "doc": "Tests that we can grow up an operation from accepting one optional parameter to accepting two optional parameters.", "accessibility": "public", "parameters": [ { - "$id": "30", + "$id": "22", "name": "parameter", "nameInRequest": "parameter", "doc": "I am an optional parameter", "type": { - "$id": "31", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -323,12 +249,12 @@ "skipUrlEncoding": false }, { - "$id": "32", + "$id": "24", "name": "new-parameter", "nameInRequest": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "33", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -347,7 +273,7 @@ ], "responses": [ { - "$id": "34", + "$id": "26", "statusCodes": [ 204 ], @@ -365,12 +291,86 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "27", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "28", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "29", + "name": "serviceDeploymentVersion", + "nameInRequest": "serviceDeploymentVersion", + "doc": "Pass in either 'v1' or 'v2'. This represents a version of the service deployment in history. 'v1' is for the deployment when the service had only one api version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'.", + "type": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "31", + "name": "apiVersion", + "nameInRequest": "apiVersion", + "doc": "Pass in either 'v1' or 'v2'. This represents the API version of a service.", + "type": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Uri", + "isApiVersion": true, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "33", + "type": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "v2" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Resiliency.ServiceDriven", "apiVersions": [ "v1", "v2" - ], - "crossLanguageDefinitionId": "Resiliency.ServiceDriven", - "decorators": [] + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json index 5c870a2bc17..6826d19fd68 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json @@ -212,54 +212,22 @@ "name": "StatusCodeRangeClient", "namespace": "Response.StatusCodeRange", "doc": "Test for range of status code.", - "parameters": [ - { - "$id": "31", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "32", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "33", - "type": { - "$id": "34", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "35", + "$id": "31", "name": "errorResponseStatusCodeInRange", "resourceName": "StatusCodeRange", "accessibility": "public", "parameters": [ { - "$id": "36", + "$id": "32", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "37", + "$id": "33", "kind": "constant", "valueType": { - "$id": "38", + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -281,7 +249,7 @@ ], "responses": [ { - "$id": "39", + "$id": "35", "statusCodes": [ 204 ], @@ -299,20 +267,20 @@ "decorators": [] }, { - "$id": "40", + "$id": "36", "name": "errorResponseStatusCode404", "resourceName": "StatusCodeRange", "accessibility": "public", "parameters": [ { - "$id": "41", + "$id": "37", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "42", + "$id": "38", "kind": "constant", "valueType": { - "$id": "43", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -334,7 +302,7 @@ ], "responses": [ { - "$id": "44", + "$id": "40", "statusCodes": [ 204 ], @@ -352,9 +320,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "41", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "42", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "43", + "type": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Response.StatusCodeRange", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json index 638e9ac0766..3cc572eb1c9 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json @@ -11,14 +11,41 @@ "name": "RoutesClient", "namespace": "Routes", "doc": "Define scenario in building the http route/uri", - "parameters": [ + "operations": [ { "$id": "3", + "name": "fixed", + "resourceName": "Routes", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "4", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/fixed", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.fixed", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "5", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "4", + "$id": "6", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -32,9 +59,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "5", + "$id": "7", "type": { - "$id": "6", + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -43,87 +70,28 @@ } } ], - "operations": [ - { - "$id": "7", - "name": "fixed", - "resourceName": "Routes", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "8", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/fixed", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.fixed", - "decorators": [] - } - ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes", "decorators": [], + "crossLanguageDefinitionId": "Routes", + "apiVersions": [], "children": [ { "$id": "9", "kind": "client", "name": "PathParameters", "namespace": "Routes.PathParameters", - "parameters": [ - { - "$id": "10", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "11", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "12", - "type": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "14", + "$id": "10", "name": "templateOnly", "resourceName": "PathParameters", "accessibility": "public", "parameters": [ { - "$id": "15", + "$id": "11", "name": "param", "nameInRequest": "param", "type": { - "$id": "16", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -142,7 +110,7 @@ ], "responses": [ { - "$id": "17", + "$id": "13", "statusCodes": [ 204 ], @@ -160,17 +128,17 @@ "decorators": [] }, { - "$id": "18", + "$id": "14", "name": "explicit", "resourceName": "PathParameters", "accessibility": "public", "parameters": [ { - "$id": "19", + "$id": "15", "name": "param", "nameInRequest": "param", "type": { - "$id": "20", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -189,7 +157,7 @@ ], "responses": [ { - "$id": "21", + "$id": "17", "statusCodes": [ 204 ], @@ -207,17 +175,17 @@ "decorators": [] }, { - "$id": "22", + "$id": "18", "name": "annotationOnly", "resourceName": "PathParameters", "accessibility": "public", "parameters": [ { - "$id": "23", + "$id": "19", "name": "param", "nameInRequest": "param", "type": { - "$id": "24", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -236,7 +204,7 @@ ], "responses": [ { - "$id": "25", + "$id": "21", "statusCodes": [ 204 ], @@ -254,9 +222,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters", + "parameters": [ + { + "$id": "22", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "23", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "24", + "type": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters", + "apiVersions": [], "parent": { "$ref": "2" }, @@ -266,51 +266,19 @@ "kind": "client", "name": "ReservedExpansion", "namespace": "Routes.PathParameters.ReservedExpansion", - "parameters": [ - { - "$id": "27", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "28", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "29", - "type": { - "$id": "30", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "31", + "$id": "27", "name": "template", "resourceName": "ReservedExpansion", "accessibility": "public", "parameters": [ { - "$id": "32", + "$id": "28", "name": "param", "nameInRequest": "param", "type": { - "$id": "33", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -329,7 +297,7 @@ ], "responses": [ { - "$id": "34", + "$id": "30", "statusCodes": [ 204 ], @@ -347,17 +315,17 @@ "decorators": [] }, { - "$id": "35", + "$id": "31", "name": "annotation", "resourceName": "ReservedExpansion", "accessibility": "public", "parameters": [ { - "$id": "36", + "$id": "32", "name": "param", "nameInRequest": "param", "type": { - "$id": "37", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -376,7 +344,7 @@ ], "responses": [ { - "$id": "38", + "$id": "34", "statusCodes": [ 204 ], @@ -394,9 +362,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion", + "parameters": [ + { + "$id": "35", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "36", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "37", + "type": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion", + "apiVersions": [], "parent": { "$ref": "9" } @@ -406,6 +406,7 @@ "kind": "client", "name": "SimpleExpansion", "namespace": "Routes.PathParameters.SimpleExpansion", + "operations": [], "parameters": [ { "$id": "40", @@ -438,10 +439,9 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion", "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion", + "apiVersions": [], "parent": { "$ref": "9" }, @@ -451,51 +451,19 @@ "kind": "client", "name": "Standard", "namespace": "Routes.PathParameters.SimpleExpansion.Standard", - "parameters": [ - { - "$id": "45", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "46", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "47", - "type": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "49", + "$id": "45", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "50", + "$id": "46", "name": "param", "nameInRequest": "param", "type": { - "$id": "51", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -514,7 +482,7 @@ ], "responses": [ { - "$id": "52", + "$id": "48", "statusCodes": [ 204 ], @@ -532,21 +500,21 @@ "decorators": [] }, { - "$id": "53", + "$id": "49", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "54", + "$id": "50", "name": "param", "nameInRequest": "param", "type": { - "$id": "55", + "$id": "51", "kind": "array", "name": "Array", "valueType": { - "$id": "56", + "$id": "52", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -568,7 +536,7 @@ ], "responses": [ { - "$id": "57", + "$id": "53", "statusCodes": [ 204 ], @@ -586,27 +554,27 @@ "decorators": [] }, { - "$id": "58", + "$id": "54", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "59", + "$id": "55", "name": "param", "nameInRequest": "param", "type": { - "$id": "60", + "$id": "56", "kind": "dict", "keyType": { - "$id": "61", + "$id": "57", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "62", + "$id": "58", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -627,7 +595,7 @@ ], "responses": [ { - "$id": "63", + "$id": "59", "statusCodes": [ 204 ], @@ -645,26 +613,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard", - "decorators": [], - "parent": { - "$ref": "39" - } - }, - { - "$id": "64", - "kind": "client", - "name": "Explode", - "namespace": "Routes.PathParameters.SimpleExpansion.Explode", "parameters": [ { - "$id": "65", + "$id": "60", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "66", + "$id": "61", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -678,9 +634,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "67", + "$id": "62", "type": { - "$id": "68", + "$id": "63", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -689,19 +645,31 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "39" + } + }, + { + "$id": "64", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.SimpleExpansion.Explode", "operations": [ { - "$id": "69", + "$id": "65", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "70", + "$id": "66", "name": "param", "nameInRequest": "param", "type": { - "$id": "71", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -720,7 +688,7 @@ ], "responses": [ { - "$id": "72", + "$id": "68", "statusCodes": [ 204 ], @@ -738,21 +706,21 @@ "decorators": [] }, { - "$id": "73", + "$id": "69", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "74", + "$id": "70", "name": "param", "nameInRequest": "param", "type": { - "$id": "75", + "$id": "71", "kind": "array", "name": "Array", "valueType": { - "$id": "76", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -774,7 +742,7 @@ ], "responses": [ { - "$id": "77", + "$id": "73", "statusCodes": [ 204 ], @@ -792,27 +760,27 @@ "decorators": [] }, { - "$id": "78", + "$id": "74", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "79", + "$id": "75", "name": "param", "nameInRequest": "param", "type": { - "$id": "80", + "$id": "76", "kind": "dict", "keyType": { - "$id": "81", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "82", + "$id": "78", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -833,7 +801,7 @@ ], "responses": [ { - "$id": "83", + "$id": "79", "statusCodes": [ 204 ], @@ -851,9 +819,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode", + "parameters": [ + { + "$id": "80", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "81", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "82", + "type": { + "$id": "83", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode", + "apiVersions": [], "parent": { "$ref": "39" } @@ -865,6 +865,7 @@ "kind": "client", "name": "PathExpansion", "namespace": "Routes.PathParameters.PathExpansion", + "operations": [], "parameters": [ { "$id": "85", @@ -897,10 +898,9 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion", "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion", + "apiVersions": [], "parent": { "$ref": "9" }, @@ -910,51 +910,19 @@ "kind": "client", "name": "Standard", "namespace": "Routes.PathParameters.PathExpansion.Standard", - "parameters": [ - { - "$id": "90", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "91", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "92", - "type": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "94", + "$id": "90", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "95", + "$id": "91", "name": "param", "nameInRequest": "param", "type": { - "$id": "96", + "$id": "92", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -973,7 +941,7 @@ ], "responses": [ { - "$id": "97", + "$id": "93", "statusCodes": [ 204 ], @@ -991,21 +959,21 @@ "decorators": [] }, { - "$id": "98", + "$id": "94", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "99", + "$id": "95", "name": "param", "nameInRequest": "param", "type": { - "$id": "100", + "$id": "96", "kind": "array", "name": "Array", "valueType": { - "$id": "101", + "$id": "97", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1027,7 +995,7 @@ ], "responses": [ { - "$id": "102", + "$id": "98", "statusCodes": [ 204 ], @@ -1045,27 +1013,27 @@ "decorators": [] }, { - "$id": "103", + "$id": "99", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "104", + "$id": "100", "name": "param", "nameInRequest": "param", "type": { - "$id": "105", + "$id": "101", "kind": "dict", "keyType": { - "$id": "106", + "$id": "102", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "107", + "$id": "103", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1086,7 +1054,7 @@ ], "responses": [ { - "$id": "108", + "$id": "104", "statusCodes": [ 204 ], @@ -1104,26 +1072,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard", - "decorators": [], - "parent": { - "$ref": "84" - } - }, - { - "$id": "109", - "kind": "client", - "name": "Explode", - "namespace": "Routes.PathParameters.PathExpansion.Explode", "parameters": [ { - "$id": "110", + "$id": "105", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "111", + "$id": "106", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1137,9 +1093,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "112", + "$id": "107", "type": { - "$id": "113", + "$id": "108", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1148,19 +1104,31 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "84" + } + }, + { + "$id": "109", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.PathExpansion.Explode", "operations": [ { - "$id": "114", + "$id": "110", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "115", + "$id": "111", "name": "param", "nameInRequest": "param", "type": { - "$id": "116", + "$id": "112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1179,7 +1147,7 @@ ], "responses": [ { - "$id": "117", + "$id": "113", "statusCodes": [ 204 ], @@ -1197,21 +1165,21 @@ "decorators": [] }, { - "$id": "118", + "$id": "114", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "119", + "$id": "115", "name": "param", "nameInRequest": "param", "type": { - "$id": "120", + "$id": "116", "kind": "array", "name": "Array", "valueType": { - "$id": "121", + "$id": "117", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1233,7 +1201,7 @@ ], "responses": [ { - "$id": "122", + "$id": "118", "statusCodes": [ 204 ], @@ -1251,27 +1219,27 @@ "decorators": [] }, { - "$id": "123", + "$id": "119", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "124", + "$id": "120", "name": "param", "nameInRequest": "param", "type": { - "$id": "125", + "$id": "121", "kind": "dict", "keyType": { - "$id": "126", + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "127", + "$id": "123", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1292,7 +1260,7 @@ ], "responses": [ { - "$id": "128", + "$id": "124", "statusCodes": [ 204 ], @@ -1310,9 +1278,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode", + "parameters": [ + { + "$id": "125", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "126", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "127", + "type": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode", + "apiVersions": [], "parent": { "$ref": "84" } @@ -1324,6 +1324,7 @@ "kind": "client", "name": "LabelExpansion", "namespace": "Routes.PathParameters.LabelExpansion", + "operations": [], "parameters": [ { "$id": "130", @@ -1356,10 +1357,9 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion", "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion", + "apiVersions": [], "parent": { "$ref": "9" }, @@ -1369,51 +1369,19 @@ "kind": "client", "name": "Standard", "namespace": "Routes.PathParameters.LabelExpansion.Standard", - "parameters": [ - { - "$id": "135", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "136", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "137", - "type": { - "$id": "138", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "139", + "$id": "135", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "140", + "$id": "136", "name": "param", "nameInRequest": "param", "type": { - "$id": "141", + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1432,7 +1400,7 @@ ], "responses": [ { - "$id": "142", + "$id": "138", "statusCodes": [ 204 ], @@ -1450,21 +1418,21 @@ "decorators": [] }, { - "$id": "143", + "$id": "139", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "144", + "$id": "140", "name": "param", "nameInRequest": "param", "type": { - "$id": "145", + "$id": "141", "kind": "array", "name": "Array", "valueType": { - "$id": "146", + "$id": "142", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1486,7 +1454,7 @@ ], "responses": [ { - "$id": "147", + "$id": "143", "statusCodes": [ 204 ], @@ -1504,27 +1472,27 @@ "decorators": [] }, { - "$id": "148", + "$id": "144", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "149", + "$id": "145", "name": "param", "nameInRequest": "param", "type": { - "$id": "150", + "$id": "146", "kind": "dict", "keyType": { - "$id": "151", + "$id": "147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "152", + "$id": "148", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1545,7 +1513,7 @@ ], "responses": [ { - "$id": "153", + "$id": "149", "statusCodes": [ 204 ], @@ -1563,26 +1531,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard", - "decorators": [], - "parent": { - "$ref": "129" - } - }, - { - "$id": "154", - "kind": "client", - "name": "Explode", - "namespace": "Routes.PathParameters.LabelExpansion.Explode", "parameters": [ { - "$id": "155", + "$id": "150", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "156", + "$id": "151", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1596,9 +1552,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "157", + "$id": "152", "type": { - "$id": "158", + "$id": "153", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1607,19 +1563,31 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "129" + } + }, + { + "$id": "154", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.LabelExpansion.Explode", "operations": [ { - "$id": "159", + "$id": "155", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "160", + "$id": "156", "name": "param", "nameInRequest": "param", "type": { - "$id": "161", + "$id": "157", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1638,7 +1606,7 @@ ], "responses": [ { - "$id": "162", + "$id": "158", "statusCodes": [ 204 ], @@ -1656,21 +1624,21 @@ "decorators": [] }, { - "$id": "163", + "$id": "159", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "164", + "$id": "160", "name": "param", "nameInRequest": "param", "type": { - "$id": "165", + "$id": "161", "kind": "array", "name": "Array", "valueType": { - "$id": "166", + "$id": "162", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1692,7 +1660,7 @@ ], "responses": [ { - "$id": "167", + "$id": "163", "statusCodes": [ 204 ], @@ -1710,27 +1678,27 @@ "decorators": [] }, { - "$id": "168", + "$id": "164", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "169", + "$id": "165", "name": "param", "nameInRequest": "param", "type": { - "$id": "170", + "$id": "166", "kind": "dict", "keyType": { - "$id": "171", + "$id": "167", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "172", + "$id": "168", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1751,7 +1719,7 @@ ], "responses": [ { - "$id": "173", + "$id": "169", "statusCodes": [ 204 ], @@ -1769,9 +1737,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode", + "parameters": [ + { + "$id": "170", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "171", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "172", + "type": { + "$id": "173", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode", + "apiVersions": [], "parent": { "$ref": "129" } @@ -1783,6 +1783,7 @@ "kind": "client", "name": "MatrixExpansion", "namespace": "Routes.PathParameters.MatrixExpansion", + "operations": [], "parameters": [ { "$id": "175", @@ -1815,10 +1816,9 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion", "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion", + "apiVersions": [], "parent": { "$ref": "9" }, @@ -1828,51 +1828,19 @@ "kind": "client", "name": "Standard", "namespace": "Routes.PathParameters.MatrixExpansion.Standard", - "parameters": [ - { - "$id": "180", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "181", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "182", - "type": { - "$id": "183", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "184", + "$id": "180", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "185", + "$id": "181", "name": "param", "nameInRequest": "param", "type": { - "$id": "186", + "$id": "182", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1891,7 +1859,7 @@ ], "responses": [ { - "$id": "187", + "$id": "183", "statusCodes": [ 204 ], @@ -1909,21 +1877,21 @@ "decorators": [] }, { - "$id": "188", + "$id": "184", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "189", + "$id": "185", "name": "param", "nameInRequest": "param", "type": { - "$id": "190", + "$id": "186", "kind": "array", "name": "Array", "valueType": { - "$id": "191", + "$id": "187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1945,7 +1913,7 @@ ], "responses": [ { - "$id": "192", + "$id": "188", "statusCodes": [ 204 ], @@ -1963,27 +1931,27 @@ "decorators": [] }, { - "$id": "193", + "$id": "189", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "194", + "$id": "190", "name": "param", "nameInRequest": "param", "type": { - "$id": "195", + "$id": "191", "kind": "dict", "keyType": { - "$id": "196", + "$id": "192", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "197", + "$id": "193", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2004,7 +1972,7 @@ ], "responses": [ { - "$id": "198", + "$id": "194", "statusCodes": [ 204 ], @@ -2022,26 +1990,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard", - "decorators": [], - "parent": { - "$ref": "174" - } - }, - { - "$id": "199", - "kind": "client", - "name": "Explode", - "namespace": "Routes.PathParameters.MatrixExpansion.Explode", "parameters": [ { - "$id": "200", + "$id": "195", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "201", + "$id": "196", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2055,9 +2011,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "202", + "$id": "197", "type": { - "$id": "203", + "$id": "198", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2066,19 +2022,31 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "174" + } + }, + { + "$id": "199", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.MatrixExpansion.Explode", "operations": [ { - "$id": "204", + "$id": "200", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "205", + "$id": "201", "name": "param", "nameInRequest": "param", "type": { - "$id": "206", + "$id": "202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2097,7 +2065,7 @@ ], "responses": [ { - "$id": "207", + "$id": "203", "statusCodes": [ 204 ], @@ -2115,21 +2083,21 @@ "decorators": [] }, { - "$id": "208", + "$id": "204", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "209", + "$id": "205", "name": "param", "nameInRequest": "param", "type": { - "$id": "210", + "$id": "206", "kind": "array", "name": "Array", "valueType": { - "$id": "211", + "$id": "207", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2151,7 +2119,7 @@ ], "responses": [ { - "$id": "212", + "$id": "208", "statusCodes": [ 204 ], @@ -2169,27 +2137,27 @@ "decorators": [] }, { - "$id": "213", + "$id": "209", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "214", + "$id": "210", "name": "param", "nameInRequest": "param", "type": { - "$id": "215", + "$id": "211", "kind": "dict", "keyType": { - "$id": "216", + "$id": "212", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "217", + "$id": "213", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2210,7 +2178,7 @@ ], "responses": [ { - "$id": "218", + "$id": "214", "statusCodes": [ 204 ], @@ -2228,9 +2196,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode", + "parameters": [ + { + "$id": "215", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "216", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "217", + "type": { + "$id": "218", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode", + "apiVersions": [], "parent": { "$ref": "174" } @@ -2244,51 +2244,19 @@ "kind": "client", "name": "QueryParameters", "namespace": "Routes.QueryParameters", - "parameters": [ - { - "$id": "220", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "221", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "222", - "type": { - "$id": "223", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "224", + "$id": "220", "name": "templateOnly", "resourceName": "QueryParameters", "accessibility": "public", "parameters": [ { - "$id": "225", + "$id": "221", "name": "param", "nameInRequest": "param", "type": { - "$id": "226", + "$id": "222", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2307,7 +2275,7 @@ ], "responses": [ { - "$id": "227", + "$id": "223", "statusCodes": [ 204 ], @@ -2325,17 +2293,17 @@ "decorators": [] }, { - "$id": "228", + "$id": "224", "name": "explicit", "resourceName": "QueryParameters", "accessibility": "public", "parameters": [ { - "$id": "229", + "$id": "225", "name": "param", "nameInRequest": "param", "type": { - "$id": "230", + "$id": "226", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2354,7 +2322,7 @@ ], "responses": [ { - "$id": "231", + "$id": "227", "statusCodes": [ 204 ], @@ -2372,17 +2340,17 @@ "decorators": [] }, { - "$id": "232", + "$id": "228", "name": "annotationOnly", "resourceName": "QueryParameters", "accessibility": "public", "parameters": [ { - "$id": "233", + "$id": "229", "name": "param", "nameInRequest": "param", "type": { - "$id": "234", + "$id": "230", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2401,7 +2369,7 @@ ], "responses": [ { - "$id": "235", + "$id": "231", "statusCodes": [ 204 ], @@ -2419,9 +2387,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.QueryParameters", + "parameters": [ + { + "$id": "232", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "233", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "234", + "type": { + "$id": "235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters", + "apiVersions": [], "parent": { "$ref": "2" }, @@ -2431,6 +2431,7 @@ "kind": "client", "name": "QueryExpansion", "namespace": "Routes.QueryParameters.QueryExpansion", + "operations": [], "parameters": [ { "$id": "237", @@ -2463,10 +2464,9 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion", "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion", + "apiVersions": [], "parent": { "$ref": "219" }, @@ -2476,51 +2476,19 @@ "kind": "client", "name": "Standard", "namespace": "Routes.QueryParameters.QueryExpansion.Standard", - "parameters": [ - { - "$id": "242", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "243", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "244", - "type": { - "$id": "245", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "246", + "$id": "242", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "247", + "$id": "243", "name": "param", "nameInRequest": "param", "type": { - "$id": "248", + "$id": "244", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2539,7 +2507,7 @@ ], "responses": [ { - "$id": "249", + "$id": "245", "statusCodes": [ 204 ], @@ -2557,21 +2525,21 @@ "decorators": [] }, { - "$id": "250", + "$id": "246", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "251", + "$id": "247", "name": "param", "nameInRequest": "param", "type": { - "$id": "252", + "$id": "248", "kind": "array", "name": "Array", "valueType": { - "$id": "253", + "$id": "249", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2593,7 +2561,7 @@ ], "responses": [ { - "$id": "254", + "$id": "250", "statusCodes": [ 204 ], @@ -2611,27 +2579,27 @@ "decorators": [] }, { - "$id": "255", + "$id": "251", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "256", + "$id": "252", "name": "param", "nameInRequest": "param", "type": { - "$id": "257", + "$id": "253", "kind": "dict", "keyType": { - "$id": "258", + "$id": "254", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "259", + "$id": "255", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2652,7 +2620,7 @@ ], "responses": [ { - "$id": "260", + "$id": "256", "statusCodes": [ 204 ], @@ -2670,26 +2638,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard", - "decorators": [], - "parent": { - "$ref": "236" - } - }, - { - "$id": "261", - "kind": "client", - "name": "Explode", - "namespace": "Routes.QueryParameters.QueryExpansion.Explode", "parameters": [ { - "$id": "262", + "$id": "257", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "263", + "$id": "258", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2703,9 +2659,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "264", + "$id": "259", "type": { - "$id": "265", + "$id": "260", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2714,19 +2670,31 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "236" + } + }, + { + "$id": "261", + "kind": "client", + "name": "Explode", + "namespace": "Routes.QueryParameters.QueryExpansion.Explode", "operations": [ { - "$id": "266", + "$id": "262", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "267", + "$id": "263", "name": "param", "nameInRequest": "param", "type": { - "$id": "268", + "$id": "264", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2745,7 +2713,7 @@ ], "responses": [ { - "$id": "269", + "$id": "265", "statusCodes": [ 204 ], @@ -2763,21 +2731,21 @@ "decorators": [] }, { - "$id": "270", + "$id": "266", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "271", + "$id": "267", "name": "param", "nameInRequest": "param", "type": { - "$id": "272", + "$id": "268", "kind": "array", "name": "Array", "valueType": { - "$id": "273", + "$id": "269", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2799,7 +2767,7 @@ ], "responses": [ { - "$id": "274", + "$id": "270", "statusCodes": [ 204 ], @@ -2817,27 +2785,27 @@ "decorators": [] }, { - "$id": "275", + "$id": "271", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "276", + "$id": "272", "name": "param", "nameInRequest": "param", "type": { - "$id": "277", + "$id": "273", "kind": "dict", "keyType": { - "$id": "278", + "$id": "274", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "279", + "$id": "275", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2858,7 +2826,7 @@ ], "responses": [ { - "$id": "280", + "$id": "276", "statusCodes": [ 204 ], @@ -2876,9 +2844,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode", + "parameters": [ + { + "$id": "277", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "278", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "279", + "type": { + "$id": "280", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode", + "apiVersions": [], "parent": { "$ref": "236" } @@ -2890,6 +2890,7 @@ "kind": "client", "name": "QueryContinuation", "namespace": "Routes.QueryParameters.QueryContinuation", + "operations": [], "parameters": [ { "$id": "282", @@ -2922,10 +2923,9 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation", "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation", + "apiVersions": [], "parent": { "$ref": "219" }, @@ -2935,51 +2935,19 @@ "kind": "client", "name": "Standard", "namespace": "Routes.QueryParameters.QueryContinuation.Standard", - "parameters": [ - { - "$id": "287", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "288", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "289", - "type": { - "$id": "290", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "291", + "$id": "287", "name": "primitive", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "292", + "$id": "288", "name": "param", "nameInRequest": "param", "type": { - "$id": "293", + "$id": "289", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2998,7 +2966,7 @@ ], "responses": [ { - "$id": "294", + "$id": "290", "statusCodes": [ 204 ], @@ -3016,21 +2984,21 @@ "decorators": [] }, { - "$id": "295", + "$id": "291", "name": "array", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "296", + "$id": "292", "name": "param", "nameInRequest": "param", "type": { - "$id": "297", + "$id": "293", "kind": "array", "name": "Array", "valueType": { - "$id": "298", + "$id": "294", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3052,7 +3020,7 @@ ], "responses": [ { - "$id": "299", + "$id": "295", "statusCodes": [ 204 ], @@ -3070,27 +3038,27 @@ "decorators": [] }, { - "$id": "300", + "$id": "296", "name": "record", "resourceName": "Standard", "accessibility": "public", "parameters": [ { - "$id": "301", + "$id": "297", "name": "param", "nameInRequest": "param", "type": { - "$id": "302", + "$id": "298", "kind": "dict", "keyType": { - "$id": "303", + "$id": "299", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "304", + "$id": "300", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3111,7 +3079,7 @@ ], "responses": [ { - "$id": "305", + "$id": "301", "statusCodes": [ 204 ], @@ -3129,26 +3097,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard", - "decorators": [], - "parent": { - "$ref": "281" - } - }, - { - "$id": "306", - "kind": "client", - "name": "Explode", - "namespace": "Routes.QueryParameters.QueryContinuation.Explode", "parameters": [ { - "$id": "307", + "$id": "302", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "308", + "$id": "303", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3162,9 +3118,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "309", + "$id": "304", "type": { - "$id": "310", + "$id": "305", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3173,19 +3129,31 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard", + "apiVersions": [], + "parent": { + "$ref": "281" + } + }, + { + "$id": "306", + "kind": "client", + "name": "Explode", + "namespace": "Routes.QueryParameters.QueryContinuation.Explode", "operations": [ { - "$id": "311", + "$id": "307", "name": "primitive", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "312", + "$id": "308", "name": "param", "nameInRequest": "param", "type": { - "$id": "313", + "$id": "309", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3204,7 +3172,7 @@ ], "responses": [ { - "$id": "314", + "$id": "310", "statusCodes": [ 204 ], @@ -3222,21 +3190,21 @@ "decorators": [] }, { - "$id": "315", + "$id": "311", "name": "array", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "316", + "$id": "312", "name": "param", "nameInRequest": "param", "type": { - "$id": "317", + "$id": "313", "kind": "array", "name": "Array", "valueType": { - "$id": "318", + "$id": "314", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3258,7 +3226,7 @@ ], "responses": [ { - "$id": "319", + "$id": "315", "statusCodes": [ 204 ], @@ -3276,27 +3244,27 @@ "decorators": [] }, { - "$id": "320", + "$id": "316", "name": "record", "resourceName": "Explode", "accessibility": "public", "parameters": [ { - "$id": "321", + "$id": "317", "name": "param", "nameInRequest": "param", "type": { - "$id": "322", + "$id": "318", "kind": "dict", "keyType": { - "$id": "323", + "$id": "319", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "324", + "$id": "320", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3317,7 +3285,7 @@ ], "responses": [ { - "$id": "325", + "$id": "321", "statusCodes": [ 204 ], @@ -3335,9 +3303,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode", + "parameters": [ + { + "$id": "322", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "323", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "324", + "type": { + "$id": "325", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode", + "apiVersions": [], "parent": { "$ref": "281" } @@ -3351,14 +3351,41 @@ "kind": "client", "name": "InInterface", "namespace": "Routes", - "parameters": [ + "operations": [ { "$id": "327", + "name": "fixed", + "resourceName": "InInterface", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "328", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/in-interface/fixed", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.InInterface.fixed", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "329", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "328", + "$id": "330", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3372,9 +3399,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "329", + "$id": "331", "type": { - "$id": "330", + "$id": "332", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3383,36 +3410,9 @@ } } ], - "operations": [ - { - "$id": "331", - "name": "fixed", - "resourceName": "InInterface", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "332", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/in-interface/fixed", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.InInterface.fixed", - "decorators": [] - } - ], - "apiVersions": [], - "crossLanguageDefinitionId": "Routes.InInterface", "decorators": [], + "crossLanguageDefinitionId": "Routes.InInterface", + "apiVersions": [], "parent": { "$ref": "2" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json index 78c0109ce87..0f96c5c78cf 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json @@ -50,6 +50,7 @@ "name": "JsonClient", "namespace": "Serialization.EncodedName.Json", "doc": "Encoded names", + "operations": [], "parameters": [ { "$id": "8", @@ -82,65 +83,32 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Serialization.EncodedName.Json", "decorators": [], + "crossLanguageDefinitionId": "Serialization.EncodedName.Json", + "apiVersions": [], "children": [ { "$id": "12", "kind": "client", "name": "Property", "namespace": "Serialization.EncodedName.Json.Property", - "parameters": [ - { - "$id": "13", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "14", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "15", - "type": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "17", + "$id": "13", "name": "send", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "18", + "$id": "14", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "19", + "$id": "15", "kind": "constant", "valueType": { - "$id": "20", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -160,7 +128,7 @@ "skipUrlEncoding": false }, { - "$id": "21", + "$id": "17", "name": "body", "nameInRequest": "body", "type": { @@ -179,7 +147,7 @@ ], "responses": [ { - "$id": "22", + "$id": "18", "statusCodes": [ 204 ], @@ -200,20 +168,20 @@ "decorators": [] }, { - "$id": "23", + "$id": "19", "name": "get", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "24", + "$id": "20", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "25", + "$id": "21", "kind": "constant", "valueType": { - "$id": "26", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -235,7 +203,7 @@ ], "responses": [ { - "$id": "27", + "$id": "23", "statusCodes": [ 200 ], @@ -259,9 +227,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property", + "parameters": [ + { + "$id": "24", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "25", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "26", + "type": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property", + "apiVersions": [], "parent": { "$ref": "7" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json index 752bbc9fe2a..f99fa2c365f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json @@ -11,38 +11,16 @@ "name": "NotDefinedClient", "namespace": "Server.Endpoint.NotDefined", "doc": "Illustrates server doesn't define endpoint. Client should automatically add an endpoint to let user pass in.", - "parameters": [ - { - "$id": "3", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "4", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "5", + "$id": "3", "name": "valid", "resourceName": "NotDefined", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "6", + "$id": "4", "statusCodes": [ 200 ], @@ -60,9 +38,31 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "5", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "6", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], "crossLanguageDefinitionId": "Server.Endpoint.NotDefined", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json index c1cf4970288..bbcd225177c 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json @@ -52,65 +52,16 @@ "kind": "client", "name": "MultipleClient", "namespace": "Server.Path.Multiple", - "parameters": [ - { - "$id": "7", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Pass in http://localhost:3000 for endpoint.", - "type": { - "$id": "8", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "9", - "name": "apiVersion", - "nameInRequest": "apiVersion", - "doc": "Pass in v1.0 for API version.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": true, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "10", - "type": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "v1.0" - } - } - ], "operations": [ { - "$id": "12", + "$id": "7", "name": "noOperationParams", "resourceName": "Multiple", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "13", + "$id": "8", "statusCodes": [ 204 ], @@ -128,17 +79,17 @@ "decorators": [] }, { - "$id": "14", + "$id": "9", "name": "withOperationPathParam", "resourceName": "Multiple", "accessibility": "public", "parameters": [ { - "$id": "15", + "$id": "10", "name": "keyword", "nameInRequest": "keyword", "type": { - "$id": "16", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -157,7 +108,7 @@ ], "responses": [ { - "$id": "17", + "$id": "12", "statusCodes": [ 204 ], @@ -175,11 +126,60 @@ "decorators": [] } ], - "apiVersions": [ - "v1.0" + "parameters": [ + { + "$id": "13", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Pass in http://localhost:3000 for endpoint.", + "type": { + "$id": "14", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "15", + "name": "apiVersion", + "nameInRequest": "apiVersion", + "doc": "Pass in v1.0 for API version.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": true, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "16", + "type": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "v1.0" + } + } ], + "decorators": [], "crossLanguageDefinitionId": "Server.Path.Multiple", - "decorators": [] + "apiVersions": [ + "v1.0" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json index 4b1b637c1bd..00c99216b7f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json @@ -11,38 +11,16 @@ "name": "SingleClient", "namespace": "Server.Path.Single", "doc": "Illustrates server with a single path parameter @server", - "parameters": [ - { - "$id": "3", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "4", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "5", + "$id": "3", "name": "myOp", "resourceName": "Single", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "6", + "$id": "4", "statusCodes": [ 200 ], @@ -60,9 +38,31 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "5", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "6", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], "crossLanguageDefinitionId": "Server.Path.Single", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json index 545cfefcda9..10141179518 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json @@ -11,38 +11,16 @@ "name": "NotVersionedClient", "namespace": "Server.Versions.NotVersioned", "doc": "Illustrates not-versioned server.", - "parameters": [ - { - "$id": "3", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "4", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "5", + "$id": "3", "name": "withoutApiVersion", "resourceName": "NotVersioned", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "6", + "$id": "4", "statusCodes": [ 200 ], @@ -60,17 +38,17 @@ "decorators": [] }, { - "$id": "7", + "$id": "5", "name": "withQueryApiVersion", "resourceName": "NotVersioned", "accessibility": "public", "parameters": [ { - "$id": "8", + "$id": "6", "name": "apiVersion", "nameInRequest": "api-version", "type": { - "$id": "9", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -89,7 +67,7 @@ ], "responses": [ { - "$id": "10", + "$id": "8", "statusCodes": [ 200 ], @@ -107,17 +85,17 @@ "decorators": [] }, { - "$id": "11", + "$id": "9", "name": "withPathApiVersion", "resourceName": "NotVersioned", "accessibility": "public", "parameters": [ { - "$id": "12", + "$id": "10", "name": "apiVersion", "nameInRequest": "apiVersion", "type": { - "$id": "13", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -136,7 +114,7 @@ ], "responses": [ { - "$id": "14", + "$id": "12", "statusCodes": [ 200 ], @@ -154,9 +132,31 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "13", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "14", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], "crossLanguageDefinitionId": "Server.Versions.NotVersioned", - "decorators": [] + "apiVersions": [] } ] } 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 1a265efc9dc..e4ec29413e5 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 @@ -72,38 +72,16 @@ "name": "VersionedClient", "namespace": "Server.Versions.Versioned", "doc": "Illustrates versioned server.", - "parameters": [ - { - "$id": "9", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "10", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "11", + "$id": "9", "name": "withoutApiVersion", "resourceName": "Versioned", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "12", + "$id": "10", "statusCodes": [ 200 ], @@ -121,17 +99,17 @@ "decorators": [] }, { - "$id": "13", + "$id": "11", "name": "withQueryApiVersion", "resourceName": "Versioned", "accessibility": "public", "parameters": [ { - "$id": "14", + "$id": "12", "name": "apiVersion", "nameInRequest": "api-version", "type": { - "$id": "15", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -145,9 +123,9 @@ "isRequired": true, "kind": "Client", "defaultValue": { - "$id": "16", + "$id": "14", "type": { - "$id": "17", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -160,7 +138,7 @@ ], "responses": [ { - "$id": "18", + "$id": "16", "statusCodes": [ 200 ], @@ -178,17 +156,17 @@ "decorators": [] }, { - "$id": "19", + "$id": "17", "name": "withPathApiVersion", "resourceName": "Versioned", "accessibility": "public", "parameters": [ { - "$id": "20", + "$id": "18", "name": "apiVersion", "nameInRequest": "apiVersion", "type": { - "$id": "21", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -202,9 +180,9 @@ "isRequired": true, "kind": "Client", "defaultValue": { - "$id": "22", + "$id": "20", "type": { - "$id": "23", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -217,7 +195,7 @@ ], "responses": [ { - "$id": "24", + "$id": "22", "statusCodes": [ 200 ], @@ -235,17 +213,17 @@ "decorators": [] }, { - "$id": "25", + "$id": "23", "name": "withQueryOldApiVersion", "resourceName": "Versioned", "accessibility": "public", "parameters": [ { - "$id": "26", + "$id": "24", "name": "apiVersion", "nameInRequest": "api-version", "type": { - "$id": "27", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -259,9 +237,9 @@ "isRequired": true, "kind": "Client", "defaultValue": { - "$id": "28", + "$id": "26", "type": { - "$id": "29", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -274,7 +252,7 @@ ], "responses": [ { - "$id": "30", + "$id": "28", "statusCodes": [ 200 ], @@ -292,12 +270,34 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "29", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "30", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Server.Versions.Versioned", "apiVersions": [ "2021-01-01-preview", "2022-12-01-preview" - ], - "crossLanguageDefinitionId": "Server.Versions.Versioned", - "decorators": [] + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json index e87f1fa79df..a43ea8f56a4 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json @@ -11,53 +11,21 @@ "name": "ConditionalRequestClient", "namespace": "SpecialHeaders.ConditionalRequest", "doc": "Illustrates conditional request headers", - "parameters": [ - { - "$id": "3", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "4", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "5", - "type": { - "$id": "6", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "7", + "$id": "3", "name": "postIfMatch", "resourceName": "ConditionalRequest", "doc": "Check when only If-Match in header is defined.", "accessibility": "public", "parameters": [ { - "$id": "8", + "$id": "4", "name": "ifMatch", "nameInRequest": "If-Match", "doc": "The request should only proceed if an entity matches this string.", "type": { - "$id": "9", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -76,7 +44,7 @@ ], "responses": [ { - "$id": "10", + "$id": "6", "statusCodes": [ 204 ], @@ -94,19 +62,19 @@ "decorators": [] }, { - "$id": "11", + "$id": "7", "name": "postIfNoneMatch", "resourceName": "ConditionalRequest", "doc": "Check when only If-None-Match in header is defined.", "accessibility": "public", "parameters": [ { - "$id": "12", + "$id": "8", "name": "ifNoneMatch", "nameInRequest": "If-None-Match", "doc": "The request should only proceed if no entity matches this string.", "type": { - "$id": "13", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -125,7 +93,7 @@ ], "responses": [ { - "$id": "14", + "$id": "10", "statusCodes": [ 204 ], @@ -143,24 +111,24 @@ "decorators": [] }, { - "$id": "15", + "$id": "11", "name": "headIfModifiedSince", "resourceName": "ConditionalRequest", "doc": "Check when only If-Modified-Since in header is defined.", "accessibility": "public", "parameters": [ { - "$id": "16", + "$id": "12", "name": "ifModifiedSince", "nameInRequest": "If-Modified-Since", "doc": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", "type": { - "$id": "17", + "$id": "13", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "18", + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -182,7 +150,7 @@ ], "responses": [ { - "$id": "19", + "$id": "15", "statusCodes": [ 204 ], @@ -200,24 +168,24 @@ "decorators": [] }, { - "$id": "20", + "$id": "16", "name": "postIfUnmodifiedSince", "resourceName": "ConditionalRequest", "doc": "Check when only If-Unmodified-Since in header is defined.", "accessibility": "public", "parameters": [ { - "$id": "21", + "$id": "17", "name": "ifUnmodifiedSince", "nameInRequest": "If-Unmodified-Since", "doc": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", "type": { - "$id": "22", + "$id": "18", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "23", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -239,7 +207,7 @@ ], "responses": [ { - "$id": "24", + "$id": "20", "statusCodes": [ 204 ], @@ -257,9 +225,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "21", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "22", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "23", + "type": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json index 55ebc25f4a6..2a92de609df 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json @@ -66,52 +66,20 @@ "name": "RepeatabilityClient", "namespace": "SpecialHeaders.Repeatability", "doc": "Illustrates OASIS repeatability headers", - "parameters": [ - { - "$id": "9", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "10", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "11", - "type": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "13", + "$id": "9", "name": "immediateSuccess", "resourceName": "Repeatability", "doc": "Check we recognize Repeatability-Request-ID and Repeatability-First-Sent.", "accessibility": "public", "parameters": [ { - "$id": "14", + "$id": "10", "name": "repeatabilityRequestID", "nameInRequest": "Repeatability-Request-ID", "type": { - "$id": "15", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -128,16 +96,16 @@ "skipUrlEncoding": false }, { - "$id": "16", + "$id": "12", "name": "repeatabilityFirstSent", "nameInRequest": "Repeatability-First-Sent", "type": { - "$id": "17", + "$id": "13", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "18", + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -159,13 +127,13 @@ ], "responses": [ { - "$id": "19", + "$id": "15", "statusCodes": [ 204 ], "headers": [ { - "$id": "20", + "$id": "16", "name": "repeatabilityResult", "nameInResponse": "Repeatability-Result", "doc": "Indicates whether the repeatable request was accepted or rejected.", @@ -187,9 +155,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "17", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "18", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "19", + "type": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "SpecialHeaders.Repeatability", - "decorators": [] + "apiVersions": [] } ] } 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 5f25dc908ab..47a770fa70b 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 @@ -1270,6 +1270,7 @@ "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```", + "operations": [], "parameters": [ { "$id": "173", @@ -1302,10 +1303,9 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "SpecialWords", "decorators": [], + "crossLanguageDefinitionId": "SpecialWords", + "apiVersions": [], "children": [ { "$id": "177", @@ -1313,55 +1313,23 @@ "name": "Models", "namespace": "SpecialWords.Models", "doc": "Verify model names", - "parameters": [ - { - "$id": "178", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "179", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "180", - "type": { - "$id": "181", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "182", + "$id": "178", "name": "withAnd", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "183", + "$id": "179", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "184", + "$id": "180", "kind": "constant", "valueType": { - "$id": "185", + "$id": "181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1381,7 +1349,7 @@ "skipUrlEncoding": false }, { - "$id": "186", + "$id": "182", "name": "body", "nameInRequest": "body", "type": { @@ -1400,7 +1368,7 @@ ], "responses": [ { - "$id": "187", + "$id": "183", "statusCodes": [ 204 ], @@ -1421,21 +1389,21 @@ "decorators": [] }, { - "$id": "188", + "$id": "184", "name": "withAs", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "189", + "$id": "185", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "190", + "$id": "186", "kind": "constant", "valueType": { - "$id": "191", + "$id": "187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1455,7 +1423,7 @@ "skipUrlEncoding": false }, { - "$id": "192", + "$id": "188", "name": "body", "nameInRequest": "body", "type": { @@ -1474,7 +1442,7 @@ ], "responses": [ { - "$id": "193", + "$id": "189", "statusCodes": [ 204 ], @@ -1495,21 +1463,21 @@ "decorators": [] }, { - "$id": "194", + "$id": "190", "name": "withAssert", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "195", + "$id": "191", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "196", + "$id": "192", "kind": "constant", "valueType": { - "$id": "197", + "$id": "193", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1529,7 +1497,7 @@ "skipUrlEncoding": false }, { - "$id": "198", + "$id": "194", "name": "body", "nameInRequest": "body", "type": { @@ -1548,7 +1516,7 @@ ], "responses": [ { - "$id": "199", + "$id": "195", "statusCodes": [ 204 ], @@ -1569,21 +1537,21 @@ "decorators": [] }, { - "$id": "200", + "$id": "196", "name": "withAsync", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "201", + "$id": "197", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "202", + "$id": "198", "kind": "constant", "valueType": { - "$id": "203", + "$id": "199", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1603,7 +1571,7 @@ "skipUrlEncoding": false }, { - "$id": "204", + "$id": "200", "name": "body", "nameInRequest": "body", "type": { @@ -1622,7 +1590,7 @@ ], "responses": [ { - "$id": "205", + "$id": "201", "statusCodes": [ 204 ], @@ -1643,21 +1611,21 @@ "decorators": [] }, { - "$id": "206", + "$id": "202", "name": "withAwait", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "207", + "$id": "203", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "208", + "$id": "204", "kind": "constant", "valueType": { - "$id": "209", + "$id": "205", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1677,7 +1645,7 @@ "skipUrlEncoding": false }, { - "$id": "210", + "$id": "206", "name": "body", "nameInRequest": "body", "type": { @@ -1696,7 +1664,7 @@ ], "responses": [ { - "$id": "211", + "$id": "207", "statusCodes": [ 204 ], @@ -1717,21 +1685,21 @@ "decorators": [] }, { - "$id": "212", + "$id": "208", "name": "withBreak", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "213", + "$id": "209", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "214", + "$id": "210", "kind": "constant", "valueType": { - "$id": "215", + "$id": "211", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1751,7 +1719,7 @@ "skipUrlEncoding": false }, { - "$id": "216", + "$id": "212", "name": "body", "nameInRequest": "body", "type": { @@ -1770,7 +1738,7 @@ ], "responses": [ { - "$id": "217", + "$id": "213", "statusCodes": [ 204 ], @@ -1791,21 +1759,21 @@ "decorators": [] }, { - "$id": "218", + "$id": "214", "name": "withClass", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "219", + "$id": "215", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "220", + "$id": "216", "kind": "constant", "valueType": { - "$id": "221", + "$id": "217", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1825,7 +1793,7 @@ "skipUrlEncoding": false }, { - "$id": "222", + "$id": "218", "name": "body", "nameInRequest": "body", "type": { @@ -1844,7 +1812,7 @@ ], "responses": [ { - "$id": "223", + "$id": "219", "statusCodes": [ 204 ], @@ -1865,21 +1833,21 @@ "decorators": [] }, { - "$id": "224", + "$id": "220", "name": "withConstructor", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "225", + "$id": "221", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "226", + "$id": "222", "kind": "constant", "valueType": { - "$id": "227", + "$id": "223", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1899,7 +1867,7 @@ "skipUrlEncoding": false }, { - "$id": "228", + "$id": "224", "name": "body", "nameInRequest": "body", "type": { @@ -1918,7 +1886,7 @@ ], "responses": [ { - "$id": "229", + "$id": "225", "statusCodes": [ 204 ], @@ -1939,21 +1907,21 @@ "decorators": [] }, { - "$id": "230", + "$id": "226", "name": "withContinue", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "231", + "$id": "227", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "232", + "$id": "228", "kind": "constant", "valueType": { - "$id": "233", + "$id": "229", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1973,7 +1941,7 @@ "skipUrlEncoding": false }, { - "$id": "234", + "$id": "230", "name": "body", "nameInRequest": "body", "type": { @@ -1992,7 +1960,7 @@ ], "responses": [ { - "$id": "235", + "$id": "231", "statusCodes": [ 204 ], @@ -2013,21 +1981,21 @@ "decorators": [] }, { - "$id": "236", + "$id": "232", "name": "withDef", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "237", + "$id": "233", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "238", + "$id": "234", "kind": "constant", "valueType": { - "$id": "239", + "$id": "235", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2047,7 +2015,7 @@ "skipUrlEncoding": false }, { - "$id": "240", + "$id": "236", "name": "body", "nameInRequest": "body", "type": { @@ -2066,7 +2034,7 @@ ], "responses": [ { - "$id": "241", + "$id": "237", "statusCodes": [ 204 ], @@ -2087,21 +2055,21 @@ "decorators": [] }, { - "$id": "242", + "$id": "238", "name": "withDel", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "243", + "$id": "239", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "244", + "$id": "240", "kind": "constant", "valueType": { - "$id": "245", + "$id": "241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2121,7 +2089,7 @@ "skipUrlEncoding": false }, { - "$id": "246", + "$id": "242", "name": "body", "nameInRequest": "body", "type": { @@ -2140,7 +2108,7 @@ ], "responses": [ { - "$id": "247", + "$id": "243", "statusCodes": [ 204 ], @@ -2161,21 +2129,21 @@ "decorators": [] }, { - "$id": "248", + "$id": "244", "name": "withElif", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "249", + "$id": "245", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "250", + "$id": "246", "kind": "constant", "valueType": { - "$id": "251", + "$id": "247", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2195,7 +2163,7 @@ "skipUrlEncoding": false }, { - "$id": "252", + "$id": "248", "name": "body", "nameInRequest": "body", "type": { @@ -2214,7 +2182,7 @@ ], "responses": [ { - "$id": "253", + "$id": "249", "statusCodes": [ 204 ], @@ -2235,21 +2203,21 @@ "decorators": [] }, { - "$id": "254", + "$id": "250", "name": "withElse", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "255", + "$id": "251", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "256", + "$id": "252", "kind": "constant", "valueType": { - "$id": "257", + "$id": "253", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2269,7 +2237,7 @@ "skipUrlEncoding": false }, { - "$id": "258", + "$id": "254", "name": "body", "nameInRequest": "body", "type": { @@ -2288,7 +2256,7 @@ ], "responses": [ { - "$id": "259", + "$id": "255", "statusCodes": [ 204 ], @@ -2309,21 +2277,21 @@ "decorators": [] }, { - "$id": "260", + "$id": "256", "name": "withExcept", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "261", + "$id": "257", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "262", + "$id": "258", "kind": "constant", "valueType": { - "$id": "263", + "$id": "259", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2343,7 +2311,7 @@ "skipUrlEncoding": false }, { - "$id": "264", + "$id": "260", "name": "body", "nameInRequest": "body", "type": { @@ -2362,7 +2330,7 @@ ], "responses": [ { - "$id": "265", + "$id": "261", "statusCodes": [ 204 ], @@ -2383,21 +2351,21 @@ "decorators": [] }, { - "$id": "266", + "$id": "262", "name": "withExec", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "267", + "$id": "263", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "268", + "$id": "264", "kind": "constant", "valueType": { - "$id": "269", + "$id": "265", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2417,7 +2385,7 @@ "skipUrlEncoding": false }, { - "$id": "270", + "$id": "266", "name": "body", "nameInRequest": "body", "type": { @@ -2436,7 +2404,7 @@ ], "responses": [ { - "$id": "271", + "$id": "267", "statusCodes": [ 204 ], @@ -2457,21 +2425,21 @@ "decorators": [] }, { - "$id": "272", + "$id": "268", "name": "withFinally", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "273", + "$id": "269", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "274", + "$id": "270", "kind": "constant", "valueType": { - "$id": "275", + "$id": "271", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2491,7 +2459,7 @@ "skipUrlEncoding": false }, { - "$id": "276", + "$id": "272", "name": "body", "nameInRequest": "body", "type": { @@ -2510,7 +2478,7 @@ ], "responses": [ { - "$id": "277", + "$id": "273", "statusCodes": [ 204 ], @@ -2531,21 +2499,21 @@ "decorators": [] }, { - "$id": "278", + "$id": "274", "name": "withFor", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "279", + "$id": "275", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "280", + "$id": "276", "kind": "constant", "valueType": { - "$id": "281", + "$id": "277", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2565,7 +2533,7 @@ "skipUrlEncoding": false }, { - "$id": "282", + "$id": "278", "name": "body", "nameInRequest": "body", "type": { @@ -2584,7 +2552,7 @@ ], "responses": [ { - "$id": "283", + "$id": "279", "statusCodes": [ 204 ], @@ -2605,21 +2573,21 @@ "decorators": [] }, { - "$id": "284", + "$id": "280", "name": "withFrom", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "285", + "$id": "281", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "286", + "$id": "282", "kind": "constant", "valueType": { - "$id": "287", + "$id": "283", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2639,7 +2607,7 @@ "skipUrlEncoding": false }, { - "$id": "288", + "$id": "284", "name": "body", "nameInRequest": "body", "type": { @@ -2658,7 +2626,7 @@ ], "responses": [ { - "$id": "289", + "$id": "285", "statusCodes": [ 204 ], @@ -2679,21 +2647,21 @@ "decorators": [] }, { - "$id": "290", + "$id": "286", "name": "withGlobal", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "291", + "$id": "287", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "292", + "$id": "288", "kind": "constant", "valueType": { - "$id": "293", + "$id": "289", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2713,7 +2681,7 @@ "skipUrlEncoding": false }, { - "$id": "294", + "$id": "290", "name": "body", "nameInRequest": "body", "type": { @@ -2732,7 +2700,7 @@ ], "responses": [ { - "$id": "295", + "$id": "291", "statusCodes": [ 204 ], @@ -2753,21 +2721,21 @@ "decorators": [] }, { - "$id": "296", + "$id": "292", "name": "withIf", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "297", + "$id": "293", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "298", + "$id": "294", "kind": "constant", "valueType": { - "$id": "299", + "$id": "295", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2787,7 +2755,7 @@ "skipUrlEncoding": false }, { - "$id": "300", + "$id": "296", "name": "body", "nameInRequest": "body", "type": { @@ -2806,7 +2774,7 @@ ], "responses": [ { - "$id": "301", + "$id": "297", "statusCodes": [ 204 ], @@ -2827,21 +2795,21 @@ "decorators": [] }, { - "$id": "302", + "$id": "298", "name": "withImport", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "303", + "$id": "299", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "304", + "$id": "300", "kind": "constant", "valueType": { - "$id": "305", + "$id": "301", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2861,7 +2829,7 @@ "skipUrlEncoding": false }, { - "$id": "306", + "$id": "302", "name": "body", "nameInRequest": "body", "type": { @@ -2880,7 +2848,7 @@ ], "responses": [ { - "$id": "307", + "$id": "303", "statusCodes": [ 204 ], @@ -2901,21 +2869,21 @@ "decorators": [] }, { - "$id": "308", + "$id": "304", "name": "withIn", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "309", + "$id": "305", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "310", + "$id": "306", "kind": "constant", "valueType": { - "$id": "311", + "$id": "307", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2935,7 +2903,7 @@ "skipUrlEncoding": false }, { - "$id": "312", + "$id": "308", "name": "body", "nameInRequest": "body", "type": { @@ -2954,7 +2922,7 @@ ], "responses": [ { - "$id": "313", + "$id": "309", "statusCodes": [ 204 ], @@ -2975,21 +2943,21 @@ "decorators": [] }, { - "$id": "314", + "$id": "310", "name": "withIs", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "315", + "$id": "311", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "316", + "$id": "312", "kind": "constant", "valueType": { - "$id": "317", + "$id": "313", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3009,7 +2977,7 @@ "skipUrlEncoding": false }, { - "$id": "318", + "$id": "314", "name": "body", "nameInRequest": "body", "type": { @@ -3028,7 +2996,7 @@ ], "responses": [ { - "$id": "319", + "$id": "315", "statusCodes": [ 204 ], @@ -3049,21 +3017,21 @@ "decorators": [] }, { - "$id": "320", + "$id": "316", "name": "withLambda", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "321", + "$id": "317", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "322", + "$id": "318", "kind": "constant", "valueType": { - "$id": "323", + "$id": "319", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3083,7 +3051,7 @@ "skipUrlEncoding": false }, { - "$id": "324", + "$id": "320", "name": "body", "nameInRequest": "body", "type": { @@ -3102,7 +3070,7 @@ ], "responses": [ { - "$id": "325", + "$id": "321", "statusCodes": [ 204 ], @@ -3123,21 +3091,21 @@ "decorators": [] }, { - "$id": "326", + "$id": "322", "name": "withNot", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "327", + "$id": "323", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "328", + "$id": "324", "kind": "constant", "valueType": { - "$id": "329", + "$id": "325", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3157,7 +3125,7 @@ "skipUrlEncoding": false }, { - "$id": "330", + "$id": "326", "name": "body", "nameInRequest": "body", "type": { @@ -3176,7 +3144,7 @@ ], "responses": [ { - "$id": "331", + "$id": "327", "statusCodes": [ 204 ], @@ -3197,21 +3165,21 @@ "decorators": [] }, { - "$id": "332", + "$id": "328", "name": "withOr", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "333", + "$id": "329", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "334", + "$id": "330", "kind": "constant", "valueType": { - "$id": "335", + "$id": "331", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3231,7 +3199,7 @@ "skipUrlEncoding": false }, { - "$id": "336", + "$id": "332", "name": "body", "nameInRequest": "body", "type": { @@ -3250,7 +3218,7 @@ ], "responses": [ { - "$id": "337", + "$id": "333", "statusCodes": [ 204 ], @@ -3271,21 +3239,21 @@ "decorators": [] }, { - "$id": "338", + "$id": "334", "name": "withPass", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "339", + "$id": "335", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "340", + "$id": "336", "kind": "constant", "valueType": { - "$id": "341", + "$id": "337", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3305,7 +3273,7 @@ "skipUrlEncoding": false }, { - "$id": "342", + "$id": "338", "name": "body", "nameInRequest": "body", "type": { @@ -3324,7 +3292,7 @@ ], "responses": [ { - "$id": "343", + "$id": "339", "statusCodes": [ 204 ], @@ -3345,21 +3313,21 @@ "decorators": [] }, { - "$id": "344", + "$id": "340", "name": "withRaise", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "345", + "$id": "341", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "346", + "$id": "342", "kind": "constant", "valueType": { - "$id": "347", + "$id": "343", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3379,7 +3347,7 @@ "skipUrlEncoding": false }, { - "$id": "348", + "$id": "344", "name": "body", "nameInRequest": "body", "type": { @@ -3398,7 +3366,7 @@ ], "responses": [ { - "$id": "349", + "$id": "345", "statusCodes": [ 204 ], @@ -3419,21 +3387,21 @@ "decorators": [] }, { - "$id": "350", + "$id": "346", "name": "withReturn", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "351", + "$id": "347", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "352", + "$id": "348", "kind": "constant", "valueType": { - "$id": "353", + "$id": "349", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3453,7 +3421,7 @@ "skipUrlEncoding": false }, { - "$id": "354", + "$id": "350", "name": "body", "nameInRequest": "body", "type": { @@ -3472,7 +3440,7 @@ ], "responses": [ { - "$id": "355", + "$id": "351", "statusCodes": [ 204 ], @@ -3493,21 +3461,21 @@ "decorators": [] }, { - "$id": "356", + "$id": "352", "name": "withTry", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "357", + "$id": "353", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "358", + "$id": "354", "kind": "constant", "valueType": { - "$id": "359", + "$id": "355", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3527,7 +3495,7 @@ "skipUrlEncoding": false }, { - "$id": "360", + "$id": "356", "name": "body", "nameInRequest": "body", "type": { @@ -3546,7 +3514,7 @@ ], "responses": [ { - "$id": "361", + "$id": "357", "statusCodes": [ 204 ], @@ -3567,21 +3535,21 @@ "decorators": [] }, { - "$id": "362", + "$id": "358", "name": "withWhile", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "363", + "$id": "359", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "364", + "$id": "360", "kind": "constant", "valueType": { - "$id": "365", + "$id": "361", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3601,7 +3569,7 @@ "skipUrlEncoding": false }, { - "$id": "366", + "$id": "362", "name": "body", "nameInRequest": "body", "type": { @@ -3620,7 +3588,7 @@ ], "responses": [ { - "$id": "367", + "$id": "363", "statusCodes": [ 204 ], @@ -3641,21 +3609,21 @@ "decorators": [] }, { - "$id": "368", + "$id": "364", "name": "withWith", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "369", + "$id": "365", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "370", + "$id": "366", "kind": "constant", "valueType": { - "$id": "371", + "$id": "367", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3675,7 +3643,7 @@ "skipUrlEncoding": false }, { - "$id": "372", + "$id": "368", "name": "body", "nameInRequest": "body", "type": { @@ -3694,7 +3662,7 @@ ], "responses": [ { - "$id": "373", + "$id": "369", "statusCodes": [ 204 ], @@ -3715,21 +3683,21 @@ "decorators": [] }, { - "$id": "374", + "$id": "370", "name": "withYield", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "375", + "$id": "371", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "376", + "$id": "372", "kind": "constant", "valueType": { - "$id": "377", + "$id": "373", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3749,7 +3717,7 @@ "skipUrlEncoding": false }, { - "$id": "378", + "$id": "374", "name": "body", "nameInRequest": "body", "type": { @@ -3768,7 +3736,7 @@ ], "responses": [ { - "$id": "379", + "$id": "375", "statusCodes": [ 204 ], @@ -3789,27 +3757,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "SpecialWords.Models", - "decorators": [], - "parent": { - "$ref": "172" - } - }, - { - "$id": "380", - "kind": "client", - "name": "ModelProperties", - "namespace": "SpecialWords.ModelProperties", - "doc": "Verify model names", "parameters": [ { - "$id": "381", + "$id": "376", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "382", + "$id": "377", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3823,9 +3778,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "383", + "$id": "378", "type": { - "$id": "384", + "$id": "379", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3834,23 +3789,36 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.Models", + "apiVersions": [], + "parent": { + "$ref": "172" + } + }, + { + "$id": "380", + "kind": "client", + "name": "ModelProperties", + "namespace": "SpecialWords.ModelProperties", + "doc": "Verify model names", "operations": [ { - "$id": "385", + "$id": "381", "name": "sameAsModel", "resourceName": "ModelProperties", "accessibility": "public", "parameters": [ { - "$id": "386", + "$id": "382", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "387", + "$id": "383", "kind": "constant", "valueType": { - "$id": "388", + "$id": "384", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3870,7 +3838,7 @@ "skipUrlEncoding": false }, { - "$id": "389", + "$id": "385", "name": "body", "nameInRequest": "body", "type": { @@ -3889,7 +3857,7 @@ ], "responses": [ { - "$id": "390", + "$id": "386", "statusCodes": [ 204 ], @@ -3910,27 +3878,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "SpecialWords.ModelProperties", - "decorators": [], - "parent": { - "$ref": "172" - } - }, - { - "$id": "391", - "kind": "client", - "name": "Operations", - "namespace": "SpecialWords", - "doc": "Test reserved words as operation name.", "parameters": [ { - "$id": "392", + "$id": "387", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "393", + "$id": "388", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3944,9 +3899,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "394", + "$id": "389", "type": { - "$id": "395", + "$id": "390", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3955,16 +3910,29 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.ModelProperties", + "apiVersions": [], + "parent": { + "$ref": "172" + } + }, + { + "$id": "391", + "kind": "client", + "name": "Operations", + "namespace": "SpecialWords", + "doc": "Test reserved words as operation name.", "operations": [ { - "$id": "396", + "$id": "392", "name": "and", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "397", + "$id": "393", "statusCodes": [ 204 ], @@ -3982,14 +3950,14 @@ "decorators": [] }, { - "$id": "398", + "$id": "394", "name": "as", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "399", + "$id": "395", "statusCodes": [ 204 ], @@ -4007,14 +3975,14 @@ "decorators": [] }, { - "$id": "400", + "$id": "396", "name": "assert", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "401", + "$id": "397", "statusCodes": [ 204 ], @@ -4032,14 +4000,14 @@ "decorators": [] }, { - "$id": "402", + "$id": "398", "name": "async", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "403", + "$id": "399", "statusCodes": [ 204 ], @@ -4057,14 +4025,14 @@ "decorators": [] }, { - "$id": "404", + "$id": "400", "name": "await", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "405", + "$id": "401", "statusCodes": [ 204 ], @@ -4082,14 +4050,14 @@ "decorators": [] }, { - "$id": "406", + "$id": "402", "name": "break", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "407", + "$id": "403", "statusCodes": [ 204 ], @@ -4107,14 +4075,14 @@ "decorators": [] }, { - "$id": "408", + "$id": "404", "name": "class", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "409", + "$id": "405", "statusCodes": [ 204 ], @@ -4132,14 +4100,14 @@ "decorators": [] }, { - "$id": "410", + "$id": "406", "name": "constructor", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "411", + "$id": "407", "statusCodes": [ 204 ], @@ -4157,14 +4125,14 @@ "decorators": [] }, { - "$id": "412", + "$id": "408", "name": "continue", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "413", + "$id": "409", "statusCodes": [ 204 ], @@ -4182,14 +4150,14 @@ "decorators": [] }, { - "$id": "414", + "$id": "410", "name": "def", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "415", + "$id": "411", "statusCodes": [ 204 ], @@ -4207,14 +4175,14 @@ "decorators": [] }, { - "$id": "416", + "$id": "412", "name": "del", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "417", + "$id": "413", "statusCodes": [ 204 ], @@ -4232,14 +4200,14 @@ "decorators": [] }, { - "$id": "418", + "$id": "414", "name": "elif", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "419", + "$id": "415", "statusCodes": [ 204 ], @@ -4257,14 +4225,14 @@ "decorators": [] }, { - "$id": "420", + "$id": "416", "name": "else", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "421", + "$id": "417", "statusCodes": [ 204 ], @@ -4282,14 +4250,14 @@ "decorators": [] }, { - "$id": "422", + "$id": "418", "name": "except", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "423", + "$id": "419", "statusCodes": [ 204 ], @@ -4307,14 +4275,14 @@ "decorators": [] }, { - "$id": "424", + "$id": "420", "name": "exec", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "425", + "$id": "421", "statusCodes": [ 204 ], @@ -4332,14 +4300,14 @@ "decorators": [] }, { - "$id": "426", + "$id": "422", "name": "finally", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "427", + "$id": "423", "statusCodes": [ 204 ], @@ -4357,14 +4325,14 @@ "decorators": [] }, { - "$id": "428", + "$id": "424", "name": "for", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "429", + "$id": "425", "statusCodes": [ 204 ], @@ -4382,14 +4350,14 @@ "decorators": [] }, { - "$id": "430", + "$id": "426", "name": "from", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "431", + "$id": "427", "statusCodes": [ 204 ], @@ -4407,14 +4375,14 @@ "decorators": [] }, { - "$id": "432", + "$id": "428", "name": "global", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "433", + "$id": "429", "statusCodes": [ 204 ], @@ -4432,14 +4400,14 @@ "decorators": [] }, { - "$id": "434", + "$id": "430", "name": "if", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "435", + "$id": "431", "statusCodes": [ 204 ], @@ -4457,14 +4425,14 @@ "decorators": [] }, { - "$id": "436", + "$id": "432", "name": "import", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "437", + "$id": "433", "statusCodes": [ 204 ], @@ -4482,14 +4450,14 @@ "decorators": [] }, { - "$id": "438", + "$id": "434", "name": "in", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "439", + "$id": "435", "statusCodes": [ 204 ], @@ -4507,14 +4475,14 @@ "decorators": [] }, { - "$id": "440", + "$id": "436", "name": "is", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "441", + "$id": "437", "statusCodes": [ 204 ], @@ -4532,14 +4500,14 @@ "decorators": [] }, { - "$id": "442", + "$id": "438", "name": "lambda", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "443", + "$id": "439", "statusCodes": [ 204 ], @@ -4557,14 +4525,14 @@ "decorators": [] }, { - "$id": "444", + "$id": "440", "name": "not", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "445", + "$id": "441", "statusCodes": [ 204 ], @@ -4582,14 +4550,14 @@ "decorators": [] }, { - "$id": "446", + "$id": "442", "name": "or", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "447", + "$id": "443", "statusCodes": [ 204 ], @@ -4607,14 +4575,14 @@ "decorators": [] }, { - "$id": "448", + "$id": "444", "name": "pass", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "449", + "$id": "445", "statusCodes": [ 204 ], @@ -4632,14 +4600,14 @@ "decorators": [] }, { - "$id": "450", + "$id": "446", "name": "raise", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "451", + "$id": "447", "statusCodes": [ 204 ], @@ -4657,14 +4625,14 @@ "decorators": [] }, { - "$id": "452", + "$id": "448", "name": "return", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "453", + "$id": "449", "statusCodes": [ 204 ], @@ -4682,14 +4650,14 @@ "decorators": [] }, { - "$id": "454", + "$id": "450", "name": "try", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "455", + "$id": "451", "statusCodes": [ 204 ], @@ -4707,14 +4675,14 @@ "decorators": [] }, { - "$id": "456", + "$id": "452", "name": "while", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "457", + "$id": "453", "statusCodes": [ 204 ], @@ -4732,14 +4700,14 @@ "decorators": [] }, { - "$id": "458", + "$id": "454", "name": "with", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "459", + "$id": "455", "statusCodes": [ 204 ], @@ -4757,14 +4725,14 @@ "decorators": [] }, { - "$id": "460", + "$id": "456", "name": "yield", "resourceName": "Operations", "accessibility": "public", "parameters": [], "responses": [ { - "$id": "461", + "$id": "457", "statusCodes": [ 204 ], @@ -4782,27 +4750,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "SpecialWords.Operations", - "decorators": [], - "parent": { - "$ref": "172" - } - }, - { - "$id": "462", - "kind": "client", - "name": "Parameters", - "namespace": "SpecialWords", - "doc": "Verify reserved words as parameter name.", "parameters": [ { - "$id": "463", + "$id": "458", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "464", + "$id": "459", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4816,9 +4771,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "465", + "$id": "460", "type": { - "$id": "466", + "$id": "461", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4827,19 +4782,32 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.Operations", + "apiVersions": [], + "parent": { + "$ref": "172" + } + }, + { + "$id": "462", + "kind": "client", + "name": "Parameters", + "namespace": "SpecialWords", + "doc": "Verify reserved words as parameter name.", "operations": [ { - "$id": "467", + "$id": "463", "name": "withAnd", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "468", + "$id": "464", "name": "and", "nameInRequest": "and", "type": { - "$id": "469", + "$id": "465", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4858,7 +4826,7 @@ ], "responses": [ { - "$id": "470", + "$id": "466", "statusCodes": [ 204 ], @@ -4876,17 +4844,17 @@ "decorators": [] }, { - "$id": "471", + "$id": "467", "name": "withAs", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "472", + "$id": "468", "name": "as", "nameInRequest": "as", "type": { - "$id": "473", + "$id": "469", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4905,7 +4873,7 @@ ], "responses": [ { - "$id": "474", + "$id": "470", "statusCodes": [ 204 ], @@ -4923,17 +4891,17 @@ "decorators": [] }, { - "$id": "475", + "$id": "471", "name": "withAssert", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "476", + "$id": "472", "name": "assert", "nameInRequest": "assert", "type": { - "$id": "477", + "$id": "473", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4952,7 +4920,7 @@ ], "responses": [ { - "$id": "478", + "$id": "474", "statusCodes": [ 204 ], @@ -4970,17 +4938,17 @@ "decorators": [] }, { - "$id": "479", + "$id": "475", "name": "withAsync", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "480", + "$id": "476", "name": "async", "nameInRequest": "async", "type": { - "$id": "481", + "$id": "477", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4999,7 +4967,7 @@ ], "responses": [ { - "$id": "482", + "$id": "478", "statusCodes": [ 204 ], @@ -5017,17 +4985,17 @@ "decorators": [] }, { - "$id": "483", + "$id": "479", "name": "withAwait", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "484", + "$id": "480", "name": "await", "nameInRequest": "await", "type": { - "$id": "485", + "$id": "481", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5046,7 +5014,7 @@ ], "responses": [ { - "$id": "486", + "$id": "482", "statusCodes": [ 204 ], @@ -5064,17 +5032,17 @@ "decorators": [] }, { - "$id": "487", + "$id": "483", "name": "withBreak", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "488", + "$id": "484", "name": "break", "nameInRequest": "break", "type": { - "$id": "489", + "$id": "485", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5093,7 +5061,7 @@ ], "responses": [ { - "$id": "490", + "$id": "486", "statusCodes": [ 204 ], @@ -5111,17 +5079,17 @@ "decorators": [] }, { - "$id": "491", + "$id": "487", "name": "withClass", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "492", + "$id": "488", "name": "class", "nameInRequest": "class", "type": { - "$id": "493", + "$id": "489", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5140,7 +5108,7 @@ ], "responses": [ { - "$id": "494", + "$id": "490", "statusCodes": [ 204 ], @@ -5158,17 +5126,17 @@ "decorators": [] }, { - "$id": "495", + "$id": "491", "name": "withConstructor", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "496", + "$id": "492", "name": "constructor", "nameInRequest": "constructor", "type": { - "$id": "497", + "$id": "493", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5187,7 +5155,7 @@ ], "responses": [ { - "$id": "498", + "$id": "494", "statusCodes": [ 204 ], @@ -5205,17 +5173,17 @@ "decorators": [] }, { - "$id": "499", + "$id": "495", "name": "withContinue", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "500", + "$id": "496", "name": "continue", "nameInRequest": "continue", "type": { - "$id": "501", + "$id": "497", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5234,7 +5202,7 @@ ], "responses": [ { - "$id": "502", + "$id": "498", "statusCodes": [ 204 ], @@ -5252,17 +5220,17 @@ "decorators": [] }, { - "$id": "503", + "$id": "499", "name": "withDef", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "504", + "$id": "500", "name": "def", "nameInRequest": "def", "type": { - "$id": "505", + "$id": "501", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5281,7 +5249,7 @@ ], "responses": [ { - "$id": "506", + "$id": "502", "statusCodes": [ 204 ], @@ -5299,17 +5267,17 @@ "decorators": [] }, { - "$id": "507", + "$id": "503", "name": "withDel", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "508", + "$id": "504", "name": "del", "nameInRequest": "del", "type": { - "$id": "509", + "$id": "505", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5328,7 +5296,7 @@ ], "responses": [ { - "$id": "510", + "$id": "506", "statusCodes": [ 204 ], @@ -5346,17 +5314,17 @@ "decorators": [] }, { - "$id": "511", + "$id": "507", "name": "withElif", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "512", + "$id": "508", "name": "elif", "nameInRequest": "elif", "type": { - "$id": "513", + "$id": "509", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5375,7 +5343,7 @@ ], "responses": [ { - "$id": "514", + "$id": "510", "statusCodes": [ 204 ], @@ -5393,17 +5361,17 @@ "decorators": [] }, { - "$id": "515", + "$id": "511", "name": "withElse", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "516", + "$id": "512", "name": "else", "nameInRequest": "else", "type": { - "$id": "517", + "$id": "513", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5422,7 +5390,7 @@ ], "responses": [ { - "$id": "518", + "$id": "514", "statusCodes": [ 204 ], @@ -5440,17 +5408,17 @@ "decorators": [] }, { - "$id": "519", + "$id": "515", "name": "withExcept", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "520", + "$id": "516", "name": "except", "nameInRequest": "except", "type": { - "$id": "521", + "$id": "517", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5469,7 +5437,7 @@ ], "responses": [ { - "$id": "522", + "$id": "518", "statusCodes": [ 204 ], @@ -5487,17 +5455,17 @@ "decorators": [] }, { - "$id": "523", + "$id": "519", "name": "withExec", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "524", + "$id": "520", "name": "exec", "nameInRequest": "exec", "type": { - "$id": "525", + "$id": "521", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5516,7 +5484,7 @@ ], "responses": [ { - "$id": "526", + "$id": "522", "statusCodes": [ 204 ], @@ -5534,17 +5502,17 @@ "decorators": [] }, { - "$id": "527", + "$id": "523", "name": "withFinally", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "528", + "$id": "524", "name": "finally", "nameInRequest": "finally", "type": { - "$id": "529", + "$id": "525", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5563,7 +5531,7 @@ ], "responses": [ { - "$id": "530", + "$id": "526", "statusCodes": [ 204 ], @@ -5581,17 +5549,17 @@ "decorators": [] }, { - "$id": "531", + "$id": "527", "name": "withFor", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "532", + "$id": "528", "name": "for", "nameInRequest": "for", "type": { - "$id": "533", + "$id": "529", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5610,7 +5578,7 @@ ], "responses": [ { - "$id": "534", + "$id": "530", "statusCodes": [ 204 ], @@ -5628,17 +5596,17 @@ "decorators": [] }, { - "$id": "535", + "$id": "531", "name": "withFrom", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "536", + "$id": "532", "name": "from", "nameInRequest": "from", "type": { - "$id": "537", + "$id": "533", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5657,7 +5625,7 @@ ], "responses": [ { - "$id": "538", + "$id": "534", "statusCodes": [ 204 ], @@ -5675,17 +5643,17 @@ "decorators": [] }, { - "$id": "539", + "$id": "535", "name": "withGlobal", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "540", + "$id": "536", "name": "global", "nameInRequest": "global", "type": { - "$id": "541", + "$id": "537", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5704,7 +5672,7 @@ ], "responses": [ { - "$id": "542", + "$id": "538", "statusCodes": [ 204 ], @@ -5722,17 +5690,17 @@ "decorators": [] }, { - "$id": "543", + "$id": "539", "name": "withIf", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "544", + "$id": "540", "name": "if", "nameInRequest": "if", "type": { - "$id": "545", + "$id": "541", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5751,7 +5719,7 @@ ], "responses": [ { - "$id": "546", + "$id": "542", "statusCodes": [ 204 ], @@ -5769,17 +5737,17 @@ "decorators": [] }, { - "$id": "547", + "$id": "543", "name": "withImport", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "548", + "$id": "544", "name": "import", "nameInRequest": "import", "type": { - "$id": "549", + "$id": "545", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5798,7 +5766,7 @@ ], "responses": [ { - "$id": "550", + "$id": "546", "statusCodes": [ 204 ], @@ -5816,17 +5784,17 @@ "decorators": [] }, { - "$id": "551", + "$id": "547", "name": "withIn", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "552", + "$id": "548", "name": "in", "nameInRequest": "in", "type": { - "$id": "553", + "$id": "549", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5845,7 +5813,7 @@ ], "responses": [ { - "$id": "554", + "$id": "550", "statusCodes": [ 204 ], @@ -5863,17 +5831,17 @@ "decorators": [] }, { - "$id": "555", + "$id": "551", "name": "withIs", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "556", + "$id": "552", "name": "is", "nameInRequest": "is", "type": { - "$id": "557", + "$id": "553", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5892,7 +5860,7 @@ ], "responses": [ { - "$id": "558", + "$id": "554", "statusCodes": [ 204 ], @@ -5910,17 +5878,17 @@ "decorators": [] }, { - "$id": "559", + "$id": "555", "name": "withLambda", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "560", + "$id": "556", "name": "lambda", "nameInRequest": "lambda", "type": { - "$id": "561", + "$id": "557", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5939,7 +5907,7 @@ ], "responses": [ { - "$id": "562", + "$id": "558", "statusCodes": [ 204 ], @@ -5957,17 +5925,17 @@ "decorators": [] }, { - "$id": "563", + "$id": "559", "name": "withNot", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "564", + "$id": "560", "name": "not", "nameInRequest": "not", "type": { - "$id": "565", + "$id": "561", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5986,7 +5954,7 @@ ], "responses": [ { - "$id": "566", + "$id": "562", "statusCodes": [ 204 ], @@ -6004,17 +5972,17 @@ "decorators": [] }, { - "$id": "567", + "$id": "563", "name": "withOr", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "568", + "$id": "564", "name": "or", "nameInRequest": "or", "type": { - "$id": "569", + "$id": "565", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6033,7 +6001,7 @@ ], "responses": [ { - "$id": "570", + "$id": "566", "statusCodes": [ 204 ], @@ -6051,17 +6019,17 @@ "decorators": [] }, { - "$id": "571", + "$id": "567", "name": "withPass", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "572", + "$id": "568", "name": "pass", "nameInRequest": "pass", "type": { - "$id": "573", + "$id": "569", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6080,7 +6048,7 @@ ], "responses": [ { - "$id": "574", + "$id": "570", "statusCodes": [ 204 ], @@ -6098,17 +6066,17 @@ "decorators": [] }, { - "$id": "575", + "$id": "571", "name": "withRaise", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "576", + "$id": "572", "name": "raise", "nameInRequest": "raise", "type": { - "$id": "577", + "$id": "573", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6127,7 +6095,7 @@ ], "responses": [ { - "$id": "578", + "$id": "574", "statusCodes": [ 204 ], @@ -6145,17 +6113,17 @@ "decorators": [] }, { - "$id": "579", + "$id": "575", "name": "withReturn", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "580", + "$id": "576", "name": "return", "nameInRequest": "return", "type": { - "$id": "581", + "$id": "577", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6174,7 +6142,7 @@ ], "responses": [ { - "$id": "582", + "$id": "578", "statusCodes": [ 204 ], @@ -6192,17 +6160,17 @@ "decorators": [] }, { - "$id": "583", + "$id": "579", "name": "withTry", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "584", + "$id": "580", "name": "try", "nameInRequest": "try", "type": { - "$id": "585", + "$id": "581", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6221,7 +6189,7 @@ ], "responses": [ { - "$id": "586", + "$id": "582", "statusCodes": [ 204 ], @@ -6239,17 +6207,17 @@ "decorators": [] }, { - "$id": "587", + "$id": "583", "name": "withWhile", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "588", + "$id": "584", "name": "while", "nameInRequest": "while", "type": { - "$id": "589", + "$id": "585", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6268,7 +6236,7 @@ ], "responses": [ { - "$id": "590", + "$id": "586", "statusCodes": [ 204 ], @@ -6286,17 +6254,17 @@ "decorators": [] }, { - "$id": "591", + "$id": "587", "name": "withWith", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "592", + "$id": "588", "name": "with", "nameInRequest": "with", "type": { - "$id": "593", + "$id": "589", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6315,7 +6283,7 @@ ], "responses": [ { - "$id": "594", + "$id": "590", "statusCodes": [ 204 ], @@ -6333,17 +6301,17 @@ "decorators": [] }, { - "$id": "595", + "$id": "591", "name": "withYield", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "596", + "$id": "592", "name": "yield", "nameInRequest": "yield", "type": { - "$id": "597", + "$id": "593", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6362,7 +6330,7 @@ ], "responses": [ { - "$id": "598", + "$id": "594", "statusCodes": [ 204 ], @@ -6380,17 +6348,17 @@ "decorators": [] }, { - "$id": "599", + "$id": "595", "name": "withCancellationToken", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "600", + "$id": "596", "name": "cancellationToken", "nameInRequest": "cancellationToken", "type": { - "$id": "601", + "$id": "597", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6409,7 +6377,7 @@ ], "responses": [ { - "$id": "602", + "$id": "598", "statusCodes": [ 204 ], @@ -6427,9 +6395,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "SpecialWords.Parameters", + "parameters": [ + { + "$id": "599", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "600", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "601", + "type": { + "$id": "602", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.Parameters", + "apiVersions": [], "parent": { "$ref": "172" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json index d30f4dc1493..c9b17d4c07a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json @@ -80,6 +80,7 @@ "name": "ArrayClient", "namespace": "Type.Array", "doc": "Illustrates various types of arrays.", + "operations": [], "parameters": [ { "$id": "12", @@ -112,10 +113,9 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array", "decorators": [], + "crossLanguageDefinitionId": "Type.Array", + "apiVersions": [], "children": [ { "$id": "16", @@ -123,54 +123,22 @@ "name": "Int32Value", "namespace": "Type.Array", "doc": "Array of int32 values", - "parameters": [ - { - "$id": "17", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "18", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "19", - "type": { - "$id": "20", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "21", + "$id": "17", "name": "get", "resourceName": "Int32Value", "accessibility": "public", "parameters": [ { - "$id": "22", + "$id": "18", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "23", + "$id": "19", "kind": "constant", "valueType": { - "$id": "24", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -192,16 +160,16 @@ ], "responses": [ { - "$id": "25", + "$id": "21", "statusCodes": [ 200 ], "bodyType": { - "$id": "26", + "$id": "22", "kind": "array", "name": "Array", "valueType": { - "$id": "27", + "$id": "23", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -227,21 +195,21 @@ "decorators": [] }, { - "$id": "28", + "$id": "24", "name": "put", "resourceName": "Int32Value", "accessibility": "public", "parameters": [ { - "$id": "29", + "$id": "25", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "30", + "$id": "26", "kind": "constant", "valueType": { - "$id": "31", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -261,15 +229,15 @@ "skipUrlEncoding": false }, { - "$id": "32", + "$id": "28", "name": "body", "nameInRequest": "body", "type": { - "$id": "33", + "$id": "29", "kind": "array", "name": "Array", "valueType": { - "$id": "34", + "$id": "30", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -291,7 +259,7 @@ ], "responses": [ { - "$id": "35", + "$id": "31", "statusCodes": [ 204 ], @@ -312,27 +280,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.Int32Value", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "36", - "kind": "client", - "name": "Int64Value", - "namespace": "Type.Array", - "doc": "Array of int64 values", "parameters": [ { - "$id": "37", + "$id": "32", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "38", + "$id": "33", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -346,9 +301,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "39", + "$id": "34", "type": { - "$id": "40", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -357,22 +312,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.Int32Value", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "36", + "kind": "client", + "name": "Int64Value", + "namespace": "Type.Array", + "doc": "Array of int64 values", "operations": [ { - "$id": "41", + "$id": "37", "name": "get", "resourceName": "Int64Value", "accessibility": "public", "parameters": [ { - "$id": "42", + "$id": "38", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "43", + "$id": "39", "kind": "constant", "valueType": { - "$id": "44", + "$id": "40", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -394,16 +362,16 @@ ], "responses": [ { - "$id": "45", + "$id": "41", "statusCodes": [ 200 ], "bodyType": { - "$id": "46", + "$id": "42", "kind": "array", "name": "Array", "valueType": { - "$id": "47", + "$id": "43", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -429,21 +397,21 @@ "decorators": [] }, { - "$id": "48", + "$id": "44", "name": "put", "resourceName": "Int64Value", "accessibility": "public", "parameters": [ { - "$id": "49", + "$id": "45", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "50", + "$id": "46", "kind": "constant", "valueType": { - "$id": "51", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -463,15 +431,15 @@ "skipUrlEncoding": false }, { - "$id": "52", + "$id": "48", "name": "body", "nameInRequest": "body", "type": { - "$id": "53", + "$id": "49", "kind": "array", "name": "Array", "valueType": { - "$id": "54", + "$id": "50", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -493,7 +461,7 @@ ], "responses": [ { - "$id": "55", + "$id": "51", "statusCodes": [ 204 ], @@ -514,27 +482,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.Int64Value", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "56", - "kind": "client", - "name": "BooleanValue", - "namespace": "Type.Array", - "doc": "Array of boolean values", "parameters": [ { - "$id": "57", + "$id": "52", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "58", + "$id": "53", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -548,9 +503,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "59", + "$id": "54", "type": { - "$id": "60", + "$id": "55", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -559,22 +514,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.Int64Value", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "56", + "kind": "client", + "name": "BooleanValue", + "namespace": "Type.Array", + "doc": "Array of boolean values", "operations": [ { - "$id": "61", + "$id": "57", "name": "get", "resourceName": "BooleanValue", "accessibility": "public", "parameters": [ { - "$id": "62", + "$id": "58", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "63", + "$id": "59", "kind": "constant", "valueType": { - "$id": "64", + "$id": "60", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -596,16 +564,16 @@ ], "responses": [ { - "$id": "65", + "$id": "61", "statusCodes": [ 200 ], "bodyType": { - "$id": "66", + "$id": "62", "kind": "array", "name": "Array", "valueType": { - "$id": "67", + "$id": "63", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -631,21 +599,21 @@ "decorators": [] }, { - "$id": "68", + "$id": "64", "name": "put", "resourceName": "BooleanValue", "accessibility": "public", "parameters": [ { - "$id": "69", + "$id": "65", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "70", + "$id": "66", "kind": "constant", "valueType": { - "$id": "71", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -665,15 +633,15 @@ "skipUrlEncoding": false }, { - "$id": "72", + "$id": "68", "name": "body", "nameInRequest": "body", "type": { - "$id": "73", + "$id": "69", "kind": "array", "name": "Array", "valueType": { - "$id": "74", + "$id": "70", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -695,7 +663,7 @@ ], "responses": [ { - "$id": "75", + "$id": "71", "statusCodes": [ 204 ], @@ -716,27 +684,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.BooleanValue", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "76", - "kind": "client", - "name": "StringValue", - "namespace": "Type.Array", - "doc": "Array of string values", "parameters": [ { - "$id": "77", + "$id": "72", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "78", + "$id": "73", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -750,9 +705,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "79", + "$id": "74", "type": { - "$id": "80", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -761,22 +716,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.BooleanValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "76", + "kind": "client", + "name": "StringValue", + "namespace": "Type.Array", + "doc": "Array of string values", "operations": [ { - "$id": "81", + "$id": "77", "name": "get", "resourceName": "StringValue", "accessibility": "public", "parameters": [ { - "$id": "82", + "$id": "78", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "83", + "$id": "79", "kind": "constant", "valueType": { - "$id": "84", + "$id": "80", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -798,16 +766,16 @@ ], "responses": [ { - "$id": "85", + "$id": "81", "statusCodes": [ 200 ], "bodyType": { - "$id": "86", + "$id": "82", "kind": "array", "name": "Array", "valueType": { - "$id": "87", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -833,21 +801,21 @@ "decorators": [] }, { - "$id": "88", + "$id": "84", "name": "put", "resourceName": "StringValue", "accessibility": "public", "parameters": [ { - "$id": "89", + "$id": "85", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "90", + "$id": "86", "kind": "constant", "valueType": { - "$id": "91", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -867,15 +835,15 @@ "skipUrlEncoding": false }, { - "$id": "92", + "$id": "88", "name": "body", "nameInRequest": "body", "type": { - "$id": "93", + "$id": "89", "kind": "array", "name": "Array", "valueType": { - "$id": "94", + "$id": "90", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -897,7 +865,7 @@ ], "responses": [ { - "$id": "95", + "$id": "91", "statusCodes": [ 204 ], @@ -918,27 +886,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.StringValue", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "96", - "kind": "client", - "name": "Float32Value", - "namespace": "Type.Array", - "doc": "Array of float values", "parameters": [ { - "$id": "97", + "$id": "92", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "98", + "$id": "93", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -952,9 +907,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "99", + "$id": "94", "type": { - "$id": "100", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -963,22 +918,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.StringValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "96", + "kind": "client", + "name": "Float32Value", + "namespace": "Type.Array", + "doc": "Array of float values", "operations": [ { - "$id": "101", + "$id": "97", "name": "get", "resourceName": "Float32Value", "accessibility": "public", "parameters": [ { - "$id": "102", + "$id": "98", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "103", + "$id": "99", "kind": "constant", "valueType": { - "$id": "104", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1000,16 +968,16 @@ ], "responses": [ { - "$id": "105", + "$id": "101", "statusCodes": [ 200 ], "bodyType": { - "$id": "106", + "$id": "102", "kind": "array", "name": "Array", "valueType": { - "$id": "107", + "$id": "103", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1035,21 +1003,21 @@ "decorators": [] }, { - "$id": "108", + "$id": "104", "name": "put", "resourceName": "Float32Value", "accessibility": "public", "parameters": [ { - "$id": "109", + "$id": "105", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "110", + "$id": "106", "kind": "constant", "valueType": { - "$id": "111", + "$id": "107", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1069,15 +1037,15 @@ "skipUrlEncoding": false }, { - "$id": "112", + "$id": "108", "name": "body", "nameInRequest": "body", "type": { - "$id": "113", + "$id": "109", "kind": "array", "name": "Array", "valueType": { - "$id": "114", + "$id": "110", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1099,7 +1067,7 @@ ], "responses": [ { - "$id": "115", + "$id": "111", "statusCodes": [ 204 ], @@ -1120,27 +1088,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.Float32Value", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "116", - "kind": "client", - "name": "DatetimeValue", - "namespace": "Type.Array", - "doc": "Array of datetime values", "parameters": [ { - "$id": "117", + "$id": "112", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "118", + "$id": "113", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1154,9 +1109,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "119", + "$id": "114", "type": { - "$id": "120", + "$id": "115", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1165,22 +1120,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.Float32Value", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "116", + "kind": "client", + "name": "DatetimeValue", + "namespace": "Type.Array", + "doc": "Array of datetime values", "operations": [ { - "$id": "121", + "$id": "117", "name": "get", "resourceName": "DatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "122", + "$id": "118", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "123", + "$id": "119", "kind": "constant", "valueType": { - "$id": "124", + "$id": "120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1202,21 +1170,21 @@ ], "responses": [ { - "$id": "125", + "$id": "121", "statusCodes": [ 200 ], "bodyType": { - "$id": "126", + "$id": "122", "kind": "array", "name": "Array", "valueType": { - "$id": "127", + "$id": "123", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "128", + "$id": "124", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1245,21 +1213,21 @@ "decorators": [] }, { - "$id": "129", + "$id": "125", "name": "put", "resourceName": "DatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "130", + "$id": "126", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "131", + "$id": "127", "kind": "constant", "valueType": { - "$id": "132", + "$id": "128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1279,20 +1247,20 @@ "skipUrlEncoding": false }, { - "$id": "133", + "$id": "129", "name": "body", "nameInRequest": "body", "type": { - "$id": "134", + "$id": "130", "kind": "array", "name": "Array", "valueType": { - "$id": "135", + "$id": "131", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "136", + "$id": "132", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1317,7 +1285,7 @@ ], "responses": [ { - "$id": "137", + "$id": "133", "statusCodes": [ 204 ], @@ -1338,27 +1306,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.DatetimeValue", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "138", - "kind": "client", - "name": "DurationValue", - "namespace": "Type.Array", - "doc": "Array of duration values", "parameters": [ { - "$id": "139", + "$id": "134", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "140", + "$id": "135", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1372,9 +1327,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "141", + "$id": "136", "type": { - "$id": "142", + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1383,22 +1338,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.DatetimeValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "138", + "kind": "client", + "name": "DurationValue", + "namespace": "Type.Array", + "doc": "Array of duration values", "operations": [ { - "$id": "143", + "$id": "139", "name": "get", "resourceName": "DurationValue", "accessibility": "public", "parameters": [ { - "$id": "144", + "$id": "140", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "145", + "$id": "141", "kind": "constant", "valueType": { - "$id": "146", + "$id": "142", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1420,21 +1388,21 @@ ], "responses": [ { - "$id": "147", + "$id": "143", "statusCodes": [ 200 ], "bodyType": { - "$id": "148", + "$id": "144", "kind": "array", "name": "Array", "valueType": { - "$id": "149", + "$id": "145", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "150", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1463,21 +1431,21 @@ "decorators": [] }, { - "$id": "151", + "$id": "147", "name": "put", "resourceName": "DurationValue", "accessibility": "public", "parameters": [ { - "$id": "152", + "$id": "148", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "153", + "$id": "149", "kind": "constant", "valueType": { - "$id": "154", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1497,20 +1465,20 @@ "skipUrlEncoding": false }, { - "$id": "155", + "$id": "151", "name": "body", "nameInRequest": "body", "type": { - "$id": "156", + "$id": "152", "kind": "array", "name": "Array", "valueType": { - "$id": "157", + "$id": "153", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "158", + "$id": "154", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1535,7 +1503,7 @@ ], "responses": [ { - "$id": "159", + "$id": "155", "statusCodes": [ 204 ], @@ -1556,27 +1524,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.DurationValue", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "160", - "kind": "client", - "name": "UnknownValue", - "namespace": "Type.Array", - "doc": "Array of unknown values", "parameters": [ { - "$id": "161", + "$id": "156", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "162", + "$id": "157", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1590,9 +1545,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "163", + "$id": "158", "type": { - "$id": "164", + "$id": "159", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1601,22 +1556,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.DurationValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "160", + "kind": "client", + "name": "UnknownValue", + "namespace": "Type.Array", + "doc": "Array of unknown values", "operations": [ { - "$id": "165", + "$id": "161", "name": "get", "resourceName": "UnknownValue", "accessibility": "public", "parameters": [ { - "$id": "166", + "$id": "162", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "167", + "$id": "163", "kind": "constant", "valueType": { - "$id": "168", + "$id": "164", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1638,16 +1606,16 @@ ], "responses": [ { - "$id": "169", + "$id": "165", "statusCodes": [ 200 ], "bodyType": { - "$id": "170", + "$id": "166", "kind": "array", "name": "Array", "valueType": { - "$id": "171", + "$id": "167", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1673,21 +1641,21 @@ "decorators": [] }, { - "$id": "172", + "$id": "168", "name": "put", "resourceName": "UnknownValue", "accessibility": "public", "parameters": [ { - "$id": "173", + "$id": "169", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "174", + "$id": "170", "kind": "constant", "valueType": { - "$id": "175", + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1707,15 +1675,15 @@ "skipUrlEncoding": false }, { - "$id": "176", + "$id": "172", "name": "body", "nameInRequest": "body", "type": { - "$id": "177", + "$id": "173", "kind": "array", "name": "Array", "valueType": { - "$id": "178", + "$id": "174", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1737,7 +1705,7 @@ ], "responses": [ { - "$id": "179", + "$id": "175", "statusCodes": [ 204 ], @@ -1758,27 +1726,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.UnknownValue", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "180", - "kind": "client", - "name": "ModelValue", - "namespace": "Type.Array", - "doc": "Array of model values", "parameters": [ { - "$id": "181", + "$id": "176", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "182", + "$id": "177", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1792,9 +1747,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "183", + "$id": "178", "type": { - "$id": "184", + "$id": "179", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1803,22 +1758,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.UnknownValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "180", + "kind": "client", + "name": "ModelValue", + "namespace": "Type.Array", + "doc": "Array of model values", "operations": [ { - "$id": "185", + "$id": "181", "name": "get", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "186", + "$id": "182", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "187", + "$id": "183", "kind": "constant", "valueType": { - "$id": "188", + "$id": "184", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1840,12 +1808,12 @@ ], "responses": [ { - "$id": "189", + "$id": "185", "statusCodes": [ 200 ], "bodyType": { - "$id": "190", + "$id": "186", "kind": "array", "name": "ArrayInnerModel", "valueType": { @@ -1871,21 +1839,21 @@ "decorators": [] }, { - "$id": "191", + "$id": "187", "name": "put", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "192", + "$id": "188", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "193", + "$id": "189", "kind": "constant", "valueType": { - "$id": "194", + "$id": "190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1905,11 +1873,11 @@ "skipUrlEncoding": false }, { - "$id": "195", + "$id": "191", "name": "body", "nameInRequest": "body", "type": { - "$id": "196", + "$id": "192", "kind": "array", "name": "ArrayInnerModel", "valueType": { @@ -1931,7 +1899,7 @@ ], "responses": [ { - "$id": "197", + "$id": "193", "statusCodes": [ 204 ], @@ -1952,27 +1920,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.ModelValue", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "198", - "kind": "client", - "name": "NullableFloatValue", - "namespace": "Type.Array", - "doc": "Array of nullable float values", "parameters": [ { - "$id": "199", + "$id": "194", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "200", + "$id": "195", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1986,9 +1941,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "201", + "$id": "196", "type": { - "$id": "202", + "$id": "197", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1997,22 +1952,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.ModelValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "198", + "kind": "client", + "name": "NullableFloatValue", + "namespace": "Type.Array", + "doc": "Array of nullable float values", "operations": [ { - "$id": "203", + "$id": "199", "name": "get", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "204", + "$id": "200", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "205", + "$id": "201", "kind": "constant", "valueType": { - "$id": "206", + "$id": "202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2034,19 +2002,19 @@ ], "responses": [ { - "$id": "207", + "$id": "203", "statusCodes": [ 200 ], "bodyType": { - "$id": "208", + "$id": "204", "kind": "array", "name": "Array", "valueType": { - "$id": "209", + "$id": "205", "kind": "nullable", "type": { - "$id": "210", + "$id": "206", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -2074,21 +2042,21 @@ "decorators": [] }, { - "$id": "211", + "$id": "207", "name": "put", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "212", + "$id": "208", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "213", + "$id": "209", "kind": "constant", "valueType": { - "$id": "214", + "$id": "210", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2108,15 +2076,15 @@ "skipUrlEncoding": false }, { - "$id": "215", + "$id": "211", "name": "body", "nameInRequest": "body", "type": { - "$id": "216", + "$id": "212", "kind": "array", "name": "Array", "valueType": { - "$ref": "209" + "$ref": "205" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2134,7 +2102,7 @@ ], "responses": [ { - "$id": "217", + "$id": "213", "statusCodes": [ 204 ], @@ -2155,27 +2123,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "218", - "kind": "client", - "name": "NullableInt32Value", - "namespace": "Type.Array", - "doc": "Array of nullable int32 values", "parameters": [ { - "$id": "219", + "$id": "214", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "220", + "$id": "215", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2189,9 +2144,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "221", + "$id": "216", "type": { - "$id": "222", + "$id": "217", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2200,22 +2155,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "218", + "kind": "client", + "name": "NullableInt32Value", + "namespace": "Type.Array", + "doc": "Array of nullable int32 values", "operations": [ { - "$id": "223", + "$id": "219", "name": "get", "resourceName": "NullableInt32Value", "accessibility": "public", "parameters": [ { - "$id": "224", + "$id": "220", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "225", + "$id": "221", "kind": "constant", "valueType": { - "$id": "226", + "$id": "222", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2237,19 +2205,19 @@ ], "responses": [ { - "$id": "227", + "$id": "223", "statusCodes": [ 200 ], "bodyType": { - "$id": "228", + "$id": "224", "kind": "array", "name": "Array", "valueType": { - "$id": "229", + "$id": "225", "kind": "nullable", "type": { - "$id": "230", + "$id": "226", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2277,21 +2245,21 @@ "decorators": [] }, { - "$id": "231", + "$id": "227", "name": "put", "resourceName": "NullableInt32Value", "accessibility": "public", "parameters": [ { - "$id": "232", + "$id": "228", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "233", + "$id": "229", "kind": "constant", "valueType": { - "$id": "234", + "$id": "230", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2311,15 +2279,15 @@ "skipUrlEncoding": false }, { - "$id": "235", + "$id": "231", "name": "body", "nameInRequest": "body", "type": { - "$id": "236", + "$id": "232", "kind": "array", "name": "Array", "valueType": { - "$ref": "229" + "$ref": "225" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2337,7 +2305,7 @@ ], "responses": [ { - "$id": "237", + "$id": "233", "statusCodes": [ 204 ], @@ -2358,27 +2326,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "238", - "kind": "client", - "name": "NullableBooleanValue", - "namespace": "Type.Array", - "doc": "Array of nullable boolean values", "parameters": [ { - "$id": "239", + "$id": "234", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "240", + "$id": "235", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2392,9 +2347,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "241", + "$id": "236", "type": { - "$id": "242", + "$id": "237", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2403,22 +2358,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "238", + "kind": "client", + "name": "NullableBooleanValue", + "namespace": "Type.Array", + "doc": "Array of nullable boolean values", "operations": [ { - "$id": "243", + "$id": "239", "name": "get", "resourceName": "NullableBooleanValue", "accessibility": "public", "parameters": [ { - "$id": "244", + "$id": "240", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "245", + "$id": "241", "kind": "constant", "valueType": { - "$id": "246", + "$id": "242", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2440,19 +2408,19 @@ ], "responses": [ { - "$id": "247", + "$id": "243", "statusCodes": [ 200 ], "bodyType": { - "$id": "248", + "$id": "244", "kind": "array", "name": "Array", "valueType": { - "$id": "249", + "$id": "245", "kind": "nullable", "type": { - "$id": "250", + "$id": "246", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -2480,21 +2448,21 @@ "decorators": [] }, { - "$id": "251", + "$id": "247", "name": "put", "resourceName": "NullableBooleanValue", "accessibility": "public", "parameters": [ { - "$id": "252", + "$id": "248", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "253", + "$id": "249", "kind": "constant", "valueType": { - "$id": "254", + "$id": "250", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2514,15 +2482,15 @@ "skipUrlEncoding": false }, { - "$id": "255", + "$id": "251", "name": "body", "nameInRequest": "body", "type": { - "$id": "256", + "$id": "252", "kind": "array", "name": "Array", "valueType": { - "$ref": "249" + "$ref": "245" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2540,7 +2508,7 @@ ], "responses": [ { - "$id": "257", + "$id": "253", "statusCodes": [ 204 ], @@ -2561,27 +2529,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "258", - "kind": "client", - "name": "NullableStringValue", - "namespace": "Type.Array", - "doc": "Array of nullable string values", "parameters": [ { - "$id": "259", + "$id": "254", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "260", + "$id": "255", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2595,9 +2550,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "261", + "$id": "256", "type": { - "$id": "262", + "$id": "257", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2606,22 +2561,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "258", + "kind": "client", + "name": "NullableStringValue", + "namespace": "Type.Array", + "doc": "Array of nullable string values", "operations": [ { - "$id": "263", + "$id": "259", "name": "get", "resourceName": "NullableStringValue", "accessibility": "public", "parameters": [ { - "$id": "264", + "$id": "260", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "265", + "$id": "261", "kind": "constant", "valueType": { - "$id": "266", + "$id": "262", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2643,19 +2611,19 @@ ], "responses": [ { - "$id": "267", + "$id": "263", "statusCodes": [ 200 ], "bodyType": { - "$id": "268", + "$id": "264", "kind": "array", "name": "Array", "valueType": { - "$id": "269", + "$id": "265", "kind": "nullable", "type": { - "$id": "270", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2683,21 +2651,21 @@ "decorators": [] }, { - "$id": "271", + "$id": "267", "name": "put", "resourceName": "NullableStringValue", "accessibility": "public", "parameters": [ { - "$id": "272", + "$id": "268", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "273", + "$id": "269", "kind": "constant", "valueType": { - "$id": "274", + "$id": "270", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2717,15 +2685,15 @@ "skipUrlEncoding": false }, { - "$id": "275", + "$id": "271", "name": "body", "nameInRequest": "body", "type": { - "$id": "276", + "$id": "272", "kind": "array", "name": "Array", "valueType": { - "$ref": "269" + "$ref": "265" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2743,7 +2711,7 @@ ], "responses": [ { - "$id": "277", + "$id": "273", "statusCodes": [ 204 ], @@ -2764,27 +2732,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.NullableStringValue", - "decorators": [], - "parent": { - "$ref": "11" - } - }, - { - "$id": "278", - "kind": "client", - "name": "NullableModelValue", - "namespace": "Type.Array", - "doc": "Array of nullable model values", "parameters": [ { - "$id": "279", + "$id": "274", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "280", + "$id": "275", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2798,9 +2753,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "281", + "$id": "276", "type": { - "$id": "282", + "$id": "277", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2809,22 +2764,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableStringValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "278", + "kind": "client", + "name": "NullableModelValue", + "namespace": "Type.Array", + "doc": "Array of nullable model values", "operations": [ { - "$id": "283", + "$id": "279", "name": "get", "resourceName": "NullableModelValue", "accessibility": "public", "parameters": [ { - "$id": "284", + "$id": "280", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "285", + "$id": "281", "kind": "constant", "valueType": { - "$id": "286", + "$id": "282", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2846,16 +2814,16 @@ ], "responses": [ { - "$id": "287", + "$id": "283", "statusCodes": [ 200 ], "bodyType": { - "$id": "288", + "$id": "284", "kind": "array", "name": "Array", "valueType": { - "$id": "289", + "$id": "285", "kind": "nullable", "type": { "$ref": "2" @@ -2882,21 +2850,21 @@ "decorators": [] }, { - "$id": "290", + "$id": "286", "name": "put", "resourceName": "NullableModelValue", "accessibility": "public", "parameters": [ { - "$id": "291", + "$id": "287", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "292", + "$id": "288", "kind": "constant", "valueType": { - "$id": "293", + "$id": "289", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2916,15 +2884,15 @@ "skipUrlEncoding": false }, { - "$id": "294", + "$id": "290", "name": "body", "nameInRequest": "body", "type": { - "$id": "295", + "$id": "291", "kind": "array", "name": "Array", "valueType": { - "$ref": "289" + "$ref": "285" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2942,7 +2910,7 @@ ], "responses": [ { - "$id": "296", + "$id": "292", "statusCodes": [ 204 ], @@ -2963,9 +2931,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Array.NullableModelValue", + "parameters": [ + { + "$id": "293", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "294", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "295", + "type": { + "$id": "296", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableModelValue", + "apiVersions": [], "parent": { "$ref": "11" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json index 12802f44f82..68a6de2d677 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json @@ -85,6 +85,7 @@ "name": "DictionaryClient", "namespace": "Type.Dictionary", "doc": "Illustrates various of dictionaries.", + "operations": [], "parameters": [ { "$id": "13", @@ -117,10 +118,9 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Dictionary", "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary", + "apiVersions": [], "children": [ { "$id": "17", @@ -128,54 +128,22 @@ "name": "Int32Value", "namespace": "Type.Dictionary", "doc": "Dictionary of int32 values", - "parameters": [ - { - "$id": "18", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "19", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "20", - "type": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "22", + "$id": "18", "name": "get", "resourceName": "Int32Value", "accessibility": "public", "parameters": [ { - "$id": "23", + "$id": "19", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "24", + "$id": "20", "kind": "constant", "valueType": { - "$id": "25", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -197,22 +165,22 @@ ], "responses": [ { - "$id": "26", + "$id": "22", "statusCodes": [ 200 ], "bodyType": { - "$id": "27", + "$id": "23", "kind": "dict", "keyType": { - "$id": "28", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "29", + "$id": "25", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -237,21 +205,21 @@ "decorators": [] }, { - "$id": "30", + "$id": "26", "name": "put", "resourceName": "Int32Value", "accessibility": "public", "parameters": [ { - "$id": "31", + "$id": "27", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "32", + "$id": "28", "kind": "constant", "valueType": { - "$id": "33", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -271,21 +239,21 @@ "skipUrlEncoding": false }, { - "$id": "34", + "$id": "30", "name": "body", "nameInRequest": "body", "type": { - "$id": "35", + "$id": "31", "kind": "dict", "keyType": { - "$id": "36", + "$id": "32", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "37", + "$id": "33", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -306,7 +274,7 @@ ], "responses": [ { - "$id": "38", + "$id": "34", "statusCodes": [ 204 ], @@ -327,27 +295,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value", - "decorators": [], - "parent": { - "$ref": "12" - } - }, - { - "$id": "39", - "kind": "client", - "name": "Int64Value", - "namespace": "Type.Dictionary", - "doc": "Dictionary of int64 values", "parameters": [ { - "$id": "40", + "$id": "35", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "41", + "$id": "36", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -361,9 +316,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "42", + "$id": "37", "type": { - "$id": "43", + "$id": "38", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -372,22 +327,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "39", + "kind": "client", + "name": "Int64Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of int64 values", "operations": [ { - "$id": "44", + "$id": "40", "name": "get", "resourceName": "Int64Value", "accessibility": "public", "parameters": [ { - "$id": "45", + "$id": "41", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "46", + "$id": "42", "kind": "constant", "valueType": { - "$id": "47", + "$id": "43", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -409,22 +377,22 @@ ], "responses": [ { - "$id": "48", + "$id": "44", "statusCodes": [ 200 ], "bodyType": { - "$id": "49", + "$id": "45", "kind": "dict", "keyType": { - "$id": "50", + "$id": "46", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "51", + "$id": "47", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -449,21 +417,21 @@ "decorators": [] }, { - "$id": "52", + "$id": "48", "name": "put", "resourceName": "Int64Value", "accessibility": "public", "parameters": [ { - "$id": "53", + "$id": "49", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "54", + "$id": "50", "kind": "constant", "valueType": { - "$id": "55", + "$id": "51", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -483,21 +451,21 @@ "skipUrlEncoding": false }, { - "$id": "56", + "$id": "52", "name": "body", "nameInRequest": "body", "type": { - "$id": "57", + "$id": "53", "kind": "dict", "keyType": { - "$id": "58", + "$id": "54", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "59", + "$id": "55", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -518,7 +486,7 @@ ], "responses": [ { - "$id": "60", + "$id": "56", "statusCodes": [ 204 ], @@ -539,27 +507,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value", - "decorators": [], - "parent": { - "$ref": "12" - } - }, - { - "$id": "61", - "kind": "client", - "name": "BooleanValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of boolean values", "parameters": [ { - "$id": "62", + "$id": "57", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "63", + "$id": "58", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -573,9 +528,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "64", + "$id": "59", "type": { - "$id": "65", + "$id": "60", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -584,22 +539,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "61", + "kind": "client", + "name": "BooleanValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of boolean values", "operations": [ { - "$id": "66", + "$id": "62", "name": "get", "resourceName": "BooleanValue", "accessibility": "public", "parameters": [ { - "$id": "67", + "$id": "63", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "68", + "$id": "64", "kind": "constant", "valueType": { - "$id": "69", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -621,22 +589,22 @@ ], "responses": [ { - "$id": "70", + "$id": "66", "statusCodes": [ 200 ], "bodyType": { - "$id": "71", + "$id": "67", "kind": "dict", "keyType": { - "$id": "72", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "73", + "$id": "69", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -661,21 +629,21 @@ "decorators": [] }, { - "$id": "74", + "$id": "70", "name": "put", "resourceName": "BooleanValue", "accessibility": "public", "parameters": [ { - "$id": "75", + "$id": "71", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "76", + "$id": "72", "kind": "constant", "valueType": { - "$id": "77", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -695,21 +663,21 @@ "skipUrlEncoding": false }, { - "$id": "78", + "$id": "74", "name": "body", "nameInRequest": "body", "type": { - "$id": "79", + "$id": "75", "kind": "dict", "keyType": { - "$id": "80", + "$id": "76", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "81", + "$id": "77", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -730,7 +698,7 @@ ], "responses": [ { - "$id": "82", + "$id": "78", "statusCodes": [ 204 ], @@ -751,27 +719,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue", - "decorators": [], - "parent": { - "$ref": "12" - } - }, - { - "$id": "83", - "kind": "client", - "name": "StringValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of string values", "parameters": [ { - "$id": "84", + "$id": "79", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "85", + "$id": "80", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -785,9 +740,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "86", + "$id": "81", "type": { - "$id": "87", + "$id": "82", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -796,22 +751,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "83", + "kind": "client", + "name": "StringValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of string values", "operations": [ { - "$id": "88", + "$id": "84", "name": "get", "resourceName": "StringValue", "accessibility": "public", "parameters": [ { - "$id": "89", + "$id": "85", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "90", + "$id": "86", "kind": "constant", "valueType": { - "$id": "91", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -833,22 +801,22 @@ ], "responses": [ { - "$id": "92", + "$id": "88", "statusCodes": [ 200 ], "bodyType": { - "$id": "93", + "$id": "89", "kind": "dict", "keyType": { - "$id": "94", + "$id": "90", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "95", + "$id": "91", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -873,21 +841,21 @@ "decorators": [] }, { - "$id": "96", + "$id": "92", "name": "put", "resourceName": "StringValue", "accessibility": "public", "parameters": [ { - "$id": "97", + "$id": "93", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "98", + "$id": "94", "kind": "constant", "valueType": { - "$id": "99", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -907,21 +875,21 @@ "skipUrlEncoding": false }, { - "$id": "100", + "$id": "96", "name": "body", "nameInRequest": "body", "type": { - "$id": "101", + "$id": "97", "kind": "dict", "keyType": { - "$id": "102", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "103", + "$id": "99", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -942,7 +910,7 @@ ], "responses": [ { - "$id": "104", + "$id": "100", "statusCodes": [ 204 ], @@ -963,27 +931,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Dictionary.StringValue", - "decorators": [], - "parent": { - "$ref": "12" - } - }, - { - "$id": "105", - "kind": "client", - "name": "Float32Value", - "namespace": "Type.Dictionary", - "doc": "Dictionary of float values", "parameters": [ { - "$id": "106", + "$id": "101", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "107", + "$id": "102", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -997,9 +952,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "108", + "$id": "103", "type": { - "$id": "109", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1008,22 +963,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.StringValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "105", + "kind": "client", + "name": "Float32Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of float values", "operations": [ { - "$id": "110", + "$id": "106", "name": "get", "resourceName": "Float32Value", "accessibility": "public", "parameters": [ { - "$id": "111", + "$id": "107", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "112", + "$id": "108", "kind": "constant", "valueType": { - "$id": "113", + "$id": "109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1045,22 +1013,22 @@ ], "responses": [ { - "$id": "114", + "$id": "110", "statusCodes": [ 200 ], "bodyType": { - "$id": "115", + "$id": "111", "kind": "dict", "keyType": { - "$id": "116", + "$id": "112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "117", + "$id": "113", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1085,21 +1053,21 @@ "decorators": [] }, { - "$id": "118", + "$id": "114", "name": "put", "resourceName": "Float32Value", "accessibility": "public", "parameters": [ { - "$id": "119", + "$id": "115", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "120", + "$id": "116", "kind": "constant", "valueType": { - "$id": "121", + "$id": "117", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1119,21 +1087,21 @@ "skipUrlEncoding": false }, { - "$id": "122", + "$id": "118", "name": "body", "nameInRequest": "body", "type": { - "$id": "123", + "$id": "119", "kind": "dict", "keyType": { - "$id": "124", + "$id": "120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "125", + "$id": "121", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1154,7 +1122,7 @@ ], "responses": [ { - "$id": "126", + "$id": "122", "statusCodes": [ 204 ], @@ -1175,27 +1143,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value", - "decorators": [], - "parent": { - "$ref": "12" - } - }, - { - "$id": "127", - "kind": "client", - "name": "DatetimeValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of datetime values", "parameters": [ { - "$id": "128", + "$id": "123", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "129", + "$id": "124", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1209,9 +1164,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "130", + "$id": "125", "type": { - "$id": "131", + "$id": "126", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1220,22 +1175,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "127", + "kind": "client", + "name": "DatetimeValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of datetime values", "operations": [ { - "$id": "132", + "$id": "128", "name": "get", "resourceName": "DatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "133", + "$id": "129", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "134", + "$id": "130", "kind": "constant", "valueType": { - "$id": "135", + "$id": "131", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1257,27 +1225,27 @@ ], "responses": [ { - "$id": "136", + "$id": "132", "statusCodes": [ 200 ], "bodyType": { - "$id": "137", + "$id": "133", "kind": "dict", "keyType": { - "$id": "138", + "$id": "134", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "139", + "$id": "135", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "140", + "$id": "136", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1305,21 +1273,21 @@ "decorators": [] }, { - "$id": "141", + "$id": "137", "name": "put", "resourceName": "DatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "142", + "$id": "138", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "143", + "$id": "139", "kind": "constant", "valueType": { - "$id": "144", + "$id": "140", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1339,26 +1307,26 @@ "skipUrlEncoding": false }, { - "$id": "145", + "$id": "141", "name": "body", "nameInRequest": "body", "type": { - "$id": "146", + "$id": "142", "kind": "dict", "keyType": { - "$id": "147", + "$id": "143", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "148", + "$id": "144", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "149", + "$id": "145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1382,7 +1350,7 @@ ], "responses": [ { - "$id": "150", + "$id": "146", "statusCodes": [ 204 ], @@ -1403,27 +1371,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue", - "decorators": [], - "parent": { - "$ref": "12" - } - }, - { - "$id": "151", - "kind": "client", - "name": "DurationValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of duration values", "parameters": [ { - "$id": "152", + "$id": "147", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "153", + "$id": "148", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1437,9 +1392,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "154", + "$id": "149", "type": { - "$id": "155", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1448,22 +1403,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "151", + "kind": "client", + "name": "DurationValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of duration values", "operations": [ { - "$id": "156", + "$id": "152", "name": "get", "resourceName": "DurationValue", "accessibility": "public", "parameters": [ { - "$id": "157", + "$id": "153", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "158", + "$id": "154", "kind": "constant", "valueType": { - "$id": "159", + "$id": "155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1485,27 +1453,27 @@ ], "responses": [ { - "$id": "160", + "$id": "156", "statusCodes": [ 200 ], "bodyType": { - "$id": "161", + "$id": "157", "kind": "dict", "keyType": { - "$id": "162", + "$id": "158", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "163", + "$id": "159", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "164", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1533,21 +1501,21 @@ "decorators": [] }, { - "$id": "165", + "$id": "161", "name": "put", "resourceName": "DurationValue", "accessibility": "public", "parameters": [ { - "$id": "166", + "$id": "162", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "167", + "$id": "163", "kind": "constant", "valueType": { - "$id": "168", + "$id": "164", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1567,26 +1535,26 @@ "skipUrlEncoding": false }, { - "$id": "169", + "$id": "165", "name": "body", "nameInRequest": "body", "type": { - "$id": "170", + "$id": "166", "kind": "dict", "keyType": { - "$id": "171", + "$id": "167", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "172", + "$id": "168", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "173", + "$id": "169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1610,7 +1578,7 @@ ], "responses": [ { - "$id": "174", + "$id": "170", "statusCodes": [ 204 ], @@ -1631,27 +1599,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue", - "decorators": [], - "parent": { - "$ref": "12" - } - }, - { - "$id": "175", - "kind": "client", - "name": "UnknownValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of unknown values", "parameters": [ { - "$id": "176", + "$id": "171", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "177", + "$id": "172", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1665,9 +1620,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "178", + "$id": "173", "type": { - "$id": "179", + "$id": "174", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1676,22 +1631,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "175", + "kind": "client", + "name": "UnknownValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of unknown values", "operations": [ { - "$id": "180", + "$id": "176", "name": "get", "resourceName": "UnknownValue", "accessibility": "public", "parameters": [ { - "$id": "181", + "$id": "177", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "182", + "$id": "178", "kind": "constant", "valueType": { - "$id": "183", + "$id": "179", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1713,22 +1681,22 @@ ], "responses": [ { - "$id": "184", + "$id": "180", "statusCodes": [ 200 ], "bodyType": { - "$id": "185", + "$id": "181", "kind": "dict", "keyType": { - "$id": "186", + "$id": "182", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "187", + "$id": "183", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1753,21 +1721,21 @@ "decorators": [] }, { - "$id": "188", + "$id": "184", "name": "put", "resourceName": "UnknownValue", "accessibility": "public", "parameters": [ { - "$id": "189", + "$id": "185", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "190", + "$id": "186", "kind": "constant", "valueType": { - "$id": "191", + "$id": "187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1787,21 +1755,21 @@ "skipUrlEncoding": false }, { - "$id": "192", + "$id": "188", "name": "body", "nameInRequest": "body", "type": { - "$id": "193", + "$id": "189", "kind": "dict", "keyType": { - "$id": "194", + "$id": "190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "195", + "$id": "191", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1822,7 +1790,7 @@ ], "responses": [ { - "$id": "196", + "$id": "192", "statusCodes": [ 204 ], @@ -1843,27 +1811,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue", - "decorators": [], - "parent": { - "$ref": "12" - } - }, - { - "$id": "197", - "kind": "client", - "name": "ModelValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of model values", "parameters": [ { - "$id": "198", + "$id": "193", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "199", + "$id": "194", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1877,9 +1832,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "200", + "$id": "195", "type": { - "$id": "201", + "$id": "196", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1888,22 +1843,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "197", + "kind": "client", + "name": "ModelValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of model values", "operations": [ { - "$id": "202", + "$id": "198", "name": "get", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "203", + "$id": "199", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "204", + "$id": "200", "kind": "constant", "valueType": { - "$id": "205", + "$id": "201", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1925,15 +1893,15 @@ ], "responses": [ { - "$id": "206", + "$id": "202", "statusCodes": [ 200 ], "bodyType": { - "$id": "207", + "$id": "203", "kind": "dict", "keyType": { - "$id": "208", + "$id": "204", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1961,21 +1929,21 @@ "decorators": [] }, { - "$id": "209", + "$id": "205", "name": "put", "resourceName": "ModelValue", "accessibility": "public", "parameters": [ { - "$id": "210", + "$id": "206", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "211", + "$id": "207", "kind": "constant", "valueType": { - "$id": "212", + "$id": "208", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1995,14 +1963,14 @@ "skipUrlEncoding": false }, { - "$id": "213", + "$id": "209", "name": "body", "nameInRequest": "body", "type": { - "$id": "214", + "$id": "210", "kind": "dict", "keyType": { - "$id": "215", + "$id": "211", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2026,7 +1994,7 @@ ], "responses": [ { - "$id": "216", + "$id": "212", "statusCodes": [ 204 ], @@ -2047,27 +2015,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue", - "decorators": [], - "parent": { - "$ref": "12" - } - }, - { - "$id": "217", - "kind": "client", - "name": "RecursiveModelValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of model values", "parameters": [ { - "$id": "218", + "$id": "213", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "219", + "$id": "214", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2081,9 +2036,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "220", + "$id": "215", "type": { - "$id": "221", + "$id": "216", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2092,22 +2047,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "217", + "kind": "client", + "name": "RecursiveModelValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of model values", "operations": [ { - "$id": "222", + "$id": "218", "name": "get", "resourceName": "RecursiveModelValue", "accessibility": "public", "parameters": [ { - "$id": "223", + "$id": "219", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "224", + "$id": "220", "kind": "constant", "valueType": { - "$id": "225", + "$id": "221", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2129,15 +2097,15 @@ ], "responses": [ { - "$id": "226", + "$id": "222", "statusCodes": [ 200 ], "bodyType": { - "$id": "227", + "$id": "223", "kind": "dict", "keyType": { - "$id": "228", + "$id": "224", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2165,21 +2133,21 @@ "decorators": [] }, { - "$id": "229", + "$id": "225", "name": "put", "resourceName": "RecursiveModelValue", "accessibility": "public", "parameters": [ { - "$id": "230", + "$id": "226", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "231", + "$id": "227", "kind": "constant", "valueType": { - "$id": "232", + "$id": "228", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2199,14 +2167,14 @@ "skipUrlEncoding": false }, { - "$id": "233", + "$id": "229", "name": "body", "nameInRequest": "body", "type": { - "$id": "234", + "$id": "230", "kind": "dict", "keyType": { - "$id": "235", + "$id": "231", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2230,7 +2198,7 @@ ], "responses": [ { - "$id": "236", + "$id": "232", "statusCodes": [ 204 ], @@ -2251,27 +2219,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue", - "decorators": [], - "parent": { - "$ref": "12" - } - }, - { - "$id": "237", - "kind": "client", - "name": "NullableFloatValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of nullable float values", "parameters": [ { - "$id": "238", + "$id": "233", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "239", + "$id": "234", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2285,9 +2240,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "240", + "$id": "235", "type": { - "$id": "241", + "$id": "236", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2296,22 +2251,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "237", + "kind": "client", + "name": "NullableFloatValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of nullable float values", "operations": [ { - "$id": "242", + "$id": "238", "name": "get", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "243", + "$id": "239", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "244", + "$id": "240", "kind": "constant", "valueType": { - "$id": "245", + "$id": "241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2333,25 +2301,25 @@ ], "responses": [ { - "$id": "246", + "$id": "242", "statusCodes": [ 200 ], "bodyType": { - "$id": "247", + "$id": "243", "kind": "dict", "keyType": { - "$id": "248", + "$id": "244", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "249", + "$id": "245", "kind": "nullable", "type": { - "$id": "250", + "$id": "246", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -2378,21 +2346,21 @@ "decorators": [] }, { - "$id": "251", + "$id": "247", "name": "put", "resourceName": "NullableFloatValue", "accessibility": "public", "parameters": [ { - "$id": "252", + "$id": "248", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "253", + "$id": "249", "kind": "constant", "valueType": { - "$id": "254", + "$id": "250", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2412,21 +2380,21 @@ "skipUrlEncoding": false }, { - "$id": "255", + "$id": "251", "name": "body", "nameInRequest": "body", "type": { - "$id": "256", + "$id": "252", "kind": "dict", "keyType": { - "$id": "257", + "$id": "253", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$ref": "249" + "$ref": "245" }, "decorators": [] }, @@ -2443,7 +2411,7 @@ ], "responses": [ { - "$id": "258", + "$id": "254", "statusCodes": [ 204 ], @@ -2464,9 +2432,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue", + "parameters": [ + { + "$id": "255", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "256", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "257", + "type": { + "$id": "258", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue", + "apiVersions": [], "parent": { "$ref": "12" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json index b3ea2f2889b..10481689023 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json @@ -158,6 +158,7 @@ "kind": "client", "name": "ExtensibleClient", "namespace": "Type.Enum.Extensible", + "operations": [], "parameters": [ { "$id": "19", @@ -190,64 +191,31 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Enum.Extensible", "decorators": [], + "crossLanguageDefinitionId": "Type.Enum.Extensible", + "apiVersions": [], "children": [ { "$id": "23", "kind": "client", "name": "String", "namespace": "Type.Enum.Extensible", - "parameters": [ - { - "$id": "24", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "25", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "26", - "type": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "28", + "$id": "24", "name": "getKnownValue", "resourceName": "String", "accessibility": "public", "parameters": [ { - "$id": "29", + "$id": "25", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "30", + "$id": "26", "kind": "constant", "valueType": { - "$id": "31", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -269,7 +237,7 @@ ], "responses": [ { - "$id": "32", + "$id": "28", "statusCodes": [ 200 ], @@ -278,14 +246,14 @@ }, "headers": [ { - "$id": "33", + "$id": "29", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "34", + "$id": "30", "kind": "constant", "valueType": { - "$id": "35", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -312,20 +280,20 @@ "decorators": [] }, { - "$id": "36", + "$id": "32", "name": "getUnknownValue", "resourceName": "String", "accessibility": "public", "parameters": [ { - "$id": "37", + "$id": "33", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "38", + "$id": "34", "kind": "constant", "valueType": { - "$id": "39", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -347,7 +315,7 @@ ], "responses": [ { - "$id": "40", + "$id": "36", "statusCodes": [ 200 ], @@ -356,14 +324,14 @@ }, "headers": [ { - "$id": "41", + "$id": "37", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "42", + "$id": "38", "kind": "constant", "valueType": { - "$id": "43", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -390,20 +358,20 @@ "decorators": [] }, { - "$id": "44", + "$id": "40", "name": "putKnownValue", "resourceName": "String", "accessibility": "public", "parameters": [ { - "$id": "45", + "$id": "41", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "46", + "$id": "42", "kind": "constant", "valueType": { - "$id": "47", + "$id": "43", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -423,7 +391,7 @@ "skipUrlEncoding": false }, { - "$id": "48", + "$id": "44", "name": "body", "nameInRequest": "body", "type": { @@ -442,7 +410,7 @@ ], "responses": [ { - "$id": "49", + "$id": "45", "statusCodes": [ 204 ], @@ -463,20 +431,20 @@ "decorators": [] }, { - "$id": "50", + "$id": "46", "name": "putUnknownValue", "resourceName": "String", "accessibility": "public", "parameters": [ { - "$id": "51", + "$id": "47", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "52", + "$id": "48", "kind": "constant", "valueType": { - "$id": "53", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -496,7 +464,7 @@ "skipUrlEncoding": false }, { - "$id": "54", + "$id": "50", "name": "body", "nameInRequest": "body", "type": { @@ -515,7 +483,7 @@ ], "responses": [ { - "$id": "55", + "$id": "51", "statusCodes": [ 204 ], @@ -536,9 +504,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Enum.Extensible.String", + "parameters": [ + { + "$id": "52", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "53", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "54", + "type": { + "$id": "55", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Type.Enum.Extensible.String", + "apiVersions": [], "parent": { "$ref": "18" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json index c0a7a2eb07e..4511a5d748b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json @@ -158,6 +158,7 @@ "kind": "client", "name": "FixedClient", "namespace": "Type.Enum.Fixed", + "operations": [], "parameters": [ { "$id": "19", @@ -190,65 +191,32 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Enum.Fixed", "decorators": [], + "crossLanguageDefinitionId": "Type.Enum.Fixed", + "apiVersions": [], "children": [ { "$id": "23", "kind": "client", "name": "String", "namespace": "Type.Enum.Fixed", - "parameters": [ - { - "$id": "24", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "25", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "26", - "type": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "28", + "$id": "24", "name": "getKnownValue", "resourceName": "String", "doc": "getKnownValue", "accessibility": "public", "parameters": [ { - "$id": "29", + "$id": "25", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "30", + "$id": "26", "kind": "constant", "valueType": { - "$id": "31", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -270,7 +238,7 @@ ], "responses": [ { - "$id": "32", + "$id": "28", "statusCodes": [ 200 ], @@ -279,14 +247,14 @@ }, "headers": [ { - "$id": "33", + "$id": "29", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "34", + "$id": "30", "kind": "constant", "valueType": { - "$id": "35", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -313,21 +281,21 @@ "decorators": [] }, { - "$id": "36", + "$id": "32", "name": "putKnownValue", "resourceName": "String", "doc": "putKnownValue", "accessibility": "public", "parameters": [ { - "$id": "37", + "$id": "33", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "38", + "$id": "34", "kind": "constant", "valueType": { - "$id": "39", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -347,7 +315,7 @@ "skipUrlEncoding": false }, { - "$id": "40", + "$id": "36", "name": "body", "nameInRequest": "body", "doc": "_", @@ -367,7 +335,7 @@ ], "responses": [ { - "$id": "41", + "$id": "37", "statusCodes": [ 204 ], @@ -388,21 +356,21 @@ "decorators": [] }, { - "$id": "42", + "$id": "38", "name": "putUnknownValue", "resourceName": "String", "doc": "putUnknownValue", "accessibility": "public", "parameters": [ { - "$id": "43", + "$id": "39", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "44", + "$id": "40", "kind": "constant", "valueType": { - "$id": "45", + "$id": "41", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -422,7 +390,7 @@ "skipUrlEncoding": false }, { - "$id": "46", + "$id": "42", "name": "body", "nameInRequest": "body", "doc": "_", @@ -442,7 +410,7 @@ ], "responses": [ { - "$id": "47", + "$id": "43", "statusCodes": [ 204 ], @@ -463,9 +431,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Enum.Fixed.String", + "parameters": [ + { + "$id": "44", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "45", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "46", + "type": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Type.Enum.Fixed.String", + "apiVersions": [], "parent": { "$ref": "18" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json index 71f42840aa0..1b82949c5a8 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json @@ -45,55 +45,23 @@ "name": "EmptyClient", "namespace": "Type.Model.Empty", "doc": "Illustrates usage of empty model used in operation's parameters and responses.", - "parameters": [ - { - "$id": "6", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "7", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "8", - "type": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "10", + "$id": "6", "name": "putEmpty", "resourceName": "Empty", "accessibility": "public", "parameters": [ { - "$id": "11", + "$id": "7", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "12", + "$id": "8", "kind": "constant", "valueType": { - "$id": "13", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -113,7 +81,7 @@ "skipUrlEncoding": false }, { - "$id": "14", + "$id": "10", "name": "input", "nameInRequest": "input", "type": { @@ -132,7 +100,7 @@ ], "responses": [ { - "$id": "15", + "$id": "11", "statusCodes": [ 204 ], @@ -153,20 +121,20 @@ "decorators": [] }, { - "$id": "16", + "$id": "12", "name": "getEmpty", "resourceName": "Empty", "accessibility": "public", "parameters": [ { - "$id": "17", + "$id": "13", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "18", + "$id": "14", "kind": "constant", "valueType": { - "$id": "19", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -188,7 +156,7 @@ ], "responses": [ { - "$id": "20", + "$id": "16", "statusCodes": [ 200 ], @@ -212,21 +180,21 @@ "decorators": [] }, { - "$id": "21", + "$id": "17", "name": "postRoundTripEmpty", "resourceName": "Empty", "accessibility": "public", "parameters": [ { - "$id": "22", + "$id": "18", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "23", + "$id": "19", "kind": "constant", "valueType": { - "$id": "24", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -246,14 +214,14 @@ "skipUrlEncoding": false }, { - "$id": "25", + "$id": "21", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "26", + "$id": "22", "kind": "constant", "valueType": { - "$id": "27", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -273,7 +241,7 @@ "skipUrlEncoding": false }, { - "$id": "28", + "$id": "24", "name": "body", "nameInRequest": "body", "type": { @@ -292,7 +260,7 @@ ], "responses": [ { - "$id": "29", + "$id": "25", "statusCodes": [ 200 ], @@ -319,9 +287,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "26", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "27", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "28", + "type": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Type.Model.Empty", - "decorators": [] + "apiVersions": [] } ] } 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 87de0507577..0d5242f60c2 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 @@ -331,55 +331,23 @@ "name": "EnumDiscriminatorClient", "namespace": "Type.Model.Inheritance.EnumDiscriminator", "doc": "Illustrates inheritance with enum discriminator.", - "parameters": [ - { - "$id": "41", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "42", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "43", - "type": { - "$id": "44", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "45", + "$id": "41", "name": "getExtensibleModel", "resourceName": "EnumDiscriminator", "doc": "Receive model with extensible enum discriminator type.", "accessibility": "public", "parameters": [ { - "$id": "46", + "$id": "42", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "47", + "$id": "43", "kind": "constant", "valueType": { - "$id": "48", + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -401,7 +369,7 @@ ], "responses": [ { - "$id": "49", + "$id": "45", "statusCodes": [ 200 ], @@ -425,22 +393,22 @@ "decorators": [] }, { - "$id": "50", + "$id": "46", "name": "putExtensibleModel", "resourceName": "EnumDiscriminator", "doc": "Send model with extensible enum discriminator type.", "accessibility": "public", "parameters": [ { - "$id": "51", + "$id": "47", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "52", + "$id": "48", "kind": "constant", "valueType": { - "$id": "53", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -460,7 +428,7 @@ "skipUrlEncoding": false }, { - "$id": "54", + "$id": "50", "name": "input", "nameInRequest": "input", "doc": "Dog to create", @@ -480,7 +448,7 @@ ], "responses": [ { - "$id": "55", + "$id": "51", "statusCodes": [ 204 ], @@ -501,21 +469,21 @@ "decorators": [] }, { - "$id": "56", + "$id": "52", "name": "getExtensibleModelMissingDiscriminator", "resourceName": "EnumDiscriminator", "doc": "Get a model omitting the discriminator.", "accessibility": "public", "parameters": [ { - "$id": "57", + "$id": "53", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "58", + "$id": "54", "kind": "constant", "valueType": { - "$id": "59", + "$id": "55", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -537,7 +505,7 @@ ], "responses": [ { - "$id": "60", + "$id": "56", "statusCodes": [ 200 ], @@ -561,21 +529,21 @@ "decorators": [] }, { - "$id": "61", + "$id": "57", "name": "getExtensibleModelWrongDiscriminator", "resourceName": "EnumDiscriminator", "doc": "Get a model containing discriminator value never defined.", "accessibility": "public", "parameters": [ { - "$id": "62", + "$id": "58", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "63", + "$id": "59", "kind": "constant", "valueType": { - "$id": "64", + "$id": "60", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -597,7 +565,7 @@ ], "responses": [ { - "$id": "65", + "$id": "61", "statusCodes": [ 200 ], @@ -621,21 +589,21 @@ "decorators": [] }, { - "$id": "66", + "$id": "62", "name": "getFixedModel", "resourceName": "EnumDiscriminator", "doc": "Receive model with fixed enum discriminator type.", "accessibility": "public", "parameters": [ { - "$id": "67", + "$id": "63", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "68", + "$id": "64", "kind": "constant", "valueType": { - "$id": "69", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -657,7 +625,7 @@ ], "responses": [ { - "$id": "70", + "$id": "66", "statusCodes": [ 200 ], @@ -681,22 +649,22 @@ "decorators": [] }, { - "$id": "71", + "$id": "67", "name": "putFixedModel", "resourceName": "EnumDiscriminator", "doc": "Send model with fixed enum discriminator type.", "accessibility": "public", "parameters": [ { - "$id": "72", + "$id": "68", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "73", + "$id": "69", "kind": "constant", "valueType": { - "$id": "74", + "$id": "70", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -716,7 +684,7 @@ "skipUrlEncoding": false }, { - "$id": "75", + "$id": "71", "name": "input", "nameInRequest": "input", "doc": "Snake to create", @@ -736,7 +704,7 @@ ], "responses": [ { - "$id": "76", + "$id": "72", "statusCodes": [ 204 ], @@ -757,21 +725,21 @@ "decorators": [] }, { - "$id": "77", + "$id": "73", "name": "getFixedModelMissingDiscriminator", "resourceName": "EnumDiscriminator", "doc": "Get a model omitting the discriminator.", "accessibility": "public", "parameters": [ { - "$id": "78", + "$id": "74", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "79", + "$id": "75", "kind": "constant", "valueType": { - "$id": "80", + "$id": "76", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -793,7 +761,7 @@ ], "responses": [ { - "$id": "81", + "$id": "77", "statusCodes": [ 200 ], @@ -817,21 +785,21 @@ "decorators": [] }, { - "$id": "82", + "$id": "78", "name": "getFixedModelWrongDiscriminator", "resourceName": "EnumDiscriminator", "doc": "Get a model containing discriminator value never defined.", "accessibility": "public", "parameters": [ { - "$id": "83", + "$id": "79", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "84", + "$id": "80", "kind": "constant", "valueType": { - "$id": "85", + "$id": "81", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -853,7 +821,7 @@ ], "responses": [ { - "$id": "86", + "$id": "82", "statusCodes": [ 200 ], @@ -877,9 +845,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "83", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "84", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "85", + "type": { + "$id": "86", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json index 2ad5f2fcac9..503e51369c3 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json @@ -404,54 +404,22 @@ "name": "NestedDiscriminatorClient", "namespace": "Type.Model.Inheritance.NestedDiscriminator", "doc": "Illustrates multiple level inheritance with multiple discriminators.", - "parameters": [ - { - "$id": "54", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "55", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "56", - "type": { - "$id": "57", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "58", + "$id": "54", "name": "getModel", "resourceName": "NestedDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "59", + "$id": "55", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "60", + "$id": "56", "kind": "constant", "valueType": { - "$id": "61", + "$id": "57", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -473,7 +441,7 @@ ], "responses": [ { - "$id": "62", + "$id": "58", "statusCodes": [ 200 ], @@ -497,21 +465,21 @@ "decorators": [] }, { - "$id": "63", + "$id": "59", "name": "putModel", "resourceName": "NestedDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "64", + "$id": "60", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "65", + "$id": "61", "kind": "constant", "valueType": { - "$id": "66", + "$id": "62", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -531,7 +499,7 @@ "skipUrlEncoding": false }, { - "$id": "67", + "$id": "63", "name": "input", "nameInRequest": "input", "type": { @@ -550,7 +518,7 @@ ], "responses": [ { - "$id": "68", + "$id": "64", "statusCodes": [ 204 ], @@ -571,20 +539,20 @@ "decorators": [] }, { - "$id": "69", + "$id": "65", "name": "getRecursiveModel", "resourceName": "NestedDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "70", + "$id": "66", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "71", + "$id": "67", "kind": "constant", "valueType": { - "$id": "72", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -606,7 +574,7 @@ ], "responses": [ { - "$id": "73", + "$id": "69", "statusCodes": [ 200 ], @@ -630,21 +598,21 @@ "decorators": [] }, { - "$id": "74", + "$id": "70", "name": "putRecursiveModel", "resourceName": "NestedDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "75", + "$id": "71", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "76", + "$id": "72", "kind": "constant", "valueType": { - "$id": "77", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -664,7 +632,7 @@ "skipUrlEncoding": false }, { - "$id": "78", + "$id": "74", "name": "input", "nameInRequest": "input", "type": { @@ -683,7 +651,7 @@ ], "responses": [ { - "$id": "79", + "$id": "75", "statusCodes": [ 204 ], @@ -704,20 +672,20 @@ "decorators": [] }, { - "$id": "80", + "$id": "76", "name": "getMissingDiscriminator", "resourceName": "NestedDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "81", + "$id": "77", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "82", + "$id": "78", "kind": "constant", "valueType": { - "$id": "83", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -739,7 +707,7 @@ ], "responses": [ { - "$id": "84", + "$id": "80", "statusCodes": [ 200 ], @@ -763,20 +731,20 @@ "decorators": [] }, { - "$id": "85", + "$id": "81", "name": "getWrongDiscriminator", "resourceName": "NestedDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "86", + "$id": "82", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "87", + "$id": "83", "kind": "constant", "valueType": { - "$id": "88", + "$id": "84", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -798,7 +766,7 @@ ], "responses": [ { - "$id": "89", + "$id": "85", "statusCodes": [ 200 ], @@ -822,9 +790,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "86", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "87", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "88", + "type": { + "$id": "89", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json index bd7317febf3..092bf7dc097 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json @@ -132,55 +132,23 @@ "name": "NotDiscriminatedClient", "namespace": "Type.Model.Inheritance.NotDiscriminated", "doc": "Illustrates not-discriminated inheritance model.", - "parameters": [ - { - "$id": "18", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "19", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "20", - "type": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "22", + "$id": "18", "name": "postValid", "resourceName": "NotDiscriminated", "accessibility": "public", "parameters": [ { - "$id": "23", + "$id": "19", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "24", + "$id": "20", "kind": "constant", "valueType": { - "$id": "25", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -200,7 +168,7 @@ "skipUrlEncoding": false }, { - "$id": "26", + "$id": "22", "name": "input", "nameInRequest": "input", "type": { @@ -219,7 +187,7 @@ ], "responses": [ { - "$id": "27", + "$id": "23", "statusCodes": [ 204 ], @@ -240,20 +208,20 @@ "decorators": [] }, { - "$id": "28", + "$id": "24", "name": "getValid", "resourceName": "NotDiscriminated", "accessibility": "public", "parameters": [ { - "$id": "29", + "$id": "25", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "30", + "$id": "26", "kind": "constant", "valueType": { - "$id": "31", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -275,7 +243,7 @@ ], "responses": [ { - "$id": "32", + "$id": "28", "statusCodes": [ 200 ], @@ -299,21 +267,21 @@ "decorators": [] }, { - "$id": "33", + "$id": "29", "name": "putValid", "resourceName": "NotDiscriminated", "accessibility": "public", "parameters": [ { - "$id": "34", + "$id": "30", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "35", + "$id": "31", "kind": "constant", "valueType": { - "$id": "36", + "$id": "32", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -333,14 +301,14 @@ "skipUrlEncoding": false }, { - "$id": "37", + "$id": "33", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "38", + "$id": "34", "kind": "constant", "valueType": { - "$id": "39", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -360,7 +328,7 @@ "skipUrlEncoding": false }, { - "$id": "40", + "$id": "36", "name": "input", "nameInRequest": "input", "type": { @@ -379,7 +347,7 @@ ], "responses": [ { - "$id": "41", + "$id": "37", "statusCodes": [ 200 ], @@ -406,9 +374,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "38", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "39", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "40", + "type": { + "$id": "41", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json index 7f130e05047..c37ead36d1d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json @@ -94,55 +94,23 @@ "name": "RecursiveClient", "namespace": "Type.Model.Inheritance.Recursive", "doc": "Illustrates inheritance recursion", - "parameters": [ - { - "$id": "13", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "14", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "15", - "type": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "17", + "$id": "13", "name": "put", "resourceName": "Recursive", "accessibility": "public", "parameters": [ { - "$id": "18", + "$id": "14", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "19", + "$id": "15", "kind": "constant", "valueType": { - "$id": "20", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -162,7 +130,7 @@ "skipUrlEncoding": false }, { - "$id": "21", + "$id": "17", "name": "input", "nameInRequest": "input", "type": { @@ -181,7 +149,7 @@ ], "responses": [ { - "$id": "22", + "$id": "18", "statusCodes": [ 204 ], @@ -202,20 +170,20 @@ "decorators": [] }, { - "$id": "23", + "$id": "19", "name": "get", "resourceName": "Recursive", "accessibility": "public", "parameters": [ { - "$id": "24", + "$id": "20", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "25", + "$id": "21", "kind": "constant", "valueType": { - "$id": "26", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -237,7 +205,7 @@ ], "responses": [ { - "$id": "27", + "$id": "23", "statusCodes": [ 200 ], @@ -261,9 +229,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "24", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "25", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "26", + "type": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json index f709c0a0835..b07d2ba17e1 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json @@ -493,54 +493,22 @@ "name": "SingleDiscriminatorClient", "namespace": "Type.Model.Inheritance.SingleDiscriminator", "doc": "Illustrates inheritance with single discriminator.", - "parameters": [ - { - "$id": "65", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "66", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "67", - "type": { - "$id": "68", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "69", + "$id": "65", "name": "getModel", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "70", + "$id": "66", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "71", + "$id": "67", "kind": "constant", "valueType": { - "$id": "72", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -562,7 +530,7 @@ ], "responses": [ { - "$id": "73", + "$id": "69", "statusCodes": [ 200 ], @@ -586,21 +554,21 @@ "decorators": [] }, { - "$id": "74", + "$id": "70", "name": "putModel", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "75", + "$id": "71", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "76", + "$id": "72", "kind": "constant", "valueType": { - "$id": "77", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -620,7 +588,7 @@ "skipUrlEncoding": false }, { - "$id": "78", + "$id": "74", "name": "input", "nameInRequest": "input", "type": { @@ -639,7 +607,7 @@ ], "responses": [ { - "$id": "79", + "$id": "75", "statusCodes": [ 204 ], @@ -660,20 +628,20 @@ "decorators": [] }, { - "$id": "80", + "$id": "76", "name": "getRecursiveModel", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "81", + "$id": "77", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "82", + "$id": "78", "kind": "constant", "valueType": { - "$id": "83", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -695,7 +663,7 @@ ], "responses": [ { - "$id": "84", + "$id": "80", "statusCodes": [ 200 ], @@ -719,21 +687,21 @@ "decorators": [] }, { - "$id": "85", + "$id": "81", "name": "putRecursiveModel", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "86", + "$id": "82", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "87", + "$id": "83", "kind": "constant", "valueType": { - "$id": "88", + "$id": "84", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -753,7 +721,7 @@ "skipUrlEncoding": false }, { - "$id": "89", + "$id": "85", "name": "input", "nameInRequest": "input", "type": { @@ -772,7 +740,7 @@ ], "responses": [ { - "$id": "90", + "$id": "86", "statusCodes": [ 204 ], @@ -793,20 +761,20 @@ "decorators": [] }, { - "$id": "91", + "$id": "87", "name": "getMissingDiscriminator", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "92", + "$id": "88", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "93", + "$id": "89", "kind": "constant", "valueType": { - "$id": "94", + "$id": "90", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -828,7 +796,7 @@ ], "responses": [ { - "$id": "95", + "$id": "91", "statusCodes": [ 200 ], @@ -852,20 +820,20 @@ "decorators": [] }, { - "$id": "96", + "$id": "92", "name": "getWrongDiscriminator", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "97", + "$id": "93", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "98", + "$id": "94", "kind": "constant", "valueType": { - "$id": "99", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -887,7 +855,7 @@ ], "responses": [ { - "$id": "100", + "$id": "96", "statusCodes": [ 200 ], @@ -911,20 +879,20 @@ "decorators": [] }, { - "$id": "101", + "$id": "97", "name": "getLegacyModel", "resourceName": "SingleDiscriminator", "accessibility": "public", "parameters": [ { - "$id": "102", + "$id": "98", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "103", + "$id": "99", "kind": "constant", "valueType": { - "$id": "104", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -946,7 +914,7 @@ ], "responses": [ { - "$id": "105", + "$id": "101", "statusCodes": [ 200 ], @@ -970,9 +938,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "102", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "103", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "104", + "type": { + "$id": "105", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json index 0dcaf7d4fd2..41522bce920 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json @@ -126,55 +126,23 @@ "name": "UsageClient", "namespace": "Type.Model.Usage", "doc": "Illustrates usage of Record in different places(Operation parameters, return type or both).", - "parameters": [ - { - "$id": "18", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "19", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "20", - "type": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "22", + "$id": "18", "name": "input", "resourceName": "Usage", "accessibility": "public", "parameters": [ { - "$id": "23", + "$id": "19", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "24", + "$id": "20", "kind": "constant", "valueType": { - "$id": "25", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -194,7 +162,7 @@ "skipUrlEncoding": false }, { - "$id": "26", + "$id": "22", "name": "input", "nameInRequest": "input", "type": { @@ -213,7 +181,7 @@ ], "responses": [ { - "$id": "27", + "$id": "23", "statusCodes": [ 204 ], @@ -234,20 +202,20 @@ "decorators": [] }, { - "$id": "28", + "$id": "24", "name": "output", "resourceName": "Usage", "accessibility": "public", "parameters": [ { - "$id": "29", + "$id": "25", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "30", + "$id": "26", "kind": "constant", "valueType": { - "$id": "31", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -269,7 +237,7 @@ ], "responses": [ { - "$id": "32", + "$id": "28", "statusCodes": [ 200 ], @@ -293,21 +261,21 @@ "decorators": [] }, { - "$id": "33", + "$id": "29", "name": "inputAndOutput", "resourceName": "Usage", "accessibility": "public", "parameters": [ { - "$id": "34", + "$id": "30", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "35", + "$id": "31", "kind": "constant", "valueType": { - "$id": "36", + "$id": "32", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -327,14 +295,14 @@ "skipUrlEncoding": false }, { - "$id": "37", + "$id": "33", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "38", + "$id": "34", "kind": "constant", "valueType": { - "$id": "39", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -354,7 +322,7 @@ "skipUrlEncoding": false }, { - "$id": "40", + "$id": "36", "name": "body", "nameInRequest": "body", "type": { @@ -373,7 +341,7 @@ ], "responses": [ { - "$id": "41", + "$id": "37", "statusCodes": [ 200 ], @@ -400,9 +368,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "38", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "39", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "40", + "type": { + "$id": "41", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Type.Model.Usage", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json index cd6de61a2ea..d26f26db25c 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json @@ -263,55 +263,23 @@ "name": "VisibilityClient", "namespace": "Type.Model.Visibility", "doc": "Illustrates models with visibility properties.", - "parameters": [ - { - "$id": "39", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "40", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "41", - "type": { - "$id": "42", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "43", + "$id": "39", "name": "getModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "44", + "$id": "40", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "45", + "$id": "41", "kind": "constant", "valueType": { - "$id": "46", + "$id": "42", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -331,14 +299,14 @@ "skipUrlEncoding": false }, { - "$id": "47", + "$id": "43", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "48", + "$id": "44", "kind": "constant", "valueType": { - "$id": "49", + "$id": "45", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -358,7 +326,7 @@ "skipUrlEncoding": false }, { - "$id": "50", + "$id": "46", "name": "input", "nameInRequest": "input", "type": { @@ -377,7 +345,7 @@ ], "responses": [ { - "$id": "51", + "$id": "47", "statusCodes": [ 200 ], @@ -404,21 +372,21 @@ "decorators": [] }, { - "$id": "52", + "$id": "48", "name": "headModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "53", + "$id": "49", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "54", + "$id": "50", "kind": "constant", "valueType": { - "$id": "55", + "$id": "51", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -438,7 +406,7 @@ "skipUrlEncoding": false }, { - "$id": "56", + "$id": "52", "name": "input", "nameInRequest": "input", "type": { @@ -457,7 +425,7 @@ ], "responses": [ { - "$id": "57", + "$id": "53", "statusCodes": [ 200 ], @@ -478,21 +446,21 @@ "decorators": [] }, { - "$id": "58", + "$id": "54", "name": "putModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "59", + "$id": "55", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "60", + "$id": "56", "kind": "constant", "valueType": { - "$id": "61", + "$id": "57", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -512,7 +480,7 @@ "skipUrlEncoding": false }, { - "$id": "62", + "$id": "58", "name": "input", "nameInRequest": "input", "type": { @@ -531,7 +499,7 @@ ], "responses": [ { - "$id": "63", + "$id": "59", "statusCodes": [ 204 ], @@ -552,21 +520,21 @@ "decorators": [] }, { - "$id": "64", + "$id": "60", "name": "patchModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "65", + "$id": "61", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "66", + "$id": "62", "kind": "constant", "valueType": { - "$id": "67", + "$id": "63", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -586,7 +554,7 @@ "skipUrlEncoding": false }, { - "$id": "68", + "$id": "64", "name": "input", "nameInRequest": "input", "type": { @@ -605,7 +573,7 @@ ], "responses": [ { - "$id": "69", + "$id": "65", "statusCodes": [ 204 ], @@ -626,21 +594,21 @@ "decorators": [] }, { - "$id": "70", + "$id": "66", "name": "postModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "71", + "$id": "67", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "72", + "$id": "68", "kind": "constant", "valueType": { - "$id": "73", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -660,7 +628,7 @@ "skipUrlEncoding": false }, { - "$id": "74", + "$id": "70", "name": "input", "nameInRequest": "input", "type": { @@ -679,7 +647,7 @@ ], "responses": [ { - "$id": "75", + "$id": "71", "statusCodes": [ 204 ], @@ -700,21 +668,21 @@ "decorators": [] }, { - "$id": "76", + "$id": "72", "name": "deleteModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "77", + "$id": "73", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "78", + "$id": "74", "kind": "constant", "valueType": { - "$id": "79", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -734,7 +702,7 @@ "skipUrlEncoding": false }, { - "$id": "80", + "$id": "76", "name": "input", "nameInRequest": "input", "type": { @@ -753,7 +721,7 @@ ], "responses": [ { - "$id": "81", + "$id": "77", "statusCodes": [ 204 ], @@ -774,21 +742,21 @@ "decorators": [] }, { - "$id": "82", + "$id": "78", "name": "putReadOnlyModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "83", + "$id": "79", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "84", + "$id": "80", "kind": "constant", "valueType": { - "$id": "85", + "$id": "81", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -808,14 +776,14 @@ "skipUrlEncoding": false }, { - "$id": "86", + "$id": "82", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "87", + "$id": "83", "kind": "constant", "valueType": { - "$id": "88", + "$id": "84", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -835,7 +803,7 @@ "skipUrlEncoding": false }, { - "$id": "89", + "$id": "85", "name": "input", "nameInRequest": "input", "type": { @@ -854,7 +822,7 @@ ], "responses": [ { - "$id": "90", + "$id": "86", "statusCodes": [ 200 ], @@ -881,9 +849,41 @@ "decorators": [] } ], - "apiVersions": [], + "parameters": [ + { + "$id": "87", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "88", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "89", + "type": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], "crossLanguageDefinitionId": "Type.Model.Visibility", - "decorators": [] + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json index 85fd0a725a8..d5182473d44 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json @@ -2169,6 +2169,7 @@ "name": "AdditionalPropertiesClient", "namespace": "Type.Property.AdditionalProperties", "doc": "Tests for additional properties of models", + "operations": [], "parameters": [ { "$id": "273", @@ -2201,65 +2202,32 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties", "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties", + "apiVersions": [], "children": [ { "$id": "277", "kind": "client", "name": "ExtendsUnknown", "namespace": "Type.Property.AdditionalProperties", - "parameters": [ - { - "$id": "278", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "279", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "280", - "type": { - "$id": "281", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "282", + "$id": "278", "name": "get", "resourceName": "ExtendsUnknown", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "283", + "$id": "279", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "284", + "$id": "280", "kind": "constant", "valueType": { - "$id": "285", + "$id": "281", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2281,7 +2249,7 @@ ], "responses": [ { - "$id": "286", + "$id": "282", "statusCodes": [ 200 ], @@ -2305,22 +2273,22 @@ "decorators": [] }, { - "$id": "287", + "$id": "283", "name": "put", "resourceName": "ExtendsUnknown", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "288", + "$id": "284", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "289", + "$id": "285", "kind": "constant", "valueType": { - "$id": "290", + "$id": "286", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2340,7 +2308,7 @@ "skipUrlEncoding": false }, { - "$id": "291", + "$id": "287", "name": "body", "nameInRequest": "body", "doc": "body", @@ -2360,7 +2328,7 @@ ], "responses": [ { - "$id": "292", + "$id": "288", "statusCodes": [ 204 ], @@ -2381,26 +2349,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "293", - "kind": "client", - "name": "ExtendsUnknownDerived", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "294", + "$id": "289", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "295", + "$id": "290", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2414,9 +2370,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "296", + "$id": "291", "type": { - "$id": "297", + "$id": "292", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2425,23 +2381,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "293", + "kind": "client", + "name": "ExtendsUnknownDerived", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "298", + "$id": "294", "name": "get", "resourceName": "ExtendsUnknownDerived", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "299", + "$id": "295", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "300", + "$id": "296", "kind": "constant", "valueType": { - "$id": "301", + "$id": "297", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2463,7 +2431,7 @@ ], "responses": [ { - "$id": "302", + "$id": "298", "statusCodes": [ 200 ], @@ -2487,22 +2455,22 @@ "decorators": [] }, { - "$id": "303", + "$id": "299", "name": "put", "resourceName": "ExtendsUnknownDerived", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "304", + "$id": "300", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "305", + "$id": "301", "kind": "constant", "valueType": { - "$id": "306", + "$id": "302", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2522,7 +2490,7 @@ "skipUrlEncoding": false }, { - "$id": "307", + "$id": "303", "name": "body", "nameInRequest": "body", "doc": "body", @@ -2542,7 +2510,7 @@ ], "responses": [ { - "$id": "308", + "$id": "304", "statusCodes": [ 204 ], @@ -2563,26 +2531,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "309", - "kind": "client", - "name": "ExtendsUnknownDiscriminated", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "310", + "$id": "305", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "311", + "$id": "306", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2596,9 +2552,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "312", + "$id": "307", "type": { - "$id": "313", + "$id": "308", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2607,23 +2563,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "309", + "kind": "client", + "name": "ExtendsUnknownDiscriminated", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "314", + "$id": "310", "name": "get", "resourceName": "ExtendsUnknownDiscriminated", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "315", + "$id": "311", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "316", + "$id": "312", "kind": "constant", "valueType": { - "$id": "317", + "$id": "313", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2645,7 +2613,7 @@ ], "responses": [ { - "$id": "318", + "$id": "314", "statusCodes": [ 200 ], @@ -2669,22 +2637,22 @@ "decorators": [] }, { - "$id": "319", + "$id": "315", "name": "put", "resourceName": "ExtendsUnknownDiscriminated", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "320", + "$id": "316", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "321", + "$id": "317", "kind": "constant", "valueType": { - "$id": "322", + "$id": "318", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2704,7 +2672,7 @@ "skipUrlEncoding": false }, { - "$id": "323", + "$id": "319", "name": "body", "nameInRequest": "body", "doc": "body", @@ -2724,7 +2692,7 @@ ], "responses": [ { - "$id": "324", + "$id": "320", "statusCodes": [ 204 ], @@ -2745,26 +2713,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "325", - "kind": "client", - "name": "IsUnknown", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "326", + "$id": "321", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "327", + "$id": "322", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2778,9 +2734,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "328", + "$id": "323", "type": { - "$id": "329", + "$id": "324", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2789,23 +2745,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "325", + "kind": "client", + "name": "IsUnknown", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "330", + "$id": "326", "name": "get", "resourceName": "IsUnknown", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "331", + "$id": "327", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "332", + "$id": "328", "kind": "constant", "valueType": { - "$id": "333", + "$id": "329", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2827,7 +2795,7 @@ ], "responses": [ { - "$id": "334", + "$id": "330", "statusCodes": [ 200 ], @@ -2851,22 +2819,22 @@ "decorators": [] }, { - "$id": "335", + "$id": "331", "name": "put", "resourceName": "IsUnknown", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "336", + "$id": "332", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "337", + "$id": "333", "kind": "constant", "valueType": { - "$id": "338", + "$id": "334", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2886,7 +2854,7 @@ "skipUrlEncoding": false }, { - "$id": "339", + "$id": "335", "name": "body", "nameInRequest": "body", "doc": "body", @@ -2906,7 +2874,7 @@ ], "responses": [ { - "$id": "340", + "$id": "336", "statusCodes": [ 204 ], @@ -2927,26 +2895,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "341", - "kind": "client", - "name": "IsUnknownDerived", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "342", + "$id": "337", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "343", + "$id": "338", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2960,9 +2916,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "344", + "$id": "339", "type": { - "$id": "345", + "$id": "340", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2971,23 +2927,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "341", + "kind": "client", + "name": "IsUnknownDerived", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "346", + "$id": "342", "name": "get", "resourceName": "IsUnknownDerived", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "347", + "$id": "343", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "348", + "$id": "344", "kind": "constant", "valueType": { - "$id": "349", + "$id": "345", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3009,7 +2977,7 @@ ], "responses": [ { - "$id": "350", + "$id": "346", "statusCodes": [ 200 ], @@ -3033,22 +3001,22 @@ "decorators": [] }, { - "$id": "351", + "$id": "347", "name": "put", "resourceName": "IsUnknownDerived", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "352", + "$id": "348", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "353", + "$id": "349", "kind": "constant", "valueType": { - "$id": "354", + "$id": "350", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3068,7 +3036,7 @@ "skipUrlEncoding": false }, { - "$id": "355", + "$id": "351", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3088,7 +3056,7 @@ ], "responses": [ { - "$id": "356", + "$id": "352", "statusCodes": [ 204 ], @@ -3109,26 +3077,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "357", - "kind": "client", - "name": "IsUnknownDiscriminated", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "358", + "$id": "353", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "359", + "$id": "354", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3142,9 +3098,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "360", + "$id": "355", "type": { - "$id": "361", + "$id": "356", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3153,23 +3109,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "357", + "kind": "client", + "name": "IsUnknownDiscriminated", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "362", + "$id": "358", "name": "get", "resourceName": "IsUnknownDiscriminated", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "363", + "$id": "359", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "364", + "$id": "360", "kind": "constant", "valueType": { - "$id": "365", + "$id": "361", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3191,7 +3159,7 @@ ], "responses": [ { - "$id": "366", + "$id": "362", "statusCodes": [ 200 ], @@ -3215,22 +3183,22 @@ "decorators": [] }, { - "$id": "367", + "$id": "363", "name": "put", "resourceName": "IsUnknownDiscriminated", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "368", + "$id": "364", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "369", + "$id": "365", "kind": "constant", "valueType": { - "$id": "370", + "$id": "366", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3250,7 +3218,7 @@ "skipUrlEncoding": false }, { - "$id": "371", + "$id": "367", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3270,7 +3238,7 @@ ], "responses": [ { - "$id": "372", + "$id": "368", "statusCodes": [ 204 ], @@ -3291,26 +3259,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "373", - "kind": "client", - "name": "ExtendsString", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "374", + "$id": "369", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "375", + "$id": "370", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3324,9 +3280,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "376", + "$id": "371", "type": { - "$id": "377", + "$id": "372", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3335,23 +3291,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "373", + "kind": "client", + "name": "ExtendsString", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "378", + "$id": "374", "name": "get", "resourceName": "ExtendsString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "379", + "$id": "375", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "380", + "$id": "376", "kind": "constant", "valueType": { - "$id": "381", + "$id": "377", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3373,7 +3341,7 @@ ], "responses": [ { - "$id": "382", + "$id": "378", "statusCodes": [ 200 ], @@ -3397,22 +3365,22 @@ "decorators": [] }, { - "$id": "383", + "$id": "379", "name": "put", "resourceName": "ExtendsString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "384", + "$id": "380", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "385", + "$id": "381", "kind": "constant", "valueType": { - "$id": "386", + "$id": "382", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3432,7 +3400,7 @@ "skipUrlEncoding": false }, { - "$id": "387", + "$id": "383", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3452,7 +3420,7 @@ ], "responses": [ { - "$id": "388", + "$id": "384", "statusCodes": [ 204 ], @@ -3473,26 +3441,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "389", - "kind": "client", - "name": "IsString", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "390", + "$id": "385", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "391", + "$id": "386", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3506,9 +3462,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "392", + "$id": "387", "type": { - "$id": "393", + "$id": "388", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3517,23 +3473,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "389", + "kind": "client", + "name": "IsString", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "394", + "$id": "390", "name": "get", "resourceName": "IsString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "395", + "$id": "391", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "396", + "$id": "392", "kind": "constant", "valueType": { - "$id": "397", + "$id": "393", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3555,7 +3523,7 @@ ], "responses": [ { - "$id": "398", + "$id": "394", "statusCodes": [ 200 ], @@ -3579,22 +3547,22 @@ "decorators": [] }, { - "$id": "399", + "$id": "395", "name": "put", "resourceName": "IsString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "400", + "$id": "396", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "401", + "$id": "397", "kind": "constant", "valueType": { - "$id": "402", + "$id": "398", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3614,7 +3582,7 @@ "skipUrlEncoding": false }, { - "$id": "403", + "$id": "399", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3634,7 +3602,7 @@ ], "responses": [ { - "$id": "404", + "$id": "400", "statusCodes": [ 204 ], @@ -3655,26 +3623,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "405", - "kind": "client", - "name": "SpreadString", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "406", + "$id": "401", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "407", + "$id": "402", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3688,9 +3644,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "408", + "$id": "403", "type": { - "$id": "409", + "$id": "404", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3699,23 +3655,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "405", + "kind": "client", + "name": "SpreadString", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "410", + "$id": "406", "name": "get", "resourceName": "SpreadString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "411", + "$id": "407", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "412", + "$id": "408", "kind": "constant", "valueType": { - "$id": "413", + "$id": "409", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3737,7 +3705,7 @@ ], "responses": [ { - "$id": "414", + "$id": "410", "statusCodes": [ 200 ], @@ -3761,22 +3729,22 @@ "decorators": [] }, { - "$id": "415", + "$id": "411", "name": "put", "resourceName": "SpreadString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "416", + "$id": "412", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "417", + "$id": "413", "kind": "constant", "valueType": { - "$id": "418", + "$id": "414", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3796,7 +3764,7 @@ "skipUrlEncoding": false }, { - "$id": "419", + "$id": "415", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3816,7 +3784,7 @@ ], "responses": [ { - "$id": "420", + "$id": "416", "statusCodes": [ 204 ], @@ -3837,26 +3805,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "421", - "kind": "client", - "name": "ExtendsFloat", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "422", + "$id": "417", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "423", + "$id": "418", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3870,9 +3826,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "424", + "$id": "419", "type": { - "$id": "425", + "$id": "420", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3881,23 +3837,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "421", + "kind": "client", + "name": "ExtendsFloat", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "426", + "$id": "422", "name": "get", "resourceName": "ExtendsFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "427", + "$id": "423", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "428", + "$id": "424", "kind": "constant", "valueType": { - "$id": "429", + "$id": "425", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3919,7 +3887,7 @@ ], "responses": [ { - "$id": "430", + "$id": "426", "statusCodes": [ 200 ], @@ -3943,22 +3911,22 @@ "decorators": [] }, { - "$id": "431", + "$id": "427", "name": "put", "resourceName": "ExtendsFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "432", + "$id": "428", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "433", + "$id": "429", "kind": "constant", "valueType": { - "$id": "434", + "$id": "430", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3978,7 +3946,7 @@ "skipUrlEncoding": false }, { - "$id": "435", + "$id": "431", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3998,7 +3966,7 @@ ], "responses": [ { - "$id": "436", + "$id": "432", "statusCodes": [ 204 ], @@ -4019,26 +3987,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "437", - "kind": "client", - "name": "IsFloat", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "438", + "$id": "433", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "439", + "$id": "434", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4052,9 +4008,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "440", + "$id": "435", "type": { - "$id": "441", + "$id": "436", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4063,23 +4019,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "437", + "kind": "client", + "name": "IsFloat", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "442", + "$id": "438", "name": "get", "resourceName": "IsFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "443", + "$id": "439", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "444", + "$id": "440", "kind": "constant", "valueType": { - "$id": "445", + "$id": "441", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4101,7 +4069,7 @@ ], "responses": [ { - "$id": "446", + "$id": "442", "statusCodes": [ 200 ], @@ -4125,22 +4093,22 @@ "decorators": [] }, { - "$id": "447", + "$id": "443", "name": "put", "resourceName": "IsFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "448", + "$id": "444", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "449", + "$id": "445", "kind": "constant", "valueType": { - "$id": "450", + "$id": "446", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4160,7 +4128,7 @@ "skipUrlEncoding": false }, { - "$id": "451", + "$id": "447", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4180,7 +4148,7 @@ ], "responses": [ { - "$id": "452", + "$id": "448", "statusCodes": [ 204 ], @@ -4201,26 +4169,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "453", - "kind": "client", - "name": "SpreadFloat", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "454", + "$id": "449", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "455", + "$id": "450", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4234,9 +4190,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "456", + "$id": "451", "type": { - "$id": "457", + "$id": "452", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4245,23 +4201,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "453", + "kind": "client", + "name": "SpreadFloat", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "458", + "$id": "454", "name": "get", "resourceName": "SpreadFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "459", + "$id": "455", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "460", + "$id": "456", "kind": "constant", "valueType": { - "$id": "461", + "$id": "457", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4283,7 +4251,7 @@ ], "responses": [ { - "$id": "462", + "$id": "458", "statusCodes": [ 200 ], @@ -4307,22 +4275,22 @@ "decorators": [] }, { - "$id": "463", + "$id": "459", "name": "put", "resourceName": "SpreadFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "464", + "$id": "460", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "465", + "$id": "461", "kind": "constant", "valueType": { - "$id": "466", + "$id": "462", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4342,7 +4310,7 @@ "skipUrlEncoding": false }, { - "$id": "467", + "$id": "463", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4362,7 +4330,7 @@ ], "responses": [ { - "$id": "468", + "$id": "464", "statusCodes": [ 204 ], @@ -4383,26 +4351,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "469", - "kind": "client", - "name": "ExtendsModel", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "470", + "$id": "465", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "471", + "$id": "466", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4416,9 +4372,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "472", + "$id": "467", "type": { - "$id": "473", + "$id": "468", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4427,23 +4383,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "469", + "kind": "client", + "name": "ExtendsModel", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "474", + "$id": "470", "name": "get", "resourceName": "ExtendsModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "475", + "$id": "471", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "476", + "$id": "472", "kind": "constant", "valueType": { - "$id": "477", + "$id": "473", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4465,7 +4433,7 @@ ], "responses": [ { - "$id": "478", + "$id": "474", "statusCodes": [ 200 ], @@ -4489,22 +4457,22 @@ "decorators": [] }, { - "$id": "479", + "$id": "475", "name": "put", "resourceName": "ExtendsModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "480", + "$id": "476", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "481", + "$id": "477", "kind": "constant", "valueType": { - "$id": "482", + "$id": "478", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4524,7 +4492,7 @@ "skipUrlEncoding": false }, { - "$id": "483", + "$id": "479", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4544,7 +4512,7 @@ ], "responses": [ { - "$id": "484", + "$id": "480", "statusCodes": [ 204 ], @@ -4565,26 +4533,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "485", - "kind": "client", - "name": "IsModel", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "486", + "$id": "481", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "487", + "$id": "482", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4598,9 +4554,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "488", + "$id": "483", "type": { - "$id": "489", + "$id": "484", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4609,23 +4565,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "485", + "kind": "client", + "name": "IsModel", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "490", + "$id": "486", "name": "get", "resourceName": "IsModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "491", + "$id": "487", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "492", + "$id": "488", "kind": "constant", "valueType": { - "$id": "493", + "$id": "489", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4647,7 +4615,7 @@ ], "responses": [ { - "$id": "494", + "$id": "490", "statusCodes": [ 200 ], @@ -4671,22 +4639,22 @@ "decorators": [] }, { - "$id": "495", + "$id": "491", "name": "put", "resourceName": "IsModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "496", + "$id": "492", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "497", + "$id": "493", "kind": "constant", "valueType": { - "$id": "498", + "$id": "494", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4706,7 +4674,7 @@ "skipUrlEncoding": false }, { - "$id": "499", + "$id": "495", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4726,7 +4694,7 @@ ], "responses": [ { - "$id": "500", + "$id": "496", "statusCodes": [ 204 ], @@ -4747,26 +4715,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "501", - "kind": "client", - "name": "SpreadModel", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "502", + "$id": "497", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "503", + "$id": "498", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4780,9 +4736,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "504", + "$id": "499", "type": { - "$id": "505", + "$id": "500", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4791,23 +4747,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "501", + "kind": "client", + "name": "SpreadModel", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "506", + "$id": "502", "name": "get", "resourceName": "SpreadModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "507", + "$id": "503", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "508", + "$id": "504", "kind": "constant", "valueType": { - "$id": "509", + "$id": "505", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4829,7 +4797,7 @@ ], "responses": [ { - "$id": "510", + "$id": "506", "statusCodes": [ 200 ], @@ -4853,22 +4821,22 @@ "decorators": [] }, { - "$id": "511", + "$id": "507", "name": "put", "resourceName": "SpreadModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "512", + "$id": "508", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "513", + "$id": "509", "kind": "constant", "valueType": { - "$id": "514", + "$id": "510", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4888,7 +4856,7 @@ "skipUrlEncoding": false }, { - "$id": "515", + "$id": "511", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4908,7 +4876,7 @@ ], "responses": [ { - "$id": "516", + "$id": "512", "statusCodes": [ 204 ], @@ -4929,26 +4897,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "517", - "kind": "client", - "name": "ExtendsModelArray", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "518", + "$id": "513", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "519", + "$id": "514", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4962,9 +4918,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "520", + "$id": "515", "type": { - "$id": "521", + "$id": "516", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4973,23 +4929,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "517", + "kind": "client", + "name": "ExtendsModelArray", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "522", + "$id": "518", "name": "get", "resourceName": "ExtendsModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "523", + "$id": "519", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "524", + "$id": "520", "kind": "constant", "valueType": { - "$id": "525", + "$id": "521", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5011,7 +4979,7 @@ ], "responses": [ { - "$id": "526", + "$id": "522", "statusCodes": [ 200 ], @@ -5035,22 +5003,22 @@ "decorators": [] }, { - "$id": "527", + "$id": "523", "name": "put", "resourceName": "ExtendsModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "528", + "$id": "524", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "529", + "$id": "525", "kind": "constant", "valueType": { - "$id": "530", + "$id": "526", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5070,7 +5038,7 @@ "skipUrlEncoding": false }, { - "$id": "531", + "$id": "527", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5090,7 +5058,7 @@ ], "responses": [ { - "$id": "532", + "$id": "528", "statusCodes": [ 204 ], @@ -5111,26 +5079,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "533", - "kind": "client", - "name": "IsModelArray", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "534", + "$id": "529", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "535", + "$id": "530", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5144,9 +5100,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "536", + "$id": "531", "type": { - "$id": "537", + "$id": "532", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5155,23 +5111,35 @@ } } ], - "operations": [ - { - "$id": "538", - "name": "get", - "resourceName": "IsModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "539", - "name": "accept", + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "533", + "kind": "client", + "name": "IsModelArray", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "534", + "name": "get", + "resourceName": "IsModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "535", + "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "540", + "$id": "536", "kind": "constant", "valueType": { - "$id": "541", + "$id": "537", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5193,7 +5161,7 @@ ], "responses": [ { - "$id": "542", + "$id": "538", "statusCodes": [ 200 ], @@ -5217,22 +5185,22 @@ "decorators": [] }, { - "$id": "543", + "$id": "539", "name": "put", "resourceName": "IsModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "544", + "$id": "540", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "545", + "$id": "541", "kind": "constant", "valueType": { - "$id": "546", + "$id": "542", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5252,7 +5220,7 @@ "skipUrlEncoding": false }, { - "$id": "547", + "$id": "543", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5272,7 +5240,7 @@ ], "responses": [ { - "$id": "548", + "$id": "544", "statusCodes": [ 204 ], @@ -5293,26 +5261,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "549", - "kind": "client", - "name": "SpreadModelArray", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "550", + "$id": "545", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "551", + "$id": "546", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5326,9 +5282,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "552", + "$id": "547", "type": { - "$id": "553", + "$id": "548", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5337,23 +5293,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "549", + "kind": "client", + "name": "SpreadModelArray", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "554", + "$id": "550", "name": "get", "resourceName": "SpreadModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "555", + "$id": "551", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "556", + "$id": "552", "kind": "constant", "valueType": { - "$id": "557", + "$id": "553", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5375,7 +5343,7 @@ ], "responses": [ { - "$id": "558", + "$id": "554", "statusCodes": [ 200 ], @@ -5399,22 +5367,22 @@ "decorators": [] }, { - "$id": "559", + "$id": "555", "name": "put", "resourceName": "SpreadModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "560", + "$id": "556", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "561", + "$id": "557", "kind": "constant", "valueType": { - "$id": "562", + "$id": "558", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5434,7 +5402,7 @@ "skipUrlEncoding": false }, { - "$id": "563", + "$id": "559", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5454,7 +5422,7 @@ ], "responses": [ { - "$id": "564", + "$id": "560", "statusCodes": [ 204 ], @@ -5475,26 +5443,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "565", - "kind": "client", - "name": "SpreadDifferentString", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "566", + "$id": "561", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "567", + "$id": "562", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5508,9 +5464,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "568", + "$id": "563", "type": { - "$id": "569", + "$id": "564", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5519,23 +5475,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "565", + "kind": "client", + "name": "SpreadDifferentString", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "570", + "$id": "566", "name": "get", "resourceName": "SpreadDifferentString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "571", + "$id": "567", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "572", + "$id": "568", "kind": "constant", "valueType": { - "$id": "573", + "$id": "569", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5557,7 +5525,7 @@ ], "responses": [ { - "$id": "574", + "$id": "570", "statusCodes": [ 200 ], @@ -5581,22 +5549,22 @@ "decorators": [] }, { - "$id": "575", + "$id": "571", "name": "put", "resourceName": "SpreadDifferentString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "576", + "$id": "572", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "577", + "$id": "573", "kind": "constant", "valueType": { - "$id": "578", + "$id": "574", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5616,7 +5584,7 @@ "skipUrlEncoding": false }, { - "$id": "579", + "$id": "575", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5636,7 +5604,7 @@ ], "responses": [ { - "$id": "580", + "$id": "576", "statusCodes": [ 204 ], @@ -5657,26 +5625,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "581", - "kind": "client", - "name": "SpreadDifferentFloat", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "582", + "$id": "577", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "583", + "$id": "578", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5690,9 +5646,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "584", + "$id": "579", "type": { - "$id": "585", + "$id": "580", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5701,23 +5657,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "581", + "kind": "client", + "name": "SpreadDifferentFloat", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "586", + "$id": "582", "name": "get", "resourceName": "SpreadDifferentFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "587", + "$id": "583", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "588", + "$id": "584", "kind": "constant", "valueType": { - "$id": "589", + "$id": "585", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5739,7 +5707,7 @@ ], "responses": [ { - "$id": "590", + "$id": "586", "statusCodes": [ 200 ], @@ -5763,22 +5731,22 @@ "decorators": [] }, { - "$id": "591", + "$id": "587", "name": "put", "resourceName": "SpreadDifferentFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "592", + "$id": "588", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "593", + "$id": "589", "kind": "constant", "valueType": { - "$id": "594", + "$id": "590", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5798,7 +5766,7 @@ "skipUrlEncoding": false }, { - "$id": "595", + "$id": "591", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5818,7 +5786,7 @@ ], "responses": [ { - "$id": "596", + "$id": "592", "statusCodes": [ 204 ], @@ -5839,26 +5807,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "597", - "kind": "client", - "name": "SpreadDifferentModel", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "598", + "$id": "593", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "599", + "$id": "594", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5872,9 +5828,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "600", + "$id": "595", "type": { - "$id": "601", + "$id": "596", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5883,23 +5839,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "597", + "kind": "client", + "name": "SpreadDifferentModel", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "602", + "$id": "598", "name": "get", "resourceName": "SpreadDifferentModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "603", + "$id": "599", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "604", + "$id": "600", "kind": "constant", "valueType": { - "$id": "605", + "$id": "601", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5921,7 +5889,7 @@ ], "responses": [ { - "$id": "606", + "$id": "602", "statusCodes": [ 200 ], @@ -5945,22 +5913,22 @@ "decorators": [] }, { - "$id": "607", + "$id": "603", "name": "put", "resourceName": "SpreadDifferentModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "608", + "$id": "604", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "609", + "$id": "605", "kind": "constant", "valueType": { - "$id": "610", + "$id": "606", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5980,7 +5948,7 @@ "skipUrlEncoding": false }, { - "$id": "611", + "$id": "607", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6000,7 +5968,7 @@ ], "responses": [ { - "$id": "612", + "$id": "608", "statusCodes": [ 204 ], @@ -6021,26 +5989,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "613", - "kind": "client", - "name": "SpreadDifferentModelArray", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "614", + "$id": "609", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "615", + "$id": "610", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6054,9 +6010,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "616", + "$id": "611", "type": { - "$id": "617", + "$id": "612", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6065,23 +6021,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "613", + "kind": "client", + "name": "SpreadDifferentModelArray", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "618", + "$id": "614", "name": "get", "resourceName": "SpreadDifferentModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "619", + "$id": "615", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "620", + "$id": "616", "kind": "constant", "valueType": { - "$id": "621", + "$id": "617", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6103,7 +6071,7 @@ ], "responses": [ { - "$id": "622", + "$id": "618", "statusCodes": [ 200 ], @@ -6127,22 +6095,22 @@ "decorators": [] }, { - "$id": "623", + "$id": "619", "name": "put", "resourceName": "SpreadDifferentModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "624", + "$id": "620", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "625", + "$id": "621", "kind": "constant", "valueType": { - "$id": "626", + "$id": "622", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6162,7 +6130,7 @@ "skipUrlEncoding": false }, { - "$id": "627", + "$id": "623", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6182,7 +6150,7 @@ ], "responses": [ { - "$id": "628", + "$id": "624", "statusCodes": [ 204 ], @@ -6203,26 +6171,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "629", - "kind": "client", - "name": "ExtendsDifferentSpreadString", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "630", + "$id": "625", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "631", + "$id": "626", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6236,9 +6192,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "632", + "$id": "627", "type": { - "$id": "633", + "$id": "628", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6247,23 +6203,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "629", + "kind": "client", + "name": "ExtendsDifferentSpreadString", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "634", + "$id": "630", "name": "get", "resourceName": "ExtendsDifferentSpreadString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "635", + "$id": "631", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "636", + "$id": "632", "kind": "constant", "valueType": { - "$id": "637", + "$id": "633", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6285,7 +6253,7 @@ ], "responses": [ { - "$id": "638", + "$id": "634", "statusCodes": [ 200 ], @@ -6309,22 +6277,22 @@ "decorators": [] }, { - "$id": "639", + "$id": "635", "name": "put", "resourceName": "ExtendsDifferentSpreadString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "640", + "$id": "636", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "641", + "$id": "637", "kind": "constant", "valueType": { - "$id": "642", + "$id": "638", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6344,7 +6312,7 @@ "skipUrlEncoding": false }, { - "$id": "643", + "$id": "639", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6364,7 +6332,7 @@ ], "responses": [ { - "$id": "644", + "$id": "640", "statusCodes": [ 204 ], @@ -6385,26 +6353,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "645", - "kind": "client", - "name": "ExtendsDifferentSpreadFloat", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "646", + "$id": "641", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "647", + "$id": "642", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6418,9 +6374,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "648", + "$id": "643", "type": { - "$id": "649", + "$id": "644", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6429,23 +6385,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "645", + "kind": "client", + "name": "ExtendsDifferentSpreadFloat", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "650", + "$id": "646", "name": "get", "resourceName": "ExtendsDifferentSpreadFloat", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "651", + "$id": "647", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "652", + "$id": "648", "kind": "constant", "valueType": { - "$id": "653", + "$id": "649", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6467,7 +6435,7 @@ ], "responses": [ { - "$id": "654", + "$id": "650", "statusCodes": [ 200 ], @@ -6491,22 +6459,22 @@ "decorators": [] }, { - "$id": "655", + "$id": "651", "name": "put", "resourceName": "ExtendsDifferentSpreadFloat", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "656", + "$id": "652", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "657", + "$id": "653", "kind": "constant", "valueType": { - "$id": "658", + "$id": "654", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6526,7 +6494,7 @@ "skipUrlEncoding": false }, { - "$id": "659", + "$id": "655", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6546,7 +6514,7 @@ ], "responses": [ { - "$id": "660", + "$id": "656", "statusCodes": [ 204 ], @@ -6567,26 +6535,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "661", - "kind": "client", - "name": "ExtendsDifferentSpreadModel", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "662", + "$id": "657", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "663", + "$id": "658", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6600,9 +6556,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "664", + "$id": "659", "type": { - "$id": "665", + "$id": "660", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6611,23 +6567,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "661", + "kind": "client", + "name": "ExtendsDifferentSpreadModel", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "666", + "$id": "662", "name": "get", "resourceName": "ExtendsDifferentSpreadModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "667", + "$id": "663", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "668", + "$id": "664", "kind": "constant", "valueType": { - "$id": "669", + "$id": "665", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6649,7 +6617,7 @@ ], "responses": [ { - "$id": "670", + "$id": "666", "statusCodes": [ 200 ], @@ -6673,22 +6641,22 @@ "decorators": [] }, { - "$id": "671", + "$id": "667", "name": "put", "resourceName": "ExtendsDifferentSpreadModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "672", + "$id": "668", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "673", + "$id": "669", "kind": "constant", "valueType": { - "$id": "674", + "$id": "670", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6708,7 +6676,7 @@ "skipUrlEncoding": false }, { - "$id": "675", + "$id": "671", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6728,7 +6696,7 @@ ], "responses": [ { - "$id": "676", + "$id": "672", "statusCodes": [ 204 ], @@ -6749,26 +6717,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "677", - "kind": "client", - "name": "ExtendsDifferentSpreadModelArray", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "678", + "$id": "673", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "679", + "$id": "674", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6782,9 +6738,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "680", + "$id": "675", "type": { - "$id": "681", + "$id": "676", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6793,23 +6749,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "677", + "kind": "client", + "name": "ExtendsDifferentSpreadModelArray", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "682", + "$id": "678", "name": "get", "resourceName": "ExtendsDifferentSpreadModelArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "683", + "$id": "679", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "684", + "$id": "680", "kind": "constant", "valueType": { - "$id": "685", + "$id": "681", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6831,7 +6799,7 @@ ], "responses": [ { - "$id": "686", + "$id": "682", "statusCodes": [ 200 ], @@ -6855,22 +6823,22 @@ "decorators": [] }, { - "$id": "687", + "$id": "683", "name": "put", "resourceName": "ExtendsDifferentSpreadModelArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "688", + "$id": "684", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "689", + "$id": "685", "kind": "constant", "valueType": { - "$id": "690", + "$id": "686", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6890,7 +6858,7 @@ "skipUrlEncoding": false }, { - "$id": "691", + "$id": "687", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6910,7 +6878,7 @@ ], "responses": [ { - "$id": "692", + "$id": "688", "statusCodes": [ 204 ], @@ -6931,26 +6899,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "693", - "kind": "client", - "name": "MultipleSpread", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "694", + "$id": "689", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "695", + "$id": "690", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6964,9 +6920,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "696", + "$id": "691", "type": { - "$id": "697", + "$id": "692", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6975,23 +6931,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "693", + "kind": "client", + "name": "MultipleSpread", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "698", + "$id": "694", "name": "get", "resourceName": "MultipleSpread", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "699", + "$id": "695", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "700", + "$id": "696", "kind": "constant", "valueType": { - "$id": "701", + "$id": "697", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7013,7 +6981,7 @@ ], "responses": [ { - "$id": "702", + "$id": "698", "statusCodes": [ 200 ], @@ -7037,22 +7005,22 @@ "decorators": [] }, { - "$id": "703", + "$id": "699", "name": "put", "resourceName": "MultipleSpread", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "704", + "$id": "700", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "705", + "$id": "701", "kind": "constant", "valueType": { - "$id": "706", + "$id": "702", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7072,7 +7040,7 @@ "skipUrlEncoding": false }, { - "$id": "707", + "$id": "703", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7092,7 +7060,7 @@ ], "responses": [ { - "$id": "708", + "$id": "704", "statusCodes": [ 204 ], @@ -7113,26 +7081,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "709", - "kind": "client", - "name": "SpreadRecordUnion", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "710", + "$id": "705", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "711", + "$id": "706", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7146,9 +7102,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "712", + "$id": "707", "type": { - "$id": "713", + "$id": "708", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7157,23 +7113,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "709", + "kind": "client", + "name": "SpreadRecordUnion", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "714", + "$id": "710", "name": "get", "resourceName": "SpreadRecordUnion", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "715", + "$id": "711", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "716", + "$id": "712", "kind": "constant", "valueType": { - "$id": "717", + "$id": "713", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7195,7 +7163,7 @@ ], "responses": [ { - "$id": "718", + "$id": "714", "statusCodes": [ 200 ], @@ -7219,22 +7187,22 @@ "decorators": [] }, { - "$id": "719", + "$id": "715", "name": "put", "resourceName": "SpreadRecordUnion", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "720", + "$id": "716", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "721", + "$id": "717", "kind": "constant", "valueType": { - "$id": "722", + "$id": "718", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7254,7 +7222,7 @@ "skipUrlEncoding": false }, { - "$id": "723", + "$id": "719", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7274,7 +7242,7 @@ ], "responses": [ { - "$id": "724", + "$id": "720", "statusCodes": [ 204 ], @@ -7295,26 +7263,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "725", - "kind": "client", - "name": "SpreadRecordNonDiscriminatedUnion", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "726", + "$id": "721", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "727", + "$id": "722", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7328,9 +7284,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "728", + "$id": "723", "type": { - "$id": "729", + "$id": "724", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7339,23 +7295,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "725", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "730", + "$id": "726", "name": "get", "resourceName": "SpreadRecordNonDiscriminatedUnion", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "731", + "$id": "727", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "732", + "$id": "728", "kind": "constant", "valueType": { - "$id": "733", + "$id": "729", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7377,7 +7345,7 @@ ], "responses": [ { - "$id": "734", + "$id": "730", "statusCodes": [ 200 ], @@ -7401,22 +7369,22 @@ "decorators": [] }, { - "$id": "735", + "$id": "731", "name": "put", "resourceName": "SpreadRecordNonDiscriminatedUnion", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "736", + "$id": "732", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "737", + "$id": "733", "kind": "constant", "valueType": { - "$id": "738", + "$id": "734", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7436,7 +7404,7 @@ "skipUrlEncoding": false }, { - "$id": "739", + "$id": "735", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7456,7 +7424,7 @@ ], "responses": [ { - "$id": "740", + "$id": "736", "statusCodes": [ 204 ], @@ -7477,26 +7445,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "741", - "kind": "client", - "name": "SpreadRecordNonDiscriminatedUnion2", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "742", + "$id": "737", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "743", + "$id": "738", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7510,9 +7466,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "744", + "$id": "739", "type": { - "$id": "745", + "$id": "740", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7521,23 +7477,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "741", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion2", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "746", + "$id": "742", "name": "get", "resourceName": "SpreadRecordNonDiscriminatedUnion2", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "747", + "$id": "743", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "748", + "$id": "744", "kind": "constant", "valueType": { - "$id": "749", + "$id": "745", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7559,7 +7527,7 @@ ], "responses": [ { - "$id": "750", + "$id": "746", "statusCodes": [ 200 ], @@ -7583,22 +7551,22 @@ "decorators": [] }, { - "$id": "751", + "$id": "747", "name": "put", "resourceName": "SpreadRecordNonDiscriminatedUnion2", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "752", + "$id": "748", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "753", + "$id": "749", "kind": "constant", "valueType": { - "$id": "754", + "$id": "750", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7618,7 +7586,7 @@ "skipUrlEncoding": false }, { - "$id": "755", + "$id": "751", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7638,7 +7606,7 @@ ], "responses": [ { - "$id": "756", + "$id": "752", "statusCodes": [ 204 ], @@ -7659,26 +7627,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2", - "decorators": [], - "parent": { - "$ref": "272" - } - }, - { - "$id": "757", - "kind": "client", - "name": "SpreadRecordNonDiscriminatedUnion3", - "namespace": "Type.Property.AdditionalProperties", "parameters": [ { - "$id": "758", + "$id": "753", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "759", + "$id": "754", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7692,9 +7648,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "760", + "$id": "755", "type": { - "$id": "761", + "$id": "756", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7703,23 +7659,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "757", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion3", + "namespace": "Type.Property.AdditionalProperties", "operations": [ { - "$id": "762", + "$id": "758", "name": "get", "resourceName": "SpreadRecordNonDiscriminatedUnion3", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "763", + "$id": "759", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "764", + "$id": "760", "kind": "constant", "valueType": { - "$id": "765", + "$id": "761", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7741,7 +7709,7 @@ ], "responses": [ { - "$id": "766", + "$id": "762", "statusCodes": [ 200 ], @@ -7765,22 +7733,22 @@ "decorators": [] }, { - "$id": "767", + "$id": "763", "name": "put", "resourceName": "SpreadRecordNonDiscriminatedUnion3", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "768", + "$id": "764", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "769", + "$id": "765", "kind": "constant", "valueType": { - "$id": "770", + "$id": "766", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7800,7 +7768,7 @@ "skipUrlEncoding": false }, { - "$id": "771", + "$id": "767", "name": "body", "nameInRequest": "body", "doc": "body", @@ -7820,7 +7788,7 @@ ], "responses": [ { - "$id": "772", + "$id": "768", "statusCodes": [ 204 ], @@ -7841,9 +7809,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3", + "parameters": [ + { + "$id": "769", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "770", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "771", + "type": { + "$id": "772", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3", + "apiVersions": [], "parent": { "$ref": "272" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json index 99c2d60591e..575d9c3ada7 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json @@ -583,6 +583,7 @@ "name": "NullableClient", "namespace": "Type.Property.Nullable", "doc": "Illustrates models with nullable properties.", + "operations": [], "parameters": [ { "$id": "82", @@ -615,65 +616,32 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Nullable", "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable", + "apiVersions": [], "children": [ { "$id": "86", "kind": "client", "name": "String", "namespace": "Type.Property.Nullable", - "parameters": [ - { - "$id": "87", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "88", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "89", - "type": { - "$id": "90", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "91", + "$id": "87", "name": "getNonNull", "resourceName": "String", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "92", + "$id": "88", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "93", + "$id": "89", "kind": "constant", "valueType": { - "$id": "94", + "$id": "90", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -695,7 +663,7 @@ ], "responses": [ { - "$id": "95", + "$id": "91", "statusCodes": [ 200 ], @@ -719,21 +687,21 @@ "decorators": [] }, { - "$id": "96", + "$id": "92", "name": "getNull", "resourceName": "String", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "97", + "$id": "93", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "98", + "$id": "94", "kind": "constant", "valueType": { - "$id": "99", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -755,7 +723,7 @@ ], "responses": [ { - "$id": "100", + "$id": "96", "statusCodes": [ 200 ], @@ -779,22 +747,22 @@ "decorators": [] }, { - "$id": "101", + "$id": "97", "name": "patchNonNull", "resourceName": "String", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "102", + "$id": "98", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "103", + "$id": "99", "kind": "constant", "valueType": { - "$id": "104", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -814,7 +782,7 @@ "skipUrlEncoding": false }, { - "$id": "105", + "$id": "101", "name": "body", "nameInRequest": "body", "type": { @@ -833,7 +801,7 @@ ], "responses": [ { - "$id": "106", + "$id": "102", "statusCodes": [ 204 ], @@ -854,22 +822,22 @@ "decorators": [] }, { - "$id": "107", + "$id": "103", "name": "patchNull", "resourceName": "String", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "108", + "$id": "104", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "109", + "$id": "105", "kind": "constant", "valueType": { - "$id": "110", + "$id": "106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -889,7 +857,7 @@ "skipUrlEncoding": false }, { - "$id": "111", + "$id": "107", "name": "body", "nameInRequest": "body", "type": { @@ -908,7 +876,7 @@ ], "responses": [ { - "$id": "112", + "$id": "108", "statusCodes": [ 204 ], @@ -929,26 +897,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.String", - "decorators": [], - "parent": { - "$ref": "81" - } - }, - { - "$id": "113", - "kind": "client", - "name": "Bytes", - "namespace": "Type.Property.Nullable", "parameters": [ { - "$id": "114", + "$id": "109", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "115", + "$id": "110", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -962,9 +918,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "116", + "$id": "111", "type": { - "$id": "117", + "$id": "112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -973,23 +929,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.String", + "apiVersions": [], + "parent": { + "$ref": "81" + } + }, + { + "$id": "113", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.Nullable", "operations": [ { - "$id": "118", + "$id": "114", "name": "getNonNull", "resourceName": "Bytes", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "119", + "$id": "115", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "120", + "$id": "116", "kind": "constant", "valueType": { - "$id": "121", + "$id": "117", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1011,7 +979,7 @@ ], "responses": [ { - "$id": "122", + "$id": "118", "statusCodes": [ 200 ], @@ -1035,21 +1003,21 @@ "decorators": [] }, { - "$id": "123", + "$id": "119", "name": "getNull", "resourceName": "Bytes", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "124", + "$id": "120", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "125", + "$id": "121", "kind": "constant", "valueType": { - "$id": "126", + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1071,7 +1039,7 @@ ], "responses": [ { - "$id": "127", + "$id": "123", "statusCodes": [ 200 ], @@ -1095,22 +1063,22 @@ "decorators": [] }, { - "$id": "128", + "$id": "124", "name": "patchNonNull", "resourceName": "Bytes", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "129", + "$id": "125", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "130", + "$id": "126", "kind": "constant", "valueType": { - "$id": "131", + "$id": "127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1130,7 +1098,7 @@ "skipUrlEncoding": false }, { - "$id": "132", + "$id": "128", "name": "body", "nameInRequest": "body", "type": { @@ -1149,7 +1117,7 @@ ], "responses": [ { - "$id": "133", + "$id": "129", "statusCodes": [ 204 ], @@ -1170,22 +1138,22 @@ "decorators": [] }, { - "$id": "134", + "$id": "130", "name": "patchNull", "resourceName": "Bytes", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "135", + "$id": "131", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "136", + "$id": "132", "kind": "constant", "valueType": { - "$id": "137", + "$id": "133", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1205,7 +1173,7 @@ "skipUrlEncoding": false }, { - "$id": "138", + "$id": "134", "name": "body", "nameInRequest": "body", "type": { @@ -1224,7 +1192,7 @@ ], "responses": [ { - "$id": "139", + "$id": "135", "statusCodes": [ 204 ], @@ -1245,26 +1213,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes", - "decorators": [], - "parent": { - "$ref": "81" - } - }, - { - "$id": "140", - "kind": "client", - "name": "Datetime", - "namespace": "Type.Property.Nullable", "parameters": [ { - "$id": "141", + "$id": "136", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "142", + "$id": "137", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1278,9 +1234,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "143", + "$id": "138", "type": { - "$id": "144", + "$id": "139", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1289,23 +1245,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes", + "apiVersions": [], + "parent": { + "$ref": "81" + } + }, + { + "$id": "140", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.Nullable", "operations": [ { - "$id": "145", + "$id": "141", "name": "getNonNull", "resourceName": "Datetime", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "146", + "$id": "142", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "147", + "$id": "143", "kind": "constant", "valueType": { - "$id": "148", + "$id": "144", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1327,7 +1295,7 @@ ], "responses": [ { - "$id": "149", + "$id": "145", "statusCodes": [ 200 ], @@ -1351,21 +1319,21 @@ "decorators": [] }, { - "$id": "150", + "$id": "146", "name": "getNull", "resourceName": "Datetime", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "151", + "$id": "147", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "152", + "$id": "148", "kind": "constant", "valueType": { - "$id": "153", + "$id": "149", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1387,7 +1355,7 @@ ], "responses": [ { - "$id": "154", + "$id": "150", "statusCodes": [ 200 ], @@ -1411,22 +1379,22 @@ "decorators": [] }, { - "$id": "155", + "$id": "151", "name": "patchNonNull", "resourceName": "Datetime", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "156", + "$id": "152", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "157", + "$id": "153", "kind": "constant", "valueType": { - "$id": "158", + "$id": "154", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1446,7 +1414,7 @@ "skipUrlEncoding": false }, { - "$id": "159", + "$id": "155", "name": "body", "nameInRequest": "body", "type": { @@ -1465,7 +1433,7 @@ ], "responses": [ { - "$id": "160", + "$id": "156", "statusCodes": [ 204 ], @@ -1486,22 +1454,22 @@ "decorators": [] }, { - "$id": "161", + "$id": "157", "name": "patchNull", "resourceName": "Datetime", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "162", + "$id": "158", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "163", + "$id": "159", "kind": "constant", "valueType": { - "$id": "164", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1521,7 +1489,7 @@ "skipUrlEncoding": false }, { - "$id": "165", + "$id": "161", "name": "body", "nameInRequest": "body", "type": { @@ -1540,7 +1508,7 @@ ], "responses": [ { - "$id": "166", + "$id": "162", "statusCodes": [ 204 ], @@ -1561,26 +1529,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime", - "decorators": [], - "parent": { - "$ref": "81" - } - }, - { - "$id": "167", - "kind": "client", - "name": "Duration", - "namespace": "Type.Property.Nullable", "parameters": [ { - "$id": "168", + "$id": "163", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "169", + "$id": "164", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1594,9 +1550,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "170", + "$id": "165", "type": { - "$id": "171", + "$id": "166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1605,23 +1561,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime", + "apiVersions": [], + "parent": { + "$ref": "81" + } + }, + { + "$id": "167", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.Nullable", "operations": [ { - "$id": "172", + "$id": "168", "name": "getNonNull", "resourceName": "Duration", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "173", + "$id": "169", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "174", + "$id": "170", "kind": "constant", "valueType": { - "$id": "175", + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1643,7 +1611,7 @@ ], "responses": [ { - "$id": "176", + "$id": "172", "statusCodes": [ 200 ], @@ -1667,21 +1635,21 @@ "decorators": [] }, { - "$id": "177", + "$id": "173", "name": "getNull", "resourceName": "Duration", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "178", + "$id": "174", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "179", + "$id": "175", "kind": "constant", "valueType": { - "$id": "180", + "$id": "176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1703,7 +1671,7 @@ ], "responses": [ { - "$id": "181", + "$id": "177", "statusCodes": [ 200 ], @@ -1727,22 +1695,22 @@ "decorators": [] }, { - "$id": "182", + "$id": "178", "name": "patchNonNull", "resourceName": "Duration", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "183", + "$id": "179", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "184", + "$id": "180", "kind": "constant", "valueType": { - "$id": "185", + "$id": "181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1762,7 +1730,7 @@ "skipUrlEncoding": false }, { - "$id": "186", + "$id": "182", "name": "body", "nameInRequest": "body", "type": { @@ -1781,7 +1749,7 @@ ], "responses": [ { - "$id": "187", + "$id": "183", "statusCodes": [ 204 ], @@ -1802,22 +1770,22 @@ "decorators": [] }, { - "$id": "188", + "$id": "184", "name": "patchNull", "resourceName": "Duration", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "189", + "$id": "185", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "190", + "$id": "186", "kind": "constant", "valueType": { - "$id": "191", + "$id": "187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1837,7 +1805,7 @@ "skipUrlEncoding": false }, { - "$id": "192", + "$id": "188", "name": "body", "nameInRequest": "body", "type": { @@ -1856,7 +1824,7 @@ ], "responses": [ { - "$id": "193", + "$id": "189", "statusCodes": [ 204 ], @@ -1877,26 +1845,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration", - "decorators": [], - "parent": { - "$ref": "81" - } - }, - { - "$id": "194", - "kind": "client", - "name": "CollectionsByte", - "namespace": "Type.Property.Nullable", "parameters": [ { - "$id": "195", + "$id": "190", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "196", + "$id": "191", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1910,9 +1866,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "197", + "$id": "192", "type": { - "$id": "198", + "$id": "193", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1921,23 +1877,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration", + "apiVersions": [], + "parent": { + "$ref": "81" + } + }, + { + "$id": "194", + "kind": "client", + "name": "CollectionsByte", + "namespace": "Type.Property.Nullable", "operations": [ { - "$id": "199", + "$id": "195", "name": "getNonNull", "resourceName": "CollectionsByte", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "200", + "$id": "196", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "201", + "$id": "197", "kind": "constant", "valueType": { - "$id": "202", + "$id": "198", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1959,7 +1927,7 @@ ], "responses": [ { - "$id": "203", + "$id": "199", "statusCodes": [ 200 ], @@ -1983,21 +1951,21 @@ "decorators": [] }, { - "$id": "204", + "$id": "200", "name": "getNull", "resourceName": "CollectionsByte", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "205", + "$id": "201", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "206", + "$id": "202", "kind": "constant", "valueType": { - "$id": "207", + "$id": "203", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2019,7 +1987,7 @@ ], "responses": [ { - "$id": "208", + "$id": "204", "statusCodes": [ 200 ], @@ -2043,22 +2011,22 @@ "decorators": [] }, { - "$id": "209", + "$id": "205", "name": "patchNonNull", "resourceName": "CollectionsByte", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "210", + "$id": "206", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "211", + "$id": "207", "kind": "constant", "valueType": { - "$id": "212", + "$id": "208", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2078,7 +2046,7 @@ "skipUrlEncoding": false }, { - "$id": "213", + "$id": "209", "name": "body", "nameInRequest": "body", "type": { @@ -2097,7 +2065,7 @@ ], "responses": [ { - "$id": "214", + "$id": "210", "statusCodes": [ 204 ], @@ -2118,22 +2086,22 @@ "decorators": [] }, { - "$id": "215", + "$id": "211", "name": "patchNull", "resourceName": "CollectionsByte", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "216", + "$id": "212", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "217", + "$id": "213", "kind": "constant", "valueType": { - "$id": "218", + "$id": "214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2153,7 +2121,7 @@ "skipUrlEncoding": false }, { - "$id": "219", + "$id": "215", "name": "body", "nameInRequest": "body", "type": { @@ -2172,7 +2140,7 @@ ], "responses": [ { - "$id": "220", + "$id": "216", "statusCodes": [ 204 ], @@ -2193,26 +2161,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte", - "decorators": [], - "parent": { - "$ref": "81" - } - }, - { - "$id": "221", - "kind": "client", - "name": "CollectionsModel", - "namespace": "Type.Property.Nullable", "parameters": [ { - "$id": "222", + "$id": "217", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "223", + "$id": "218", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2226,9 +2182,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "224", + "$id": "219", "type": { - "$id": "225", + "$id": "220", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2237,23 +2193,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte", + "apiVersions": [], + "parent": { + "$ref": "81" + } + }, + { + "$id": "221", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.Nullable", "operations": [ { - "$id": "226", + "$id": "222", "name": "getNonNull", "resourceName": "CollectionsModel", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "227", + "$id": "223", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "228", + "$id": "224", "kind": "constant", "valueType": { - "$id": "229", + "$id": "225", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2275,7 +2243,7 @@ ], "responses": [ { - "$id": "230", + "$id": "226", "statusCodes": [ 200 ], @@ -2299,21 +2267,21 @@ "decorators": [] }, { - "$id": "231", + "$id": "227", "name": "getNull", "resourceName": "CollectionsModel", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "232", + "$id": "228", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "233", + "$id": "229", "kind": "constant", "valueType": { - "$id": "234", + "$id": "230", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2335,7 +2303,7 @@ ], "responses": [ { - "$id": "235", + "$id": "231", "statusCodes": [ 200 ], @@ -2359,22 +2327,22 @@ "decorators": [] }, { - "$id": "236", + "$id": "232", "name": "patchNonNull", "resourceName": "CollectionsModel", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "237", + "$id": "233", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "238", + "$id": "234", "kind": "constant", "valueType": { - "$id": "239", + "$id": "235", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2394,7 +2362,7 @@ "skipUrlEncoding": false }, { - "$id": "240", + "$id": "236", "name": "body", "nameInRequest": "body", "type": { @@ -2413,7 +2381,7 @@ ], "responses": [ { - "$id": "241", + "$id": "237", "statusCodes": [ 204 ], @@ -2434,22 +2402,22 @@ "decorators": [] }, { - "$id": "242", + "$id": "238", "name": "patchNull", "resourceName": "CollectionsModel", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "243", + "$id": "239", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "244", + "$id": "240", "kind": "constant", "valueType": { - "$id": "245", + "$id": "241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2469,7 +2437,7 @@ "skipUrlEncoding": false }, { - "$id": "246", + "$id": "242", "name": "body", "nameInRequest": "body", "type": { @@ -2488,7 +2456,7 @@ ], "responses": [ { - "$id": "247", + "$id": "243", "statusCodes": [ 204 ], @@ -2509,26 +2477,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel", - "decorators": [], - "parent": { - "$ref": "81" - } - }, - { - "$id": "248", - "kind": "client", - "name": "CollectionsString", - "namespace": "Type.Property.Nullable", "parameters": [ { - "$id": "249", + "$id": "244", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "250", + "$id": "245", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2542,9 +2498,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "251", + "$id": "246", "type": { - "$id": "252", + "$id": "247", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2553,23 +2509,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel", + "apiVersions": [], + "parent": { + "$ref": "81" + } + }, + { + "$id": "248", + "kind": "client", + "name": "CollectionsString", + "namespace": "Type.Property.Nullable", "operations": [ { - "$id": "253", + "$id": "249", "name": "getNonNull", "resourceName": "CollectionsString", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "254", + "$id": "250", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "255", + "$id": "251", "kind": "constant", "valueType": { - "$id": "256", + "$id": "252", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2591,7 +2559,7 @@ ], "responses": [ { - "$id": "257", + "$id": "253", "statusCodes": [ 200 ], @@ -2615,21 +2583,21 @@ "decorators": [] }, { - "$id": "258", + "$id": "254", "name": "getNull", "resourceName": "CollectionsString", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "259", + "$id": "255", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "260", + "$id": "256", "kind": "constant", "valueType": { - "$id": "261", + "$id": "257", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2651,7 +2619,7 @@ ], "responses": [ { - "$id": "262", + "$id": "258", "statusCodes": [ 200 ], @@ -2675,22 +2643,22 @@ "decorators": [] }, { - "$id": "263", + "$id": "259", "name": "patchNonNull", "resourceName": "CollectionsString", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "264", + "$id": "260", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "265", + "$id": "261", "kind": "constant", "valueType": { - "$id": "266", + "$id": "262", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2710,7 +2678,7 @@ "skipUrlEncoding": false }, { - "$id": "267", + "$id": "263", "name": "body", "nameInRequest": "body", "type": { @@ -2729,7 +2697,7 @@ ], "responses": [ { - "$id": "268", + "$id": "264", "statusCodes": [ 204 ], @@ -2750,22 +2718,22 @@ "decorators": [] }, { - "$id": "269", + "$id": "265", "name": "patchNull", "resourceName": "CollectionsString", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "270", + "$id": "266", "name": "contentType", "nameInRequest": "Content-Type", "doc": "content-type is application/merge-patch+json", "type": { - "$id": "271", + "$id": "267", "kind": "constant", "valueType": { - "$id": "272", + "$id": "268", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2785,7 +2753,7 @@ "skipUrlEncoding": false }, { - "$id": "273", + "$id": "269", "name": "body", "nameInRequest": "body", "type": { @@ -2804,7 +2772,7 @@ ], "responses": [ { - "$id": "274", + "$id": "270", "statusCodes": [ 204 ], @@ -2825,9 +2793,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString", + "parameters": [ + { + "$id": "271", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "272", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "273", + "type": { + "$id": "274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString", + "apiVersions": [], "parent": { "$ref": "81" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json index 42797b3e68b..050f2015d6f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json @@ -956,6 +956,7 @@ "name": "OptionalClient", "namespace": "Type.Property.Optional", "doc": "Illustrates models with optional properties.", + "operations": [], "parameters": [ { "$id": "115", @@ -988,65 +989,32 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional", "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional", + "apiVersions": [], "children": [ { "$id": "119", "kind": "client", "name": "String", "namespace": "Type.Property.Optional", - "parameters": [ - { - "$id": "120", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "121", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "122", - "type": { - "$id": "123", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "124", + "$id": "120", "name": "getAll", "resourceName": "String", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "125", + "$id": "121", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "126", + "$id": "122", "kind": "constant", "valueType": { - "$id": "127", + "$id": "123", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1068,7 +1036,7 @@ ], "responses": [ { - "$id": "128", + "$id": "124", "statusCodes": [ 200 ], @@ -1092,21 +1060,21 @@ "decorators": [] }, { - "$id": "129", + "$id": "125", "name": "getDefault", "resourceName": "String", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "130", + "$id": "126", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "131", + "$id": "127", "kind": "constant", "valueType": { - "$id": "132", + "$id": "128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1128,7 +1096,7 @@ ], "responses": [ { - "$id": "133", + "$id": "129", "statusCodes": [ 200 ], @@ -1152,22 +1120,22 @@ "decorators": [] }, { - "$id": "134", + "$id": "130", "name": "putAll", "resourceName": "String", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "135", + "$id": "131", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "136", + "$id": "132", "kind": "constant", "valueType": { - "$id": "137", + "$id": "133", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1187,7 +1155,7 @@ "skipUrlEncoding": false }, { - "$id": "138", + "$id": "134", "name": "body", "nameInRequest": "body", "type": { @@ -1206,7 +1174,7 @@ ], "responses": [ { - "$id": "139", + "$id": "135", "statusCodes": [ 204 ], @@ -1227,22 +1195,22 @@ "decorators": [] }, { - "$id": "140", + "$id": "136", "name": "putDefault", "resourceName": "String", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "141", + "$id": "137", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "142", + "$id": "138", "kind": "constant", "valueType": { - "$id": "143", + "$id": "139", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1262,7 +1230,7 @@ "skipUrlEncoding": false }, { - "$id": "144", + "$id": "140", "name": "body", "nameInRequest": "body", "type": { @@ -1281,7 +1249,7 @@ ], "responses": [ { - "$id": "145", + "$id": "141", "statusCodes": [ 204 ], @@ -1302,26 +1270,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.String", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "146", - "kind": "client", - "name": "Bytes", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "147", + "$id": "142", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "148", + "$id": "143", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1335,9 +1291,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "149", + "$id": "144", "type": { - "$id": "150", + "$id": "145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1346,23 +1302,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.String", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "146", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "151", + "$id": "147", "name": "getAll", "resourceName": "Bytes", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "152", + "$id": "148", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "153", + "$id": "149", "kind": "constant", "valueType": { - "$id": "154", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1384,7 +1352,7 @@ ], "responses": [ { - "$id": "155", + "$id": "151", "statusCodes": [ 200 ], @@ -1408,21 +1376,21 @@ "decorators": [] }, { - "$id": "156", + "$id": "152", "name": "getDefault", "resourceName": "Bytes", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "157", + "$id": "153", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "158", + "$id": "154", "kind": "constant", "valueType": { - "$id": "159", + "$id": "155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1444,7 +1412,7 @@ ], "responses": [ { - "$id": "160", + "$id": "156", "statusCodes": [ 200 ], @@ -1468,22 +1436,22 @@ "decorators": [] }, { - "$id": "161", + "$id": "157", "name": "putAll", "resourceName": "Bytes", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "162", + "$id": "158", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "163", + "$id": "159", "kind": "constant", "valueType": { - "$id": "164", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1503,7 +1471,7 @@ "skipUrlEncoding": false }, { - "$id": "165", + "$id": "161", "name": "body", "nameInRequest": "body", "type": { @@ -1522,7 +1490,7 @@ ], "responses": [ { - "$id": "166", + "$id": "162", "statusCodes": [ 204 ], @@ -1543,22 +1511,22 @@ "decorators": [] }, { - "$id": "167", + "$id": "163", "name": "putDefault", "resourceName": "Bytes", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "168", + "$id": "164", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "169", + "$id": "165", "kind": "constant", "valueType": { - "$id": "170", + "$id": "166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1578,7 +1546,7 @@ "skipUrlEncoding": false }, { - "$id": "171", + "$id": "167", "name": "body", "nameInRequest": "body", "type": { @@ -1597,7 +1565,7 @@ ], "responses": [ { - "$id": "172", + "$id": "168", "statusCodes": [ 204 ], @@ -1618,26 +1586,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "173", - "kind": "client", - "name": "Datetime", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "174", + "$id": "169", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "175", + "$id": "170", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1651,9 +1607,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "176", + "$id": "171", "type": { - "$id": "177", + "$id": "172", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1662,23 +1618,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "173", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "178", + "$id": "174", "name": "getAll", "resourceName": "Datetime", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "179", + "$id": "175", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "180", + "$id": "176", "kind": "constant", "valueType": { - "$id": "181", + "$id": "177", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1700,7 +1668,7 @@ ], "responses": [ { - "$id": "182", + "$id": "178", "statusCodes": [ 200 ], @@ -1724,21 +1692,21 @@ "decorators": [] }, { - "$id": "183", + "$id": "179", "name": "getDefault", "resourceName": "Datetime", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "184", + "$id": "180", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "185", + "$id": "181", "kind": "constant", "valueType": { - "$id": "186", + "$id": "182", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1760,7 +1728,7 @@ ], "responses": [ { - "$id": "187", + "$id": "183", "statusCodes": [ 200 ], @@ -1784,22 +1752,22 @@ "decorators": [] }, { - "$id": "188", + "$id": "184", "name": "putAll", "resourceName": "Datetime", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "189", + "$id": "185", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "190", + "$id": "186", "kind": "constant", "valueType": { - "$id": "191", + "$id": "187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1819,7 +1787,7 @@ "skipUrlEncoding": false }, { - "$id": "192", + "$id": "188", "name": "body", "nameInRequest": "body", "type": { @@ -1838,7 +1806,7 @@ ], "responses": [ { - "$id": "193", + "$id": "189", "statusCodes": [ 204 ], @@ -1859,22 +1827,22 @@ "decorators": [] }, { - "$id": "194", + "$id": "190", "name": "putDefault", "resourceName": "Datetime", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "195", + "$id": "191", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "196", + "$id": "192", "kind": "constant", "valueType": { - "$id": "197", + "$id": "193", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1894,7 +1862,7 @@ "skipUrlEncoding": false }, { - "$id": "198", + "$id": "194", "name": "body", "nameInRequest": "body", "type": { @@ -1913,7 +1881,7 @@ ], "responses": [ { - "$id": "199", + "$id": "195", "statusCodes": [ 204 ], @@ -1934,26 +1902,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "200", - "kind": "client", - "name": "Duration", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "201", + "$id": "196", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "202", + "$id": "197", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1967,9 +1923,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "203", + "$id": "198", "type": { - "$id": "204", + "$id": "199", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1978,23 +1934,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "200", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "205", + "$id": "201", "name": "getAll", "resourceName": "Duration", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "206", + "$id": "202", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "207", + "$id": "203", "kind": "constant", "valueType": { - "$id": "208", + "$id": "204", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2016,7 +1984,7 @@ ], "responses": [ { - "$id": "209", + "$id": "205", "statusCodes": [ 200 ], @@ -2040,21 +2008,21 @@ "decorators": [] }, { - "$id": "210", + "$id": "206", "name": "getDefault", "resourceName": "Duration", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "211", + "$id": "207", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "212", + "$id": "208", "kind": "constant", "valueType": { - "$id": "213", + "$id": "209", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2076,7 +2044,7 @@ ], "responses": [ { - "$id": "214", + "$id": "210", "statusCodes": [ 200 ], @@ -2100,22 +2068,22 @@ "decorators": [] }, { - "$id": "215", + "$id": "211", "name": "putAll", "resourceName": "Duration", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "216", + "$id": "212", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "217", + "$id": "213", "kind": "constant", "valueType": { - "$id": "218", + "$id": "214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2135,7 +2103,7 @@ "skipUrlEncoding": false }, { - "$id": "219", + "$id": "215", "name": "body", "nameInRequest": "body", "type": { @@ -2154,7 +2122,7 @@ ], "responses": [ { - "$id": "220", + "$id": "216", "statusCodes": [ 204 ], @@ -2175,22 +2143,22 @@ "decorators": [] }, { - "$id": "221", + "$id": "217", "name": "putDefault", "resourceName": "Duration", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "222", + "$id": "218", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "223", + "$id": "219", "kind": "constant", "valueType": { - "$id": "224", + "$id": "220", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2210,7 +2178,7 @@ "skipUrlEncoding": false }, { - "$id": "225", + "$id": "221", "name": "body", "nameInRequest": "body", "type": { @@ -2229,7 +2197,7 @@ ], "responses": [ { - "$id": "226", + "$id": "222", "statusCodes": [ 204 ], @@ -2250,26 +2218,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Duration", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "227", - "kind": "client", - "name": "PlainDate", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "228", + "$id": "223", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "229", + "$id": "224", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2283,9 +2239,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "230", + "$id": "225", "type": { - "$id": "231", + "$id": "226", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2294,23 +2250,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Duration", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "227", + "kind": "client", + "name": "PlainDate", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "232", + "$id": "228", "name": "getAll", "resourceName": "PlainDate", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "233", + "$id": "229", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "234", + "$id": "230", "kind": "constant", "valueType": { - "$id": "235", + "$id": "231", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2332,7 +2300,7 @@ ], "responses": [ { - "$id": "236", + "$id": "232", "statusCodes": [ 200 ], @@ -2356,21 +2324,21 @@ "decorators": [] }, { - "$id": "237", + "$id": "233", "name": "getDefault", "resourceName": "PlainDate", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "238", + "$id": "234", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "239", + "$id": "235", "kind": "constant", "valueType": { - "$id": "240", + "$id": "236", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2392,7 +2360,7 @@ ], "responses": [ { - "$id": "241", + "$id": "237", "statusCodes": [ 200 ], @@ -2416,22 +2384,22 @@ "decorators": [] }, { - "$id": "242", + "$id": "238", "name": "putAll", "resourceName": "PlainDate", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "243", + "$id": "239", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "244", + "$id": "240", "kind": "constant", "valueType": { - "$id": "245", + "$id": "241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2451,7 +2419,7 @@ "skipUrlEncoding": false }, { - "$id": "246", + "$id": "242", "name": "body", "nameInRequest": "body", "type": { @@ -2470,7 +2438,7 @@ ], "responses": [ { - "$id": "247", + "$id": "243", "statusCodes": [ 204 ], @@ -2491,22 +2459,22 @@ "decorators": [] }, { - "$id": "248", + "$id": "244", "name": "putDefault", "resourceName": "PlainDate", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "249", + "$id": "245", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "250", + "$id": "246", "kind": "constant", "valueType": { - "$id": "251", + "$id": "247", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2526,7 +2494,7 @@ "skipUrlEncoding": false }, { - "$id": "252", + "$id": "248", "name": "body", "nameInRequest": "body", "type": { @@ -2545,7 +2513,7 @@ ], "responses": [ { - "$id": "253", + "$id": "249", "statusCodes": [ 204 ], @@ -2566,26 +2534,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "254", - "kind": "client", - "name": "PlainTime", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "255", + "$id": "250", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "256", + "$id": "251", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2599,9 +2555,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "257", + "$id": "252", "type": { - "$id": "258", + "$id": "253", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2610,23 +2566,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "254", + "kind": "client", + "name": "PlainTime", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "259", + "$id": "255", "name": "getAll", "resourceName": "PlainTime", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "260", + "$id": "256", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "261", + "$id": "257", "kind": "constant", "valueType": { - "$id": "262", + "$id": "258", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2648,7 +2616,7 @@ ], "responses": [ { - "$id": "263", + "$id": "259", "statusCodes": [ 200 ], @@ -2672,21 +2640,21 @@ "decorators": [] }, { - "$id": "264", + "$id": "260", "name": "getDefault", "resourceName": "PlainTime", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "265", + "$id": "261", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "266", + "$id": "262", "kind": "constant", "valueType": { - "$id": "267", + "$id": "263", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2708,7 +2676,7 @@ ], "responses": [ { - "$id": "268", + "$id": "264", "statusCodes": [ 200 ], @@ -2732,22 +2700,22 @@ "decorators": [] }, { - "$id": "269", + "$id": "265", "name": "putAll", "resourceName": "PlainTime", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "270", + "$id": "266", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "271", + "$id": "267", "kind": "constant", "valueType": { - "$id": "272", + "$id": "268", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2767,7 +2735,7 @@ "skipUrlEncoding": false }, { - "$id": "273", + "$id": "269", "name": "body", "nameInRequest": "body", "type": { @@ -2786,7 +2754,7 @@ ], "responses": [ { - "$id": "274", + "$id": "270", "statusCodes": [ 204 ], @@ -2807,22 +2775,22 @@ "decorators": [] }, { - "$id": "275", + "$id": "271", "name": "putDefault", "resourceName": "PlainTime", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "276", + "$id": "272", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "277", + "$id": "273", "kind": "constant", "valueType": { - "$id": "278", + "$id": "274", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2842,7 +2810,7 @@ "skipUrlEncoding": false }, { - "$id": "279", + "$id": "275", "name": "body", "nameInRequest": "body", "type": { @@ -2861,7 +2829,7 @@ ], "responses": [ { - "$id": "280", + "$id": "276", "statusCodes": [ 204 ], @@ -2882,26 +2850,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "281", - "kind": "client", - "name": "CollectionsByte", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "282", + "$id": "277", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "283", + "$id": "278", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2915,9 +2871,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "284", + "$id": "279", "type": { - "$id": "285", + "$id": "280", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2926,23 +2882,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "281", + "kind": "client", + "name": "CollectionsByte", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "286", + "$id": "282", "name": "getAll", "resourceName": "CollectionsByte", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "287", + "$id": "283", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "288", + "$id": "284", "kind": "constant", "valueType": { - "$id": "289", + "$id": "285", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2964,7 +2932,7 @@ ], "responses": [ { - "$id": "290", + "$id": "286", "statusCodes": [ 200 ], @@ -2988,21 +2956,21 @@ "decorators": [] }, { - "$id": "291", + "$id": "287", "name": "getDefault", "resourceName": "CollectionsByte", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "292", + "$id": "288", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "293", + "$id": "289", "kind": "constant", "valueType": { - "$id": "294", + "$id": "290", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3024,7 +2992,7 @@ ], "responses": [ { - "$id": "295", + "$id": "291", "statusCodes": [ 200 ], @@ -3048,22 +3016,22 @@ "decorators": [] }, { - "$id": "296", + "$id": "292", "name": "putAll", "resourceName": "CollectionsByte", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "297", + "$id": "293", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "298", + "$id": "294", "kind": "constant", "valueType": { - "$id": "299", + "$id": "295", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3083,7 +3051,7 @@ "skipUrlEncoding": false }, { - "$id": "300", + "$id": "296", "name": "body", "nameInRequest": "body", "type": { @@ -3102,7 +3070,7 @@ ], "responses": [ { - "$id": "301", + "$id": "297", "statusCodes": [ 204 ], @@ -3123,22 +3091,22 @@ "decorators": [] }, { - "$id": "302", + "$id": "298", "name": "putDefault", "resourceName": "CollectionsByte", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "303", + "$id": "299", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "304", + "$id": "300", "kind": "constant", "valueType": { - "$id": "305", + "$id": "301", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3158,7 +3126,7 @@ "skipUrlEncoding": false }, { - "$id": "306", + "$id": "302", "name": "body", "nameInRequest": "body", "type": { @@ -3177,7 +3145,7 @@ ], "responses": [ { - "$id": "307", + "$id": "303", "statusCodes": [ 204 ], @@ -3198,26 +3166,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "308", - "kind": "client", - "name": "CollectionsModel", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "309", + "$id": "304", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "310", + "$id": "305", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3231,9 +3187,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "311", + "$id": "306", "type": { - "$id": "312", + "$id": "307", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3242,23 +3198,35 @@ } } ], - "operations": [ - { - "$id": "313", - "name": "getAll", - "resourceName": "CollectionsModel", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "314", - "name": "accept", + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "308", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "309", + "name": "getAll", + "resourceName": "CollectionsModel", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "310", + "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "315", + "$id": "311", "kind": "constant", "valueType": { - "$id": "316", + "$id": "312", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3280,7 +3248,7 @@ ], "responses": [ { - "$id": "317", + "$id": "313", "statusCodes": [ 200 ], @@ -3304,21 +3272,21 @@ "decorators": [] }, { - "$id": "318", + "$id": "314", "name": "getDefault", "resourceName": "CollectionsModel", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "319", + "$id": "315", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "320", + "$id": "316", "kind": "constant", "valueType": { - "$id": "321", + "$id": "317", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3340,7 +3308,7 @@ ], "responses": [ { - "$id": "322", + "$id": "318", "statusCodes": [ 200 ], @@ -3364,22 +3332,22 @@ "decorators": [] }, { - "$id": "323", + "$id": "319", "name": "putAll", "resourceName": "CollectionsModel", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "324", + "$id": "320", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "325", + "$id": "321", "kind": "constant", "valueType": { - "$id": "326", + "$id": "322", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3399,7 +3367,7 @@ "skipUrlEncoding": false }, { - "$id": "327", + "$id": "323", "name": "body", "nameInRequest": "body", "type": { @@ -3418,7 +3386,7 @@ ], "responses": [ { - "$id": "328", + "$id": "324", "statusCodes": [ 204 ], @@ -3439,22 +3407,22 @@ "decorators": [] }, { - "$id": "329", + "$id": "325", "name": "putDefault", "resourceName": "CollectionsModel", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "330", + "$id": "326", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "331", + "$id": "327", "kind": "constant", "valueType": { - "$id": "332", + "$id": "328", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3474,7 +3442,7 @@ "skipUrlEncoding": false }, { - "$id": "333", + "$id": "329", "name": "body", "nameInRequest": "body", "type": { @@ -3493,7 +3461,7 @@ ], "responses": [ { - "$id": "334", + "$id": "330", "statusCodes": [ 204 ], @@ -3514,26 +3482,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "335", - "kind": "client", - "name": "StringLiteral", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "336", + "$id": "331", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "337", + "$id": "332", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3547,9 +3503,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "338", + "$id": "333", "type": { - "$id": "339", + "$id": "334", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3558,23 +3514,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "335", + "kind": "client", + "name": "StringLiteral", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "340", + "$id": "336", "name": "getAll", "resourceName": "StringLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "341", + "$id": "337", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "342", + "$id": "338", "kind": "constant", "valueType": { - "$id": "343", + "$id": "339", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3596,7 +3564,7 @@ ], "responses": [ { - "$id": "344", + "$id": "340", "statusCodes": [ 200 ], @@ -3620,21 +3588,21 @@ "decorators": [] }, { - "$id": "345", + "$id": "341", "name": "getDefault", "resourceName": "StringLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "346", + "$id": "342", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "347", + "$id": "343", "kind": "constant", "valueType": { - "$id": "348", + "$id": "344", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3656,7 +3624,7 @@ ], "responses": [ { - "$id": "349", + "$id": "345", "statusCodes": [ 200 ], @@ -3680,22 +3648,22 @@ "decorators": [] }, { - "$id": "350", + "$id": "346", "name": "putAll", "resourceName": "StringLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "351", + "$id": "347", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "352", + "$id": "348", "kind": "constant", "valueType": { - "$id": "353", + "$id": "349", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3715,7 +3683,7 @@ "skipUrlEncoding": false }, { - "$id": "354", + "$id": "350", "name": "body", "nameInRequest": "body", "type": { @@ -3734,7 +3702,7 @@ ], "responses": [ { - "$id": "355", + "$id": "351", "statusCodes": [ 204 ], @@ -3755,22 +3723,22 @@ "decorators": [] }, { - "$id": "356", + "$id": "352", "name": "putDefault", "resourceName": "StringLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "357", + "$id": "353", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "358", + "$id": "354", "kind": "constant", "valueType": { - "$id": "359", + "$id": "355", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3790,7 +3758,7 @@ "skipUrlEncoding": false }, { - "$id": "360", + "$id": "356", "name": "body", "nameInRequest": "body", "type": { @@ -3809,7 +3777,7 @@ ], "responses": [ { - "$id": "361", + "$id": "357", "statusCodes": [ 204 ], @@ -3830,26 +3798,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "362", - "kind": "client", - "name": "IntLiteral", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "363", + "$id": "358", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "364", + "$id": "359", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3863,9 +3819,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "365", + "$id": "360", "type": { - "$id": "366", + "$id": "361", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3874,23 +3830,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "362", + "kind": "client", + "name": "IntLiteral", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "367", + "$id": "363", "name": "getAll", "resourceName": "IntLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "368", + "$id": "364", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "369", + "$id": "365", "kind": "constant", "valueType": { - "$id": "370", + "$id": "366", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3912,7 +3880,7 @@ ], "responses": [ { - "$id": "371", + "$id": "367", "statusCodes": [ 200 ], @@ -3936,21 +3904,21 @@ "decorators": [] }, { - "$id": "372", + "$id": "368", "name": "getDefault", "resourceName": "IntLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "373", + "$id": "369", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "374", + "$id": "370", "kind": "constant", "valueType": { - "$id": "375", + "$id": "371", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3972,7 +3940,7 @@ ], "responses": [ { - "$id": "376", + "$id": "372", "statusCodes": [ 200 ], @@ -3996,22 +3964,22 @@ "decorators": [] }, { - "$id": "377", + "$id": "373", "name": "putAll", "resourceName": "IntLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "378", + "$id": "374", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "379", + "$id": "375", "kind": "constant", "valueType": { - "$id": "380", + "$id": "376", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4031,7 +3999,7 @@ "skipUrlEncoding": false }, { - "$id": "381", + "$id": "377", "name": "body", "nameInRequest": "body", "type": { @@ -4050,7 +4018,7 @@ ], "responses": [ { - "$id": "382", + "$id": "378", "statusCodes": [ 204 ], @@ -4071,22 +4039,22 @@ "decorators": [] }, { - "$id": "383", + "$id": "379", "name": "putDefault", "resourceName": "IntLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "384", + "$id": "380", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "385", + "$id": "381", "kind": "constant", "valueType": { - "$id": "386", + "$id": "382", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4106,7 +4074,7 @@ "skipUrlEncoding": false }, { - "$id": "387", + "$id": "383", "name": "body", "nameInRequest": "body", "type": { @@ -4125,7 +4093,7 @@ ], "responses": [ { - "$id": "388", + "$id": "384", "statusCodes": [ 204 ], @@ -4146,26 +4114,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "389", - "kind": "client", - "name": "FloatLiteral", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "390", + "$id": "385", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "391", + "$id": "386", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4179,9 +4135,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "392", + "$id": "387", "type": { - "$id": "393", + "$id": "388", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4190,23 +4146,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "389", + "kind": "client", + "name": "FloatLiteral", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "394", + "$id": "390", "name": "getAll", "resourceName": "FloatLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "395", + "$id": "391", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "396", + "$id": "392", "kind": "constant", "valueType": { - "$id": "397", + "$id": "393", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4228,7 +4196,7 @@ ], "responses": [ { - "$id": "398", + "$id": "394", "statusCodes": [ 200 ], @@ -4252,21 +4220,21 @@ "decorators": [] }, { - "$id": "399", + "$id": "395", "name": "getDefault", "resourceName": "FloatLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "400", + "$id": "396", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "401", + "$id": "397", "kind": "constant", "valueType": { - "$id": "402", + "$id": "398", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4288,7 +4256,7 @@ ], "responses": [ { - "$id": "403", + "$id": "399", "statusCodes": [ 200 ], @@ -4312,22 +4280,22 @@ "decorators": [] }, { - "$id": "404", + "$id": "400", "name": "putAll", "resourceName": "FloatLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "405", + "$id": "401", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "406", + "$id": "402", "kind": "constant", "valueType": { - "$id": "407", + "$id": "403", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4347,7 +4315,7 @@ "skipUrlEncoding": false }, { - "$id": "408", + "$id": "404", "name": "body", "nameInRequest": "body", "type": { @@ -4366,7 +4334,7 @@ ], "responses": [ { - "$id": "409", + "$id": "405", "statusCodes": [ 204 ], @@ -4387,22 +4355,22 @@ "decorators": [] }, { - "$id": "410", + "$id": "406", "name": "putDefault", "resourceName": "FloatLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "411", + "$id": "407", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "412", + "$id": "408", "kind": "constant", "valueType": { - "$id": "413", + "$id": "409", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4422,7 +4390,7 @@ "skipUrlEncoding": false }, { - "$id": "414", + "$id": "410", "name": "body", "nameInRequest": "body", "type": { @@ -4441,7 +4409,7 @@ ], "responses": [ { - "$id": "415", + "$id": "411", "statusCodes": [ 204 ], @@ -4462,26 +4430,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "416", - "kind": "client", - "name": "BooleanLiteral", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "417", + "$id": "412", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "418", + "$id": "413", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4495,9 +4451,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "419", + "$id": "414", "type": { - "$id": "420", + "$id": "415", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4506,23 +4462,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "416", + "kind": "client", + "name": "BooleanLiteral", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "421", + "$id": "417", "name": "getAll", "resourceName": "BooleanLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "422", + "$id": "418", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "423", + "$id": "419", "kind": "constant", "valueType": { - "$id": "424", + "$id": "420", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4544,7 +4512,7 @@ ], "responses": [ { - "$id": "425", + "$id": "421", "statusCodes": [ 200 ], @@ -4568,21 +4536,21 @@ "decorators": [] }, { - "$id": "426", + "$id": "422", "name": "getDefault", "resourceName": "BooleanLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "427", + "$id": "423", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "428", + "$id": "424", "kind": "constant", "valueType": { - "$id": "429", + "$id": "425", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4604,7 +4572,7 @@ ], "responses": [ { - "$id": "430", + "$id": "426", "statusCodes": [ 200 ], @@ -4628,22 +4596,22 @@ "decorators": [] }, { - "$id": "431", + "$id": "427", "name": "putAll", "resourceName": "BooleanLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "432", + "$id": "428", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "433", + "$id": "429", "kind": "constant", "valueType": { - "$id": "434", + "$id": "430", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4663,7 +4631,7 @@ "skipUrlEncoding": false }, { - "$id": "435", + "$id": "431", "name": "body", "nameInRequest": "body", "type": { @@ -4682,7 +4650,7 @@ ], "responses": [ { - "$id": "436", + "$id": "432", "statusCodes": [ 204 ], @@ -4703,22 +4671,22 @@ "decorators": [] }, { - "$id": "437", + "$id": "433", "name": "putDefault", "resourceName": "BooleanLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "438", + "$id": "434", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "439", + "$id": "435", "kind": "constant", "valueType": { - "$id": "440", + "$id": "436", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4738,7 +4706,7 @@ "skipUrlEncoding": false }, { - "$id": "441", + "$id": "437", "name": "body", "nameInRequest": "body", "type": { @@ -4757,7 +4725,7 @@ ], "responses": [ { - "$id": "442", + "$id": "438", "statusCodes": [ 204 ], @@ -4778,26 +4746,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "443", - "kind": "client", - "name": "UnionStringLiteral", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "444", + "$id": "439", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "445", + "$id": "440", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4811,9 +4767,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "446", + "$id": "441", "type": { - "$id": "447", + "$id": "442", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4822,23 +4778,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "443", + "kind": "client", + "name": "UnionStringLiteral", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "448", + "$id": "444", "name": "getAll", "resourceName": "UnionStringLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "449", + "$id": "445", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "450", + "$id": "446", "kind": "constant", "valueType": { - "$id": "451", + "$id": "447", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4860,7 +4828,7 @@ ], "responses": [ { - "$id": "452", + "$id": "448", "statusCodes": [ 200 ], @@ -4884,21 +4852,21 @@ "decorators": [] }, { - "$id": "453", + "$id": "449", "name": "getDefault", "resourceName": "UnionStringLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "454", + "$id": "450", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "455", + "$id": "451", "kind": "constant", "valueType": { - "$id": "456", + "$id": "452", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4920,7 +4888,7 @@ ], "responses": [ { - "$id": "457", + "$id": "453", "statusCodes": [ 200 ], @@ -4944,22 +4912,22 @@ "decorators": [] }, { - "$id": "458", + "$id": "454", "name": "putAll", "resourceName": "UnionStringLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "459", + "$id": "455", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "460", + "$id": "456", "kind": "constant", "valueType": { - "$id": "461", + "$id": "457", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4979,7 +4947,7 @@ "skipUrlEncoding": false }, { - "$id": "462", + "$id": "458", "name": "body", "nameInRequest": "body", "type": { @@ -4998,7 +4966,7 @@ ], "responses": [ { - "$id": "463", + "$id": "459", "statusCodes": [ 204 ], @@ -5019,22 +4987,22 @@ "decorators": [] }, { - "$id": "464", + "$id": "460", "name": "putDefault", "resourceName": "UnionStringLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "465", + "$id": "461", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "466", + "$id": "462", "kind": "constant", "valueType": { - "$id": "467", + "$id": "463", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5054,7 +5022,7 @@ "skipUrlEncoding": false }, { - "$id": "468", + "$id": "464", "name": "body", "nameInRequest": "body", "type": { @@ -5073,7 +5041,7 @@ ], "responses": [ { - "$id": "469", + "$id": "465", "statusCodes": [ 204 ], @@ -5094,26 +5062,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "470", - "kind": "client", - "name": "UnionIntLiteral", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "471", + "$id": "466", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "472", + "$id": "467", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5127,9 +5083,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "473", + "$id": "468", "type": { - "$id": "474", + "$id": "469", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5138,23 +5094,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "470", + "kind": "client", + "name": "UnionIntLiteral", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "475", + "$id": "471", "name": "getAll", "resourceName": "UnionIntLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "476", + "$id": "472", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "477", + "$id": "473", "kind": "constant", "valueType": { - "$id": "478", + "$id": "474", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5176,7 +5144,7 @@ ], "responses": [ { - "$id": "479", + "$id": "475", "statusCodes": [ 200 ], @@ -5200,21 +5168,21 @@ "decorators": [] }, { - "$id": "480", + "$id": "476", "name": "getDefault", "resourceName": "UnionIntLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "481", + "$id": "477", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "482", + "$id": "478", "kind": "constant", "valueType": { - "$id": "483", + "$id": "479", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5236,7 +5204,7 @@ ], "responses": [ { - "$id": "484", + "$id": "480", "statusCodes": [ 200 ], @@ -5260,22 +5228,22 @@ "decorators": [] }, { - "$id": "485", + "$id": "481", "name": "putAll", "resourceName": "UnionIntLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "486", + "$id": "482", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "487", + "$id": "483", "kind": "constant", "valueType": { - "$id": "488", + "$id": "484", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5295,7 +5263,7 @@ "skipUrlEncoding": false }, { - "$id": "489", + "$id": "485", "name": "body", "nameInRequest": "body", "type": { @@ -5314,7 +5282,7 @@ ], "responses": [ { - "$id": "490", + "$id": "486", "statusCodes": [ 204 ], @@ -5335,22 +5303,22 @@ "decorators": [] }, { - "$id": "491", + "$id": "487", "name": "putDefault", "resourceName": "UnionIntLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "492", + "$id": "488", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "493", + "$id": "489", "kind": "constant", "valueType": { - "$id": "494", + "$id": "490", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5370,7 +5338,7 @@ "skipUrlEncoding": false }, { - "$id": "495", + "$id": "491", "name": "body", "nameInRequest": "body", "type": { @@ -5389,7 +5357,7 @@ ], "responses": [ { - "$id": "496", + "$id": "492", "statusCodes": [ 204 ], @@ -5410,26 +5378,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "497", - "kind": "client", - "name": "UnionFloatLiteral", - "namespace": "Type.Property.Optional", "parameters": [ { - "$id": "498", + "$id": "493", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "499", + "$id": "494", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5443,9 +5399,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "500", + "$id": "495", "type": { - "$id": "501", + "$id": "496", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5454,23 +5410,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "497", + "kind": "client", + "name": "UnionFloatLiteral", + "namespace": "Type.Property.Optional", "operations": [ { - "$id": "502", + "$id": "498", "name": "getAll", "resourceName": "UnionFloatLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "503", + "$id": "499", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "504", + "$id": "500", "kind": "constant", "valueType": { - "$id": "505", + "$id": "501", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5492,7 +5460,7 @@ ], "responses": [ { - "$id": "506", + "$id": "502", "statusCodes": [ 200 ], @@ -5516,21 +5484,21 @@ "decorators": [] }, { - "$id": "507", + "$id": "503", "name": "getDefault", "resourceName": "UnionFloatLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "508", + "$id": "504", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "509", + "$id": "505", "kind": "constant", "valueType": { - "$id": "510", + "$id": "506", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5552,7 +5520,7 @@ ], "responses": [ { - "$id": "511", + "$id": "507", "statusCodes": [ 200 ], @@ -5576,22 +5544,22 @@ "decorators": [] }, { - "$id": "512", + "$id": "508", "name": "putAll", "resourceName": "UnionFloatLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "513", + "$id": "509", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "514", + "$id": "510", "kind": "constant", "valueType": { - "$id": "515", + "$id": "511", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5611,7 +5579,7 @@ "skipUrlEncoding": false }, { - "$id": "516", + "$id": "512", "name": "body", "nameInRequest": "body", "type": { @@ -5630,7 +5598,7 @@ ], "responses": [ { - "$id": "517", + "$id": "513", "statusCodes": [ 204 ], @@ -5651,22 +5619,22 @@ "decorators": [] }, { - "$id": "518", + "$id": "514", "name": "putDefault", "resourceName": "UnionFloatLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "519", + "$id": "515", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "520", + "$id": "516", "kind": "constant", "valueType": { - "$id": "521", + "$id": "517", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5686,7 +5654,7 @@ "skipUrlEncoding": false }, { - "$id": "522", + "$id": "518", "name": "body", "nameInRequest": "body", "type": { @@ -5705,7 +5673,7 @@ ], "responses": [ { - "$id": "523", + "$id": "519", "statusCodes": [ 204 ], @@ -5726,27 +5694,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral", - "decorators": [], - "parent": { - "$ref": "114" - } - }, - { - "$id": "524", - "kind": "client", - "name": "RequiredAndOptional", - "namespace": "Type.Property.Optional", - "doc": "Test optional and required properties", "parameters": [ { - "$id": "525", + "$id": "520", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "526", + "$id": "521", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5760,9 +5715,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "527", + "$id": "522", "type": { - "$id": "528", + "$id": "523", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5771,23 +5726,36 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "524", + "kind": "client", + "name": "RequiredAndOptional", + "namespace": "Type.Property.Optional", + "doc": "Test optional and required properties", "operations": [ { - "$id": "529", + "$id": "525", "name": "getAll", "resourceName": "RequiredAndOptional", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "530", + "$id": "526", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "531", + "$id": "527", "kind": "constant", "valueType": { - "$id": "532", + "$id": "528", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5809,7 +5777,7 @@ ], "responses": [ { - "$id": "533", + "$id": "529", "statusCodes": [ 200 ], @@ -5833,21 +5801,21 @@ "decorators": [] }, { - "$id": "534", + "$id": "530", "name": "getRequiredOnly", "resourceName": "RequiredAndOptional", "doc": "Get models that will return only the required properties", "accessibility": "public", "parameters": [ { - "$id": "535", + "$id": "531", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "536", + "$id": "532", "kind": "constant", "valueType": { - "$id": "537", + "$id": "533", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5869,7 +5837,7 @@ ], "responses": [ { - "$id": "538", + "$id": "534", "statusCodes": [ 200 ], @@ -5893,22 +5861,22 @@ "decorators": [] }, { - "$id": "539", + "$id": "535", "name": "putAll", "resourceName": "RequiredAndOptional", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "540", + "$id": "536", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "541", + "$id": "537", "kind": "constant", "valueType": { - "$id": "542", + "$id": "538", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5928,7 +5896,7 @@ "skipUrlEncoding": false }, { - "$id": "543", + "$id": "539", "name": "body", "nameInRequest": "body", "type": { @@ -5947,7 +5915,7 @@ ], "responses": [ { - "$id": "544", + "$id": "540", "statusCodes": [ 204 ], @@ -5968,22 +5936,22 @@ "decorators": [] }, { - "$id": "545", + "$id": "541", "name": "putRequiredOnly", "resourceName": "RequiredAndOptional", "doc": "Put a body with only required properties.", "accessibility": "public", "parameters": [ { - "$id": "546", + "$id": "542", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "547", + "$id": "543", "kind": "constant", "valueType": { - "$id": "548", + "$id": "544", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6003,7 +5971,7 @@ "skipUrlEncoding": false }, { - "$id": "549", + "$id": "545", "name": "body", "nameInRequest": "body", "type": { @@ -6022,7 +5990,7 @@ ], "responses": [ { - "$id": "550", + "$id": "546", "statusCodes": [ 204 ], @@ -6043,9 +6011,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional", + "parameters": [ + { + "$id": "547", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "548", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "549", + "type": { + "$id": "550", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional", + "apiVersions": [], "parent": { "$ref": "114" } 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 c97f0b2cb80..e65d88b24d2 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 @@ -1606,6 +1606,7 @@ "name": "ValueTypesClient", "namespace": "Type.Property.ValueTypes", "doc": "Illustrates various property types for models", + "operations": [], "parameters": [ { "$id": "193", @@ -1638,65 +1639,32 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes", "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes", + "apiVersions": [], "children": [ { "$id": "197", "kind": "client", "name": "Boolean", "namespace": "Type.Property.ValueTypes", - "parameters": [ - { - "$id": "198", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "199", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "200", - "type": { - "$id": "201", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "202", + "$id": "198", "name": "get", "resourceName": "Boolean", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "203", + "$id": "199", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "204", + "$id": "200", "kind": "constant", "valueType": { - "$id": "205", + "$id": "201", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1718,7 +1686,7 @@ ], "responses": [ { - "$id": "206", + "$id": "202", "statusCodes": [ 200 ], @@ -1742,22 +1710,22 @@ "decorators": [] }, { - "$id": "207", + "$id": "203", "name": "put", "resourceName": "Boolean", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "208", + "$id": "204", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "209", + "$id": "205", "kind": "constant", "valueType": { - "$id": "210", + "$id": "206", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1777,7 +1745,7 @@ "skipUrlEncoding": false }, { - "$id": "211", + "$id": "207", "name": "body", "nameInRequest": "body", "doc": "body", @@ -1797,7 +1765,7 @@ ], "responses": [ { - "$id": "212", + "$id": "208", "statusCodes": [ 204 ], @@ -1818,26 +1786,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "213", - "kind": "client", - "name": "String", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "214", + "$id": "209", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "215", + "$id": "210", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1851,9 +1807,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "216", + "$id": "211", "type": { - "$id": "217", + "$id": "212", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1862,23 +1818,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "213", + "kind": "client", + "name": "String", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "218", + "$id": "214", "name": "get", "resourceName": "String", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "219", + "$id": "215", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "220", + "$id": "216", "kind": "constant", "valueType": { - "$id": "221", + "$id": "217", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1900,7 +1868,7 @@ ], "responses": [ { - "$id": "222", + "$id": "218", "statusCodes": [ 200 ], @@ -1924,22 +1892,22 @@ "decorators": [] }, { - "$id": "223", + "$id": "219", "name": "put", "resourceName": "String", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "224", + "$id": "220", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "225", + "$id": "221", "kind": "constant", "valueType": { - "$id": "226", + "$id": "222", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1959,7 +1927,7 @@ "skipUrlEncoding": false }, { - "$id": "227", + "$id": "223", "name": "body", "nameInRequest": "body", "doc": "body", @@ -1979,7 +1947,7 @@ ], "responses": [ { - "$id": "228", + "$id": "224", "statusCodes": [ 204 ], @@ -2000,26 +1968,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "229", - "kind": "client", - "name": "Bytes", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "230", + "$id": "225", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "231", + "$id": "226", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2033,9 +1989,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "232", + "$id": "227", "type": { - "$id": "233", + "$id": "228", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2044,23 +2000,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "229", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "234", + "$id": "230", "name": "get", "resourceName": "Bytes", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "235", + "$id": "231", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "236", + "$id": "232", "kind": "constant", "valueType": { - "$id": "237", + "$id": "233", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2082,7 +2050,7 @@ ], "responses": [ { - "$id": "238", + "$id": "234", "statusCodes": [ 200 ], @@ -2106,22 +2074,22 @@ "decorators": [] }, { - "$id": "239", + "$id": "235", "name": "put", "resourceName": "Bytes", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "240", + "$id": "236", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "241", + "$id": "237", "kind": "constant", "valueType": { - "$id": "242", + "$id": "238", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2141,7 +2109,7 @@ "skipUrlEncoding": false }, { - "$id": "243", + "$id": "239", "name": "body", "nameInRequest": "body", "doc": "body", @@ -2161,7 +2129,7 @@ ], "responses": [ { - "$id": "244", + "$id": "240", "statusCodes": [ 204 ], @@ -2182,26 +2150,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "245", - "kind": "client", - "name": "Int", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "246", + "$id": "241", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "247", + "$id": "242", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2215,9 +2171,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "248", + "$id": "243", "type": { - "$id": "249", + "$id": "244", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2226,23 +2182,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "245", + "kind": "client", + "name": "Int", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "250", + "$id": "246", "name": "get", "resourceName": "Int", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "251", + "$id": "247", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "252", + "$id": "248", "kind": "constant", "valueType": { - "$id": "253", + "$id": "249", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2264,7 +2232,7 @@ ], "responses": [ { - "$id": "254", + "$id": "250", "statusCodes": [ 200 ], @@ -2288,22 +2256,22 @@ "decorators": [] }, { - "$id": "255", + "$id": "251", "name": "put", "resourceName": "Int", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "256", + "$id": "252", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "257", + "$id": "253", "kind": "constant", "valueType": { - "$id": "258", + "$id": "254", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2323,7 +2291,7 @@ "skipUrlEncoding": false }, { - "$id": "259", + "$id": "255", "name": "body", "nameInRequest": "body", "doc": "body", @@ -2343,7 +2311,7 @@ ], "responses": [ { - "$id": "260", + "$id": "256", "statusCodes": [ 204 ], @@ -2364,26 +2332,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "261", - "kind": "client", - "name": "Float", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "262", + "$id": "257", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "263", + "$id": "258", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2397,9 +2353,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "264", + "$id": "259", "type": { - "$id": "265", + "$id": "260", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2408,23 +2364,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "261", + "kind": "client", + "name": "Float", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "266", + "$id": "262", "name": "get", "resourceName": "Float", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "267", + "$id": "263", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "268", + "$id": "264", "kind": "constant", "valueType": { - "$id": "269", + "$id": "265", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2446,7 +2414,7 @@ ], "responses": [ { - "$id": "270", + "$id": "266", "statusCodes": [ 200 ], @@ -2470,22 +2438,22 @@ "decorators": [] }, { - "$id": "271", + "$id": "267", "name": "put", "resourceName": "Float", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "272", + "$id": "268", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "273", + "$id": "269", "kind": "constant", "valueType": { - "$id": "274", + "$id": "270", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2505,7 +2473,7 @@ "skipUrlEncoding": false }, { - "$id": "275", + "$id": "271", "name": "body", "nameInRequest": "body", "doc": "body", @@ -2525,7 +2493,7 @@ ], "responses": [ { - "$id": "276", + "$id": "272", "statusCodes": [ 204 ], @@ -2546,26 +2514,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "277", - "kind": "client", - "name": "Decimal", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "278", + "$id": "273", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "279", + "$id": "274", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2579,9 +2535,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "280", + "$id": "275", "type": { - "$id": "281", + "$id": "276", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2590,23 +2546,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "277", + "kind": "client", + "name": "Decimal", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "282", + "$id": "278", "name": "get", "resourceName": "Decimal", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "283", + "$id": "279", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "284", + "$id": "280", "kind": "constant", "valueType": { - "$id": "285", + "$id": "281", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2628,7 +2596,7 @@ ], "responses": [ { - "$id": "286", + "$id": "282", "statusCodes": [ 200 ], @@ -2652,22 +2620,22 @@ "decorators": [] }, { - "$id": "287", + "$id": "283", "name": "put", "resourceName": "Decimal", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "288", + "$id": "284", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "289", + "$id": "285", "kind": "constant", "valueType": { - "$id": "290", + "$id": "286", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2687,7 +2655,7 @@ "skipUrlEncoding": false }, { - "$id": "291", + "$id": "287", "name": "body", "nameInRequest": "body", "doc": "body", @@ -2707,7 +2675,7 @@ ], "responses": [ { - "$id": "292", + "$id": "288", "statusCodes": [ 204 ], @@ -2728,26 +2696,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "293", - "kind": "client", - "name": "Decimal128", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "294", + "$id": "289", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "295", + "$id": "290", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2761,9 +2717,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "296", + "$id": "291", "type": { - "$id": "297", + "$id": "292", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2772,23 +2728,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "293", + "kind": "client", + "name": "Decimal128", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "298", + "$id": "294", "name": "get", "resourceName": "Decimal128", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "299", + "$id": "295", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "300", + "$id": "296", "kind": "constant", "valueType": { - "$id": "301", + "$id": "297", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2810,7 +2778,7 @@ ], "responses": [ { - "$id": "302", + "$id": "298", "statusCodes": [ 200 ], @@ -2834,22 +2802,22 @@ "decorators": [] }, { - "$id": "303", + "$id": "299", "name": "put", "resourceName": "Decimal128", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "304", + "$id": "300", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "305", + "$id": "301", "kind": "constant", "valueType": { - "$id": "306", + "$id": "302", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2869,7 +2837,7 @@ "skipUrlEncoding": false }, { - "$id": "307", + "$id": "303", "name": "body", "nameInRequest": "body", "doc": "body", @@ -2889,7 +2857,7 @@ ], "responses": [ { - "$id": "308", + "$id": "304", "statusCodes": [ 204 ], @@ -2910,26 +2878,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "309", - "kind": "client", - "name": "Datetime", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "310", + "$id": "305", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "311", + "$id": "306", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2943,9 +2899,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "312", + "$id": "307", "type": { - "$id": "313", + "$id": "308", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2954,23 +2910,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "309", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "314", + "$id": "310", "name": "get", "resourceName": "Datetime", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "315", + "$id": "311", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "316", + "$id": "312", "kind": "constant", "valueType": { - "$id": "317", + "$id": "313", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2992,7 +2960,7 @@ ], "responses": [ { - "$id": "318", + "$id": "314", "statusCodes": [ 200 ], @@ -3016,22 +2984,22 @@ "decorators": [] }, { - "$id": "319", + "$id": "315", "name": "put", "resourceName": "Datetime", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "320", + "$id": "316", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "321", + "$id": "317", "kind": "constant", "valueType": { - "$id": "322", + "$id": "318", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3051,7 +3019,7 @@ "skipUrlEncoding": false }, { - "$id": "323", + "$id": "319", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3071,7 +3039,7 @@ ], "responses": [ { - "$id": "324", + "$id": "320", "statusCodes": [ 204 ], @@ -3092,26 +3060,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "325", - "kind": "client", - "name": "Duration", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "326", + "$id": "321", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "327", + "$id": "322", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3125,9 +3081,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "328", + "$id": "323", "type": { - "$id": "329", + "$id": "324", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3136,23 +3092,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "325", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "330", + "$id": "326", "name": "get", "resourceName": "Duration", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "331", + "$id": "327", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "332", + "$id": "328", "kind": "constant", "valueType": { - "$id": "333", + "$id": "329", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3174,7 +3142,7 @@ ], "responses": [ { - "$id": "334", + "$id": "330", "statusCodes": [ 200 ], @@ -3198,22 +3166,22 @@ "decorators": [] }, { - "$id": "335", + "$id": "331", "name": "put", "resourceName": "Duration", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "336", + "$id": "332", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "337", + "$id": "333", "kind": "constant", "valueType": { - "$id": "338", + "$id": "334", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3233,7 +3201,7 @@ "skipUrlEncoding": false }, { - "$id": "339", + "$id": "335", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3253,7 +3221,7 @@ ], "responses": [ { - "$id": "340", + "$id": "336", "statusCodes": [ 204 ], @@ -3274,26 +3242,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "341", - "kind": "client", - "name": "Enum", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "342", + "$id": "337", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "343", + "$id": "338", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3307,9 +3263,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "344", + "$id": "339", "type": { - "$id": "345", + "$id": "340", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3318,23 +3274,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "341", + "kind": "client", + "name": "Enum", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "346", + "$id": "342", "name": "get", "resourceName": "Enum", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "347", + "$id": "343", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "348", + "$id": "344", "kind": "constant", "valueType": { - "$id": "349", + "$id": "345", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3356,7 +3324,7 @@ ], "responses": [ { - "$id": "350", + "$id": "346", "statusCodes": [ 200 ], @@ -3380,22 +3348,22 @@ "decorators": [] }, { - "$id": "351", + "$id": "347", "name": "put", "resourceName": "Enum", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "352", + "$id": "348", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "353", + "$id": "349", "kind": "constant", "valueType": { - "$id": "354", + "$id": "350", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3415,7 +3383,7 @@ "skipUrlEncoding": false }, { - "$id": "355", + "$id": "351", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3435,7 +3403,7 @@ ], "responses": [ { - "$id": "356", + "$id": "352", "statusCodes": [ 204 ], @@ -3456,26 +3424,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "357", - "kind": "client", - "name": "ExtensibleEnum", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "358", + "$id": "353", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "359", + "$id": "354", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3489,9 +3445,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "360", + "$id": "355", "type": { - "$id": "361", + "$id": "356", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3500,23 +3456,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "357", + "kind": "client", + "name": "ExtensibleEnum", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "362", + "$id": "358", "name": "get", "resourceName": "ExtensibleEnum", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "363", + "$id": "359", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "364", + "$id": "360", "kind": "constant", "valueType": { - "$id": "365", + "$id": "361", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3538,7 +3506,7 @@ ], "responses": [ { - "$id": "366", + "$id": "362", "statusCodes": [ 200 ], @@ -3562,22 +3530,22 @@ "decorators": [] }, { - "$id": "367", + "$id": "363", "name": "put", "resourceName": "ExtensibleEnum", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "368", + "$id": "364", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "369", + "$id": "365", "kind": "constant", "valueType": { - "$id": "370", + "$id": "366", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3597,7 +3565,7 @@ "skipUrlEncoding": false }, { - "$id": "371", + "$id": "367", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3617,7 +3585,7 @@ ], "responses": [ { - "$id": "372", + "$id": "368", "statusCodes": [ 204 ], @@ -3638,26 +3606,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "373", - "kind": "client", - "name": "Model", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "374", + "$id": "369", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "375", + "$id": "370", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3671,9 +3627,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "376", + "$id": "371", "type": { - "$id": "377", + "$id": "372", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3682,23 +3638,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "373", + "kind": "client", + "name": "Model", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "378", + "$id": "374", "name": "get", "resourceName": "Model", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "379", + "$id": "375", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "380", + "$id": "376", "kind": "constant", "valueType": { - "$id": "381", + "$id": "377", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3720,7 +3688,7 @@ ], "responses": [ { - "$id": "382", + "$id": "378", "statusCodes": [ 200 ], @@ -3744,22 +3712,22 @@ "decorators": [] }, { - "$id": "383", + "$id": "379", "name": "put", "resourceName": "Model", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "384", + "$id": "380", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "385", + "$id": "381", "kind": "constant", "valueType": { - "$id": "386", + "$id": "382", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3779,7 +3747,7 @@ "skipUrlEncoding": false }, { - "$id": "387", + "$id": "383", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3799,7 +3767,7 @@ ], "responses": [ { - "$id": "388", + "$id": "384", "statusCodes": [ 204 ], @@ -3820,26 +3788,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "389", - "kind": "client", - "name": "CollectionsString", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "390", + "$id": "385", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "391", + "$id": "386", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3853,9 +3809,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "392", + "$id": "387", "type": { - "$id": "393", + "$id": "388", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3864,23 +3820,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "389", + "kind": "client", + "name": "CollectionsString", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "394", + "$id": "390", "name": "get", "resourceName": "CollectionsString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "395", + "$id": "391", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "396", + "$id": "392", "kind": "constant", "valueType": { - "$id": "397", + "$id": "393", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3902,7 +3870,7 @@ ], "responses": [ { - "$id": "398", + "$id": "394", "statusCodes": [ 200 ], @@ -3926,22 +3894,22 @@ "decorators": [] }, { - "$id": "399", + "$id": "395", "name": "put", "resourceName": "CollectionsString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "400", + "$id": "396", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "401", + "$id": "397", "kind": "constant", "valueType": { - "$id": "402", + "$id": "398", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3961,7 +3929,7 @@ "skipUrlEncoding": false }, { - "$id": "403", + "$id": "399", "name": "body", "nameInRequest": "body", "doc": "body", @@ -3981,7 +3949,7 @@ ], "responses": [ { - "$id": "404", + "$id": "400", "statusCodes": [ 204 ], @@ -4002,26 +3970,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "405", - "kind": "client", - "name": "CollectionsInt", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "406", + "$id": "401", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "407", + "$id": "402", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4035,9 +3991,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "408", + "$id": "403", "type": { - "$id": "409", + "$id": "404", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4046,23 +4002,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "405", + "kind": "client", + "name": "CollectionsInt", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "410", + "$id": "406", "name": "get", "resourceName": "CollectionsInt", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "411", + "$id": "407", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "412", + "$id": "408", "kind": "constant", "valueType": { - "$id": "413", + "$id": "409", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4084,7 +4052,7 @@ ], "responses": [ { - "$id": "414", + "$id": "410", "statusCodes": [ 200 ], @@ -4108,22 +4076,22 @@ "decorators": [] }, { - "$id": "415", + "$id": "411", "name": "put", "resourceName": "CollectionsInt", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "416", + "$id": "412", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "417", + "$id": "413", "kind": "constant", "valueType": { - "$id": "418", + "$id": "414", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4143,7 +4111,7 @@ "skipUrlEncoding": false }, { - "$id": "419", + "$id": "415", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4163,7 +4131,7 @@ ], "responses": [ { - "$id": "420", + "$id": "416", "statusCodes": [ 204 ], @@ -4184,26 +4152,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "421", - "kind": "client", - "name": "CollectionsModel", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "422", + "$id": "417", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "423", + "$id": "418", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4217,9 +4173,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "424", + "$id": "419", "type": { - "$id": "425", + "$id": "420", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4228,23 +4184,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "421", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "426", + "$id": "422", "name": "get", "resourceName": "CollectionsModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "427", + "$id": "423", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "428", + "$id": "424", "kind": "constant", "valueType": { - "$id": "429", + "$id": "425", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4266,7 +4234,7 @@ ], "responses": [ { - "$id": "430", + "$id": "426", "statusCodes": [ 200 ], @@ -4290,22 +4258,22 @@ "decorators": [] }, { - "$id": "431", + "$id": "427", "name": "put", "resourceName": "CollectionsModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "432", + "$id": "428", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "433", + "$id": "429", "kind": "constant", "valueType": { - "$id": "434", + "$id": "430", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4325,7 +4293,7 @@ "skipUrlEncoding": false }, { - "$id": "435", + "$id": "431", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4345,7 +4313,7 @@ ], "responses": [ { - "$id": "436", + "$id": "432", "statusCodes": [ 204 ], @@ -4366,26 +4334,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "437", - "kind": "client", - "name": "DictionaryString", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "438", + "$id": "433", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "439", + "$id": "434", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4399,9 +4355,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "440", + "$id": "435", "type": { - "$id": "441", + "$id": "436", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4410,23 +4366,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "437", + "kind": "client", + "name": "DictionaryString", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "442", + "$id": "438", "name": "get", "resourceName": "DictionaryString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "443", + "$id": "439", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "444", + "$id": "440", "kind": "constant", "valueType": { - "$id": "445", + "$id": "441", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4448,7 +4416,7 @@ ], "responses": [ { - "$id": "446", + "$id": "442", "statusCodes": [ 200 ], @@ -4472,22 +4440,22 @@ "decorators": [] }, { - "$id": "447", + "$id": "443", "name": "put", "resourceName": "DictionaryString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "448", + "$id": "444", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "449", + "$id": "445", "kind": "constant", "valueType": { - "$id": "450", + "$id": "446", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4507,7 +4475,7 @@ "skipUrlEncoding": false }, { - "$id": "451", + "$id": "447", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4527,7 +4495,7 @@ ], "responses": [ { - "$id": "452", + "$id": "448", "statusCodes": [ 204 ], @@ -4548,26 +4516,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "453", - "kind": "client", - "name": "Never", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "454", + "$id": "449", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "455", + "$id": "450", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4581,9 +4537,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "456", + "$id": "451", "type": { - "$id": "457", + "$id": "452", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4592,23 +4548,35 @@ } } ], - "operations": [ - { - "$id": "458", - "name": "get", - "resourceName": "Never", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "459", - "name": "accept", + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "453", + "kind": "client", + "name": "Never", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "454", + "name": "get", + "resourceName": "Never", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "455", + "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "460", + "$id": "456", "kind": "constant", "valueType": { - "$id": "461", + "$id": "457", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4630,7 +4598,7 @@ ], "responses": [ { - "$id": "462", + "$id": "458", "statusCodes": [ 200 ], @@ -4654,22 +4622,22 @@ "decorators": [] }, { - "$id": "463", + "$id": "459", "name": "put", "resourceName": "Never", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "464", + "$id": "460", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "465", + "$id": "461", "kind": "constant", "valueType": { - "$id": "466", + "$id": "462", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4689,7 +4657,7 @@ "skipUrlEncoding": false }, { - "$id": "467", + "$id": "463", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4709,7 +4677,7 @@ ], "responses": [ { - "$id": "468", + "$id": "464", "statusCodes": [ 204 ], @@ -4730,26 +4698,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "469", - "kind": "client", - "name": "UnknownString", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "470", + "$id": "465", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "471", + "$id": "466", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4763,9 +4719,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "472", + "$id": "467", "type": { - "$id": "473", + "$id": "468", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4774,23 +4730,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "469", + "kind": "client", + "name": "UnknownString", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "474", + "$id": "470", "name": "get", "resourceName": "UnknownString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "475", + "$id": "471", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "476", + "$id": "472", "kind": "constant", "valueType": { - "$id": "477", + "$id": "473", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4812,7 +4780,7 @@ ], "responses": [ { - "$id": "478", + "$id": "474", "statusCodes": [ 200 ], @@ -4836,22 +4804,22 @@ "decorators": [] }, { - "$id": "479", + "$id": "475", "name": "put", "resourceName": "UnknownString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "480", + "$id": "476", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "481", + "$id": "477", "kind": "constant", "valueType": { - "$id": "482", + "$id": "478", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4871,7 +4839,7 @@ "skipUrlEncoding": false }, { - "$id": "483", + "$id": "479", "name": "body", "nameInRequest": "body", "doc": "body", @@ -4891,7 +4859,7 @@ ], "responses": [ { - "$id": "484", + "$id": "480", "statusCodes": [ 204 ], @@ -4912,26 +4880,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "485", - "kind": "client", - "name": "UnknownInt", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "486", + "$id": "481", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "487", + "$id": "482", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4945,9 +4901,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "488", + "$id": "483", "type": { - "$id": "489", + "$id": "484", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4956,23 +4912,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "485", + "kind": "client", + "name": "UnknownInt", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "490", + "$id": "486", "name": "get", "resourceName": "UnknownInt", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "491", + "$id": "487", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "492", + "$id": "488", "kind": "constant", "valueType": { - "$id": "493", + "$id": "489", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4994,7 +4962,7 @@ ], "responses": [ { - "$id": "494", + "$id": "490", "statusCodes": [ 200 ], @@ -5018,22 +4986,22 @@ "decorators": [] }, { - "$id": "495", + "$id": "491", "name": "put", "resourceName": "UnknownInt", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "496", + "$id": "492", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "497", + "$id": "493", "kind": "constant", "valueType": { - "$id": "498", + "$id": "494", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5053,7 +5021,7 @@ "skipUrlEncoding": false }, { - "$id": "499", + "$id": "495", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5073,7 +5041,7 @@ ], "responses": [ { - "$id": "500", + "$id": "496", "statusCodes": [ 204 ], @@ -5094,26 +5062,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "501", - "kind": "client", - "name": "UnknownDict", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "502", + "$id": "497", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "503", + "$id": "498", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5127,9 +5083,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "504", + "$id": "499", "type": { - "$id": "505", + "$id": "500", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5138,23 +5094,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "501", + "kind": "client", + "name": "UnknownDict", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "506", + "$id": "502", "name": "get", "resourceName": "UnknownDict", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "507", + "$id": "503", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "508", + "$id": "504", "kind": "constant", "valueType": { - "$id": "509", + "$id": "505", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5176,7 +5144,7 @@ ], "responses": [ { - "$id": "510", + "$id": "506", "statusCodes": [ 200 ], @@ -5200,22 +5168,22 @@ "decorators": [] }, { - "$id": "511", + "$id": "507", "name": "put", "resourceName": "UnknownDict", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "512", + "$id": "508", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "513", + "$id": "509", "kind": "constant", "valueType": { - "$id": "514", + "$id": "510", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5235,7 +5203,7 @@ "skipUrlEncoding": false }, { - "$id": "515", + "$id": "511", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5255,7 +5223,7 @@ ], "responses": [ { - "$id": "516", + "$id": "512", "statusCodes": [ 204 ], @@ -5276,26 +5244,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "517", - "kind": "client", - "name": "UnknownArray", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "518", + "$id": "513", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "519", + "$id": "514", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5309,9 +5265,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "520", + "$id": "515", "type": { - "$id": "521", + "$id": "516", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5320,23 +5276,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "517", + "kind": "client", + "name": "UnknownArray", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "522", + "$id": "518", "name": "get", "resourceName": "UnknownArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "523", + "$id": "519", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "524", + "$id": "520", "kind": "constant", "valueType": { - "$id": "525", + "$id": "521", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5358,7 +5326,7 @@ ], "responses": [ { - "$id": "526", + "$id": "522", "statusCodes": [ 200 ], @@ -5382,22 +5350,22 @@ "decorators": [] }, { - "$id": "527", + "$id": "523", "name": "put", "resourceName": "UnknownArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "528", + "$id": "524", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "529", + "$id": "525", "kind": "constant", "valueType": { - "$id": "530", + "$id": "526", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5417,7 +5385,7 @@ "skipUrlEncoding": false }, { - "$id": "531", + "$id": "527", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5437,7 +5405,7 @@ ], "responses": [ { - "$id": "532", + "$id": "528", "statusCodes": [ 204 ], @@ -5458,26 +5426,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "533", - "kind": "client", - "name": "StringLiteral", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "534", + "$id": "529", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "535", + "$id": "530", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5491,9 +5447,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "536", + "$id": "531", "type": { - "$id": "537", + "$id": "532", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5502,23 +5458,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "533", + "kind": "client", + "name": "StringLiteral", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "538", + "$id": "534", "name": "get", "resourceName": "StringLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "539", + "$id": "535", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "540", + "$id": "536", "kind": "constant", "valueType": { - "$id": "541", + "$id": "537", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5540,7 +5508,7 @@ ], "responses": [ { - "$id": "542", + "$id": "538", "statusCodes": [ 200 ], @@ -5564,22 +5532,22 @@ "decorators": [] }, { - "$id": "543", + "$id": "539", "name": "put", "resourceName": "StringLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "544", + "$id": "540", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "545", + "$id": "541", "kind": "constant", "valueType": { - "$id": "546", + "$id": "542", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5599,7 +5567,7 @@ "skipUrlEncoding": false }, { - "$id": "547", + "$id": "543", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5619,7 +5587,7 @@ ], "responses": [ { - "$id": "548", + "$id": "544", "statusCodes": [ 204 ], @@ -5640,26 +5608,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "549", - "kind": "client", - "name": "IntLiteral", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "550", + "$id": "545", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "551", + "$id": "546", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5673,9 +5629,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "552", + "$id": "547", "type": { - "$id": "553", + "$id": "548", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5684,23 +5640,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "549", + "kind": "client", + "name": "IntLiteral", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "554", + "$id": "550", "name": "get", "resourceName": "IntLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "555", + "$id": "551", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "556", + "$id": "552", "kind": "constant", "valueType": { - "$id": "557", + "$id": "553", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5722,7 +5690,7 @@ ], "responses": [ { - "$id": "558", + "$id": "554", "statusCodes": [ 200 ], @@ -5746,22 +5714,22 @@ "decorators": [] }, { - "$id": "559", + "$id": "555", "name": "put", "resourceName": "IntLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "560", + "$id": "556", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "561", + "$id": "557", "kind": "constant", "valueType": { - "$id": "562", + "$id": "558", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5781,7 +5749,7 @@ "skipUrlEncoding": false }, { - "$id": "563", + "$id": "559", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5801,7 +5769,7 @@ ], "responses": [ { - "$id": "564", + "$id": "560", "statusCodes": [ 204 ], @@ -5822,26 +5790,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "565", - "kind": "client", - "name": "FloatLiteral", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "566", + "$id": "561", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "567", + "$id": "562", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5855,9 +5811,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "568", + "$id": "563", "type": { - "$id": "569", + "$id": "564", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5866,23 +5822,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "565", + "kind": "client", + "name": "FloatLiteral", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "570", + "$id": "566", "name": "get", "resourceName": "FloatLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "571", + "$id": "567", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "572", + "$id": "568", "kind": "constant", "valueType": { - "$id": "573", + "$id": "569", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5904,7 +5872,7 @@ ], "responses": [ { - "$id": "574", + "$id": "570", "statusCodes": [ 200 ], @@ -5928,22 +5896,22 @@ "decorators": [] }, { - "$id": "575", + "$id": "571", "name": "put", "resourceName": "FloatLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "576", + "$id": "572", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "577", + "$id": "573", "kind": "constant", "valueType": { - "$id": "578", + "$id": "574", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5963,7 +5931,7 @@ "skipUrlEncoding": false }, { - "$id": "579", + "$id": "575", "name": "body", "nameInRequest": "body", "doc": "body", @@ -5983,7 +5951,7 @@ ], "responses": [ { - "$id": "580", + "$id": "576", "statusCodes": [ 204 ], @@ -6004,26 +5972,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "581", - "kind": "client", - "name": "BooleanLiteral", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "582", + "$id": "577", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "583", + "$id": "578", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6037,9 +5993,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "584", + "$id": "579", "type": { - "$id": "585", + "$id": "580", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6048,23 +6004,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "581", + "kind": "client", + "name": "BooleanLiteral", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "586", + "$id": "582", "name": "get", "resourceName": "BooleanLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "587", + "$id": "583", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "588", + "$id": "584", "kind": "constant", "valueType": { - "$id": "589", + "$id": "585", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6086,7 +6054,7 @@ ], "responses": [ { - "$id": "590", + "$id": "586", "statusCodes": [ 200 ], @@ -6110,22 +6078,22 @@ "decorators": [] }, { - "$id": "591", + "$id": "587", "name": "put", "resourceName": "BooleanLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "592", + "$id": "588", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "593", + "$id": "589", "kind": "constant", "valueType": { - "$id": "594", + "$id": "590", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6145,7 +6113,7 @@ "skipUrlEncoding": false }, { - "$id": "595", + "$id": "591", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6165,7 +6133,7 @@ ], "responses": [ { - "$id": "596", + "$id": "592", "statusCodes": [ 204 ], @@ -6186,26 +6154,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "597", - "kind": "client", - "name": "UnionStringLiteral", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "598", + "$id": "593", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "599", + "$id": "594", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6219,9 +6175,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "600", + "$id": "595", "type": { - "$id": "601", + "$id": "596", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6230,23 +6186,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "597", + "kind": "client", + "name": "UnionStringLiteral", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "602", + "$id": "598", "name": "get", "resourceName": "UnionStringLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "603", + "$id": "599", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "604", + "$id": "600", "kind": "constant", "valueType": { - "$id": "605", + "$id": "601", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6268,7 +6236,7 @@ ], "responses": [ { - "$id": "606", + "$id": "602", "statusCodes": [ 200 ], @@ -6292,22 +6260,22 @@ "decorators": [] }, { - "$id": "607", + "$id": "603", "name": "put", "resourceName": "UnionStringLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "608", + "$id": "604", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "609", + "$id": "605", "kind": "constant", "valueType": { - "$id": "610", + "$id": "606", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6327,7 +6295,7 @@ "skipUrlEncoding": false }, { - "$id": "611", + "$id": "607", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6347,7 +6315,7 @@ ], "responses": [ { - "$id": "612", + "$id": "608", "statusCodes": [ 204 ], @@ -6368,26 +6336,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "613", - "kind": "client", - "name": "UnionIntLiteral", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "614", + "$id": "609", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "615", + "$id": "610", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6401,9 +6357,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "616", + "$id": "611", "type": { - "$id": "617", + "$id": "612", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6412,23 +6368,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "613", + "kind": "client", + "name": "UnionIntLiteral", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "618", + "$id": "614", "name": "get", "resourceName": "UnionIntLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "619", + "$id": "615", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "620", + "$id": "616", "kind": "constant", "valueType": { - "$id": "621", + "$id": "617", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6450,7 +6418,7 @@ ], "responses": [ { - "$id": "622", + "$id": "618", "statusCodes": [ 200 ], @@ -6474,22 +6442,22 @@ "decorators": [] }, { - "$id": "623", + "$id": "619", "name": "put", "resourceName": "UnionIntLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "624", + "$id": "620", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "625", + "$id": "621", "kind": "constant", "valueType": { - "$id": "626", + "$id": "622", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6509,7 +6477,7 @@ "skipUrlEncoding": false }, { - "$id": "627", + "$id": "623", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6529,7 +6497,7 @@ ], "responses": [ { - "$id": "628", + "$id": "624", "statusCodes": [ 204 ], @@ -6550,26 +6518,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "629", - "kind": "client", - "name": "UnionFloatLiteral", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "630", + "$id": "625", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "631", + "$id": "626", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6583,9 +6539,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "632", + "$id": "627", "type": { - "$id": "633", + "$id": "628", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6594,23 +6550,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "629", + "kind": "client", + "name": "UnionFloatLiteral", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "634", + "$id": "630", "name": "get", "resourceName": "UnionFloatLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "635", + "$id": "631", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "636", + "$id": "632", "kind": "constant", "valueType": { - "$id": "637", + "$id": "633", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6632,7 +6600,7 @@ ], "responses": [ { - "$id": "638", + "$id": "634", "statusCodes": [ 200 ], @@ -6656,22 +6624,22 @@ "decorators": [] }, { - "$id": "639", + "$id": "635", "name": "put", "resourceName": "UnionFloatLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "640", + "$id": "636", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "641", + "$id": "637", "kind": "constant", "valueType": { - "$id": "642", + "$id": "638", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6691,7 +6659,7 @@ "skipUrlEncoding": false }, { - "$id": "643", + "$id": "639", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6711,7 +6679,7 @@ ], "responses": [ { - "$id": "644", + "$id": "640", "statusCodes": [ 204 ], @@ -6732,26 +6700,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral", - "decorators": [], - "parent": { - "$ref": "192" - } - }, - { - "$id": "645", - "kind": "client", - "name": "UnionEnumValue", - "namespace": "Type.Property.ValueTypes", "parameters": [ { - "$id": "646", + "$id": "641", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "647", + "$id": "642", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6765,9 +6721,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "648", + "$id": "643", "type": { - "$id": "649", + "$id": "644", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6776,23 +6732,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "645", + "kind": "client", + "name": "UnionEnumValue", + "namespace": "Type.Property.ValueTypes", "operations": [ { - "$id": "650", + "$id": "646", "name": "get", "resourceName": "UnionEnumValue", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "651", + "$id": "647", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "652", + "$id": "648", "kind": "constant", "valueType": { - "$id": "653", + "$id": "649", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6814,7 +6782,7 @@ ], "responses": [ { - "$id": "654", + "$id": "650", "statusCodes": [ 200 ], @@ -6838,22 +6806,22 @@ "decorators": [] }, { - "$id": "655", + "$id": "651", "name": "put", "resourceName": "UnionEnumValue", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "656", + "$id": "652", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "657", + "$id": "653", "kind": "constant", "valueType": { - "$id": "658", + "$id": "654", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6873,7 +6841,7 @@ "skipUrlEncoding": false }, { - "$id": "659", + "$id": "655", "name": "body", "nameInRequest": "body", "doc": "body", @@ -6893,7 +6861,7 @@ ], "responses": [ { - "$id": "660", + "$id": "656", "statusCodes": [ 204 ], @@ -6914,9 +6882,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue", + "parameters": [ + { + "$id": "657", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "658", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "659", + "type": { + "$id": "660", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue", + "apiVersions": [], "parent": { "$ref": "192" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json index 3365f08939a..107d97ac124 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json @@ -10,6 +10,7 @@ "kind": "client", "name": "ScalarClient", "namespace": "Type.Scalar", + "operations": [], "parameters": [ { "$id": "3", @@ -42,65 +43,32 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Scalar", "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar", + "apiVersions": [], "children": [ { "$id": "7", "kind": "client", "name": "String", "namespace": "Type.Scalar", - "parameters": [ - { - "$id": "8", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "9", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "10", - "type": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "12", + "$id": "8", "name": "get", "resourceName": "String", "doc": "get string value", "accessibility": "public", "parameters": [ { - "$id": "13", + "$id": "9", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "14", + "$id": "10", "kind": "constant", "valueType": { - "$id": "15", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -122,12 +90,12 @@ ], "responses": [ { - "$id": "16", + "$id": "12", "statusCodes": [ 200 ], "bodyType": { - "$id": "17", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -135,14 +103,14 @@ }, "headers": [ { - "$id": "18", + "$id": "14", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "19", + "$id": "15", "kind": "constant", "valueType": { - "$id": "20", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -169,21 +137,21 @@ "decorators": [] }, { - "$id": "21", + "$id": "17", "name": "put", "resourceName": "String", "doc": "put string value", "accessibility": "public", "parameters": [ { - "$id": "22", + "$id": "18", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "23", + "$id": "19", "kind": "constant", "valueType": { - "$id": "24", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -203,12 +171,12 @@ "skipUrlEncoding": false }, { - "$id": "25", + "$id": "21", "name": "body", "nameInRequest": "body", "doc": "_", "type": { - "$id": "26", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -227,7 +195,7 @@ ], "responses": [ { - "$id": "27", + "$id": "23", "statusCodes": [ 204 ], @@ -248,26 +216,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Scalar.String", - "decorators": [], - "parent": { - "$ref": "2" - } - }, - { - "$id": "28", - "kind": "client", - "name": "Boolean", - "namespace": "Type.Scalar", "parameters": [ { - "$id": "29", + "$id": "24", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "30", + "$id": "25", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -281,9 +237,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "31", + "$id": "26", "type": { - "$id": "32", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -292,23 +248,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.String", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "28", + "kind": "client", + "name": "Boolean", + "namespace": "Type.Scalar", "operations": [ { - "$id": "33", + "$id": "29", "name": "get", "resourceName": "Boolean", "doc": "get boolean value", "accessibility": "public", "parameters": [ { - "$id": "34", + "$id": "30", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "35", + "$id": "31", "kind": "constant", "valueType": { - "$id": "36", + "$id": "32", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -330,12 +298,12 @@ ], "responses": [ { - "$id": "37", + "$id": "33", "statusCodes": [ 200 ], "bodyType": { - "$id": "38", + "$id": "34", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -343,14 +311,14 @@ }, "headers": [ { - "$id": "39", + "$id": "35", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "40", + "$id": "36", "kind": "constant", "valueType": { - "$id": "41", + "$id": "37", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -377,21 +345,21 @@ "decorators": [] }, { - "$id": "42", + "$id": "38", "name": "put", "resourceName": "Boolean", "doc": "put boolean value", "accessibility": "public", "parameters": [ { - "$id": "43", + "$id": "39", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "44", + "$id": "40", "kind": "constant", "valueType": { - "$id": "45", + "$id": "41", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -411,12 +379,12 @@ "skipUrlEncoding": false }, { - "$id": "46", + "$id": "42", "name": "body", "nameInRequest": "body", "doc": "_", "type": { - "$id": "47", + "$id": "43", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -435,7 +403,7 @@ ], "responses": [ { - "$id": "48", + "$id": "44", "statusCodes": [ 204 ], @@ -456,26 +424,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Scalar.Boolean", - "decorators": [], - "parent": { - "$ref": "2" - } - }, - { - "$id": "49", - "kind": "client", - "name": "Unknown", - "namespace": "Type.Scalar", "parameters": [ { - "$id": "50", + "$id": "45", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "51", + "$id": "46", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -489,9 +445,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "52", + "$id": "47", "type": { - "$id": "53", + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -500,23 +456,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.Boolean", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "49", + "kind": "client", + "name": "Unknown", + "namespace": "Type.Scalar", "operations": [ { - "$id": "54", + "$id": "50", "name": "get", "resourceName": "Unknown", "doc": "get unknown value", "accessibility": "public", "parameters": [ { - "$id": "55", + "$id": "51", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "56", + "$id": "52", "kind": "constant", "valueType": { - "$id": "57", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -538,12 +506,12 @@ ], "responses": [ { - "$id": "58", + "$id": "54", "statusCodes": [ 200 ], "bodyType": { - "$id": "59", + "$id": "55", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -551,14 +519,14 @@ }, "headers": [ { - "$id": "60", + "$id": "56", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "61", + "$id": "57", "kind": "constant", "valueType": { - "$id": "62", + "$id": "58", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -585,21 +553,21 @@ "decorators": [] }, { - "$id": "63", + "$id": "59", "name": "put", "resourceName": "Unknown", "doc": "put unknown value", "accessibility": "public", "parameters": [ { - "$id": "64", + "$id": "60", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "65", + "$id": "61", "kind": "constant", "valueType": { - "$id": "66", + "$id": "62", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -619,12 +587,12 @@ "skipUrlEncoding": false }, { - "$id": "67", + "$id": "63", "name": "body", "nameInRequest": "body", "doc": "_", "type": { - "$id": "68", + "$id": "64", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -643,7 +611,7 @@ ], "responses": [ { - "$id": "69", + "$id": "65", "statusCodes": [ 204 ], @@ -664,27 +632,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Scalar.Unknown", - "decorators": [], - "parent": { - "$ref": "2" - } - }, - { - "$id": "70", - "kind": "client", - "name": "DecimalType", - "namespace": "Type.Scalar", - "doc": "Decimal type", "parameters": [ { - "$id": "71", + "$id": "66", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "72", + "$id": "67", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -698,9 +653,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "73", + "$id": "68", "type": { - "$id": "74", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -709,22 +664,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.Unknown", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "70", + "kind": "client", + "name": "DecimalType", + "namespace": "Type.Scalar", + "doc": "Decimal type", "operations": [ { - "$id": "75", + "$id": "71", "name": "responseBody", "resourceName": "DecimalType", "accessibility": "public", "parameters": [ { - "$id": "76", + "$id": "72", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "77", + "$id": "73", "kind": "constant", "valueType": { - "$id": "78", + "$id": "74", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -746,12 +714,12 @@ ], "responses": [ { - "$id": "79", + "$id": "75", "statusCodes": [ 200 ], "bodyType": { - "$id": "80", + "$id": "76", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -759,14 +727,14 @@ }, "headers": [ { - "$id": "81", + "$id": "77", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "82", + "$id": "78", "kind": "constant", "valueType": { - "$id": "83", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -793,20 +761,20 @@ "decorators": [] }, { - "$id": "84", + "$id": "80", "name": "requestBody", "resourceName": "DecimalType", "accessibility": "public", "parameters": [ { - "$id": "85", + "$id": "81", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "86", + "$id": "82", "kind": "constant", "valueType": { - "$id": "87", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -826,11 +794,11 @@ "skipUrlEncoding": false }, { - "$id": "88", + "$id": "84", "name": "body", "nameInRequest": "body", "type": { - "$id": "89", + "$id": "85", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -849,7 +817,7 @@ ], "responses": [ { - "$id": "90", + "$id": "86", "statusCodes": [ 204 ], @@ -870,17 +838,17 @@ "decorators": [] }, { - "$id": "91", + "$id": "87", "name": "requestParameter", "resourceName": "DecimalType", "accessibility": "public", "parameters": [ { - "$id": "92", + "$id": "88", "name": "value", "nameInRequest": "value", "type": { - "$id": "93", + "$id": "89", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -899,7 +867,7 @@ ], "responses": [ { - "$id": "94", + "$id": "90", "statusCodes": [ 204 ], @@ -917,27 +885,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Scalar.DecimalType", - "decorators": [], - "parent": { - "$ref": "2" - } - }, - { - "$id": "95", - "kind": "client", - "name": "Decimal128Type", - "namespace": "Type.Scalar", - "doc": "Decimal128 type", "parameters": [ { - "$id": "96", + "$id": "91", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "97", + "$id": "92", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -951,9 +906,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "98", + "$id": "93", "type": { - "$id": "99", + "$id": "94", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -962,22 +917,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.DecimalType", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "95", + "kind": "client", + "name": "Decimal128Type", + "namespace": "Type.Scalar", + "doc": "Decimal128 type", "operations": [ { - "$id": "100", + "$id": "96", "name": "responseBody", "resourceName": "Decimal128Type", "accessibility": "public", "parameters": [ { - "$id": "101", + "$id": "97", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "102", + "$id": "98", "kind": "constant", "valueType": { - "$id": "103", + "$id": "99", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -999,12 +967,12 @@ ], "responses": [ { - "$id": "104", + "$id": "100", "statusCodes": [ 200 ], "bodyType": { - "$id": "105", + "$id": "101", "kind": "decimal128", "name": "decimal128", "crossLanguageDefinitionId": "TypeSpec.decimal128", @@ -1012,14 +980,14 @@ }, "headers": [ { - "$id": "106", + "$id": "102", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "107", + "$id": "103", "kind": "constant", "valueType": { - "$id": "108", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1046,20 +1014,20 @@ "decorators": [] }, { - "$id": "109", + "$id": "105", "name": "requestBody", "resourceName": "Decimal128Type", "accessibility": "public", "parameters": [ { - "$id": "110", + "$id": "106", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "111", + "$id": "107", "kind": "constant", "valueType": { - "$id": "112", + "$id": "108", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1079,11 +1047,11 @@ "skipUrlEncoding": false }, { - "$id": "113", + "$id": "109", "name": "body", "nameInRequest": "body", "type": { - "$id": "114", + "$id": "110", "kind": "decimal128", "name": "decimal128", "crossLanguageDefinitionId": "TypeSpec.decimal128", @@ -1102,7 +1070,7 @@ ], "responses": [ { - "$id": "115", + "$id": "111", "statusCodes": [ 204 ], @@ -1123,17 +1091,17 @@ "decorators": [] }, { - "$id": "116", + "$id": "112", "name": "requestParameter", "resourceName": "Decimal128Type", "accessibility": "public", "parameters": [ { - "$id": "117", + "$id": "113", "name": "value", "nameInRequest": "value", "type": { - "$id": "118", + "$id": "114", "kind": "decimal128", "name": "decimal128", "crossLanguageDefinitionId": "TypeSpec.decimal128", @@ -1152,7 +1120,7 @@ ], "responses": [ { - "$id": "119", + "$id": "115", "statusCodes": [ 204 ], @@ -1170,27 +1138,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type", - "decorators": [], - "parent": { - "$ref": "2" - } - }, - { - "$id": "120", - "kind": "client", - "name": "DecimalVerify", - "namespace": "Type.Scalar", - "doc": "Decimal type verification", "parameters": [ { - "$id": "121", + "$id": "116", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "122", + "$id": "117", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1204,9 +1159,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "123", + "$id": "118", "type": { - "$id": "124", + "$id": "119", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1215,22 +1170,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "120", + "kind": "client", + "name": "DecimalVerify", + "namespace": "Type.Scalar", + "doc": "Decimal type verification", "operations": [ { - "$id": "125", + "$id": "121", "name": "prepareVerify", "resourceName": "DecimalVerify", "accessibility": "public", "parameters": [ { - "$id": "126", + "$id": "122", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "127", + "$id": "123", "kind": "constant", "valueType": { - "$id": "128", + "$id": "124", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1252,16 +1220,16 @@ ], "responses": [ { - "$id": "129", + "$id": "125", "statusCodes": [ 200 ], "bodyType": { - "$id": "130", + "$id": "126", "kind": "array", "name": "Array", "valueType": { - "$id": "131", + "$id": "127", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1287,20 +1255,20 @@ "decorators": [] }, { - "$id": "132", + "$id": "128", "name": "verify", "resourceName": "DecimalVerify", "accessibility": "public", "parameters": [ { - "$id": "133", + "$id": "129", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "134", + "$id": "130", "kind": "constant", "valueType": { - "$id": "135", + "$id": "131", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1320,11 +1288,11 @@ "skipUrlEncoding": false }, { - "$id": "136", + "$id": "132", "name": "body", "nameInRequest": "body", "type": { - "$id": "137", + "$id": "133", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1343,7 +1311,7 @@ ], "responses": [ { - "$id": "138", + "$id": "134", "statusCodes": [ 204 ], @@ -1364,27 +1332,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify", - "decorators": [], - "parent": { - "$ref": "2" - } - }, - { - "$id": "139", - "kind": "client", - "name": "Decimal128Verify", - "namespace": "Type.Scalar", - "doc": "Decimal128 type verification", "parameters": [ { - "$id": "140", + "$id": "135", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "141", + "$id": "136", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1398,9 +1353,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "142", + "$id": "137", "type": { - "$id": "143", + "$id": "138", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1409,22 +1364,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "139", + "kind": "client", + "name": "Decimal128Verify", + "namespace": "Type.Scalar", + "doc": "Decimal128 type verification", "operations": [ { - "$id": "144", + "$id": "140", "name": "prepareVerify", "resourceName": "Decimal128Verify", "accessibility": "public", "parameters": [ { - "$id": "145", + "$id": "141", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "146", + "$id": "142", "kind": "constant", "valueType": { - "$id": "147", + "$id": "143", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1446,16 +1414,16 @@ ], "responses": [ { - "$id": "148", + "$id": "144", "statusCodes": [ 200 ], "bodyType": { - "$id": "149", + "$id": "145", "kind": "array", "name": "Array", "valueType": { - "$id": "150", + "$id": "146", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1481,20 +1449,20 @@ "decorators": [] }, { - "$id": "151", + "$id": "147", "name": "verify", "resourceName": "Decimal128Verify", "accessibility": "public", "parameters": [ { - "$id": "152", + "$id": "148", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "153", + "$id": "149", "kind": "constant", "valueType": { - "$id": "154", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1514,11 +1482,11 @@ "skipUrlEncoding": false }, { - "$id": "155", + "$id": "151", "name": "body", "nameInRequest": "body", "type": { - "$id": "156", + "$id": "152", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1537,7 +1505,7 @@ ], "responses": [ { - "$id": "157", + "$id": "153", "statusCodes": [ 204 ], @@ -1558,9 +1526,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify", + "parameters": [ + { + "$id": "154", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "155", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "156", + "type": { + "$id": "157", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify", + "apiVersions": [], "parent": { "$ref": "2" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json index 2318b4e8371..73b1b2b6e33 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json @@ -1720,6 +1720,7 @@ "name": "UnionClient", "namespace": "Type.Union", "doc": "Describe scenarios for various combinations of unions.", + "operations": [], "parameters": [ { "$id": "212", @@ -1752,10 +1753,9 @@ } } ], - "operations": [], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Union", "decorators": [], + "crossLanguageDefinitionId": "Type.Union", + "apiVersions": [], "children": [ { "$id": "216", @@ -1763,54 +1763,22 @@ "name": "StringsOnly", "namespace": "Type.Union", "doc": "Describe union of string \"a\" | \"b\" | \"c\"", - "parameters": [ - { - "$id": "217", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "218", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "219", - "type": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], "operations": [ { - "$id": "221", + "$id": "217", "name": "get", "resourceName": "StringsOnly", "accessibility": "public", "parameters": [ { - "$id": "222", + "$id": "218", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "223", + "$id": "219", "kind": "constant", "valueType": { - "$id": "224", + "$id": "220", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1832,7 +1800,7 @@ ], "responses": [ { - "$id": "225", + "$id": "221", "statusCodes": [ 200 ], @@ -1856,21 +1824,21 @@ "decorators": [] }, { - "$id": "226", + "$id": "222", "name": "send", "resourceName": "StringsOnly", "accessibility": "public", "parameters": [ { - "$id": "227", + "$id": "223", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "228", + "$id": "224", "kind": "constant", "valueType": { - "$id": "229", + "$id": "225", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1890,7 +1858,7 @@ "skipUrlEncoding": false }, { - "$id": "230", + "$id": "226", "name": "sendRequest9", "nameInRequest": "sendRequest9", "type": { @@ -1909,7 +1877,7 @@ ], "responses": [ { - "$id": "231", + "$id": "227", "statusCodes": [ 204 ], @@ -1930,27 +1898,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Union.StringsOnly", - "decorators": [], - "parent": { - "$ref": "211" - } - }, - { - "$id": "232", - "kind": "client", - "name": "StringExtensible", - "namespace": "Type.Union", - "doc": "Describe union of string string | \"b\" | \"c\"", "parameters": [ { - "$id": "233", + "$id": "228", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "234", + "$id": "229", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1964,9 +1919,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "235", + "$id": "230", "type": { - "$id": "236", + "$id": "231", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1975,22 +1930,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringsOnly", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "232", + "kind": "client", + "name": "StringExtensible", + "namespace": "Type.Union", + "doc": "Describe union of string string | \"b\" | \"c\"", "operations": [ { - "$id": "237", + "$id": "233", "name": "get", "resourceName": "StringExtensible", "accessibility": "public", "parameters": [ { - "$id": "238", + "$id": "234", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "239", + "$id": "235", "kind": "constant", "valueType": { - "$id": "240", + "$id": "236", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2012,7 +1980,7 @@ ], "responses": [ { - "$id": "241", + "$id": "237", "statusCodes": [ 200 ], @@ -2036,21 +2004,21 @@ "decorators": [] }, { - "$id": "242", + "$id": "238", "name": "send", "resourceName": "StringExtensible", "accessibility": "public", "parameters": [ { - "$id": "243", + "$id": "239", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "244", + "$id": "240", "kind": "constant", "valueType": { - "$id": "245", + "$id": "241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2070,7 +2038,7 @@ "skipUrlEncoding": false }, { - "$id": "246", + "$id": "242", "name": "sendRequest8", "nameInRequest": "sendRequest8", "type": { @@ -2089,7 +2057,7 @@ ], "responses": [ { - "$id": "247", + "$id": "243", "statusCodes": [ 204 ], @@ -2110,27 +2078,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensible", - "decorators": [], - "parent": { - "$ref": "211" - } - }, - { - "$id": "248", - "kind": "client", - "name": "StringExtensibleNamed", - "namespace": "Type.Union", - "doc": "Describe union of string string | \"b\" | \"c\" but where the union is named and some of the variants are named", "parameters": [ { - "$id": "249", + "$id": "244", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "250", + "$id": "245", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2144,9 +2099,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "251", + "$id": "246", "type": { - "$id": "252", + "$id": "247", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2155,22 +2110,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringExtensible", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "248", + "kind": "client", + "name": "StringExtensibleNamed", + "namespace": "Type.Union", + "doc": "Describe union of string string | \"b\" | \"c\" but where the union is named and some of the variants are named", "operations": [ { - "$id": "253", + "$id": "249", "name": "get", "resourceName": "StringExtensibleNamed", "accessibility": "public", "parameters": [ { - "$id": "254", + "$id": "250", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "255", + "$id": "251", "kind": "constant", "valueType": { - "$id": "256", + "$id": "252", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2192,7 +2160,7 @@ ], "responses": [ { - "$id": "257", + "$id": "253", "statusCodes": [ 200 ], @@ -2216,21 +2184,21 @@ "decorators": [] }, { - "$id": "258", + "$id": "254", "name": "send", "resourceName": "StringExtensibleNamed", "accessibility": "public", "parameters": [ { - "$id": "259", + "$id": "255", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "260", + "$id": "256", "kind": "constant", "valueType": { - "$id": "261", + "$id": "257", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2250,7 +2218,7 @@ "skipUrlEncoding": false }, { - "$id": "262", + "$id": "258", "name": "sendRequest7", "nameInRequest": "sendRequest7", "type": { @@ -2269,7 +2237,7 @@ ], "responses": [ { - "$id": "263", + "$id": "259", "statusCodes": [ 204 ], @@ -2290,27 +2258,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed", - "decorators": [], - "parent": { - "$ref": "211" - } - }, - { - "$id": "264", - "kind": "client", - "name": "IntsOnly", - "namespace": "Type.Union", - "doc": "Describe union of integer 1 | 2 | 3", "parameters": [ { - "$id": "265", + "$id": "260", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "266", + "$id": "261", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2324,9 +2279,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "267", + "$id": "262", "type": { - "$id": "268", + "$id": "263", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2335,22 +2290,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "264", + "kind": "client", + "name": "IntsOnly", + "namespace": "Type.Union", + "doc": "Describe union of integer 1 | 2 | 3", "operations": [ { - "$id": "269", + "$id": "265", "name": "get", "resourceName": "IntsOnly", "accessibility": "public", "parameters": [ { - "$id": "270", + "$id": "266", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "271", + "$id": "267", "kind": "constant", "valueType": { - "$id": "272", + "$id": "268", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2372,7 +2340,7 @@ ], "responses": [ { - "$id": "273", + "$id": "269", "statusCodes": [ 200 ], @@ -2396,21 +2364,21 @@ "decorators": [] }, { - "$id": "274", + "$id": "270", "name": "send", "resourceName": "IntsOnly", "accessibility": "public", "parameters": [ { - "$id": "275", + "$id": "271", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "276", + "$id": "272", "kind": "constant", "valueType": { - "$id": "277", + "$id": "273", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2430,7 +2398,7 @@ "skipUrlEncoding": false }, { - "$id": "278", + "$id": "274", "name": "sendRequest6", "nameInRequest": "sendRequest6", "type": { @@ -2449,7 +2417,7 @@ ], "responses": [ { - "$id": "279", + "$id": "275", "statusCodes": [ 204 ], @@ -2470,27 +2438,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Union.IntsOnly", - "decorators": [], - "parent": { - "$ref": "211" - } - }, - { - "$id": "280", - "kind": "client", - "name": "FloatsOnly", - "namespace": "Type.Union", - "doc": "Describe union of floats 1.1 | 2.2 | 3.3", "parameters": [ { - "$id": "281", + "$id": "276", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "282", + "$id": "277", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2504,9 +2459,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "283", + "$id": "278", "type": { - "$id": "284", + "$id": "279", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2515,22 +2470,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.IntsOnly", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "280", + "kind": "client", + "name": "FloatsOnly", + "namespace": "Type.Union", + "doc": "Describe union of floats 1.1 | 2.2 | 3.3", "operations": [ { - "$id": "285", + "$id": "281", "name": "get", "resourceName": "FloatsOnly", "accessibility": "public", "parameters": [ { - "$id": "286", + "$id": "282", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "287", + "$id": "283", "kind": "constant", "valueType": { - "$id": "288", + "$id": "284", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2552,7 +2520,7 @@ ], "responses": [ { - "$id": "289", + "$id": "285", "statusCodes": [ 200 ], @@ -2576,21 +2544,21 @@ "decorators": [] }, { - "$id": "290", + "$id": "286", "name": "send", "resourceName": "FloatsOnly", "accessibility": "public", "parameters": [ { - "$id": "291", + "$id": "287", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "292", + "$id": "288", "kind": "constant", "valueType": { - "$id": "293", + "$id": "289", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2610,7 +2578,7 @@ "skipUrlEncoding": false }, { - "$id": "294", + "$id": "290", "name": "sendRequest5", "nameInRequest": "sendRequest5", "type": { @@ -2629,7 +2597,7 @@ ], "responses": [ { - "$id": "295", + "$id": "291", "statusCodes": [ 204 ], @@ -2650,27 +2618,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Union.FloatsOnly", - "decorators": [], - "parent": { - "$ref": "211" - } - }, - { - "$id": "296", - "kind": "client", - "name": "ModelsOnly", - "namespace": "Type.Union", - "doc": "Describe union of models", "parameters": [ { - "$id": "297", + "$id": "292", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "298", + "$id": "293", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2684,9 +2639,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "299", + "$id": "294", "type": { - "$id": "300", + "$id": "295", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2695,22 +2650,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.FloatsOnly", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "296", + "kind": "client", + "name": "ModelsOnly", + "namespace": "Type.Union", + "doc": "Describe union of models", "operations": [ { - "$id": "301", + "$id": "297", "name": "get", "resourceName": "ModelsOnly", "accessibility": "public", "parameters": [ { - "$id": "302", + "$id": "298", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "303", + "$id": "299", "kind": "constant", "valueType": { - "$id": "304", + "$id": "300", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2732,7 +2700,7 @@ ], "responses": [ { - "$id": "305", + "$id": "301", "statusCodes": [ 200 ], @@ -2756,21 +2724,21 @@ "decorators": [] }, { - "$id": "306", + "$id": "302", "name": "send", "resourceName": "ModelsOnly", "accessibility": "public", "parameters": [ { - "$id": "307", + "$id": "303", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "308", + "$id": "304", "kind": "constant", "valueType": { - "$id": "309", + "$id": "305", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2790,7 +2758,7 @@ "skipUrlEncoding": false }, { - "$id": "310", + "$id": "306", "name": "sendRequest4", "nameInRequest": "sendRequest4", "type": { @@ -2809,7 +2777,7 @@ ], "responses": [ { - "$id": "311", + "$id": "307", "statusCodes": [ 204 ], @@ -2830,27 +2798,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Union.ModelsOnly", - "decorators": [], - "parent": { - "$ref": "211" - } - }, - { - "$id": "312", - "kind": "client", - "name": "EnumsOnly", - "namespace": "Type.Union", - "doc": "Describe union of 2 different enums", "parameters": [ { - "$id": "313", + "$id": "308", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "314", + "$id": "309", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2864,9 +2819,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "315", + "$id": "310", "type": { - "$id": "316", + "$id": "311", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2875,22 +2830,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.ModelsOnly", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "312", + "kind": "client", + "name": "EnumsOnly", + "namespace": "Type.Union", + "doc": "Describe union of 2 different enums", "operations": [ { - "$id": "317", + "$id": "313", "name": "get", "resourceName": "EnumsOnly", "accessibility": "public", "parameters": [ { - "$id": "318", + "$id": "314", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "319", + "$id": "315", "kind": "constant", "valueType": { - "$id": "320", + "$id": "316", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2912,7 +2880,7 @@ ], "responses": [ { - "$id": "321", + "$id": "317", "statusCodes": [ 200 ], @@ -2936,21 +2904,21 @@ "decorators": [] }, { - "$id": "322", + "$id": "318", "name": "send", "resourceName": "EnumsOnly", "accessibility": "public", "parameters": [ { - "$id": "323", + "$id": "319", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "324", + "$id": "320", "kind": "constant", "valueType": { - "$id": "325", + "$id": "321", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2970,7 +2938,7 @@ "skipUrlEncoding": false }, { - "$id": "326", + "$id": "322", "name": "sendRequest3", "nameInRequest": "sendRequest3", "type": { @@ -2989,7 +2957,7 @@ ], "responses": [ { - "$id": "327", + "$id": "323", "statusCodes": [ 204 ], @@ -3010,27 +2978,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Union.EnumsOnly", - "decorators": [], - "parent": { - "$ref": "211" - } - }, - { - "$id": "328", - "kind": "client", - "name": "StringAndArray", - "namespace": "Type.Union", - "doc": "Describe union of a string and an array of strings", "parameters": [ { - "$id": "329", + "$id": "324", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "330", + "$id": "325", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3044,9 +2999,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "331", + "$id": "326", "type": { - "$id": "332", + "$id": "327", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3055,22 +3010,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.EnumsOnly", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "328", + "kind": "client", + "name": "StringAndArray", + "namespace": "Type.Union", + "doc": "Describe union of a string and an array of strings", "operations": [ { - "$id": "333", + "$id": "329", "name": "get", "resourceName": "StringAndArray", "accessibility": "public", "parameters": [ { - "$id": "334", + "$id": "330", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "335", + "$id": "331", "kind": "constant", "valueType": { - "$id": "336", + "$id": "332", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3092,7 +3060,7 @@ ], "responses": [ { - "$id": "337", + "$id": "333", "statusCodes": [ 200 ], @@ -3116,21 +3084,21 @@ "decorators": [] }, { - "$id": "338", + "$id": "334", "name": "send", "resourceName": "StringAndArray", "accessibility": "public", "parameters": [ { - "$id": "339", + "$id": "335", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "340", + "$id": "336", "kind": "constant", "valueType": { - "$id": "341", + "$id": "337", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3150,7 +3118,7 @@ "skipUrlEncoding": false }, { - "$id": "342", + "$id": "338", "name": "sendRequest2", "nameInRequest": "sendRequest2", "type": { @@ -3169,7 +3137,7 @@ ], "responses": [ { - "$id": "343", + "$id": "339", "statusCodes": [ 204 ], @@ -3190,27 +3158,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Union.StringAndArray", - "decorators": [], - "parent": { - "$ref": "211" - } - }, - { - "$id": "344", - "kind": "client", - "name": "MixedLiterals", - "namespace": "Type.Union", - "doc": "Describe union of floats \"a\" | 2 | 3.3", "parameters": [ { - "$id": "345", + "$id": "340", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "346", + "$id": "341", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3224,9 +3179,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "347", + "$id": "342", "type": { - "$id": "348", + "$id": "343", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3235,22 +3190,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringAndArray", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "344", + "kind": "client", + "name": "MixedLiterals", + "namespace": "Type.Union", + "doc": "Describe union of floats \"a\" | 2 | 3.3", "operations": [ { - "$id": "349", + "$id": "345", "name": "get", "resourceName": "MixedLiterals", "accessibility": "public", "parameters": [ { - "$id": "350", + "$id": "346", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "351", + "$id": "347", "kind": "constant", "valueType": { - "$id": "352", + "$id": "348", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3272,7 +3240,7 @@ ], "responses": [ { - "$id": "353", + "$id": "349", "statusCodes": [ 200 ], @@ -3296,21 +3264,21 @@ "decorators": [] }, { - "$id": "354", + "$id": "350", "name": "send", "resourceName": "MixedLiterals", "accessibility": "public", "parameters": [ { - "$id": "355", + "$id": "351", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "356", + "$id": "352", "kind": "constant", "valueType": { - "$id": "357", + "$id": "353", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3330,7 +3298,7 @@ "skipUrlEncoding": false }, { - "$id": "358", + "$id": "354", "name": "sendRequest1", "nameInRequest": "sendRequest1", "type": { @@ -3349,7 +3317,7 @@ ], "responses": [ { - "$id": "359", + "$id": "355", "statusCodes": [ 204 ], @@ -3370,27 +3338,14 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiterals", - "decorators": [], - "parent": { - "$ref": "211" - } - }, - { - "$id": "360", - "kind": "client", - "name": "MixedTypes", - "namespace": "Type.Union", - "doc": "Describe union of floats \"a\" | 2 | 3.3", "parameters": [ { - "$id": "361", + "$id": "356", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "362", + "$id": "357", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3404,9 +3359,9 @@ "explode": false, "kind": "Client", "defaultValue": { - "$id": "363", + "$id": "358", "type": { - "$id": "364", + "$id": "359", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3415,22 +3370,35 @@ } } ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedLiterals", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "360", + "kind": "client", + "name": "MixedTypes", + "namespace": "Type.Union", + "doc": "Describe union of floats \"a\" | 2 | 3.3", "operations": [ { - "$id": "365", + "$id": "361", "name": "get", "resourceName": "MixedTypes", "accessibility": "public", "parameters": [ { - "$id": "366", + "$id": "362", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "367", + "$id": "363", "kind": "constant", "valueType": { - "$id": "368", + "$id": "364", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3452,7 +3420,7 @@ ], "responses": [ { - "$id": "369", + "$id": "365", "statusCodes": [ 200 ], @@ -3476,21 +3444,21 @@ "decorators": [] }, { - "$id": "370", + "$id": "366", "name": "send", "resourceName": "MixedTypes", "accessibility": "public", "parameters": [ { - "$id": "371", + "$id": "367", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "372", + "$id": "368", "kind": "constant", "valueType": { - "$id": "373", + "$id": "369", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3510,7 +3478,7 @@ "skipUrlEncoding": false }, { - "$id": "374", + "$id": "370", "name": "sendRequest", "nameInRequest": "sendRequest", "type": { @@ -3529,7 +3497,7 @@ ], "responses": [ { - "$id": "375", + "$id": "371", "statusCodes": [ 204 ], @@ -3550,9 +3518,41 @@ "decorators": [] } ], - "apiVersions": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypes", + "parameters": [ + { + "$id": "372", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "373", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "374", + "type": { + "$id": "375", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypes", + "apiVersions": [], "parent": { "$ref": "211" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json index 65a7ca4de91..6ff43dee2dd 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json @@ -150,62 +150,23 @@ "name": "AddedClient", "namespace": "Versioning.Added", "doc": "Test for the `@added` decorator.", - "parameters": [ - { - "$id": "19", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "20", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "21", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "6" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "22", + "$id": "19", "name": "v1", "resourceName": "Added", "accessibility": "public", "parameters": [ { - "$id": "23", + "$id": "20", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "24", + "$id": "21", "kind": "constant", "valueType": { - "$id": "25", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -225,14 +186,14 @@ "skipUrlEncoding": false }, { - "$id": "26", + "$id": "23", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "27", + "$id": "24", "kind": "constant", "valueType": { - "$id": "28", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -252,7 +213,7 @@ "skipUrlEncoding": false }, { - "$id": "29", + "$id": "26", "name": "body", "nameInRequest": "body", "type": { @@ -271,7 +232,7 @@ ], "responses": [ { - "$id": "30", + "$id": "27", "statusCodes": [ 200 ], @@ -298,11 +259,50 @@ "decorators": [] } ], - "apiVersions": [ - "v1" + "parameters": [ + { + "$id": "28", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "29", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "30", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "6" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], + "decorators": [], "crossLanguageDefinitionId": "Versioning.Added", - "decorators": [] + "apiVersions": [ + "v1" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json index 688ce237b1b..310555ec2ab 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json @@ -373,58 +373,19 @@ "name": "AddedClient", "namespace": "Versioning.Added", "doc": "Test for the `@added` decorator.", - "parameters": [ - { - "$id": "48", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "49", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "50", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "12" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "51", + "$id": "48", "name": "v1", "resourceName": "Added", "accessibility": "public", "parameters": [ { - "$id": "52", + "$id": "49", "name": "headerV2", "nameInRequest": "header-v2", "type": { - "$id": "53", + "$id": "50", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -441,15 +402,15 @@ "skipUrlEncoding": false }, { - "$id": "54", + "$id": "51", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "55", + "$id": "52", "kind": "constant", "valueType": { - "$id": "56", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -469,14 +430,14 @@ "skipUrlEncoding": false }, { - "$id": "57", + "$id": "54", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "58", + "$id": "55", "kind": "constant", "valueType": { - "$id": "59", + "$id": "56", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -496,7 +457,7 @@ "skipUrlEncoding": false }, { - "$id": "60", + "$id": "57", "name": "body", "nameInRequest": "body", "type": { @@ -515,7 +476,7 @@ ], "responses": [ { - "$id": "61", + "$id": "58", "statusCodes": [ 200 ], @@ -542,21 +503,21 @@ "decorators": [] }, { - "$id": "62", + "$id": "59", "name": "v2", "resourceName": "Added", "accessibility": "public", "parameters": [ { - "$id": "63", + "$id": "60", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "64", + "$id": "61", "kind": "constant", "valueType": { - "$id": "65", + "$id": "62", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -576,14 +537,14 @@ "skipUrlEncoding": false }, { - "$id": "66", + "$id": "63", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "67", + "$id": "64", "kind": "constant", "valueType": { - "$id": "68", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -603,7 +564,7 @@ "skipUrlEncoding": false }, { - "$id": "69", + "$id": "66", "name": "body", "nameInRequest": "body", "type": { @@ -622,7 +583,7 @@ ], "responses": [ { - "$id": "70", + "$id": "67", "statusCodes": [ 200 ], @@ -649,74 +610,74 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "68", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "69", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "70", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "12" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Added", "apiVersions": [ "v1", "v2" ], - "crossLanguageDefinitionId": "Versioning.Added", - "decorators": [], "children": [ { "$id": "71", "kind": "client", "name": "InterfaceV2", "namespace": "Versioning.Added", - "parameters": [ - { - "$id": "72", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "73", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "74", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "12" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "75", + "$id": "72", "name": "v2InInterface", "resourceName": "InterfaceV2", "accessibility": "public", "parameters": [ { - "$id": "76", + "$id": "73", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "77", + "$id": "74", "kind": "constant", "valueType": { - "$id": "78", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -736,14 +697,14 @@ "skipUrlEncoding": false }, { - "$id": "79", + "$id": "76", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "80", + "$id": "77", "kind": "constant", "valueType": { - "$id": "81", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -763,7 +724,7 @@ "skipUrlEncoding": false }, { - "$id": "82", + "$id": "79", "name": "body", "nameInRequest": "body", "type": { @@ -782,7 +743,7 @@ ], "responses": [ { - "$id": "83", + "$id": "80", "statusCodes": [ 200 ], @@ -809,11 +770,50 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "81", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "82", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "83", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "12" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2", "apiVersions": [ "v2" ], - "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2", - "decorators": [], "parent": { "$ref": "47" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json index 2707fdaca22..34e8b1afef9 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json @@ -117,58 +117,19 @@ "name": "MadeOptionalClient", "namespace": "Versioning.MadeOptional", "doc": "Test for the `@madeOptional` decorator.", - "parameters": [ - { - "$id": "16", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "17", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "18", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "19", + "$id": "16", "name": "test", "resourceName": "MadeOptional", "accessibility": "public", "parameters": [ { - "$id": "20", + "$id": "17", "name": "param", "nameInRequest": "param", "type": { - "$id": "21", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -185,15 +146,15 @@ "skipUrlEncoding": false }, { - "$id": "22", + "$id": "19", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "23", + "$id": "20", "kind": "constant", "valueType": { - "$id": "24", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -213,14 +174,14 @@ "skipUrlEncoding": false }, { - "$id": "25", + "$id": "22", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "26", + "$id": "23", "kind": "constant", "valueType": { - "$id": "27", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -240,7 +201,7 @@ "skipUrlEncoding": false }, { - "$id": "28", + "$id": "25", "name": "body", "nameInRequest": "body", "type": { @@ -259,7 +220,7 @@ ], "responses": [ { - "$id": "29", + "$id": "26", "statusCodes": [ 200 ], @@ -286,11 +247,50 @@ "decorators": [] } ], - "apiVersions": [ - "v1" + "parameters": [ + { + "$id": "27", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "28", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "29", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], + "decorators": [], "crossLanguageDefinitionId": "Versioning.MadeOptional", - "decorators": [] + "apiVersions": [ + "v1" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json index 6b2f8f509e4..657fea2fd80 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json @@ -136,58 +136,19 @@ "name": "MadeOptionalClient", "namespace": "Versioning.MadeOptional", "doc": "Test for the `@madeOptional` decorator.", - "parameters": [ - { - "$id": "18", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "19", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "20", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "21", + "$id": "18", "name": "test", "resourceName": "MadeOptional", "accessibility": "public", "parameters": [ { - "$id": "22", + "$id": "19", "name": "param", "nameInRequest": "param", "type": { - "$id": "23", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -204,15 +165,15 @@ "skipUrlEncoding": false }, { - "$id": "24", + "$id": "21", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "25", + "$id": "22", "kind": "constant", "valueType": { - "$id": "26", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -232,14 +193,14 @@ "skipUrlEncoding": false }, { - "$id": "27", + "$id": "24", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "28", + "$id": "25", "kind": "constant", "valueType": { - "$id": "29", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -259,7 +220,7 @@ "skipUrlEncoding": false }, { - "$id": "30", + "$id": "27", "name": "body", "nameInRequest": "body", "type": { @@ -278,7 +239,7 @@ ], "responses": [ { - "$id": "31", + "$id": "28", "statusCodes": [ 200 ], @@ -305,12 +266,51 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "29", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "30", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "31", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.MadeOptional", "apiVersions": [ "v1", "v2" - ], - "crossLanguageDefinitionId": "Versioning.MadeOptional", - "decorators": [] + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json index 310a5e0bdbc..1933d326abc 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json @@ -500,63 +500,24 @@ "name": "RemovedClient", "namespace": "Versioning.Removed", "doc": "Test for the `@removed` decorator.", - "parameters": [ - { - "$id": "65", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "66", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "67", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "type": { - "$ref": "18" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "68", + "$id": "65", "name": "v1", "resourceName": "Removed", "doc": "This operation should not be generated with latest version's signature.", "accessibility": "public", "parameters": [ { - "$id": "69", + "$id": "66", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "70", + "$id": "67", "kind": "constant", "valueType": { - "$id": "71", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -576,14 +537,14 @@ "skipUrlEncoding": false }, { - "$id": "72", + "$id": "69", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "73", + "$id": "70", "kind": "constant", "valueType": { - "$id": "74", + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -603,7 +564,7 @@ "skipUrlEncoding": false }, { - "$id": "75", + "$id": "72", "name": "body", "nameInRequest": "body", "type": { @@ -622,7 +583,7 @@ ], "responses": [ { - "$id": "76", + "$id": "73", "statusCodes": [ 200 ], @@ -649,17 +610,17 @@ "decorators": [] }, { - "$id": "77", + "$id": "74", "name": "v2", "resourceName": "Removed", "accessibility": "public", "parameters": [ { - "$id": "78", + "$id": "75", "name": "param", "nameInRequest": "param", "type": { - "$id": "79", + "$id": "76", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -676,15 +637,15 @@ "skipUrlEncoding": false }, { - "$id": "80", + "$id": "77", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "81", + "$id": "78", "kind": "constant", "valueType": { - "$id": "82", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -704,14 +665,14 @@ "skipUrlEncoding": false }, { - "$id": "83", + "$id": "80", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "84", + "$id": "81", "kind": "constant", "valueType": { - "$id": "85", + "$id": "82", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -731,7 +692,7 @@ "skipUrlEncoding": false }, { - "$id": "86", + "$id": "83", "name": "body", "nameInRequest": "body", "type": { @@ -750,7 +711,7 @@ ], "responses": [ { - "$id": "87", + "$id": "84", "statusCodes": [ 200 ], @@ -777,22 +738,22 @@ "decorators": [] }, { - "$id": "88", + "$id": "85", "name": "modelV3", "resourceName": "Removed", "doc": "This operation will pass different paths and different request bodies based on different versions.", "accessibility": "public", "parameters": [ { - "$id": "89", + "$id": "86", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "90", + "$id": "87", "kind": "constant", "valueType": { - "$id": "91", + "$id": "88", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -812,14 +773,14 @@ "skipUrlEncoding": false }, { - "$id": "92", + "$id": "89", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "93", + "$id": "90", "kind": "constant", "valueType": { - "$id": "94", + "$id": "91", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -839,7 +800,7 @@ "skipUrlEncoding": false }, { - "$id": "95", + "$id": "92", "name": "body", "nameInRequest": "body", "type": { @@ -858,7 +819,7 @@ ], "responses": [ { - "$id": "96", + "$id": "93", "statusCodes": [ 200 ], @@ -885,11 +846,50 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "94", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "95", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "96", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "type": { + "$ref": "18" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed", "apiVersions": [ "v1" ], - "crossLanguageDefinitionId": "Versioning.Removed", - "decorators": [], "children": [ { "$id": "97", @@ -897,62 +897,23 @@ "name": "InterfaceV1", "namespace": "Versioning.Removed", "doc": "This operation group should not be generated with latest version.", - "parameters": [ - { - "$id": "98", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "99", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "100", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "type": { - "$ref": "18" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "101", + "$id": "98", "name": "v1InInterface", "resourceName": "InterfaceV1", "accessibility": "public", "parameters": [ { - "$id": "102", + "$id": "99", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "103", + "$id": "100", "kind": "constant", "valueType": { - "$id": "104", + "$id": "101", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -972,14 +933,14 @@ "skipUrlEncoding": false }, { - "$id": "105", + "$id": "102", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "106", + "$id": "103", "kind": "constant", "valueType": { - "$id": "107", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -999,7 +960,7 @@ "skipUrlEncoding": false }, { - "$id": "108", + "$id": "105", "name": "body", "nameInRequest": "body", "type": { @@ -1018,7 +979,7 @@ ], "responses": [ { - "$id": "109", + "$id": "106", "statusCodes": [ 200 ], @@ -1045,11 +1006,50 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "107", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "108", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "109", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "type": { + "$ref": "18" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", "apiVersions": [ "v1" ], - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", - "decorators": [], "parent": { "$ref": "64" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json index b7a75668ca5..5ef02df65f8 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json @@ -343,62 +343,23 @@ "name": "RemovedClient", "namespace": "Versioning.Removed", "doc": "Test for the `@removed` decorator.", - "parameters": [ - { - "$id": "43", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "44", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "45", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "type": { - "$ref": "12" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "46", + "$id": "43", "name": "v2", "resourceName": "Removed", "accessibility": "public", "parameters": [ { - "$id": "47", + "$id": "44", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "48", + "$id": "45", "kind": "constant", "valueType": { - "$id": "49", + "$id": "46", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -418,14 +379,14 @@ "skipUrlEncoding": false }, { - "$id": "50", + "$id": "47", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "51", + "$id": "48", "kind": "constant", "valueType": { - "$id": "52", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -445,7 +406,7 @@ "skipUrlEncoding": false }, { - "$id": "53", + "$id": "50", "name": "body", "nameInRequest": "body", "type": { @@ -464,7 +425,7 @@ ], "responses": [ { - "$id": "54", + "$id": "51", "statusCodes": [ 200 ], @@ -491,22 +452,22 @@ "decorators": [] }, { - "$id": "55", + "$id": "52", "name": "modelV3", "resourceName": "Removed", "doc": "This operation will pass different paths and different request bodies based on different versions.", "accessibility": "public", "parameters": [ { - "$id": "56", + "$id": "53", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "57", + "$id": "54", "kind": "constant", "valueType": { - "$id": "58", + "$id": "55", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -526,14 +487,14 @@ "skipUrlEncoding": false }, { - "$id": "59", + "$id": "56", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "60", + "$id": "57", "kind": "constant", "valueType": { - "$id": "61", + "$id": "58", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -553,7 +514,7 @@ "skipUrlEncoding": false }, { - "$id": "62", + "$id": "59", "name": "body", "nameInRequest": "body", "type": { @@ -572,7 +533,7 @@ ], "responses": [ { - "$id": "63", + "$id": "60", "statusCodes": [ 200 ], @@ -599,13 +560,52 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "61", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "62", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "63", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "type": { + "$ref": "12" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed", "apiVersions": [ "v1", "v2preview", "v2" - ], - "crossLanguageDefinitionId": "Versioning.Removed", - "decorators": [] + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json index f0390cc7def..9e29a107e85 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json @@ -443,63 +443,24 @@ "name": "RemovedClient", "namespace": "Versioning.Removed", "doc": "Test for the `@removed` decorator.", - "parameters": [ - { - "$id": "58", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "59", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "60", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "type": { - "$ref": "12" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "61", + "$id": "58", "name": "v1", "resourceName": "Removed", "doc": "This operation should not be generated with latest version's signature.", "accessibility": "public", "parameters": [ { - "$id": "62", + "$id": "59", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "63", + "$id": "60", "kind": "constant", "valueType": { - "$id": "64", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -519,14 +480,14 @@ "skipUrlEncoding": false }, { - "$id": "65", + "$id": "62", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "66", + "$id": "63", "kind": "constant", "valueType": { - "$id": "67", + "$id": "64", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -546,7 +507,7 @@ "skipUrlEncoding": false }, { - "$id": "68", + "$id": "65", "name": "body", "nameInRequest": "body", "type": { @@ -565,7 +526,7 @@ ], "responses": [ { - "$id": "69", + "$id": "66", "statusCodes": [ 200 ], @@ -592,17 +553,17 @@ "decorators": [] }, { - "$id": "70", + "$id": "67", "name": "v2", "resourceName": "Removed", "accessibility": "public", "parameters": [ { - "$id": "71", + "$id": "68", "name": "param", "nameInRequest": "param", "type": { - "$id": "72", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -619,15 +580,15 @@ "skipUrlEncoding": false }, { - "$id": "73", + "$id": "70", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "74", + "$id": "71", "kind": "constant", "valueType": { - "$id": "75", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -647,14 +608,14 @@ "skipUrlEncoding": false }, { - "$id": "76", + "$id": "73", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "77", + "$id": "74", "kind": "constant", "valueType": { - "$id": "78", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -674,7 +635,7 @@ "skipUrlEncoding": false }, { - "$id": "79", + "$id": "76", "name": "body", "nameInRequest": "body", "type": { @@ -693,7 +654,7 @@ ], "responses": [ { - "$id": "80", + "$id": "77", "statusCodes": [ 200 ], @@ -720,22 +681,22 @@ "decorators": [] }, { - "$id": "81", + "$id": "78", "name": "modelV3", "resourceName": "Removed", "doc": "This operation will pass different paths and different request bodies based on different versions.", "accessibility": "public", "parameters": [ { - "$id": "82", + "$id": "79", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "83", + "$id": "80", "kind": "constant", "valueType": { - "$id": "84", + "$id": "81", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -755,14 +716,14 @@ "skipUrlEncoding": false }, { - "$id": "85", + "$id": "82", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "86", + "$id": "83", "kind": "constant", "valueType": { - "$id": "87", + "$id": "84", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -782,7 +743,7 @@ "skipUrlEncoding": false }, { - "$id": "88", + "$id": "85", "name": "body", "nameInRequest": "body", "type": { @@ -801,7 +762,7 @@ ], "responses": [ { - "$id": "89", + "$id": "86", "statusCodes": [ 200 ], @@ -828,12 +789,51 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "87", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "88", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "89", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "type": { + "$ref": "12" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed", "apiVersions": [ "v1", "v2preview" ], - "crossLanguageDefinitionId": "Versioning.Removed", - "decorators": [], "children": [ { "$id": "90", @@ -841,62 +841,23 @@ "name": "InterfaceV1", "namespace": "Versioning.Removed", "doc": "This operation group should not be generated with latest version.", - "parameters": [ - { - "$id": "91", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "92", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "93", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "type": { - "$ref": "12" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "94", + "$id": "91", "name": "v1InInterface", "resourceName": "InterfaceV1", "accessibility": "public", "parameters": [ { - "$id": "95", + "$id": "92", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "96", + "$id": "93", "kind": "constant", "valueType": { - "$id": "97", + "$id": "94", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -916,14 +877,14 @@ "skipUrlEncoding": false }, { - "$id": "98", + "$id": "95", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "99", + "$id": "96", "kind": "constant", "valueType": { - "$id": "100", + "$id": "97", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -943,7 +904,7 @@ "skipUrlEncoding": false }, { - "$id": "101", + "$id": "98", "name": "body", "nameInRequest": "body", "type": { @@ -962,7 +923,7 @@ ], "responses": [ { - "$id": "102", + "$id": "99", "statusCodes": [ 200 ], @@ -989,12 +950,51 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "100", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "101", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "102", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", + "type": { + "$ref": "12" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", "apiVersions": [ "v1", "v2preview" ], - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", - "decorators": [], "parent": { "$ref": "57" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json index ef6a1f114db..8010aa01546 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json @@ -199,58 +199,19 @@ "name": "RenamedFromClient", "namespace": "Versioning.RenamedFrom", "doc": "Test for the `@renamedFrom` decorator.", - "parameters": [ - { - "$id": "26", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "27", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "28", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "6" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "29", + "$id": "26", "name": "oldOp", "resourceName": "RenamedFrom", "accessibility": "public", "parameters": [ { - "$id": "30", + "$id": "27", "name": "oldQuery", "nameInRequest": "oldQuery", "type": { - "$id": "31", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -267,15 +228,15 @@ "skipUrlEncoding": false }, { - "$id": "32", + "$id": "29", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "33", + "$id": "30", "kind": "constant", "valueType": { - "$id": "34", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -295,14 +256,14 @@ "skipUrlEncoding": false }, { - "$id": "35", + "$id": "32", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "36", + "$id": "33", "kind": "constant", "valueType": { - "$id": "37", + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -322,7 +283,7 @@ "skipUrlEncoding": false }, { - "$id": "38", + "$id": "35", "name": "body", "nameInRequest": "body", "type": { @@ -341,7 +302,7 @@ ], "responses": [ { - "$id": "39", + "$id": "36", "statusCodes": [ 200 ], @@ -368,73 +329,73 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "37", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "38", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "39", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "6" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.RenamedFrom", "apiVersions": [ "v1" ], - "crossLanguageDefinitionId": "Versioning.RenamedFrom", - "decorators": [], "children": [ { "$id": "40", "kind": "client", "name": "OldInterface", "namespace": "Versioning.RenamedFrom", - "parameters": [ - { - "$id": "41", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "42", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "43", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "6" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "44", + "$id": "41", "name": "newOpInNewInterface", "resourceName": "OldInterface", "accessibility": "public", "parameters": [ { - "$id": "45", + "$id": "42", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "46", + "$id": "43", "kind": "constant", "valueType": { - "$id": "47", + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -454,14 +415,14 @@ "skipUrlEncoding": false }, { - "$id": "48", + "$id": "45", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "49", + "$id": "46", "kind": "constant", "valueType": { - "$id": "50", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -481,7 +442,7 @@ "skipUrlEncoding": false }, { - "$id": "51", + "$id": "48", "name": "body", "nameInRequest": "body", "type": { @@ -500,7 +461,7 @@ ], "responses": [ { - "$id": "52", + "$id": "49", "statusCodes": [ 200 ], @@ -527,11 +488,50 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "50", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "51", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "52", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "6" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface", "apiVersions": [ "v1" ], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface", - "decorators": [], "parent": { "$ref": "25" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json index 7682e29e013..e5ea99c17b0 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json @@ -218,58 +218,19 @@ "name": "RenamedFromClient", "namespace": "Versioning.RenamedFrom", "doc": "Test for the `@renamedFrom` decorator.", - "parameters": [ - { - "$id": "28", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "29", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "30", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "6" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "31", + "$id": "28", "name": "newOp", "resourceName": "RenamedFrom", "accessibility": "public", "parameters": [ { - "$id": "32", + "$id": "29", "name": "newQuery", "nameInRequest": "newQuery", "type": { - "$id": "33", + "$id": "30", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -286,15 +247,15 @@ "skipUrlEncoding": false }, { - "$id": "34", + "$id": "31", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "35", + "$id": "32", "kind": "constant", "valueType": { - "$id": "36", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -314,14 +275,14 @@ "skipUrlEncoding": false }, { - "$id": "37", + "$id": "34", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "38", + "$id": "35", "kind": "constant", "valueType": { - "$id": "39", + "$id": "36", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -341,7 +302,7 @@ "skipUrlEncoding": false }, { - "$id": "40", + "$id": "37", "name": "body", "nameInRequest": "body", "type": { @@ -360,7 +321,7 @@ ], "responses": [ { - "$id": "41", + "$id": "38", "statusCodes": [ 200 ], @@ -387,74 +348,74 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "39", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "40", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "41", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "6" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.RenamedFrom", "apiVersions": [ "v1", "v2" ], - "crossLanguageDefinitionId": "Versioning.RenamedFrom", - "decorators": [], "children": [ { "$id": "42", "kind": "client", "name": "NewInterface", "namespace": "Versioning.RenamedFrom", - "parameters": [ - { - "$id": "43", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "44", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "45", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "6" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "46", + "$id": "43", "name": "newOpInNewInterface", "resourceName": "NewInterface", "accessibility": "public", "parameters": [ { - "$id": "47", + "$id": "44", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "48", + "$id": "45", "kind": "constant", "valueType": { - "$id": "49", + "$id": "46", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -474,14 +435,14 @@ "skipUrlEncoding": false }, { - "$id": "50", + "$id": "47", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "51", + "$id": "48", "kind": "constant", "valueType": { - "$id": "52", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -501,7 +462,7 @@ "skipUrlEncoding": false }, { - "$id": "53", + "$id": "50", "name": "body", "nameInRequest": "body", "type": { @@ -520,7 +481,7 @@ ], "responses": [ { - "$id": "54", + "$id": "51", "statusCodes": [ 200 ], @@ -547,12 +508,51 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "52", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "53", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "54", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "6" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface", "apiVersions": [ "v1", "v2" ], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface", - "decorators": [], "parent": { "$ref": "27" } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json index 3162b3d94e8..dde92e77dda 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json @@ -53,61 +53,22 @@ "name": "ReturnTypeChangedFromClient", "namespace": "Versioning.ReturnTypeChangedFrom", "doc": "Test for the `@returnTypeChangedFrom` decorator.", - "parameters": [ - { - "$id": "7", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "8", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "9", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "10", + "$id": "7", "name": "test", "resourceName": "ReturnTypeChangedFrom", "accessibility": "public", "parameters": [ { - "$id": "11", + "$id": "8", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "12", + "$id": "9", "kind": "constant", "valueType": { - "$id": "13", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -127,14 +88,14 @@ "skipUrlEncoding": false }, { - "$id": "14", + "$id": "11", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "15", + "$id": "12", "kind": "constant", "valueType": { - "$id": "16", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -154,11 +115,11 @@ "skipUrlEncoding": false }, { - "$id": "17", + "$id": "14", "name": "body", "nameInRequest": "body", "type": { - "$id": "18", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -177,12 +138,12 @@ ], "responses": [ { - "$id": "19", + "$id": "16", "statusCodes": [ 200 ], "bodyType": { - "$id": "20", + "$id": "17", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -190,14 +151,14 @@ }, "headers": [ { - "$id": "21", + "$id": "18", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "22", + "$id": "19", "kind": "constant", "valueType": { - "$id": "23", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -227,11 +188,50 @@ "decorators": [] } ], - "apiVersions": [ - "v1" + "parameters": [ + { + "$id": "21", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "22", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "23", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], + "decorators": [], "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom", - "decorators": [] + "apiVersions": [ + "v1" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json index 54883ad23cb..bea55b777f2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json @@ -72,61 +72,22 @@ "name": "ReturnTypeChangedFromClient", "namespace": "Versioning.ReturnTypeChangedFrom", "doc": "Test for the `@returnTypeChangedFrom` decorator.", - "parameters": [ - { - "$id": "9", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "10", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "11", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "12", + "$id": "9", "name": "test", "resourceName": "ReturnTypeChangedFrom", "accessibility": "public", "parameters": [ { - "$id": "13", + "$id": "10", "name": "contentType", "nameInRequest": "Content-Type", "type": { - "$id": "14", + "$id": "11", "kind": "constant", "valueType": { - "$id": "15", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -146,14 +107,14 @@ "skipUrlEncoding": false }, { - "$id": "16", + "$id": "13", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "17", + "$id": "14", "kind": "constant", "valueType": { - "$id": "18", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -173,11 +134,11 @@ "skipUrlEncoding": false }, { - "$id": "19", + "$id": "16", "name": "body", "nameInRequest": "body", "type": { - "$id": "20", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -196,12 +157,12 @@ ], "responses": [ { - "$id": "21", + "$id": "18", "statusCodes": [ 200 ], "bodyType": { - "$id": "22", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -209,14 +170,14 @@ }, "headers": [ { - "$id": "23", + "$id": "20", "name": "contentType", "nameInResponse": "content-type", "type": { - "$id": "24", + "$id": "21", "kind": "constant", "valueType": { - "$id": "25", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -246,12 +207,51 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "23", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "24", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "25", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom", "apiVersions": [ "v1", "v2" - ], - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom", - "decorators": [] + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json index 39d01e9ec55..69fe00fafb7 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json @@ -117,58 +117,19 @@ "name": "TypeChangedFromClient", "namespace": "Versioning.TypeChangedFrom", "doc": "Test for the `@typeChangedFrom` decorator.", - "parameters": [ - { - "$id": "16", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "17", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "18", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "19", + "$id": "16", "name": "test", "resourceName": "TypeChangedFrom", "accessibility": "public", "parameters": [ { - "$id": "20", + "$id": "17", "name": "param", "nameInRequest": "param", "type": { - "$id": "21", + "$id": "18", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -185,15 +146,15 @@ "skipUrlEncoding": false }, { - "$id": "22", + "$id": "19", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "23", + "$id": "20", "kind": "constant", "valueType": { - "$id": "24", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -213,14 +174,14 @@ "skipUrlEncoding": false }, { - "$id": "25", + "$id": "22", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "26", + "$id": "23", "kind": "constant", "valueType": { - "$id": "27", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -240,7 +201,7 @@ "skipUrlEncoding": false }, { - "$id": "28", + "$id": "25", "name": "body", "nameInRequest": "body", "type": { @@ -259,7 +220,7 @@ ], "responses": [ { - "$id": "29", + "$id": "26", "statusCodes": [ 200 ], @@ -286,11 +247,50 @@ "decorators": [] } ], - "apiVersions": [ - "v1" + "parameters": [ + { + "$id": "27", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "28", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "29", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } ], + "decorators": [], "crossLanguageDefinitionId": "Versioning.TypeChangedFrom", - "decorators": [] + "apiVersions": [ + "v1" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json index 295ced93903..158d5de49b5 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json @@ -136,58 +136,19 @@ "name": "TypeChangedFromClient", "namespace": "Versioning.TypeChangedFrom", "doc": "Test for the `@typeChangedFrom` decorator.", - "parameters": [ - { - "$id": "18", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "19", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "20", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], "operations": [ { - "$id": "21", + "$id": "18", "name": "test", "resourceName": "TypeChangedFrom", "accessibility": "public", "parameters": [ { - "$id": "22", + "$id": "19", "name": "param", "nameInRequest": "param", "type": { - "$id": "23", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -204,15 +165,15 @@ "skipUrlEncoding": false }, { - "$id": "24", + "$id": "21", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "25", + "$id": "22", "kind": "constant", "valueType": { - "$id": "26", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -232,14 +193,14 @@ "skipUrlEncoding": false }, { - "$id": "27", + "$id": "24", "name": "accept", "nameInRequest": "Accept", "type": { - "$id": "28", + "$id": "25", "kind": "constant", "valueType": { - "$id": "29", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -259,7 +220,7 @@ "skipUrlEncoding": false }, { - "$id": "30", + "$id": "27", "name": "body", "nameInRequest": "body", "type": { @@ -278,7 +239,7 @@ ], "responses": [ { - "$id": "31", + "$id": "28", "statusCodes": [ 200 ], @@ -305,12 +266,51 @@ "decorators": [] } ], + "parameters": [ + { + "$id": "29", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "30", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "31", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom", "apiVersions": [ "v1", "v2" - ], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom", - "decorators": [] + ] } ] }